This method returns Universal Metadata. Universal Metadata are dimensions and metrics + * applicable to any property such as `country` and `totalUsers`. + * + *
Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * GetUniversalMetadataRequest request = GetUniversalMetadataRequest.newBuilder().build();
+ * UniversalMetadata response = alphaAnalyticsDataClient.getUniversalMetadata(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final UniversalMetadata getUniversalMetadata(GetUniversalMetadataRequest request) {
+ return getUniversalMetadataCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns metadata for dimensions and metrics available in reporting methods. Used to explore the
+ * dimensions and metrics. Dimensions and metrics will be mostly added over time, but renames and
+ * deletions may occur.
+ *
+ * This method returns Universal Metadata. Universal Metadata are dimensions and metrics + * applicable to any property such as `country` and `totalUsers`. + * + *
Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * GetUniversalMetadataRequest request = GetUniversalMetadataRequest.newBuilder().build();
+ * ApiFuture<UniversalMetadata> future = alphaAnalyticsDataClient.getUniversalMetadataCallable().futureCall(request);
+ * // Do something
+ * UniversalMetadata response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallable+ * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. Dimensions and metrics will be + * mostly added over time, but renames and deletions may occur. + * This method returns Universal Metadata. Universal Metadata are dimensions + * and metrics applicable to any property such as `country` and `totalUsers`. + *+ */ + public void getUniversalMetadata( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest request, + io.grpc.stub.StreamObserver
+ * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. Dimensions and metrics will be + * mostly added over time, but renames and deletions may occur. + * This method returns Universal Metadata. Universal Metadata are dimensions + * and metrics applicable to any property such as `country` and `totalUsers`. + *+ */ + public void getUniversalMetadata( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest request, + io.grpc.stub.StreamObserver
+ * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. Dimensions and metrics will be + * mostly added over time, but renames and deletions may occur. + * This method returns Universal Metadata. Universal Metadata are dimensions + * and metrics applicable to any property such as `country` and `totalUsers`. + *+ */ + public com.google.analytics.data.v1alpha.UniversalMetadata getUniversalMetadata( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest request) { + return blockingUnaryCall( + getChannel(), getGetUniversalMetadataMethod(), getCallOptions(), request); + } } /** @@ -649,12 +762,32 @@ protected AlphaAnalyticsDataFutureStub build( return futureUnaryCall( getChannel().newCall(getBatchRunPivotReportsMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Returns metadata for dimensions and metrics available in reporting methods. + * Used to explore the dimensions and metrics. Dimensions and metrics will be + * mostly added over time, but renames and deletions may occur. + * This method returns Universal Metadata. Universal Metadata are dimensions + * and metrics applicable to any property such as `country` and `totalUsers`. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1alpha.UniversalMetadata> + getUniversalMetadata( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest request) { + return futureUnaryCall( + getChannel().newCall(getGetUniversalMetadataMethod(), getCallOptions()), request); + } } private static final int METHODID_RUN_REPORT = 0; private static final int METHODID_RUN_PIVOT_REPORT = 1; private static final int METHODID_BATCH_RUN_REPORTS = 2; private static final int METHODID_BATCH_RUN_PIVOT_REPORTS = 3; + private static final int METHODID_GET_UNIVERSAL_METADATA = 4; private static final class MethodHandlers
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -168,7 +170,9 @@ public java.lang.String getName() {
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -246,12 +250,13 @@ public com.google.protobuf.ByteString getDimensionBytes() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -269,12 +274,13 @@ public boolean hasDateRange() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -294,12 +300,13 @@ public com.google.analytics.data.v1alpha.DateRange getDateRange() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -678,7 +685,9 @@ public Builder mergeFrom(
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -701,7 +710,9 @@ public java.lang.String getName() {
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -724,7 +735,9 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -746,7 +759,9 @@ public Builder setName(java.lang.String value) {
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -764,7 +779,9 @@ public Builder clearName() {
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -905,12 +922,13 @@ public Builder setDimensionBytes(com.google.protobuf.ByteString value) {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -927,12 +945,13 @@ public boolean hasDateRange() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -955,12 +974,13 @@ public com.google.analytics.data.v1alpha.DateRange getDateRange() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -985,12 +1005,13 @@ public Builder setDateRange(com.google.analytics.data.v1alpha.DateRange value) {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -1013,12 +1034,13 @@ public Builder setDateRange(
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -1047,12 +1069,13 @@ public Builder mergeDateRange(com.google.analytics.data.v1alpha.DateRange value)
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -1075,12 +1098,13 @@ public Builder clearDateRange() {
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -1097,12 +1121,13 @@ public com.google.analytics.data.v1alpha.DateRange.Builder getDateRangeBuilder()
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -1123,12 +1148,13 @@ public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangeOrBuilde
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java
index 278e0936..60d947c9 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java
@@ -28,7 +28,9 @@ public interface CohortOrBuilder
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -41,7 +43,9 @@ public interface CohortOrBuilder
*
*
* Assigns a name to this cohort. The dimension `cohort` is valued to this
- * name in a report response. If not set, a cohort is named the empty string.
+ * name in a report response. If set, cannot begin with `cohort_` or
+ * `RESERVED_`. If not set, cohorts are named by their zero based index
+ * `cohort_0`, `cohort_1`, etc.
*
*
* string name = 1;
@@ -82,12 +86,13 @@ public interface CohortOrBuilder
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -102,12 +107,13 @@ public interface CohortOrBuilder
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
@@ -122,12 +128,13 @@ public interface CohortOrBuilder
*
*
* The cohort selects users whose first visit date is between start date
- * and end date defined in the date_range. The date range should be aligned
- * with the cohort's granularity.
- * If CohortsRange uses daily granularity, the date range can be aligned to
- * any day.
- * If CohortsRange uses weekly granularity, the date range should be aligned
- * to the week boundary, starting at Sunday and ending Saturday. If
+ * and end date defined in the `dateRange`. In a cohort request, this
+ * `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ * `RunPivotReportRequest` must be unspecified.
+ * The date range should be aligned with the cohort's granularity. If
+ * CohortsRange uses daily granularity, the date range can be aligned to any
+ * day. If CohortsRange uses weekly granularity, the date range should be
+ * aligned to the week boundary, starting at Sunday and ending Saturday. If
* CohortsRange uses monthly granularity, the date range should be aligned to
* the month, starting at the first and ending on the last day of the month.
*
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java
index 617409ac..c952de95 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java
@@ -73,16 +73,6 @@ private CohortReportSettings(
accumulate_ = input.readBool();
break;
}
- case 16:
- {
- pivotOnUserEvent_ = input.readBool();
- break;
- }
- case 32:
- {
- missingValueAsZero_ = input.readBool();
- break;
- }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -123,7 +113,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
*
- * If true, accumulates the result from first visit day to the end day.
+ * If true, accumulates the result from first visit day to the end day. Not
+ * supported in `RunReportRequest`.
*
*
* bool accumulate = 1;
@@ -135,45 +126,6 @@ public boolean getAccumulate() {
return accumulate_;
}
- public static final int PIVOT_ON_USER_EVENT_FIELD_NUMBER = 2;
- private boolean pivotOnUserEvent_;
- /**
- *
- *
- * - * If true, the report is for lifetime value report and should pivot on user - * event. - *- * - *
bool pivot_on_user_event = 2;
- *
- * @return The pivotOnUserEvent.
- */
- @java.lang.Override
- public boolean getPivotOnUserEvent() {
- return pivotOnUserEvent_;
- }
-
- public static final int MISSING_VALUE_AS_ZERO_FIELD_NUMBER = 4;
- private boolean missingValueAsZero_;
- /**
- *
- *
- * - * If some values are missing while computing ratios, we want to compute the - * ratios only based on non-missing values. - * This field should be set to true only for a totals request. - *- * - *
bool missing_value_as_zero = 4;
- *
- * @return The missingValueAsZero.
- */
- @java.lang.Override
- public boolean getMissingValueAsZero() {
- return missingValueAsZero_;
- }
-
private byte memoizedIsInitialized = -1;
@java.lang.Override
@@ -191,12 +143,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (accumulate_ != false) {
output.writeBool(1, accumulate_);
}
- if (pivotOnUserEvent_ != false) {
- output.writeBool(2, pivotOnUserEvent_);
- }
- if (missingValueAsZero_ != false) {
- output.writeBool(4, missingValueAsZero_);
- }
unknownFields.writeTo(output);
}
@@ -209,12 +155,6 @@ public int getSerializedSize() {
if (accumulate_ != false) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, accumulate_);
}
- if (pivotOnUserEvent_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, pivotOnUserEvent_);
- }
- if (missingValueAsZero_ != false) {
- size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, missingValueAsZero_);
- }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -232,8 +172,6 @@ public boolean equals(final java.lang.Object obj) {
(com.google.analytics.data.v1alpha.CohortReportSettings) obj;
if (getAccumulate() != other.getAccumulate()) return false;
- if (getPivotOnUserEvent() != other.getPivotOnUserEvent()) return false;
- if (getMissingValueAsZero() != other.getMissingValueAsZero()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -247,10 +185,6 @@ public int hashCode() {
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + ACCUMULATE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAccumulate());
- hash = (37 * hash) + PIVOT_ON_USER_EVENT_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPivotOnUserEvent());
- hash = (37 * hash) + MISSING_VALUE_AS_ZERO_FIELD_NUMBER;
- hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getMissingValueAsZero());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -399,10 +333,6 @@ public Builder clear() {
super.clear();
accumulate_ = false;
- pivotOnUserEvent_ = false;
-
- missingValueAsZero_ = false;
-
return this;
}
@@ -431,8 +361,6 @@ public com.google.analytics.data.v1alpha.CohortReportSettings buildPartial() {
com.google.analytics.data.v1alpha.CohortReportSettings result =
new com.google.analytics.data.v1alpha.CohortReportSettings(this);
result.accumulate_ = accumulate_;
- result.pivotOnUserEvent_ = pivotOnUserEvent_;
- result.missingValueAsZero_ = missingValueAsZero_;
onBuilt();
return result;
}
@@ -486,12 +414,6 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.CohortReportSettings
if (other.getAccumulate() != false) {
setAccumulate(other.getAccumulate());
}
- if (other.getPivotOnUserEvent() != false) {
- setPivotOnUserEvent(other.getPivotOnUserEvent());
- }
- if (other.getMissingValueAsZero() != false) {
- setMissingValueAsZero(other.getMissingValueAsZero());
- }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -527,7 +449,8 @@ public Builder mergeFrom(
*
*
*
- * If true, accumulates the result from first visit day to the end day.
+ * If true, accumulates the result from first visit day to the end day. Not
+ * supported in `RunReportRequest`.
*
*
* bool accumulate = 1;
@@ -542,7 +465,8 @@ public boolean getAccumulate() {
*
*
*
- * If true, accumulates the result from first visit day to the end day.
+ * If true, accumulates the result from first visit day to the end day. Not
+ * supported in `RunReportRequest`.
*
*
* bool accumulate = 1;
@@ -560,7 +484,8 @@ public Builder setAccumulate(boolean value) {
*
*
*
- * If true, accumulates the result from first visit day to the end day.
+ * If true, accumulates the result from first visit day to the end day. Not
+ * supported in `RunReportRequest`.
*
*
* bool accumulate = 1;
@@ -574,119 +499,6 @@ public Builder clearAccumulate() {
return this;
}
- private boolean pivotOnUserEvent_;
- /**
- *
- *
- * - * If true, the report is for lifetime value report and should pivot on user - * event. - *- * - *
bool pivot_on_user_event = 2;
- *
- * @return The pivotOnUserEvent.
- */
- @java.lang.Override
- public boolean getPivotOnUserEvent() {
- return pivotOnUserEvent_;
- }
- /**
- *
- *
- * - * If true, the report is for lifetime value report and should pivot on user - * event. - *- * - *
bool pivot_on_user_event = 2;
- *
- * @param value The pivotOnUserEvent to set.
- * @return This builder for chaining.
- */
- public Builder setPivotOnUserEvent(boolean value) {
-
- pivotOnUserEvent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * If true, the report is for lifetime value report and should pivot on user - * event. - *- * - *
bool pivot_on_user_event = 2;
- *
- * @return This builder for chaining.
- */
- public Builder clearPivotOnUserEvent() {
-
- pivotOnUserEvent_ = false;
- onChanged();
- return this;
- }
-
- private boolean missingValueAsZero_;
- /**
- *
- *
- * - * If some values are missing while computing ratios, we want to compute the - * ratios only based on non-missing values. - * This field should be set to true only for a totals request. - *- * - *
bool missing_value_as_zero = 4;
- *
- * @return The missingValueAsZero.
- */
- @java.lang.Override
- public boolean getMissingValueAsZero() {
- return missingValueAsZero_;
- }
- /**
- *
- *
- * - * If some values are missing while computing ratios, we want to compute the - * ratios only based on non-missing values. - * This field should be set to true only for a totals request. - *- * - *
bool missing_value_as_zero = 4;
- *
- * @param value The missingValueAsZero to set.
- * @return This builder for chaining.
- */
- public Builder setMissingValueAsZero(boolean value) {
-
- missingValueAsZero_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * If some values are missing while computing ratios, we want to compute the - * ratios only based on non-missing values. - * This field should be set to true only for a totals request. - *- * - *
bool missing_value_as_zero = 4;
- *
- * @return This builder for chaining.
- */
- public Builder clearMissingValueAsZero() {
-
- missingValueAsZero_ = false;
- onChanged();
- return this;
- }
-
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java
index d987adb6..de6b6ec8 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java
@@ -27,7 +27,8 @@ public interface CohortReportSettingsOrBuilder
*
*
*
- * If true, accumulates the result from first visit day to the end day.
+ * If true, accumulates the result from first visit day to the end day. Not
+ * supported in `RunReportRequest`.
*
*
* bool accumulate = 1;
@@ -35,33 +36,4 @@ public interface CohortReportSettingsOrBuilder
* @return The accumulate.
*/
boolean getAccumulate();
-
- /**
- *
- *
- * - * If true, the report is for lifetime value report and should pivot on user - * event. - *- * - *
bool pivot_on_user_event = 2;
- *
- * @return The pivotOnUserEvent.
- */
- boolean getPivotOnUserEvent();
-
- /**
- *
- *
- * - * If some values are missing while computing ratios, we want to compute the - * ratios only based on non-missing values. - * This field should be set to true only for a totals request. - *- * - *
bool missing_value_as_zero = 4;
- *
- * @return The missingValueAsZero.
- */
- boolean getMissingValueAsZero();
}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java
index c519aff9..92100cd5 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java
@@ -22,7 +22,10 @@
*
*
* - * The header for the dimensions. + * Describes a dimension column in the report. Dimensions requested in a report + * produce column entries within rows and DimensionHeaders. However, dimensions + * used exclusively within filters or expressions do not produce columns in a + * report; correspondingly, those dimensions do not produce headers. ** * Protobuf type {@code google.analytics.data.v1alpha.DimensionHeader} @@ -38,7 +41,7 @@ private DimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder> builde } private DimensionHeader() { - dimensionValues_ = java.util.Collections.emptyList(); + name_ = ""; } @java.lang.Override @@ -60,7 +63,6 @@ private DimensionHeader( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -73,15 +75,9 @@ private DimensionHeader( break; case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = - new java.util.ArrayList
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- @java.lang.Override
- public java.util.Liststring name = 1;
*
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The name.
*/
@java.lang.Override
- public java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
- getDimensionValuesOrBuilderList() {
- return dimensionValues_;
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
}
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- @java.lang.Override
- public int getDimensionValuesCount() {
- return dimensionValues_.size();
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *+ *
string name = 1;
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The bytes for name.
*/
@java.lang.Override
- public com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index) {
- return dimensionValues_.get(index);
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- @java.lang.Override
- public com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(
- int index) {
- return dimensionValues_.get(index);
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
}
private byte memoizedIsInitialized = -1;
@@ -205,8 +177,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- for (int i = 0; i < dimensionValues_.size(); i++) {
- output.writeMessage(1, dimensionValues_.get(i));
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
unknownFields.writeTo(output);
}
@@ -217,8 +189,8 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- for (int i = 0; i < dimensionValues_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i));
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
@@ -236,7 +208,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.analytics.data.v1alpha.DimensionHeader other =
(com.google.analytics.data.v1alpha.DimensionHeader) obj;
- if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false;
+ if (!getName().equals(other.getName())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -248,10 +220,8 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (getDimensionValuesCount() > 0) {
- hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER;
- hash = (53 * hash) + getDimensionValuesList().hashCode();
- }
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -356,7 +326,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * The header for the dimensions.
+ * Describes a dimension column in the report. Dimensions requested in a report
+ * produce column entries within rows and DimensionHeaders. However, dimensions
+ * used exclusively within filters or expressions do not produce columns in a
+ * report; correspondingly, those dimensions do not produce headers.
*
*
* Protobuf type {@code google.analytics.data.v1alpha.DimensionHeader}
@@ -391,20 +364,14 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getDimensionValuesFieldBuilder();
- }
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
}
@java.lang.Override
public Builder clear() {
super.clear();
- if (dimensionValuesBuilder_ == null) {
- dimensionValues_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- dimensionValuesBuilder_.clear();
- }
+ name_ = "";
+
return this;
}
@@ -432,16 +399,7 @@ public com.google.analytics.data.v1alpha.DimensionHeader build() {
public com.google.analytics.data.v1alpha.DimensionHeader buildPartial() {
com.google.analytics.data.v1alpha.DimensionHeader result =
new com.google.analytics.data.v1alpha.DimensionHeader(this);
- int from_bitField0_ = bitField0_;
- if (dimensionValuesBuilder_ == null) {
- if (((bitField0_ & 0x00000001) != 0)) {
- dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_);
- bitField0_ = (bitField0_ & ~0x00000001);
- }
- result.dimensionValues_ = dimensionValues_;
- } else {
- result.dimensionValues_ = dimensionValuesBuilder_.build();
- }
+ result.name_ = name_;
onBuilt();
return result;
}
@@ -492,32 +450,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionHeader other) {
if (other == com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance())
return this;
- if (dimensionValuesBuilder_ == null) {
- if (!other.dimensionValues_.isEmpty()) {
- if (dimensionValues_.isEmpty()) {
- dimensionValues_ = other.dimensionValues_;
- bitField0_ = (bitField0_ & ~0x00000001);
- } else {
- ensureDimensionValuesIsMutable();
- dimensionValues_.addAll(other.dimensionValues_);
- }
- onChanged();
- }
- } else {
- if (!other.dimensionValues_.isEmpty()) {
- if (dimensionValuesBuilder_.isEmpty()) {
- dimensionValuesBuilder_.dispose();
- dimensionValuesBuilder_ = null;
- dimensionValues_ = other.dimensionValues_;
- bitField0_ = (bitField0_ & ~0x00000001);
- dimensionValuesBuilder_ =
- com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getDimensionValuesFieldBuilder()
- : null;
- } else {
- dimensionValuesBuilder_.addAllMessages(other.dimensionValues_);
- }
- }
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
@@ -549,368 +484,111 @@ public Builder mergeFrom(
return this;
}
- private int bitField0_;
-
- private java.util.List
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public java.util.List- * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public int getDimensionValuesCount() {
- if (dimensionValuesBuilder_ == null) {
- return dimensionValues_.size();
- } else {
- return dimensionValuesBuilder_.getCount();
- }
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index) {
- if (dimensionValuesBuilder_ == null) {
- return dimensionValues_.get(index);
- } else {
- return dimensionValuesBuilder_.getMessage(index);
- }
- }
- /**
+ * string name = 1;
*
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The name.
*/
- public Builder setDimensionValues(
- int index, com.google.analytics.data.v1alpha.DimensionValue value) {
- if (dimensionValuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDimensionValuesIsMutable();
- dimensionValues_.set(index, value);
- onChanged();
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
} else {
- dimensionValuesBuilder_.setMessage(index, value);
+ return (java.lang.String) ref;
}
- return this;
}
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public Builder setDimensionValues(
- int index, com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
- if (dimensionValuesBuilder_ == null) {
- ensureDimensionValuesIsMutable();
- dimensionValues_.set(index, builderForValue.build());
- onChanged();
- } else {
- dimensionValuesBuilder_.setMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *+ *
string name = 1;
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The bytes for name.
*/
- public Builder addDimensionValues(com.google.analytics.data.v1alpha.DimensionValue value) {
- if (dimensionValuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDimensionValuesIsMutable();
- dimensionValues_.add(value);
- onChanged();
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
} else {
- dimensionValuesBuilder_.addMessage(value);
+ return (com.google.protobuf.ByteString) ref;
}
- return this;
}
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public Builder addDimensionValues(
- int index, com.google.analytics.data.v1alpha.DimensionValue value) {
- if (dimensionValuesBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- ensureDimensionValuesIsMutable();
- dimensionValues_.add(index, value);
- onChanged();
- } else {
- dimensionValuesBuilder_.addMessage(index, value);
- }
- return this;
- }
- /**
- *
+ * string name = 1;
*
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
*/
- public Builder addDimensionValues(
- com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
- if (dimensionValuesBuilder_ == null) {
- ensureDimensionValuesIsMutable();
- dimensionValues_.add(builderForValue.build());
- onChanged();
- } else {
- dimensionValuesBuilder_.addMessage(builderForValue.build());
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+
+ name_ = value;
+ onChanged();
return this;
}
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public Builder addDimensionValues(
- int index, com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
- if (dimensionValuesBuilder_ == null) {
- ensureDimensionValuesIsMutable();
- dimensionValues_.add(index, builderForValue.build());
- onChanged();
- } else {
- dimensionValuesBuilder_.addMessage(index, builderForValue.build());
- }
- return this;
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *+ *
string name = 1;
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return This builder for chaining.
*/
- public Builder addAllDimensionValues(
- java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionValue> values) {
- if (dimensionValuesBuilder_ == null) {
- ensureDimensionValuesIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_);
- onChanged();
- } else {
- dimensionValuesBuilder_.addAllMessages(values);
- }
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
return this;
}
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public Builder clearDimensionValues() {
- if (dimensionValuesBuilder_ == null) {
- dimensionValues_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
- onChanged();
- } else {
- dimensionValuesBuilder_.clear();
- }
- return this;
- }
- /**
- *
+ * string name = 1;
*
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
*/
- public Builder removeDimensionValues(int index) {
- if (dimensionValuesBuilder_ == null) {
- ensureDimensionValuesIsMutable();
- dimensionValues_.remove(index);
- onChanged();
- } else {
- dimensionValuesBuilder_.remove(index);
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
return this;
}
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public com.google.analytics.data.v1alpha.DimensionValue.Builder getDimensionValuesBuilder(
- int index) {
- return getDimensionValuesFieldBuilder().getBuilder(index);
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(
- int index) {
- if (dimensionValuesBuilder_ == null) {
- return dimensionValues_.get(index);
- } else {
- return dimensionValuesBuilder_.getMessageOrBuilder(index);
- }
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
- getDimensionValuesOrBuilderList() {
- if (dimensionValuesBuilder_ != null) {
- return dimensionValuesBuilder_.getMessageOrBuilderList();
- } else {
- return java.util.Collections.unmodifiableList(dimensionValues_);
- }
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() {
- return getDimensionValuesFieldBuilder()
- .addBuilder(com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance());
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder(
- int index) {
- return getDimensionValuesFieldBuilder()
- .addBuilder(index, com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance());
- }
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public java.util.List
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- java.util.List- * Values of multiple dimensions in a pivot. - *+ *
string name = 1;
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The name.
*/
- com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index);
+ java.lang.String getName();
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- int getDimensionValuesCount();
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *- * - *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
- getDimensionValuesOrBuilderList();
- /**
- *
- *
- * - * Values of multiple dimensions in a pivot. - *+ *
string name = 1;
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ * @return The bytes for name.
*/
- com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index);
+ com.google.protobuf.ByteString getNameBytes();
}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java
new file mode 100644
index 00000000..aaf5b4ea
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java
@@ -0,0 +1,1327 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/analytics/data/v1alpha/data.proto
+
+package com.google.analytics.data.v1alpha;
+
+/**
+ *
+ *
+ * + * Explains a dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionMetadata} + */ +public final class DimensionMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionMetadata) + DimensionMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionMetadata.newBuilder() to construct. + private DimensionMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DimensionMetadata() { + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DimensionMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + apiName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + uiName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deprecatedApiNames_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionMetadata.class, + com.google.analytics.data.v1alpha.DimensionMetadata.Builder.class); + } + + public static final int API_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object apiName_; + /** + * + * + *
+ * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ @java.lang.Override
+ public java.lang.String getApiName() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getApiNameBytes() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UI_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object uiName_;
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ @java.lang.Override
+ public java.lang.String getUiName() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uiName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUiNameBytes() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList deprecatedApiNames_;
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() {
+ return deprecatedApiNames_;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ public int getDeprecatedApiNamesCount() {
+ return deprecatedApiNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ public java.lang.String getDeprecatedApiNames(int index) {
+ return deprecatedApiNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) {
+ return deprecatedApiNames_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getApiNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_);
+ }
+ if (!getUiNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
+ }
+ for (int i = 0; i < deprecatedApiNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deprecatedApiNames_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getApiNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_);
+ }
+ if (!getUiNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < deprecatedApiNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDeprecatedApiNamesList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionMetadata other =
+ (com.google.analytics.data.v1alpha.DimensionMetadata) obj;
+
+ if (!getApiName().equals(other.getApiName())) return false;
+ if (!getUiName().equals(other.getUiName())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + API_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getApiName().hashCode();
+ hash = (37 * hash) + UI_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUiName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getDeprecatedApiNamesCount() > 0) {
+ hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedApiNamesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.analytics.data.v1alpha.DimensionMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Explains a dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ public java.lang.String getApiName() {
+ java.lang.Object ref = apiName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ public com.google.protobuf.ByteString getApiNameBytes() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @param value The apiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ apiName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearApiName() {
+
+ apiName_ = getDefaultInstance().getApiName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @param value The bytes for apiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ apiName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uiName_ = "";
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ public java.lang.String getUiName() {
+ java.lang.Object ref = uiName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uiName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ public com.google.protobuf.ByteString getUiNameBytes() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @param value The uiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUiName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uiName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUiName() {
+
+ uiName_ = getDefaultInstance().getUiName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @param value The bytes for uiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUiNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uiName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList deprecatedApiNames_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureDeprecatedApiNamesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() {
+ return deprecatedApiNames_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ public int getDeprecatedApiNamesCount() {
+ return deprecatedApiNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ public java.lang.String getDeprecatedApiNames(int index) {
+ return deprecatedApiNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) {
+ return deprecatedApiNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The deprecatedApiNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedApiNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param value The deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDeprecatedApiNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param values The deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDeprecatedApiNames(java.lang.Iterable+ * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedApiNames() {
+ deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param value The bytes of the deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.DimensionMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionMetadata)
+ private static final com.google.analytics.data.v1alpha.DimensionMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionMetadata();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ java.lang.String getApiName();
+ /**
+ *
+ *
+ * + * This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For + * example, `eventName`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ com.google.protobuf.ByteString getApiNameBytes();
+
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ java.lang.String getUiName();
+ /**
+ *
+ *
+ * + * This dimension's name within the Google Analytics user interface. For + * example, `Event name`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ com.google.protobuf.ByteString getUiNameBytes();
+
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Description of how this dimension is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ java.util.List+ * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ int getDeprecatedApiNamesCount();
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ java.lang.String getDeprecatedApiNames(int index);
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this dimension. If populated, this + * dimension is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the dimension will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetUniversalMetadataRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetUniversalMetadataRequest.java
new file mode 100644
index 00000000..81322c1f
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetUniversalMetadataRequest.java
@@ -0,0 +1,461 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/analytics/data/v1alpha/analytics_data_api.proto
+
+package com.google.analytics.data.v1alpha;
+
+/**
+ *
+ *
+ * + * Request for the universal dimension and metric metadata. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetUniversalMetadataRequest} + */ +public final class GetUniversalMetadataRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.GetUniversalMetadataRequest) + GetUniversalMetadataRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetUniversalMetadataRequest.newBuilder() to construct. + private GetUniversalMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetUniversalMetadataRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetUniversalMetadataRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetUniversalMetadataRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetUniversalMetadataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_GetUniversalMetadataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest.class, + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.data.v1alpha.GetUniversalMetadataRequest)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest other = + (com.google.analytics.data.v1alpha.GetUniversalMetadataRequest) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.GetUniversalMetadataRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.data.v1alpha.GetUniversalMetadataRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+ * Request for the universal dimension and metric metadata. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.GetUniversalMetadataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Describes the metric column in the report. + * Describes a metric column in the report. Visible metrics requested in a + * report produce column entries within rows and MetricHeaders. However, + * metrics used exclusively within filters or expressions do not produce columns + * in a report; correspondingly, those metrics do not produce headers. ** * Protobuf type {@code google.analytics.data.v1alpha.MetricHeader} @@ -125,7 +128,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -148,7 +151,7 @@ public java.lang.String getName() {
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -174,7 +177,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -189,7 +192,7 @@ public int getTypeValue() {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -376,7 +379,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Describes the metric column in the report.
+ * Describes a metric column in the report. Visible metrics requested in a
+ * report produce column entries within rows and MetricHeaders. However,
+ * metrics used exclusively within filters or expressions do not produce columns
+ * in a report; correspondingly, those metrics do not produce headers.
*
*
* Protobuf type {@code google.analytics.data.v1alpha.MetricHeader}
@@ -540,7 +546,7 @@ public Builder mergeFrom(
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -562,7 +568,7 @@ public java.lang.String getName() {
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -584,7 +590,7 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -605,7 +611,7 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -622,7 +628,7 @@ public Builder clearName() {
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -646,7 +652,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -661,7 +667,7 @@ public int getTypeValue() {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -679,7 +685,7 @@ public Builder setTypeValue(int value) {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -697,7 +703,7 @@ public com.google.analytics.data.v1alpha.MetricType getType() {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -718,7 +724,7 @@ public Builder setType(com.google.analytics.data.v1alpha.MetricType value) {
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java
index e6f0fe75..afb74089 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java
@@ -27,7 +27,7 @@ public interface MetricHeaderOrBuilder
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -39,7 +39,7 @@ public interface MetricHeaderOrBuilder
*
*
*
- * Metric name.
+ * The metric's name.
*
*
* string name = 1;
@@ -52,7 +52,7 @@ public interface MetricHeaderOrBuilder
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
@@ -64,7 +64,7 @@ public interface MetricHeaderOrBuilder
*
*
*
- * Metric data type.
+ * The metric's data type.
*
*
* .google.analytics.data.v1alpha.MetricType type = 2;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java
new file mode 100644
index 00000000..51507f20
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java
@@ -0,0 +1,1669 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/analytics/data/v1alpha/data.proto
+
+package com.google.analytics.data.v1alpha;
+
+/**
+ *
+ *
+ * + * Explains a metric. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricMetadata} + */ +public final class MetricMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.MetricMetadata) + MetricMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricMetadata.newBuilder() to construct. + private MetricMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetricMetadata() { + apiName_ = ""; + uiName_ = ""; + description_ = ""; + deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + type_ = 0; + expression_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetricMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + apiName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + uiName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + deprecatedApiNames_.add(s); + break; + } + case 40: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + + expression_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricMetadata.class, + com.google.analytics.data.v1alpha.MetricMetadata.Builder.class); + } + + public static final int API_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object apiName_; + /** + * + * + *
+ * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ @java.lang.Override
+ public java.lang.String getApiName() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getApiNameBytes() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int UI_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object uiName_;
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ @java.lang.Override
+ public java.lang.String getUiName() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uiName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUiNameBytes() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DEPRECATED_API_NAMES_FIELD_NUMBER = 4;
+ private com.google.protobuf.LazyStringList deprecatedApiNames_;
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() {
+ return deprecatedApiNames_;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ public int getDeprecatedApiNamesCount() {
+ return deprecatedApiNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ public java.lang.String getDeprecatedApiNames(int index) {
+ return deprecatedApiNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) {
+ return deprecatedApiNames_.getByteString(index);
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 5;
+ private int type_;
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricType getType() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.MetricType result =
+ com.google.analytics.data.v1alpha.MetricType.valueOf(type_);
+ return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result;
+ }
+
+ public static final int EXPRESSION_FIELD_NUMBER = 6;
+ private volatile java.lang.Object expression_;
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The expression.
+ */
+ @java.lang.Override
+ public java.lang.String getExpression() {
+ java.lang.Object ref = expression_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ expression_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The bytes for expression.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getExpressionBytes() {
+ java.lang.Object ref = expression_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ expression_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!getApiNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_);
+ }
+ if (!getUiNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
+ }
+ for (int i = 0; i < deprecatedApiNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, deprecatedApiNames_.getRaw(i));
+ }
+ if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(5, type_);
+ }
+ if (!getExpressionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expression_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getApiNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_);
+ }
+ if (!getUiNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_);
+ }
+ if (!getDescriptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < deprecatedApiNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(deprecatedApiNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDeprecatedApiNamesList().size();
+ }
+ if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_);
+ }
+ if (!getExpressionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expression_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1alpha.MetricMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.MetricMetadata other =
+ (com.google.analytics.data.v1alpha.MetricMetadata) obj;
+
+ if (!getApiName().equals(other.getApiName())) return false;
+ if (!getUiName().equals(other.getUiName())) return false;
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getDeprecatedApiNamesList().equals(other.getDeprecatedApiNamesList())) return false;
+ if (type_ != other.type_) return false;
+ if (!getExpression().equals(other.getExpression())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + API_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getApiName().hashCode();
+ hash = (37 * hash) + UI_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getUiName().hashCode();
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getDeprecatedApiNamesCount() > 0) {
+ hash = (37 * hash) + DEPRECATED_API_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getDeprecatedApiNamesList().hashCode();
+ }
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (37 * hash) + EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getExpression().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.analytics.data.v1alpha.MetricMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Explains a metric. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ public java.lang.String getApiName() {
+ java.lang.Object ref = apiName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ public com.google.protobuf.ByteString getApiNameBytes() {
+ java.lang.Object ref = apiName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ apiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @param value The apiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ apiName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearApiName() {
+
+ apiName_ = getDefaultInstance().getApiName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @param value The bytes for apiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setApiNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ apiName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object uiName_ = "";
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ public java.lang.String getUiName() {
+ java.lang.Object ref = uiName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uiName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ public com.google.protobuf.ByteString getUiNameBytes() {
+ java.lang.Object ref = uiName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ uiName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @param value The uiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUiName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uiName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUiName() {
+
+ uiName_ = getDefaultInstance().getUiName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @param value The bytes for uiName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUiNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uiName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringList deprecatedApiNames_ =
+ com.google.protobuf.LazyStringArrayList.EMPTY;
+
+ private void ensureDeprecatedApiNamesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ deprecatedApiNames_ = new com.google.protobuf.LazyStringArrayList(deprecatedApiNames_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDeprecatedApiNamesList() {
+ return deprecatedApiNames_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ public int getDeprecatedApiNamesCount() {
+ return deprecatedApiNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ public java.lang.String getDeprecatedApiNames(int index) {
+ return deprecatedApiNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index) {
+ return deprecatedApiNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The deprecatedApiNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDeprecatedApiNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param value The deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDeprecatedApiNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param values The deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDeprecatedApiNames(java.lang.Iterable+ * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDeprecatedApiNames() {
+ deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param value The bytes of the deprecatedApiNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDeprecatedApiNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private int type_ = 0;
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @param value The enum numeric value on the wire for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeValue(int value) {
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricType getType() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.MetricType result =
+ com.google.analytics.data.v1alpha.MetricType.valueOf(type_);
+ return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(com.google.analytics.data.v1alpha.MetricType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object expression_ = "";
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The expression.
+ */
+ public java.lang.String getExpression() {
+ java.lang.Object ref = expression_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ expression_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The bytes for expression.
+ */
+ public com.google.protobuf.ByteString getExpressionBytes() {
+ java.lang.Object ref = expression_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ expression_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @param value The expression to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExpression(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ expression_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExpression() {
+
+ expression_ = getDefaultInstance().getExpression();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @param value The bytes for expression to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExpressionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ expression_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.MetricMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricMetadata)
+ private static final com.google.analytics.data.v1alpha.MetricMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricMetadata();
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The apiName.
+ */
+ java.lang.String getApiName();
+ /**
+ *
+ *
+ * + * A metric name. Useable in [Metric](#Metric)'s `name`. For example, + * `eventCount`. + *+ * + *
string api_name = 1;
+ *
+ * @return The bytes for apiName.
+ */
+ com.google.protobuf.ByteString getApiNameBytes();
+
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The uiName.
+ */
+ java.lang.String getUiName();
+ /**
+ *
+ *
+ * + * This metric's name within the Google Analytics user interface. For example, + * `Event count`. + *+ * + *
string ui_name = 2;
+ *
+ * @return The bytes for uiName.
+ */
+ com.google.protobuf.ByteString getUiNameBytes();
+
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The description.
+ */
+ java.lang.String getDescription();
+ /**
+ *
+ *
+ * + * Description of how this metric is used and calculated. + *+ * + *
string description = 3;
+ *
+ * @return The bytes for description.
+ */
+ com.google.protobuf.ByteString getDescriptionBytes();
+
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return A list containing the deprecatedApiNames.
+ */
+ java.util.List+ * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @return The count of deprecatedApiNames.
+ */
+ int getDeprecatedApiNamesCount();
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The deprecatedApiNames at the given index.
+ */
+ java.lang.String getDeprecatedApiNames(int index);
+ /**
+ *
+ *
+ * + * Still usable but deprecated names for this metric. If populated, this + * metric is available by either `apiName` or one of `deprecatedApiNames` + * for a period of time. After the deprecation period, the metric will be + * available only by `apiName`. + *+ * + *
repeated string deprecated_api_names = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the deprecatedApiNames at the given index.
+ */
+ com.google.protobuf.ByteString getDeprecatedApiNamesBytes(int index);
+
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ * + * The type of this metric. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 5;
+ *
+ * @return The type.
+ */
+ com.google.analytics.data.v1alpha.MetricType getType();
+
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The expression.
+ */
+ java.lang.String getExpression();
+ /**
+ *
+ *
+ * + * The mathematical expression for this derived metric. Can be used in + * [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics + * are not expressions, and for non-expressions, this field is empty. + *+ * + *
string expression = 6;
+ *
+ * @return The bytes for expression.
+ */
+ com.google.protobuf.ByteString getExpressionBytes();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java
index a09288b2..429c172b 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java
@@ -22,7 +22,7 @@
*
*
* - * Type of a metric value. + * A metric's value type. ** * Protobuf enum {@code google.analytics.data.v1alpha.MetricType} @@ -58,6 +58,26 @@ public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { *
TYPE_FLOAT = 2;
*/
TYPE_FLOAT(2),
+ /**
+ *
+ *
+ * + * A duration of seconds; a special floating point type. + *+ * + *
TYPE_SECONDS = 4;
+ */
+ TYPE_SECONDS(4),
+ /**
+ *
+ *
+ * + * An amount of money; a special floating point type. + *+ * + *
TYPE_CURRENCY = 9;
+ */
+ TYPE_CURRENCY(9),
UNRECOGNIZED(-1),
;
@@ -91,6 +111,26 @@ public enum MetricType implements com.google.protobuf.ProtocolMessageEnum {
* TYPE_FLOAT = 2;
*/
public static final int TYPE_FLOAT_VALUE = 2;
+ /**
+ *
+ *
+ * + * A duration of seconds; a special floating point type. + *+ * + *
TYPE_SECONDS = 4;
+ */
+ public static final int TYPE_SECONDS_VALUE = 4;
+ /**
+ *
+ *
+ * + * An amount of money; a special floating point type. + *+ * + *
TYPE_CURRENCY = 9;
+ */
+ public static final int TYPE_CURRENCY_VALUE = 9;
public final int getNumber() {
if (this == UNRECOGNIZED) {
@@ -122,6 +162,10 @@ public static MetricType forNumber(int value) {
return TYPE_INTEGER;
case 2:
return TYPE_FLOAT;
+ case 4:
+ return TYPE_SECONDS;
+ case 9:
+ return TYPE_CURRENCY;
default:
return null;
}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java
index 8fc6cda4..caec7ab7 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java
@@ -252,9 +252,10 @@ public com.google.protobuf.ByteString getFieldNamesBytes(int index) {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -268,9 +269,10 @@ public java.util.List
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -285,9 +287,10 @@ public java.util.List
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -301,9 +304,10 @@ public int getOrderBysCount() {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -317,9 +321,10 @@ public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -353,8 +358,8 @@ public long getOffset() {
*
*
*
- * The number of rows to return in this pivot.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return in this pivot. If unspecified, 10 rows are
+ * returned. If -1, all rows are returned.
*
*
* int64 limit = 4;
@@ -1150,9 +1155,10 @@ private void ensureOrderBysIsMutable() {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1169,9 +1175,10 @@ public java.util.List
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1188,9 +1195,10 @@ public int getOrderBysCount() {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1207,9 +1215,10 @@ public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1232,9 +1241,10 @@ public Builder setOrderBys(int index, com.google.analytics.data.v1alpha.OrderBy
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1255,9 +1265,10 @@ public Builder setOrderBys(
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1280,9 +1291,10 @@ public Builder addOrderBys(com.google.analytics.data.v1alpha.OrderBy value) {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1305,9 +1317,10 @@ public Builder addOrderBys(int index, com.google.analytics.data.v1alpha.OrderBy
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1327,9 +1340,10 @@ public Builder addOrderBys(com.google.analytics.data.v1alpha.OrderBy.Builder bui
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1350,9 +1364,10 @@ public Builder addOrderBys(
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1373,9 +1388,10 @@ public Builder addAllOrderBys(
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1395,9 +1411,10 @@ public Builder clearOrderBys() {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1417,9 +1434,10 @@ public Builder removeOrderBys(int index) {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1432,9 +1450,10 @@ public com.google.analytics.data.v1alpha.OrderBy.Builder getOrderBysBuilder(int
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1451,9 +1470,10 @@ public com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(i
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1471,9 +1491,10 @@ public com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(i
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1487,9 +1508,10 @@ public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder() {
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1503,9 +1525,10 @@ public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder(int
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -1589,8 +1612,8 @@ public Builder clearOffset() {
*
*
*
- * The number of rows to return in this pivot.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return in this pivot. If unspecified, 10 rows are
+ * returned. If -1, all rows are returned.
*
*
* int64 limit = 4;
@@ -1605,8 +1628,8 @@ public long getLimit() {
*
*
*
- * The number of rows to return in this pivot.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return in this pivot. If unspecified, 10 rows are
+ * returned. If -1, all rows are returned.
*
*
* int64 limit = 4;
@@ -1624,8 +1647,8 @@ public Builder setLimit(long value) {
*
*
*
- * The number of rows to return in this pivot.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return in this pivot. If unspecified, 10 rows are
+ * returned. If -1, all rows are returned.
*
*
* int64 limit = 4;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java
new file mode 100644
index 00000000..ff406ded
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java
@@ -0,0 +1,965 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/analytics/data/v1alpha/data.proto
+
+package com.google.analytics.data.v1alpha;
+
+/**
+ *
+ *
+ * + * Summarizes dimension values from a row for this pivot. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PivotDimensionHeader} + */ +public final class PivotDimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.PivotDimensionHeader) + PivotDimensionHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use PivotDimensionHeader.newBuilder() to construct. + private PivotDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PivotDimensionHeader() { + dimensionValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PivotDimensionHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PivotDimensionHeader( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList
+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
+ getDimensionValuesOrBuilderList() {
+ return dimensionValues_;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public int getDimensionValuesCount() {
+ return dimensionValues_.size();
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index) {
+ return dimensionValues_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(
+ int index) {
+ return dimensionValues_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < dimensionValues_.size(); i++) {
+ output.writeMessage(1, dimensionValues_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < dimensionValues_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1alpha.PivotDimensionHeader)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.PivotDimensionHeader other =
+ (com.google.analytics.data.v1alpha.PivotDimensionHeader) obj;
+
+ if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDimensionValuesCount() > 0) {
+ hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(
+ com.google.analytics.data.v1alpha.PivotDimensionHeader prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * Summarizes dimension values from a row for this pivot. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PivotDimensionHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public java.util.List+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public int getDimensionValuesCount() {
+ if (dimensionValuesBuilder_ == null) {
+ return dimensionValues_.size();
+ } else {
+ return dimensionValuesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index) {
+ if (dimensionValuesBuilder_ == null) {
+ return dimensionValues_.get(index);
+ } else {
+ return dimensionValuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder setDimensionValues(
+ int index, com.google.analytics.data.v1alpha.DimensionValue value) {
+ if (dimensionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.set(index, value);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder setDimensionValues(
+ int index, com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
+ if (dimensionValuesBuilder_ == null) {
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder addDimensionValues(com.google.analytics.data.v1alpha.DimensionValue value) {
+ if (dimensionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.add(value);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder addDimensionValues(
+ int index, com.google.analytics.data.v1alpha.DimensionValue value) {
+ if (dimensionValuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.add(index, value);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder addDimensionValues(
+ com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
+ if (dimensionValuesBuilder_ == null) {
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder addDimensionValues(
+ int index, com.google.analytics.data.v1alpha.DimensionValue.Builder builderForValue) {
+ if (dimensionValuesBuilder_ == null) {
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder addAllDimensionValues(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionValue> values) {
+ if (dimensionValuesBuilder_ == null) {
+ ensureDimensionValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder clearDimensionValues() {
+ if (dimensionValuesBuilder_ == null) {
+ dimensionValues_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public Builder removeDimensionValues(int index) {
+ if (dimensionValuesBuilder_ == null) {
+ ensureDimensionValuesIsMutable();
+ dimensionValues_.remove(index);
+ onChanged();
+ } else {
+ dimensionValuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionValue.Builder getDimensionValuesBuilder(
+ int index) {
+ return getDimensionValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(
+ int index) {
+ if (dimensionValuesBuilder_ == null) {
+ return dimensionValues_.get(index);
+ } else {
+ return dimensionValuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
+ getDimensionValuesOrBuilderList() {
+ if (dimensionValuesBuilder_ != null) {
+ return dimensionValuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dimensionValues_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() {
+ return getDimensionValuesFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder(
+ int index) {
+ return getDimensionValuesFieldBuilder()
+ .addBuilder(index, com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public java.util.List+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ java.util.List+ * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index);
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ int getDimensionValuesCount();
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
+ getDimensionValuesOrBuilderList();
+ /**
+ *
+ *
+ * + * Values of multiple dimensions in a pivot. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java
index 11f5ece9..536dc93a 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java
@@ -22,7 +22,7 @@
*
*
* - * Dimensions' values in a pivot. + * Dimensions' values in a single pivot. ** * Protobuf type {@code google.analytics.data.v1alpha.PivotHeader} @@ -38,7 +38,7 @@ private PivotHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) { } private PivotHeader() { - dimensionHeaders_ = java.util.Collections.emptyList(); + pivotDimensionHeaders_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -74,13 +74,14 @@ private PivotHeader( case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
@java.lang.Override
- public java.util.Listrepeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
@java.lang.Override
- public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
- getDimensionHeadersOrBuilderList() {
- return dimensionHeaders_;
+ public java.util.List extends com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder>
+ getPivotDimensionHeadersOrBuilderList() {
+ return pivotDimensionHeaders_;
}
/**
*
@@ -166,11 +170,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
@java.lang.Override
- public int getDimensionHeadersCount() {
- return dimensionHeaders_.size();
+ public int getPivotDimensionHeadersCount() {
+ return pivotDimensionHeaders_.size();
}
/**
*
@@ -180,11 +185,13 @@ public int getDimensionHeadersCount() {
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
@java.lang.Override
- public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
- return dimensionHeaders_.get(index);
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader getPivotDimensionHeaders(
+ int index) {
+ return pivotDimensionHeaders_.get(index);
}
/**
*
@@ -194,12 +201,13 @@ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
@java.lang.Override
- public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
- int index) {
- return dimensionHeaders_.get(index);
+ public com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder
+ getPivotDimensionHeadersOrBuilder(int index) {
+ return pivotDimensionHeaders_.get(index);
}
public static final int ROW_COUNT_FIELD_NUMBER = 2;
@@ -208,7 +216,9 @@ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHe
*
*
*
- * The cardinality of the pivot as if offset = 0 and limit = -1.
+ * The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ * number of rows for this pivot's fields regardless of how the parameters
+ * offset and limit are specified in the request.
*
*
* int32 row_count = 2;
@@ -234,8 +244,8 @@ public final boolean isInitialized() {
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- for (int i = 0; i < dimensionHeaders_.size(); i++) {
- output.writeMessage(1, dimensionHeaders_.get(i));
+ for (int i = 0; i < pivotDimensionHeaders_.size(); i++) {
+ output.writeMessage(1, pivotDimensionHeaders_.get(i));
}
if (rowCount_ != 0) {
output.writeInt32(2, rowCount_);
@@ -249,8 +259,10 @@ public int getSerializedSize() {
if (size != -1) return size;
size = 0;
- for (int i = 0; i < dimensionHeaders_.size(); i++) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i));
+ for (int i = 0; i < pivotDimensionHeaders_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, pivotDimensionHeaders_.get(i));
}
if (rowCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rowCount_);
@@ -271,7 +283,7 @@ public boolean equals(final java.lang.Object obj) {
com.google.analytics.data.v1alpha.PivotHeader other =
(com.google.analytics.data.v1alpha.PivotHeader) obj;
- if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false;
+ if (!getPivotDimensionHeadersList().equals(other.getPivotDimensionHeadersList())) return false;
if (getRowCount() != other.getRowCount()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
@@ -284,9 +296,9 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
- if (getDimensionHeadersCount() > 0) {
- hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER;
- hash = (53 * hash) + getDimensionHeadersList().hashCode();
+ if (getPivotDimensionHeadersCount() > 0) {
+ hash = (37 * hash) + PIVOT_DIMENSION_HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + getPivotDimensionHeadersList().hashCode();
}
hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getRowCount();
@@ -394,7 +406,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Dimensions' values in a pivot.
+ * Dimensions' values in a single pivot.
*
*
* Protobuf type {@code google.analytics.data.v1alpha.PivotHeader}
@@ -430,18 +442,18 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
- getDimensionHeadersFieldBuilder();
+ getPivotDimensionHeadersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
- if (dimensionHeadersBuilder_ == null) {
- dimensionHeaders_ = java.util.Collections.emptyList();
+ if (pivotDimensionHeadersBuilder_ == null) {
+ pivotDimensionHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
- dimensionHeadersBuilder_.clear();
+ pivotDimensionHeadersBuilder_.clear();
}
rowCount_ = 0;
@@ -473,14 +485,14 @@ public com.google.analytics.data.v1alpha.PivotHeader buildPartial() {
com.google.analytics.data.v1alpha.PivotHeader result =
new com.google.analytics.data.v1alpha.PivotHeader(this);
int from_bitField0_ = bitField0_;
- if (dimensionHeadersBuilder_ == null) {
+ if (pivotDimensionHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
- dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_);
+ pivotDimensionHeaders_ = java.util.Collections.unmodifiableList(pivotDimensionHeaders_);
bitField0_ = (bitField0_ & ~0x00000001);
}
- result.dimensionHeaders_ = dimensionHeaders_;
+ result.pivotDimensionHeaders_ = pivotDimensionHeaders_;
} else {
- result.dimensionHeaders_ = dimensionHeadersBuilder_.build();
+ result.pivotDimensionHeaders_ = pivotDimensionHeadersBuilder_.build();
}
result.rowCount_ = rowCount_;
onBuilt();
@@ -532,30 +544,30 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.analytics.data.v1alpha.PivotHeader other) {
if (other == com.google.analytics.data.v1alpha.PivotHeader.getDefaultInstance()) return this;
- if (dimensionHeadersBuilder_ == null) {
- if (!other.dimensionHeaders_.isEmpty()) {
- if (dimensionHeaders_.isEmpty()) {
- dimensionHeaders_ = other.dimensionHeaders_;
+ if (pivotDimensionHeadersBuilder_ == null) {
+ if (!other.pivotDimensionHeaders_.isEmpty()) {
+ if (pivotDimensionHeaders_.isEmpty()) {
+ pivotDimensionHeaders_ = other.pivotDimensionHeaders_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.addAll(other.dimensionHeaders_);
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.addAll(other.pivotDimensionHeaders_);
}
onChanged();
}
} else {
- if (!other.dimensionHeaders_.isEmpty()) {
- if (dimensionHeadersBuilder_.isEmpty()) {
- dimensionHeadersBuilder_.dispose();
- dimensionHeadersBuilder_ = null;
- dimensionHeaders_ = other.dimensionHeaders_;
+ if (!other.pivotDimensionHeaders_.isEmpty()) {
+ if (pivotDimensionHeadersBuilder_.isEmpty()) {
+ pivotDimensionHeadersBuilder_.dispose();
+ pivotDimensionHeadersBuilder_ = null;
+ pivotDimensionHeaders_ = other.pivotDimensionHeaders_;
bitField0_ = (bitField0_ & ~0x00000001);
- dimensionHeadersBuilder_ =
+ pivotDimensionHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
- ? getDimensionHeadersFieldBuilder()
+ ? getPivotDimensionHeadersFieldBuilder()
: null;
} else {
- dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_);
+ pivotDimensionHeadersBuilder_.addAllMessages(other.pivotDimensionHeaders_);
}
}
}
@@ -593,23 +605,23 @@ public Builder mergeFrom(
private int bitField0_;
- private java.util.Listrepeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public java.util.Listrepeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public int getDimensionHeadersCount() {
- if (dimensionHeadersBuilder_ == null) {
- return dimensionHeaders_.size();
+ public int getPivotDimensionHeadersCount() {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ return pivotDimensionHeaders_.size();
} else {
- return dimensionHeadersBuilder_.getCount();
+ return pivotDimensionHeadersBuilder_.getCount();
}
}
/**
@@ -654,13 +670,16 @@ public int getDimensionHeadersCount() {
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
- if (dimensionHeadersBuilder_ == null) {
- return dimensionHeaders_.get(index);
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader getPivotDimensionHeaders(
+ int index) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ return pivotDimensionHeaders_.get(index);
} else {
- return dimensionHeadersBuilder_.getMessage(index);
+ return pivotDimensionHeadersBuilder_.getMessage(index);
}
}
/**
@@ -671,19 +690,21 @@ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder setDimensionHeaders(
- int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
- if (dimensionHeadersBuilder_ == null) {
+ public Builder setPivotDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.PivotDimensionHeader value) {
+ if (pivotDimensionHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.set(index, value);
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.set(index, value);
onChanged();
} else {
- dimensionHeadersBuilder_.setMessage(index, value);
+ pivotDimensionHeadersBuilder_.setMessage(index, value);
}
return this;
}
@@ -695,16 +716,18 @@ public Builder setDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder setDimensionHeaders(
- int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
- if (dimensionHeadersBuilder_ == null) {
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.set(index, builderForValue.build());
+ public Builder setPivotDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder builderForValue) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.set(index, builderForValue.build());
onChanged();
} else {
- dimensionHeadersBuilder_.setMessage(index, builderForValue.build());
+ pivotDimensionHeadersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
@@ -716,18 +739,21 @@ public Builder setDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.DimensionHeader value) {
- if (dimensionHeadersBuilder_ == null) {
+ public Builder addPivotDimensionHeaders(
+ com.google.analytics.data.v1alpha.PivotDimensionHeader value) {
+ if (pivotDimensionHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.add(value);
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.add(value);
onChanged();
} else {
- dimensionHeadersBuilder_.addMessage(value);
+ pivotDimensionHeadersBuilder_.addMessage(value);
}
return this;
}
@@ -739,19 +765,21 @@ public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.DimensionHe
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder addDimensionHeaders(
- int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
- if (dimensionHeadersBuilder_ == null) {
+ public Builder addPivotDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.PivotDimensionHeader value) {
+ if (pivotDimensionHeadersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.add(index, value);
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.add(index, value);
onChanged();
} else {
- dimensionHeadersBuilder_.addMessage(index, value);
+ pivotDimensionHeadersBuilder_.addMessage(index, value);
}
return this;
}
@@ -763,16 +791,18 @@ public Builder addDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder addDimensionHeaders(
- com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
- if (dimensionHeadersBuilder_ == null) {
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.add(builderForValue.build());
+ public Builder addPivotDimensionHeaders(
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder builderForValue) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.add(builderForValue.build());
onChanged();
} else {
- dimensionHeadersBuilder_.addMessage(builderForValue.build());
+ pivotDimensionHeadersBuilder_.addMessage(builderForValue.build());
}
return this;
}
@@ -784,16 +814,18 @@ public Builder addDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder addDimensionHeaders(
- int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
- if (dimensionHeadersBuilder_ == null) {
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.add(index, builderForValue.build());
+ public Builder addPivotDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder builderForValue) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.add(index, builderForValue.build());
onChanged();
} else {
- dimensionHeadersBuilder_.addMessage(index, builderForValue.build());
+ pivotDimensionHeadersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
@@ -805,16 +837,19 @@ public Builder addDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder addAllDimensionHeaders(
- java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionHeader> values) {
- if (dimensionHeadersBuilder_ == null) {
- ensureDimensionHeadersIsMutable();
- com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_);
+ public Builder addAllPivotDimensionHeaders(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.PivotDimensionHeader>
+ values) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ ensurePivotDimensionHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, pivotDimensionHeaders_);
onChanged();
} else {
- dimensionHeadersBuilder_.addAllMessages(values);
+ pivotDimensionHeadersBuilder_.addAllMessages(values);
}
return this;
}
@@ -826,15 +861,17 @@ public Builder addAllDimensionHeaders(
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder clearDimensionHeaders() {
- if (dimensionHeadersBuilder_ == null) {
- dimensionHeaders_ = java.util.Collections.emptyList();
+ public Builder clearPivotDimensionHeaders() {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ pivotDimensionHeaders_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
- dimensionHeadersBuilder_.clear();
+ pivotDimensionHeadersBuilder_.clear();
}
return this;
}
@@ -846,15 +883,17 @@ public Builder clearDimensionHeaders() {
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public Builder removeDimensionHeaders(int index) {
- if (dimensionHeadersBuilder_ == null) {
- ensureDimensionHeadersIsMutable();
- dimensionHeaders_.remove(index);
+ public Builder removePivotDimensionHeaders(int index) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ ensurePivotDimensionHeadersIsMutable();
+ pivotDimensionHeaders_.remove(index);
onChanged();
} else {
- dimensionHeadersBuilder_.remove(index);
+ pivotDimensionHeadersBuilder_.remove(index);
}
return this;
}
@@ -866,11 +905,13 @@ public Builder removeDimensionHeaders(int index) {
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder(
- int index) {
- return getDimensionHeadersFieldBuilder().getBuilder(index);
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder
+ getPivotDimensionHeadersBuilder(int index) {
+ return getPivotDimensionHeadersFieldBuilder().getBuilder(index);
}
/**
*
@@ -880,14 +921,16 @@ public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHea
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
- int index) {
- if (dimensionHeadersBuilder_ == null) {
- return dimensionHeaders_.get(index);
+ public com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder
+ getPivotDimensionHeadersOrBuilder(int index) {
+ if (pivotDimensionHeadersBuilder_ == null) {
+ return pivotDimensionHeaders_.get(index);
} else {
- return dimensionHeadersBuilder_.getMessageOrBuilder(index);
+ return pivotDimensionHeadersBuilder_.getMessageOrBuilder(index);
}
}
/**
@@ -898,14 +941,16 @@ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHe
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
- getDimensionHeadersOrBuilderList() {
- if (dimensionHeadersBuilder_ != null) {
- return dimensionHeadersBuilder_.getMessageOrBuilderList();
+ public java.util.List extends com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder>
+ getPivotDimensionHeadersOrBuilderList() {
+ if (pivotDimensionHeadersBuilder_ != null) {
+ return pivotDimensionHeadersBuilder_.getMessageOrBuilderList();
} else {
- return java.util.Collections.unmodifiableList(dimensionHeaders_);
+ return java.util.Collections.unmodifiableList(pivotDimensionHeaders_);
}
}
/**
@@ -916,11 +961,14 @@ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHe
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() {
- return getDimensionHeadersFieldBuilder()
- .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder
+ addPivotDimensionHeadersBuilder() {
+ return getPivotDimensionHeadersFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance());
}
/**
*
@@ -930,13 +978,15 @@ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHea
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder(
- int index) {
- return getDimensionHeadersFieldBuilder()
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder
+ addPivotDimensionHeadersBuilder(int index) {
+ return getPivotDimensionHeadersFieldBuilder()
.addBuilder(
- index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ index, com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance());
}
/**
*
@@ -946,31 +996,33 @@ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHea
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ *
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- public java.util.List
- * The cardinality of the pivot as if offset = 0 and limit = -1.
+ * The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ * number of rows for this pivot's fields regardless of how the parameters
+ * offset and limit are specified in the request.
*
*
* int32 row_count = 2;
@@ -993,7 +1047,9 @@ public int getRowCount() {
*
*
*
- * The cardinality of the pivot as if offset = 0 and limit = -1.
+ * The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ * number of rows for this pivot's fields regardless of how the parameters
+ * offset and limit are specified in the request.
*
*
* int32 row_count = 2;
@@ -1011,7 +1067,9 @@ public Builder setRowCount(int value) {
*
*
*
- * The cardinality of the pivot as if offset = 0 and limit = -1.
+ * The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ * number of rows for this pivot's fields regardless of how the parameters
+ * offset and limit are specified in the request.
*
*
* int32 row_count = 2;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java
index 3eb9d42e..a6cbb2fb 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java
@@ -31,9 +31,11 @@ public interface PivotHeaderOrBuilder
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- java.util.Listrepeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index);
+ com.google.analytics.data.v1alpha.PivotDimensionHeader getPivotDimensionHeaders(int index);
/**
*
*
@@ -53,9 +56,10 @@ public interface PivotHeaderOrBuilder
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- int getDimensionHeadersCount();
+ int getPivotDimensionHeadersCount();
/**
*
*
@@ -64,10 +68,11 @@ public interface PivotHeaderOrBuilder
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
- getDimensionHeadersOrBuilderList();
+ java.util.List extends com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder>
+ getPivotDimensionHeadersOrBuilderList();
/**
*
*
@@ -76,16 +81,19 @@ public interface PivotHeaderOrBuilder
* combinations.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1;
+ *
*/
- com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder getPivotDimensionHeadersOrBuilder(
int index);
/**
*
*
*
- * The cardinality of the pivot as if offset = 0 and limit = -1.
+ * The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ * number of rows for this pivot's fields regardless of how the parameters
+ * offset and limit are specified in the request.
*
*
* int32 row_count = 2;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java
index 8c06dffc..0bb7c1d5 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java
@@ -91,9 +91,10 @@ public interface PivotOrBuilder
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -104,9 +105,10 @@ public interface PivotOrBuilder
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -117,9 +119,10 @@ public interface PivotOrBuilder
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -130,9 +133,10 @@ public interface PivotOrBuilder
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -144,9 +148,10 @@ public interface PivotOrBuilder
*
*
* Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- * OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- * the OrderBys determine only DimensionHeader ordering. Dimensions specified
- * in these OrderBys must be a subset of Pivot.field_names.
+ * OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ * Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ * Dimensions specified in these OrderBys must be a subset of
+ * Pivot.field_names.
*
*
* repeated .google.analytics.data.v1alpha.OrderBy order_bys = 2;
@@ -170,8 +175,8 @@ public interface PivotOrBuilder
*
*
*
- * The number of rows to return in this pivot.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return in this pivot. If unspecified, 10 rows are
+ * returned. If -1, all rows are returned.
*
*
* int64 limit = 4;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java
index 7448c5d4..c7620b37 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java
@@ -127,6 +127,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -136,9 +140,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
- internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor;
+ internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
- internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable;
+ internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_analytics_data_v1alpha_Row_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -163,6 +167,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -261,49 +273,57 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "le.analytics.data.v1alpha.CohortReportSe"
+ "ttings\"g\n\006Cohort\022\014\n\004name\030\001 \001(\t\022\021\n\tdimens"
+ "ion\030\002 \001(\t\022<\n\ndate_range\030\003 \001(\0132(.google.a"
- + "nalytics.data.v1alpha.DateRange\"f\n\024Cohor"
- + "tReportSettings\022\022\n\naccumulate\030\001 \001(\010\022\033\n\023p"
- + "ivot_on_user_event\030\002 \001(\010\022\035\n\025missing_valu"
- + "e_as_zero\030\004 \001(\010\"\326\001\n\014CohortsRange\022L\n\013gran"
- + "ularity\030\001 \001(\01627.google.analytics.data.v1"
- + "alpha.CohortsRange.Granularity\022\024\n\014start_"
- + "offset\030\002 \001(\005\022\022\n\nend_offset\030\003 \001(\005\"N\n\013Gran"
- + "ularity\022\033\n\027GRANULARITY_UNSPECIFIED\020\000\022\t\n\005"
- + "DAILY\020\001\022\n\n\006WEEKLY\020\002\022\013\n\007MONTHLY\020\003\"4\n\020Resp"
- + "onseMetaData\022 \n\030data_loss_from_other_row"
- + "\030\003 \001(\010\"U\n\014MetricHeader\022\014\n\004name\030\001 \001(\t\0227\n\004"
- + "type\030\002 \001(\0162).google.analytics.data.v1alp"
- + "ha.MetricType\"k\n\013PivotHeader\022I\n\021dimensio"
- + "n_headers\030\001 \003(\0132..google.analytics.data."
- + "v1alpha.DimensionHeader\022\021\n\trow_count\030\002 \001"
- + "(\005\"Z\n\017DimensionHeader\022G\n\020dimension_value"
- + "s\030\001 \003(\0132-.google.analytics.data.v1alpha."
- + "DimensionValue\"\221\001\n\003Row\022G\n\020dimension_valu"
- + "es\030\001 \003(\0132-.google.analytics.data.v1alpha"
- + ".DimensionValue\022A\n\rmetric_values\030\002 \003(\0132*"
- + ".google.analytics.data.v1alpha.MetricVal"
- + "ue\".\n\016DimensionValue\022\017\n\005value\030\001 \001(\tH\000B\013\n"
- + "\tone_value\"+\n\013MetricValue\022\017\n\005value\030\004 \001(\t"
- + "H\000B\013\n\tone_value\"J\n\014NumericValue\022\025\n\013int64"
- + "_value\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013"
- + "\n\tone_value\"\271\002\n\rPropertyQuota\022B\n\016tokens_"
- + "per_day\030\001 \001(\0132*.google.analytics.data.v1"
- + "alpha.QuotaStatus\022C\n\017tokens_per_hour\030\002 \001"
+ + "nalytics.data.v1alpha.DateRange\"*\n\024Cohor"
+ + "tReportSettings\022\022\n\naccumulate\030\001 \001(\010\"\326\001\n\014"
+ + "CohortsRange\022L\n\013granularity\030\001 \001(\01627.goog"
+ + "le.analytics.data.v1alpha.CohortsRange.G"
+ + "ranularity\022\024\n\014start_offset\030\002 \001(\005\022\022\n\nend_"
+ + "offset\030\003 \001(\005\"N\n\013Granularity\022\033\n\027GRANULARI"
+ + "TY_UNSPECIFIED\020\000\022\t\n\005DAILY\020\001\022\n\n\006WEEKLY\020\002\022"
+ + "\013\n\007MONTHLY\020\003\"4\n\020ResponseMetaData\022 \n\030data"
+ + "_loss_from_other_row\030\003 \001(\010\"\037\n\017DimensionH"
+ + "eader\022\014\n\004name\030\001 \001(\t\"U\n\014MetricHeader\022\014\n\004n"
+ + "ame\030\001 \001(\t\0227\n\004type\030\002 \001(\0162).google.analyti"
+ + "cs.data.v1alpha.MetricType\"v\n\013PivotHeade"
+ + "r\022T\n\027pivot_dimension_headers\030\001 \003(\01323.goo"
+ + "gle.analytics.data.v1alpha.PivotDimensio"
+ + "nHeader\022\021\n\trow_count\030\002 \001(\005\"_\n\024PivotDimen"
+ + "sionHeader\022G\n\020dimension_values\030\001 \003(\0132-.g"
+ + "oogle.analytics.data.v1alpha.DimensionVa"
+ + "lue\"\221\001\n\003Row\022G\n\020dimension_values\030\001 \003(\0132-."
+ + "google.analytics.data.v1alpha.DimensionV"
+ + "alue\022A\n\rmetric_values\030\002 \003(\0132*.google.ana"
+ + "lytics.data.v1alpha.MetricValue\".\n\016Dimen"
+ + "sionValue\022\017\n\005value\030\001 \001(\tH\000B\013\n\tone_value\""
+ + "+\n\013MetricValue\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_v"
+ + "alue\"J\n\014NumericValue\022\025\n\013int64_value\030\001 \001("
+ + "\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone_value"
+ + "\"\271\002\n\rPropertyQuota\022B\n\016tokens_per_day\030\001 \001"
+ "(\0132*.google.analytics.data.v1alpha.Quota"
- + "Status\022G\n\023concurrent_requests\030\003 \001(\0132*.go"
- + "ogle.analytics.data.v1alpha.QuotaStatus\022"
- + "V\n\"server_errors_per_project_per_hour\030\004 "
- + "\001(\0132*.google.analytics.data.v1alpha.Quot"
- + "aStatus\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001(\005"
- + "\022\021\n\tremaining\030\002 \001(\005*g\n\021MetricAggregation"
- + "\022\"\n\036METRIC_AGGREGATION_UNSPECIFIED\020\000\022\t\n\005"
- + "TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007MAXIMUM\020\006\022\t\n\005COU"
- + "NT\020\004*K\n\nMetricType\022\033\n\027METRIC_TYPE_UNSPEC"
- + "IFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022\016\n\nTYPE_FLOAT\020"
- + "\002B{\n!com.google.analytics.data.v1alphaB\021"
- + "ReportingApiProtoP\001ZAgoogle.golang.org/g"
- + "enproto/googleapis/analytics/data/v1alph"
- + "a;datab\006proto3"
+ + "Status\022C\n\017tokens_per_hour\030\002 \001(\0132*.google"
+ + ".analytics.data.v1alpha.QuotaStatus\022G\n\023c"
+ + "oncurrent_requests\030\003 \001(\0132*.google.analyt"
+ + "ics.data.v1alpha.QuotaStatus\022V\n\"server_e"
+ + "rrors_per_project_per_hour\030\004 \001(\0132*.googl"
+ + "e.analytics.data.v1alpha.QuotaStatus\"2\n\013"
+ + "QuotaStatus\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaini"
+ + "ng\030\002 \001(\005\"i\n\021DimensionMetadata\022\020\n\010api_nam"
+ + "e\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013description\030"
+ + "\003 \001(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\"\263\001\n\016"
+ + "MetricMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_n"
+ + "ame\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024deprec"
+ + "ated_api_names\030\004 \003(\t\0227\n\004type\030\005 \001(\0162).goo"
+ + "gle.analytics.data.v1alpha.MetricType\022\022\n"
+ + "\nexpression\030\006 \001(\t*g\n\021MetricAggregation\022\""
+ + "\n\036METRIC_AGGREGATION_UNSPECIFIED\020\000\022\t\n\005TO"
+ + "TAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007MAXIMUM\020\006\022\t\n\005COUNT"
+ + "\020\004*p\n\nMetricType\022\033\n\027METRIC_TYPE_UNSPECIF"
+ + "IED\020\000\022\020\n\014TYPE_INTEGER\020\001\022\016\n\nTYPE_FLOAT\020\002\022"
+ + "\020\n\014TYPE_SECONDS\020\004\022\021\n\rTYPE_CURRENCY\020\tB{\n!"
+ + "com.google.analytics.data.v1alphaB\021Repor"
+ + "tingApiProtoP\001ZAgoogle.golang.org/genpro"
+ + "to/googleapis/analytics/data/v1alpha;dat"
+ + "ab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -502,7 +522,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor,
new java.lang.String[] {
- "Accumulate", "PivotOnUserEvent", "MissingValueAsZero",
+ "Accumulate",
});
internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor =
getDescriptor().getMessageTypes().get(13);
@@ -520,8 +540,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new java.lang.String[] {
"DataLossFromOtherRow",
});
- internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor =
+ internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor =
getDescriptor().getMessageTypes().get(15);
+ internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
+ internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor =
+ getDescriptor().getMessageTypes().get(16);
internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor,
@@ -529,23 +557,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Name", "Type",
});
internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor =
- getDescriptor().getMessageTypes().get(16);
+ getDescriptor().getMessageTypes().get(17);
internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor,
new java.lang.String[] {
- "DimensionHeaders", "RowCount",
+ "PivotDimensionHeaders", "RowCount",
});
- internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor =
- getDescriptor().getMessageTypes().get(17);
- internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable =
+ internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
- internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor,
+ internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor,
new java.lang.String[] {
"DimensionValues",
});
internal_static_google_analytics_data_v1alpha_Row_descriptor =
- getDescriptor().getMessageTypes().get(18);
+ getDescriptor().getMessageTypes().get(19);
internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_Row_descriptor,
@@ -553,7 +581,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"DimensionValues", "MetricValues",
});
internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor =
- getDescriptor().getMessageTypes().get(19);
+ getDescriptor().getMessageTypes().get(20);
internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor,
@@ -561,7 +589,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Value", "OneValue",
});
internal_static_google_analytics_data_v1alpha_MetricValue_descriptor =
- getDescriptor().getMessageTypes().get(20);
+ getDescriptor().getMessageTypes().get(21);
internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_MetricValue_descriptor,
@@ -569,7 +597,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Value", "OneValue",
});
internal_static_google_analytics_data_v1alpha_NumericValue_descriptor =
- getDescriptor().getMessageTypes().get(21);
+ getDescriptor().getMessageTypes().get(22);
internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_NumericValue_descriptor,
@@ -577,7 +605,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Int64Value", "DoubleValue", "OneValue",
});
internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor =
- getDescriptor().getMessageTypes().get(22);
+ getDescriptor().getMessageTypes().get(23);
internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor,
@@ -588,13 +616,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ServerErrorsPerProjectPerHour",
});
internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor =
- getDescriptor().getMessageTypes().get(23);
+ getDescriptor().getMessageTypes().get(24);
internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor,
new java.lang.String[] {
"Consumed", "Remaining",
});
+ internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor,
+ new java.lang.String[] {
+ "ApiName", "UiName", "Description", "DeprecatedApiNames",
+ });
+ internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(26);
+ internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor,
+ new java.lang.String[] {
+ "ApiName", "UiName", "Description", "DeprecatedApiNames", "Type", "Expression",
+ });
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java
index b8aa8069..9b9aab4d 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java
@@ -460,9 +460,8 @@ public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -477,9 +476,8 @@ public boolean hasDimensionFilter() {
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -496,9 +494,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() {
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -515,8 +512,8 @@ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionF
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -532,8 +529,8 @@ public boolean hasMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -551,8 +548,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -656,7 +653,7 @@ public com.google.analytics.data.v1alpha.PivotOrBuilder getPivotsOrBuilder(int i
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -673,7 +670,7 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -691,7 +688,7 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -708,7 +705,7 @@ public int getDateRangesCount() {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -725,7 +722,7 @@ public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -843,7 +840,9 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 10;
@@ -2513,9 +2512,8 @@ public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder(int in
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2529,9 +2527,8 @@ public boolean hasDimensionFilter() {
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2551,9 +2548,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() {
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2575,9 +2571,8 @@ public Builder setDimensionFilter(com.google.analytics.data.v1alpha.FilterExpres
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2597,9 +2592,8 @@ public Builder setDimensionFilter(
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2625,9 +2619,8 @@ public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpr
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2647,9 +2640,8 @@ public Builder clearDimensionFilter() {
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2663,9 +2655,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2684,9 +2675,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -2719,8 +2709,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2735,8 +2725,8 @@ public boolean hasMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2757,8 +2747,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2781,8 +2771,8 @@ public Builder setMetricFilter(com.google.analytics.data.v1alpha.FilterExpressio
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2803,8 +2793,8 @@ public Builder setMetricFilter(
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2831,8 +2821,8 @@ public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpress
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2853,8 +2843,8 @@ public Builder clearMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2869,8 +2859,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getMetricFilte
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -2889,8 +2879,8 @@ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilt
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -3339,7 +3329,7 @@ private void ensureDateRangesIsMutable() {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3359,7 +3349,7 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3379,7 +3369,7 @@ public int getDateRangesCount() {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3399,7 +3389,7 @@ public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3425,7 +3415,7 @@ public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.DateRa
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3449,7 +3439,7 @@ public Builder setDateRanges(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3475,7 +3465,7 @@ public Builder addDateRanges(com.google.analytics.data.v1alpha.DateRange value)
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3501,7 +3491,7 @@ public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.DateRa
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3525,7 +3515,7 @@ public Builder addDateRanges(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3549,7 +3539,7 @@ public Builder addDateRanges(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3573,7 +3563,7 @@ public Builder addAllDateRanges(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3596,7 +3586,7 @@ public Builder clearDateRanges() {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3619,7 +3609,7 @@ public Builder removeDateRanges(int index) {
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3635,7 +3625,7 @@ public com.google.analytics.data.v1alpha.DateRange.Builder getDateRangesBuilder(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3655,7 +3645,7 @@ public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuild
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3676,7 +3666,7 @@ public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuild
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3693,7 +3683,7 @@ public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -3710,7 +3700,7 @@ public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -4048,7 +4038,9 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 10;
@@ -4063,7 +4055,9 @@ public boolean getKeepEmptyRows() {
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 10;
@@ -4081,7 +4075,9 @@ public Builder setKeepEmptyRows(boolean value) {
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 10;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java
index 667fe6fc..070df0cd 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java
@@ -184,9 +184,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -198,9 +197,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -212,9 +210,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions. Requests are validated that all
- * field_names in the dimension_filter are dimensions and are defined in
- * Dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 4;
@@ -226,8 +223,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -240,8 +237,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -254,8 +251,8 @@ public interface RunPivotReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause. Requests are validated that all field_names in the
- * metric_filter are metrics and are defined in Metrics.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 5;
@@ -337,7 +334,7 @@ public interface RunPivotReportRequestOrBuilder
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -351,7 +348,7 @@ public interface RunPivotReportRequestOrBuilder
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -365,7 +362,7 @@ public interface RunPivotReportRequestOrBuilder
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -379,7 +376,7 @@ public interface RunPivotReportRequestOrBuilder
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -394,7 +391,7 @@ public interface RunPivotReportRequestOrBuilder
* ranges are specified, event data from each date range is used in the
* report. A special dimension with field name "dateRange" can be included in
* a Pivot's field names; if included, the report compares between date
- * ranges. This dateRanges field is not used in cohorts reports.
+ * ranges. In a cohort request, this `dateRanges` must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 7;
@@ -470,7 +467,9 @@ public interface RunPivotReportRequestOrBuilder
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 10;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java
index 7bb97045..49981cb4 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java
@@ -39,6 +39,7 @@ private RunPivotReportResponse(com.google.protobuf.GeneratedMessageV3.Builder>
private RunPivotReportResponse() {
pivotHeaders_ = java.util.Collections.emptyList();
+ dimensionHeaders_ = java.util.Collections.emptyList();
metricHeaders_ = java.util.Collections.emptyList();
rows_ = java.util.Collections.emptyList();
aggregates_ = java.util.Collections.emptyList();
@@ -88,10 +89,10 @@ private RunPivotReportResponse(
}
case 18:
{
- if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
metricHeaders_ =
new java.util.ArrayList+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ @java.lang.Override
+ public java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList() {
+ return dimensionHeaders_;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ @java.lang.Override
+ public int getDimensionHeadersCount() {
+ return dimensionHeaders_.size();
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
+ return dimensionHeaders_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index) {
+ return dimensionHeaders_.get(index);
+ }
+
public static final int METRIC_HEADERS_FIELD_NUMBER = 2;
private java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -448,7 +542,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -462,7 +557,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -475,7 +571,8 @@ public int getMetricHeadersCount() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -488,7 +585,8 @@ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -780,6 +878,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (propertyQuota_ != null) {
output.writeMessage(6, getPropertyQuota());
}
+ for (int i = 0; i < dimensionHeaders_.size(); i++) {
+ output.writeMessage(7, dimensionHeaders_.get(i));
+ }
unknownFields.writeTo(output);
}
@@ -807,6 +908,9 @@ public int getSerializedSize() {
if (propertyQuota_ != null) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPropertyQuota());
}
+ for (int i = 0; i < dimensionHeaders_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dimensionHeaders_.get(i));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -824,6 +928,7 @@ public boolean equals(final java.lang.Object obj) {
(com.google.analytics.data.v1alpha.RunPivotReportResponse) obj;
if (!getPivotHeadersList().equals(other.getPivotHeadersList())) return false;
+ if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false;
if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false;
if (!getRowsList().equals(other.getRowsList())) return false;
if (!getAggregatesList().equals(other.getAggregatesList())) return false;
@@ -850,6 +955,10 @@ public int hashCode() {
hash = (37 * hash) + PIVOT_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getPivotHeadersList().hashCode();
}
+ if (getDimensionHeadersCount() > 0) {
+ hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionHeadersList().hashCode();
+ }
if (getMetricHeadersCount() > 0) {
hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getMetricHeadersList().hashCode();
@@ -1012,6 +1121,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getPivotHeadersFieldBuilder();
+ getDimensionHeadersFieldBuilder();
getMetricHeadersFieldBuilder();
getRowsFieldBuilder();
getAggregatesFieldBuilder();
@@ -1027,21 +1137,27 @@ public Builder clear() {
} else {
pivotHeadersBuilder_.clear();
}
+ if (dimensionHeadersBuilder_ == null) {
+ dimensionHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ dimensionHeadersBuilder_.clear();
+ }
if (metricHeadersBuilder_ == null) {
metricHeaders_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
metricHeadersBuilder_.clear();
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
rowsBuilder_.clear();
}
if (aggregatesBuilder_ == null) {
aggregates_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
aggregatesBuilder_.clear();
}
@@ -1094,28 +1210,37 @@ public com.google.analytics.data.v1alpha.RunPivotReportResponse buildPartial() {
} else {
result.pivotHeaders_ = pivotHeadersBuilder_.build();
}
- if (metricHeadersBuilder_ == null) {
+ if (dimensionHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
- metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_);
+ dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_);
bitField0_ = (bitField0_ & ~0x00000002);
}
+ result.dimensionHeaders_ = dimensionHeaders_;
+ } else {
+ result.dimensionHeaders_ = dimensionHeadersBuilder_.build();
+ }
+ if (metricHeadersBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
result.metricHeaders_ = metricHeaders_;
} else {
result.metricHeaders_ = metricHeadersBuilder_.build();
}
if (rowsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
if (aggregatesBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
aggregates_ = java.util.Collections.unmodifiableList(aggregates_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.aggregates_ = aggregates_;
} else {
@@ -1208,11 +1333,38 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
}
}
}
+ if (dimensionHeadersBuilder_ == null) {
+ if (!other.dimensionHeaders_.isEmpty()) {
+ if (dimensionHeaders_.isEmpty()) {
+ dimensionHeaders_ = other.dimensionHeaders_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.addAll(other.dimensionHeaders_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.dimensionHeaders_.isEmpty()) {
+ if (dimensionHeadersBuilder_.isEmpty()) {
+ dimensionHeadersBuilder_.dispose();
+ dimensionHeadersBuilder_ = null;
+ dimensionHeaders_ = other.dimensionHeaders_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ dimensionHeadersBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getDimensionHeadersFieldBuilder()
+ : null;
+ } else {
+ dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_);
+ }
+ }
+ }
if (metricHeadersBuilder_ == null) {
if (!other.metricHeaders_.isEmpty()) {
if (metricHeaders_.isEmpty()) {
metricHeaders_ = other.metricHeaders_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureMetricHeadersIsMutable();
metricHeaders_.addAll(other.metricHeaders_);
@@ -1225,7 +1377,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
metricHeadersBuilder_.dispose();
metricHeadersBuilder_ = null;
metricHeaders_ = other.metricHeaders_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
metricHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMetricHeadersFieldBuilder()
@@ -1239,7 +1391,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
@@ -1252,7 +1404,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRowsFieldBuilder()
@@ -1266,7 +1418,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
if (!other.aggregates_.isEmpty()) {
if (aggregates_.isEmpty()) {
aggregates_ = other.aggregates_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAggregatesIsMutable();
aggregates_.addAll(other.aggregates_);
@@ -1279,7 +1431,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRespons
aggregatesBuilder_.dispose();
aggregatesBuilder_ = null;
aggregates_ = other.aggregates_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
aggregatesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getAggregatesFieldBuilder()
@@ -2255,14 +2407,394 @@ public com.google.analytics.data.v1alpha.PivotHeader.Builder addPivotHeadersBuil
return pivotHeadersBuilder_;
}
+ private java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public int getDimensionHeadersCount() {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.size();
+ } else {
+ return dimensionHeadersBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.get(index);
+ } else {
+ return dimensionHeadersBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder setDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.set(index, value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder setDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder addDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(index, value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder addDimensionHeaders(
+ com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder addDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder addAllDimensionHeaders(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionHeader> values) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder clearDimensionHeaders() {
+ if (dimensionHeadersBuilder_ == null) {
+ dimensionHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public Builder removeDimensionHeaders(int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.remove(index);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder(
+ int index) {
+ return getDimensionHeadersFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.get(index);
+ } else {
+ return dimensionHeadersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList() {
+ if (dimensionHeadersBuilder_ != null) {
+ return dimensionHeadersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dimensionHeaders_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() {
+ return getDimensionHeadersFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder(
+ int index) {
+ return getDimensionHeadersFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2292,7 +2825,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2308,7 +2842,8 @@ public int getMetricHeadersCount() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2324,7 +2859,8 @@ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2347,7 +2883,8 @@ public Builder setMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2367,7 +2904,8 @@ public Builder setMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2389,7 +2927,8 @@ public Builder addMetricHeaders(com.google.analytics.data.v1alpha.MetricHeader v
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2412,7 +2951,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2432,7 +2972,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2452,7 +2993,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2472,7 +3014,8 @@ public Builder addAllMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2480,7 +3023,7 @@ public Builder addAllMetricHeaders(
public Builder clearMetricHeaders() {
if (metricHeadersBuilder_ == null) {
metricHeaders_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
metricHeadersBuilder_.clear();
@@ -2491,7 +3034,8 @@ public Builder clearMetricHeaders() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2510,7 +3054,8 @@ public Builder removeMetricHeaders(int index) {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2523,7 +3068,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2540,7 +3086,8 @@ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersO
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2557,7 +3104,8 @@ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersO
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2570,7 +3118,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2584,7 +3133,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -2606,7 +3156,7 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
com.google.analytics.data.v1alpha.MetricHeader.Builder,
com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>(
metricHeaders_,
- ((bitField0_ & 0x00000002) != 0),
+ ((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
metricHeaders_ = null;
@@ -2618,9 +3168,9 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
rows_ = new java.util.ArrayList- * Describes metric columns. + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index);
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ int getDimensionHeadersCount();
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList();
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -249,7 +308,8 @@ public interface RunPivotReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -259,7 +319,8 @@ public interface RunPivotReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -269,7 +330,8 @@ public interface RunPivotReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
@@ -280,7 +342,8 @@ public interface RunPivotReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java
index 7ba83de8..18f98f46 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java
@@ -487,7 +487,8 @@ public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -503,7 +504,8 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -520,7 +522,8 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -536,7 +539,8 @@ public int getDateRangesCount() {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -552,7 +556,8 @@ public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -586,8 +591,8 @@ public long getOffset() {
*
*
*
- * The number of rows to return.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return. If unspecified, 10 rows are returned. If
+ * -1, all rows are returned.
*
*
* int64 limit = 6;
@@ -710,7 +715,8 @@ public int getMetricAggregationsValue(int index) {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -725,7 +731,8 @@ public boolean hasDimensionFilter() {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -742,7 +749,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -759,7 +767,8 @@ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionF
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -775,7 +784,8 @@ public boolean hasMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -793,7 +803,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -980,7 +991,9 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 13;
@@ -2682,7 +2695,8 @@ private void ensureDateRangesIsMutable() {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2701,7 +2715,8 @@ public java.util.Listrepeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2720,7 +2735,8 @@ public int getDateRangesCount() {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2739,7 +2755,8 @@ public com.google.analytics.data.v1alpha.DateRange getDateRanges(int index) {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2764,7 +2781,8 @@ public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.DateRa
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2787,7 +2805,8 @@ public Builder setDateRanges(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2812,7 +2831,8 @@ public Builder addDateRanges(com.google.analytics.data.v1alpha.DateRange value)
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2837,7 +2857,8 @@ public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.DateRa
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2860,7 +2881,8 @@ public Builder addDateRanges(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2883,7 +2905,8 @@ public Builder addDateRanges(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2906,7 +2929,8 @@ public Builder addAllDateRanges(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2928,7 +2952,8 @@ public Builder clearDateRanges() {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2950,7 +2975,8 @@ public Builder removeDateRanges(int index) {
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2965,7 +2991,8 @@ public com.google.analytics.data.v1alpha.DateRange.Builder getDateRangesBuilder(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -2984,7 +3011,8 @@ public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuild
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -3004,7 +3032,8 @@ public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuild
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -3020,7 +3049,8 @@ public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -3036,7 +3066,8 @@ public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -3120,8 +3151,8 @@ public Builder clearOffset() {
*
*
*
- * The number of rows to return.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return. If unspecified, 10 rows are returned. If
+ * -1, all rows are returned.
*
*
* int64 limit = 6;
@@ -3136,8 +3167,8 @@ public long getLimit() {
*
*
*
- * The number of rows to return.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return. If unspecified, 10 rows are returned. If
+ * -1, all rows are returned.
*
*
* int64 limit = 6;
@@ -3155,8 +3186,8 @@ public Builder setLimit(long value) {
*
*
*
- * The number of rows to return.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return. If unspecified, 10 rows are returned. If
+ * -1, all rows are returned.
*
*
* int64 limit = 6;
@@ -3429,7 +3460,8 @@ public Builder addAllMetricAggregationsValue(java.lang.Iterable.google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3443,7 +3475,8 @@ public boolean hasDimensionFilter() {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3463,7 +3496,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3485,7 +3519,8 @@ public Builder setDimensionFilter(com.google.analytics.data.v1alpha.FilterExpres
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3505,7 +3540,8 @@ public Builder setDimensionFilter(
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3531,7 +3567,8 @@ public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpr
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3551,7 +3588,8 @@ public Builder clearDimensionFilter() {
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3565,7 +3603,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3584,7 +3623,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -3617,7 +3657,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getDimensionFi
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3632,7 +3673,8 @@ public boolean hasMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3653,7 +3695,8 @@ public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3676,7 +3719,8 @@ public Builder setMetricFilter(com.google.analytics.data.v1alpha.FilterExpressio
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3697,7 +3741,8 @@ public Builder setMetricFilter(
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3724,7 +3769,8 @@ public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpress
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3745,7 +3791,8 @@ public Builder clearMetricFilter() {
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3760,7 +3807,8 @@ public com.google.analytics.data.v1alpha.FilterExpression.Builder getMetricFilte
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -3779,7 +3827,8 @@ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilt
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -4461,7 +4510,9 @@ public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuil
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 13;
@@ -4476,7 +4527,9 @@ public boolean getKeepEmptyRows() {
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 13;
@@ -4494,7 +4547,9 @@ public Builder setKeepEmptyRows(boolean value) {
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 13;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java
index a414fdd0..c09c784e 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java
@@ -172,7 +172,8 @@ public interface RunReportRequestOrBuilder
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -185,7 +186,8 @@ public interface RunReportRequestOrBuilder
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -198,7 +200,8 @@ public interface RunReportRequestOrBuilder
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -211,7 +214,8 @@ public interface RunReportRequestOrBuilder
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -225,7 +229,8 @@ public interface RunReportRequestOrBuilder
* Date ranges of data to read. If multiple date ranges are requested, each
* response row will contain a zero based date range index. If two date
* ranges overlap, the event data for the overlapping days is included in the
- * response rows for both date ranges.
+ * response rows for both date ranges. In a cohort request, this `dateRanges`
+ * must be unspecified.
*
*
* repeated .google.analytics.data.v1alpha.DateRange date_ranges = 4;
@@ -249,8 +254,8 @@ public interface RunReportRequestOrBuilder
*
*
*
- * The number of rows to return.
- * If zero or unspecified, all rows are returned.
+ * The number of rows to return. If unspecified, 10 rows are returned. If
+ * -1, all rows are returned.
*
*
* int64 limit = 6;
@@ -331,7 +336,8 @@ public interface RunReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -343,7 +349,8 @@ public interface RunReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -355,7 +362,8 @@ public interface RunReportRequestOrBuilder
*
*
*
- * The filter clause of dimensions.
+ * The filter clause of dimensions. Dimensions must be requested to be used in
+ * this filter. Metrics cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression dimension_filter = 8;
@@ -367,7 +375,8 @@ public interface RunReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -380,7 +389,8 @@ public interface RunReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -393,7 +403,8 @@ public interface RunReportRequestOrBuilder
*
*
* The filter clause of metrics. Applied at post aggregation phase, similar to
- * SQL having-clause.
+ * SQL having-clause. Metrics must be requested to be used in this filter.
+ * Dimensions cannot be used in this filter.
*
*
* .google.analytics.data.v1alpha.FilterExpression metric_filter = 9;
@@ -521,7 +532,9 @@ public interface RunReportRequestOrBuilder
*
*
*
- * If false, rows with metrics being 0 will not be returned.
+ * If false or unspecified, each row with all metrics equal to 0 will not be
+ * returned. If true, these rows will be returned if they are not separately
+ * removed by a filter.
*
*
* bool keep_empty_rows = 13;
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java
index e9708b0e..751c4c24 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java
@@ -38,6 +38,7 @@ private RunReportResponse(com.google.protobuf.GeneratedMessageV3.Builder> buil
}
private RunReportResponse() {
+ dimensionHeaders_ = java.util.Collections.emptyList();
metricHeaders_ = java.util.Collections.emptyList();
rows_ = java.util.Collections.emptyList();
totals_ = java.util.Collections.emptyList();
@@ -77,10 +78,10 @@ private RunReportResponse(
break;
case 10:
{
- if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metricHeaders_ =
new java.util.ArrayList+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ @java.lang.Override
+ public java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList() {
+ return dimensionHeaders_;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ @java.lang.Override
+ public int getDimensionHeadersCount() {
+ return dimensionHeaders_.size();
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
+ return dimensionHeaders_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index) {
+ return dimensionHeaders_.get(index);
+ }
+
public static final int METRIC_HEADERS_FIELD_NUMBER = 1;
private java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -232,7 +331,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -246,7 +346,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -259,7 +360,8 @@ public int getMetricHeadersCount() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -272,7 +374,8 @@ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -559,6 +662,27 @@ public com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int i
return minimums_.get(index);
}
+ public static final int ROW_COUNT_FIELD_NUMBER = 12;
+ private int rowCount_;
+ /**
+ *
+ *
+ * + * The total number of rows in the query result, regardless of the number of + * rows returned in the response. For example if a query returns 175 rows and + * includes limit = 50 in the API request, the response will contain row_count + * = 175 but only 50 rows. + *+ * + *
int32 row_count = 12;
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public int getRowCount() {
+ return rowCount_;
+ }
+
public static final int METADATA_FIELD_NUMBER = 6;
private com.google.analytics.data.v1alpha.ResponseMetaData metadata_;
/**
@@ -690,6 +814,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
for (int i = 0; i < minimums_.size(); i++) {
output.writeMessage(10, minimums_.get(i));
}
+ for (int i = 0; i < dimensionHeaders_.size(); i++) {
+ output.writeMessage(11, dimensionHeaders_.get(i));
+ }
+ if (rowCount_ != 0) {
+ output.writeInt32(12, rowCount_);
+ }
unknownFields.writeTo(output);
}
@@ -720,6 +850,13 @@ public int getSerializedSize() {
for (int i = 0; i < minimums_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, minimums_.get(i));
}
+ for (int i = 0; i < dimensionHeaders_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(11, dimensionHeaders_.get(i));
+ }
+ if (rowCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, rowCount_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -736,11 +873,13 @@ public boolean equals(final java.lang.Object obj) {
com.google.analytics.data.v1alpha.RunReportResponse other =
(com.google.analytics.data.v1alpha.RunReportResponse) obj;
+ if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false;
if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false;
if (!getRowsList().equals(other.getRowsList())) return false;
if (!getTotalsList().equals(other.getTotalsList())) return false;
if (!getMaximumsList().equals(other.getMaximumsList())) return false;
if (!getMinimumsList().equals(other.getMinimumsList())) return false;
+ if (getRowCount() != other.getRowCount()) return false;
if (hasMetadata() != other.hasMetadata()) return false;
if (hasMetadata()) {
if (!getMetadata().equals(other.getMetadata())) return false;
@@ -760,6 +899,10 @@ public int hashCode() {
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDimensionHeadersCount() > 0) {
+ hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionHeadersList().hashCode();
+ }
if (getMetricHeadersCount() > 0) {
hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER;
hash = (53 * hash) + getMetricHeadersList().hashCode();
@@ -780,6 +923,8 @@ public int hashCode() {
hash = (37 * hash) + MINIMUMS_FIELD_NUMBER;
hash = (53 * hash) + getMinimumsList().hashCode();
}
+ hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getRowCount();
if (hasMetadata()) {
hash = (37 * hash) + METADATA_FIELD_NUMBER;
hash = (53 * hash) + getMetadata().hashCode();
@@ -928,6 +1073,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDimensionHeadersFieldBuilder();
getMetricHeadersFieldBuilder();
getRowsFieldBuilder();
getTotalsFieldBuilder();
@@ -939,36 +1085,44 @@ private void maybeForceBuilderInitialization() {
@java.lang.Override
public Builder clear() {
super.clear();
+ if (dimensionHeadersBuilder_ == null) {
+ dimensionHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ dimensionHeadersBuilder_.clear();
+ }
if (metricHeadersBuilder_ == null) {
metricHeaders_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
metricHeadersBuilder_.clear();
}
if (rowsBuilder_ == null) {
rows_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
rowsBuilder_.clear();
}
if (totalsBuilder_ == null) {
totals_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
totalsBuilder_.clear();
}
if (maximumsBuilder_ == null) {
maximums_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
maximumsBuilder_.clear();
}
if (minimumsBuilder_ == null) {
minimums_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
minimumsBuilder_.clear();
}
+ rowCount_ = 0;
+
if (metadataBuilder_ == null) {
metadata_ = null;
} else {
@@ -1009,51 +1163,61 @@ public com.google.analytics.data.v1alpha.RunReportResponse buildPartial() {
com.google.analytics.data.v1alpha.RunReportResponse result =
new com.google.analytics.data.v1alpha.RunReportResponse(this);
int from_bitField0_ = bitField0_;
- if (metricHeadersBuilder_ == null) {
+ if (dimensionHeadersBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
- metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_);
+ dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_);
bitField0_ = (bitField0_ & ~0x00000001);
}
+ result.dimensionHeaders_ = dimensionHeaders_;
+ } else {
+ result.dimensionHeaders_ = dimensionHeadersBuilder_.build();
+ }
+ if (metricHeadersBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
result.metricHeaders_ = metricHeaders_;
} else {
result.metricHeaders_ = metricHeadersBuilder_.build();
}
if (rowsBuilder_ == null) {
- if (((bitField0_ & 0x00000002) != 0)) {
+ if (((bitField0_ & 0x00000004) != 0)) {
rows_ = java.util.Collections.unmodifiableList(rows_);
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
}
result.rows_ = rows_;
} else {
result.rows_ = rowsBuilder_.build();
}
if (totalsBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
totals_ = java.util.Collections.unmodifiableList(totals_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.totals_ = totals_;
} else {
result.totals_ = totalsBuilder_.build();
}
if (maximumsBuilder_ == null) {
- if (((bitField0_ & 0x00000008) != 0)) {
+ if (((bitField0_ & 0x00000010) != 0)) {
maximums_ = java.util.Collections.unmodifiableList(maximums_);
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
}
result.maximums_ = maximums_;
} else {
result.maximums_ = maximumsBuilder_.build();
}
if (minimumsBuilder_ == null) {
- if (((bitField0_ & 0x00000010) != 0)) {
+ if (((bitField0_ & 0x00000020) != 0)) {
minimums_ = java.util.Collections.unmodifiableList(minimums_);
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
}
result.minimums_ = minimums_;
} else {
result.minimums_ = minimumsBuilder_.build();
}
+ result.rowCount_ = rowCount_;
if (metadataBuilder_ == null) {
result.metadata_ = metadata_;
} else {
@@ -1114,11 +1278,38 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse other) {
if (other == com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance())
return this;
+ if (dimensionHeadersBuilder_ == null) {
+ if (!other.dimensionHeaders_.isEmpty()) {
+ if (dimensionHeaders_.isEmpty()) {
+ dimensionHeaders_ = other.dimensionHeaders_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.addAll(other.dimensionHeaders_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.dimensionHeaders_.isEmpty()) {
+ if (dimensionHeadersBuilder_.isEmpty()) {
+ dimensionHeadersBuilder_.dispose();
+ dimensionHeadersBuilder_ = null;
+ dimensionHeaders_ = other.dimensionHeaders_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ dimensionHeadersBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getDimensionHeadersFieldBuilder()
+ : null;
+ } else {
+ dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_);
+ }
+ }
+ }
if (metricHeadersBuilder_ == null) {
if (!other.metricHeaders_.isEmpty()) {
if (metricHeaders_.isEmpty()) {
metricHeaders_ = other.metricHeaders_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMetricHeadersIsMutable();
metricHeaders_.addAll(other.metricHeaders_);
@@ -1131,7 +1322,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
metricHeadersBuilder_.dispose();
metricHeadersBuilder_ = null;
metricHeaders_ = other.metricHeaders_;
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
metricHeadersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMetricHeadersFieldBuilder()
@@ -1145,7 +1336,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
if (!other.rows_.isEmpty()) {
if (rows_.isEmpty()) {
rows_ = other.rows_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureRowsIsMutable();
rows_.addAll(other.rows_);
@@ -1158,7 +1349,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
rowsBuilder_.dispose();
rowsBuilder_ = null;
rows_ = other.rows_;
- bitField0_ = (bitField0_ & ~0x00000002);
+ bitField0_ = (bitField0_ & ~0x00000004);
rowsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getRowsFieldBuilder()
@@ -1172,7 +1363,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
if (!other.totals_.isEmpty()) {
if (totals_.isEmpty()) {
totals_ = other.totals_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTotalsIsMutable();
totals_.addAll(other.totals_);
@@ -1185,7 +1376,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
totalsBuilder_.dispose();
totalsBuilder_ = null;
totals_ = other.totals_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
totalsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getTotalsFieldBuilder()
@@ -1199,7 +1390,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
if (!other.maximums_.isEmpty()) {
if (maximums_.isEmpty()) {
maximums_ = other.maximums_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureMaximumsIsMutable();
maximums_.addAll(other.maximums_);
@@ -1212,7 +1403,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
maximumsBuilder_.dispose();
maximumsBuilder_ = null;
maximums_ = other.maximums_;
- bitField0_ = (bitField0_ & ~0x00000008);
+ bitField0_ = (bitField0_ & ~0x00000010);
maximumsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMaximumsFieldBuilder()
@@ -1226,7 +1417,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
if (!other.minimums_.isEmpty()) {
if (minimums_.isEmpty()) {
minimums_ = other.minimums_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureMinimumsIsMutable();
minimums_.addAll(other.minimums_);
@@ -1239,7 +1430,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
minimumsBuilder_.dispose();
minimumsBuilder_ = null;
minimums_ = other.minimums_;
- bitField0_ = (bitField0_ & ~0x00000010);
+ bitField0_ = (bitField0_ & ~0x00000020);
minimumsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getMinimumsFieldBuilder()
@@ -1249,6 +1440,9 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse oth
}
}
}
+ if (other.getRowCount() != 0) {
+ setRowCount(other.getRowCount());
+ }
if (other.hasMetadata()) {
mergeMetadata(other.getMetadata());
}
@@ -1287,14 +1481,394 @@ public Builder mergeFrom(
private int bitField0_;
+ private java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public int getDimensionHeadersCount() {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.size();
+ } else {
+ return dimensionHeadersBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.get(index);
+ } else {
+ return dimensionHeadersBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder setDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.set(index, value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder setDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder addDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader value) {
+ if (dimensionHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(index, value);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder addDimensionHeaders(
+ com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder addDimensionHeaders(
+ int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder addAllDimensionHeaders(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionHeader> values) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder clearDimensionHeaders() {
+ if (dimensionHeadersBuilder_ == null) {
+ dimensionHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public Builder removeDimensionHeaders(int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.remove(index);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder(
+ int index) {
+ return getDimensionHeadersFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.get(index);
+ } else {
+ return dimensionHeadersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList() {
+ if (dimensionHeadersBuilder_ != null) {
+ return dimensionHeadersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dimensionHeaders_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() {
+ return getDimensionHeadersFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder(
+ int index) {
+ return getDimensionHeadersFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1324,7 +1899,8 @@ public java.util.List
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1340,7 +1916,8 @@ public int getMetricHeadersCount() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1356,7 +1933,8 @@ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1379,7 +1957,8 @@ public Builder setMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1399,7 +1978,8 @@ public Builder setMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1421,7 +2001,8 @@ public Builder addMetricHeaders(com.google.analytics.data.v1alpha.MetricHeader v
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1444,7 +2025,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1464,7 +2046,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1484,7 +2067,8 @@ public Builder addMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1504,7 +2088,8 @@ public Builder addAllMetricHeaders(
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1512,7 +2097,7 @@ public Builder addAllMetricHeaders(
public Builder clearMetricHeaders() {
if (metricHeadersBuilder_ == null) {
metricHeaders_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000001);
+ bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
metricHeadersBuilder_.clear();
@@ -1523,7 +2108,8 @@ public Builder clearMetricHeaders() {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1542,7 +2128,8 @@ public Builder removeMetricHeaders(int index) {
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1555,7 +2142,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1572,7 +2160,8 @@ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersO
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1589,7 +2178,8 @@ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersO
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1602,7 +2192,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1616,7 +2207,8 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -1638,7 +2230,7 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
com.google.analytics.data.v1alpha.MetricHeader.Builder,
com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>(
metricHeaders_,
- ((bitField0_ & 0x00000001) != 0),
+ ((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
metricHeaders_ = null;
@@ -1650,9 +2242,9 @@ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBu
java.util.Collections.emptyList();
private void ensureRowsIsMutable() {
- if (!((bitField0_ & 0x00000002) != 0)) {
+ if (!((bitField0_ & 0x00000004) != 0)) {
rows_ = new java.util.ArrayList+ * The total number of rows in the query result, regardless of the number of + * rows returned in the response. For example if a query returns 175 rows and + * includes limit = 50 in the API request, the response will contain row_count + * = 175 but only 50 rows. + *+ * + *
int32 row_count = 12;
+ *
+ * @return The rowCount.
+ */
+ @java.lang.Override
+ public int getRowCount() {
+ return rowCount_;
+ }
+ /**
+ *
+ *
+ * + * The total number of rows in the query result, regardless of the number of + * rows returned in the response. For example if a query returns 175 rows and + * includes limit = 50 in the API request, the response will contain row_count + * = 175 but only 50 rows. + *+ * + *
int32 row_count = 12;
+ *
+ * @param value The rowCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRowCount(int value) {
+
+ rowCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The total number of rows in the query result, regardless of the number of + * rows returned in the response. For example if a query returns 175 rows and + * includes limit = 50 in the API request, the response will contain row_count + * = 175 but only 50 rows. + *+ * + *
int32 row_count = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRowCount() {
+
+ rowCount_ = 0;
+ onChanged();
+ return this;
+ }
+
private com.google.analytics.data.v1alpha.ResponseMetaData metadata_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.analytics.data.v1alpha.ResponseMetaData,
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java
index eca85535..3c1697ee 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java
@@ -27,7 +27,66 @@ public interface RunReportResponseOrBuilder
*
*
* - * Describes metric columns. + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ java.util.List+ * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index);
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ int getDimensionHeadersCount();
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList();
+ /**
+ *
+ *
+ * + * Describes dimension columns. The number of DimensionHeaders and ordering of + * DimensionHeaders matches the dimensions present in rows. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ *
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -37,7 +96,8 @@ public interface RunReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -47,7 +107,8 @@ public interface RunReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -57,7 +118,8 @@ public interface RunReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -68,7 +130,8 @@ public interface RunReportResponseOrBuilder
*
*
*
- * Describes metric columns.
+ * Describes metric columns. The number of MetricHeaders and ordering of
+ * MetricHeaders matches the metrics present in rows.
*
*
* repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1;
@@ -281,6 +344,22 @@ public interface RunReportResponseOrBuilder
*/
com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index);
+ /**
+ *
+ *
+ * + * The total number of rows in the query result, regardless of the number of + * rows returned in the response. For example if a query returns 175 rows and + * includes limit = 50 in the API request, the response will contain row_count + * = 175 but only 50 rows. + *+ * + *
int32 row_count = 12;
+ *
+ * @return The rowCount.
+ */
+ int getRowCount();
+
/**
*
*
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UniversalMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UniversalMetadata.java
new file mode 100644
index 00000000..4a683ed4
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UniversalMetadata.java
@@ -0,0 +1,1453 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/analytics/data/v1alpha/analytics_data_api.proto
+
+package com.google.analytics.data.v1alpha;
+
+/**
+ *
+ *
+ * + * The dimensions and metrics currently accepted in reporting methods. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.UniversalMetadata} + */ +public final class UniversalMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UniversalMetadata) + UniversalMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UniversalMetadata.newBuilder() to construct. + private UniversalMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private UniversalMetadata() { + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UniversalMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UniversalMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensions_ = + new java.util.ArrayList
+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>
+ getDimensionsOrBuilderList() {
+ return dimensions_;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public int getDimensionsCount() {
+ return dimensions_.size();
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) {
+ return dimensions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder(
+ int index) {
+ return dimensions_.get(index);
+ }
+
+ public static final int METRICS_FIELD_NUMBER = 2;
+ private java.util.List+ * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public java.util.List+ * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>
+ getMetricsOrBuilderList() {
+ return metrics_;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public int getMetricsCount() {
+ return metrics_.size();
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) {
+ return metrics_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(int index) {
+ return metrics_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ for (int i = 0; i < dimensions_.size(); i++) {
+ output.writeMessage(1, dimensions_.get(i));
+ }
+ for (int i = 0; i < metrics_.size(); i++) {
+ output.writeMessage(2, metrics_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < dimensions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensions_.get(i));
+ }
+ for (int i = 0; i < metrics_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metrics_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.analytics.data.v1alpha.UniversalMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.UniversalMetadata other =
+ (com.google.analytics.data.v1alpha.UniversalMetadata) obj;
+
+ if (!getDimensionsList().equals(other.getDimensionsList())) return false;
+ if (!getMetricsList().equals(other.getMetricsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDimensionsCount() > 0) {
+ hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionsList().hashCode();
+ }
+ if (getMetricsCount() > 0) {
+ hash = (37 * hash) + METRICS_FIELD_NUMBER;
+ hash = (53 * hash) + getMetricsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.UniversalMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.analytics.data.v1alpha.UniversalMetadata prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ * + * The dimensions and metrics currently accepted in reporting methods. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.UniversalMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public java.util.List+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public int getDimensionsCount() {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.size();
+ } else {
+ return dimensionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.get(index);
+ } else {
+ return dimensionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder setDimensions(
+ int index, com.google.analytics.data.v1alpha.DimensionMetadata value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.set(index, value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder setDimensions(
+ int index, com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder addDimensions(com.google.analytics.data.v1alpha.DimensionMetadata value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.add(value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder addDimensions(
+ int index, com.google.analytics.data.v1alpha.DimensionMetadata value) {
+ if (dimensionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionsIsMutable();
+ dimensions_.add(index, value);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder addDimensions(
+ com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder addDimensions(
+ int index, com.google.analytics.data.v1alpha.DimensionMetadata.Builder builderForValue) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ dimensionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder addAllDimensions(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.DimensionMetadata> values) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_);
+ onChanged();
+ } else {
+ dimensionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder clearDimensions() {
+ if (dimensionsBuilder_ == null) {
+ dimensions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dimensionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public Builder removeDimensions(int index) {
+ if (dimensionsBuilder_ == null) {
+ ensureDimensionsIsMutable();
+ dimensions_.remove(index);
+ onChanged();
+ } else {
+ dimensionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionMetadata.Builder getDimensionsBuilder(
+ int index) {
+ return getDimensionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder(
+ int index) {
+ if (dimensionsBuilder_ == null) {
+ return dimensions_.get(index);
+ } else {
+ return dimensionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>
+ getDimensionsOrBuilderList() {
+ if (dimensionsBuilder_ != null) {
+ return dimensionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(dimensions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder() {
+ return getDimensionsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder(
+ int index) {
+ return getDimensionsFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public java.util.List+ * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public java.util.List+ * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public int getMetricsCount() {
+ if (metricsBuilder_ == null) {
+ return metrics_.size();
+ } else {
+ return metricsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) {
+ if (metricsBuilder_ == null) {
+ return metrics_.get(index);
+ } else {
+ return metricsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder setMetrics(int index, com.google.analytics.data.v1alpha.MetricMetadata value) {
+ if (metricsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricsIsMutable();
+ metrics_.set(index, value);
+ onChanged();
+ } else {
+ metricsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder setMetrics(
+ int index, com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) {
+ if (metricsBuilder_ == null) {
+ ensureMetricsIsMutable();
+ metrics_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ metricsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder addMetrics(com.google.analytics.data.v1alpha.MetricMetadata value) {
+ if (metricsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricsIsMutable();
+ metrics_.add(value);
+ onChanged();
+ } else {
+ metricsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder addMetrics(int index, com.google.analytics.data.v1alpha.MetricMetadata value) {
+ if (metricsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricsIsMutable();
+ metrics_.add(index, value);
+ onChanged();
+ } else {
+ metricsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder addMetrics(
+ com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) {
+ if (metricsBuilder_ == null) {
+ ensureMetricsIsMutable();
+ metrics_.add(builderForValue.build());
+ onChanged();
+ } else {
+ metricsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder addMetrics(
+ int index, com.google.analytics.data.v1alpha.MetricMetadata.Builder builderForValue) {
+ if (metricsBuilder_ == null) {
+ ensureMetricsIsMutable();
+ metrics_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ metricsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder addAllMetrics(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.MetricMetadata> values) {
+ if (metricsBuilder_ == null) {
+ ensureMetricsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_);
+ onChanged();
+ } else {
+ metricsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder clearMetrics() {
+ if (metricsBuilder_ == null) {
+ metrics_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ metricsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public Builder removeMetrics(int index) {
+ if (metricsBuilder_ == null) {
+ ensureMetricsIsMutable();
+ metrics_.remove(index);
+ onChanged();
+ } else {
+ metricsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricMetadata.Builder getMetricsBuilder(int index) {
+ return getMetricsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(
+ int index) {
+ if (metricsBuilder_ == null) {
+ return metrics_.get(index);
+ } else {
+ return metricsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>
+ getMetricsOrBuilderList() {
+ if (metricsBuilder_ != null) {
+ return metricsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(metrics_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder() {
+ return getMetricsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder(int index) {
+ return getMetricsFieldBuilder()
+ .addBuilder(index, com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public java.util.List+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ java.util.List+ * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index);
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ int getDimensionsCount();
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>
+ getDimensionsOrBuilderList();
+ /**
+ *
+ *
+ * + * The dimensions descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ java.util.List+ * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index);
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ int getMetricsCount();
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>
+ getMetricsOrBuilderList();
+ /**
+ *
+ *
+ * + * The metric descriptions. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto
index b2b03120..dbbc258a 100644
--- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto
+++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto
@@ -19,6 +19,7 @@ package google.analytics.data.v1alpha;
import "google/analytics/data/v1alpha/data.proto";
import "google/api/annotations.proto";
import "google/api/client.proto";
+import "google/api/field_behavior.proto";
option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data";
option java_multiple_files = true;
@@ -75,6 +76,18 @@ service AlphaAnalyticsData {
body: "*"
};
}
+
+ // Returns metadata for dimensions and metrics available in reporting methods.
+ // Used to explore the dimensions and metrics. Dimensions and metrics will be
+ // mostly added over time, but renames and deletions may occur.
+ //
+ // This method returns Universal Metadata. Universal Metadata are dimensions
+ // and metrics applicable to any property such as `country` and `totalUsers`.
+ rpc GetUniversalMetadata(GetUniversalMetadataRequest) returns (UniversalMetadata) {
+ option (google.api.http) = {
+ get: "/v1alpha/universalMetadata"
+ };
+ }
}
// The request to generate a report.
@@ -92,25 +105,28 @@ message RunReportRequest {
// Date ranges of data to read. If multiple date ranges are requested, each
// response row will contain a zero based date range index. If two date
// ranges overlap, the event data for the overlapping days is included in the
- // response rows for both date ranges.
+ // response rows for both date ranges. In a cohort request, this `dateRanges`
+ // must be unspecified.
repeated DateRange date_ranges = 4;
// The row count of the start row. The first row is counted as row 0.
int64 offset = 5;
- // The number of rows to return.
- // If zero or unspecified, all rows are returned.
+ // The number of rows to return. If unspecified, 10 rows are returned. If
+ // -1, all rows are returned.
int64 limit = 6;
// Aggregation of metrics. Aggregated metric values will be shown in rows
// where the dimension_values are set to "RESERVED_(MetricAggregation)".
repeated MetricAggregation metric_aggregations = 7;
- // The filter clause of dimensions.
+ // The filter clause of dimensions. Dimensions must be requested to be used in
+ // this filter. Metrics cannot be used in this filter.
FilterExpression dimension_filter = 8;
// The filter clause of metrics. Applied at post aggregation phase, similar to
- // SQL having-clause.
+ // SQL having-clause. Metrics must be requested to be used in this filter.
+ // Dimensions cannot be used in this filter.
FilterExpression metric_filter = 9;
// Specifies how rows are ordered in the response.
@@ -124,7 +140,9 @@ message RunReportRequest {
// in the request the 'cohort' dimension must be present.
CohortSpec cohort_spec = 12;
- // If false, rows with metrics being 0 will not be returned.
+ // If false or unspecified, each row with all metrics equal to 0 will not be
+ // returned. If true, these rows will be returned if they are not separately
+ // removed by a filter.
bool keep_empty_rows = 13;
// Toggles whether to return the current state of this Analytics Property's
@@ -134,7 +152,12 @@ message RunReportRequest {
// The response report table corresponding to a request.
message RunReportResponse {
- // Describes metric columns.
+ // Describes dimension columns. The number of DimensionHeaders and ordering of
+ // DimensionHeaders matches the dimensions present in rows.
+ repeated DimensionHeader dimension_headers = 11;
+
+ // Describes metric columns. The number of MetricHeaders and ordering of
+ // MetricHeaders matches the metrics present in rows.
repeated MetricHeader metric_headers = 1;
// Rows of dimension value combinations and metric values in the report.
@@ -149,6 +172,12 @@ message RunReportResponse {
// If requested, the minimum values of metrics.
repeated Row minimums = 10;
+ // The total number of rows in the query result, regardless of the number of
+ // rows returned in the response. For example if a query returns 175 rows and
+ // includes limit = 50 in the API request, the response will contain row_count
+ // = 175 but only 50 rows.
+ int32 row_count = 12;
+
// Metadata for the report.
ResponseMetaData metadata = 6;
@@ -171,14 +200,13 @@ message RunPivotReportRequest {
// metric_filter, order_bys.
repeated Metric metrics = 3;
- // The filter clause of dimensions. Requests are validated that all
- // field_names in the dimension_filter are dimensions and are defined in
- // Dimensions.
+ // The filter clause of dimensions. Dimensions must be requested to be used in
+ // this filter. Metrics cannot be used in this filter.
FilterExpression dimension_filter = 4;
// The filter clause of metrics. Applied at post aggregation phase, similar to
- // SQL having-clause. Requests are validated that all field_names in the
- // metric_filter are metrics and are defined in Metrics.
+ // SQL having-clause. Metrics must be requested to be used in this filter.
+ // Dimensions cannot be used in this filter.
FilterExpression metric_filter = 5;
// Describes the visual format of the report's dimensions in columns or rows.
@@ -191,7 +219,7 @@ message RunPivotReportRequest {
// ranges are specified, event data from each date range is used in the
// report. A special dimension with field name "dateRange" can be included in
// a Pivot's field names; if included, the report compares between date
- // ranges. This dateRanges field is not used in cohorts reports.
+ // ranges. In a cohort request, this `dateRanges` must be unspecified.
repeated DateRange date_ranges = 7;
// A currency code in ISO4217 format, such as "AED", "USD", "JPY".
@@ -202,7 +230,9 @@ message RunPivotReportRequest {
// in the request the 'cohort' dimension must be present.
CohortSpec cohort_spec = 9;
- // If false, rows with metrics being 0 will not be returned.
+ // If false or unspecified, each row with all metrics equal to 0 will not be
+ // returned. If true, these rows will be returned if they are not separately
+ // removed by a filter.
bool keep_empty_rows = 10;
// Toggles whether to return the current state of this Analytics Property's
@@ -250,7 +280,12 @@ message RunPivotReportResponse {
// }]
repeated PivotHeader pivot_headers = 1;
- // Describes metric columns.
+ // Describes dimension columns. The number of DimensionHeaders and ordering of
+ // DimensionHeaders matches the dimensions present in rows.
+ repeated DimensionHeader dimension_headers = 7;
+
+ // Describes metric columns. The number of MetricHeaders and ordering of
+ // MetricHeaders matches the metrics present in rows.
repeated MetricHeader metric_headers = 2;
// Rows of dimension value combinations and metric values in the report.
@@ -304,3 +339,17 @@ message BatchRunPivotReportsResponse {
// Individual responses. Each response has a separate pivot report request.
repeated RunPivotReportResponse pivot_reports = 1;
}
+
+// Request for the universal dimension and metric metadata.
+message GetUniversalMetadataRequest {
+
+}
+
+// The dimensions and metrics currently accepted in reporting methods.
+message UniversalMetadata {
+ // The dimensions descriptions.
+ repeated DimensionMetadata dimensions = 1;
+
+ // The metric descriptions.
+ repeated MetricMetadata metrics = 2;
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto
index 0b1dd8fd..74a7db49 100644
--- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto
+++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto
@@ -357,16 +357,17 @@ message Pivot {
repeated string field_names = 1;
// Specifies how dimensions are ordered in the pivot. In the first Pivot, the
- // OrderBys determine Row and DimensionHeader ordering; in subsequent Pivots,
- // the OrderBys determine only DimensionHeader ordering. Dimensions specified
- // in these OrderBys must be a subset of Pivot.field_names.
+ // OrderBys determine Row and PivotDimensionHeader ordering; in subsequent
+ // Pivots, the OrderBys determine only PivotDimensionHeader ordering.
+ // Dimensions specified in these OrderBys must be a subset of
+ // Pivot.field_names.
repeated OrderBy order_bys = 2;
// The row count of the start row. The first row is counted as row 0.
int64 offset = 3;
- // The number of rows to return in this pivot.
- // If zero or unspecified, all rows are returned.
+ // The number of rows to return in this pivot. If unspecified, 10 rows are
+ // returned. If -1, all rows are returned.
int64 limit = 4;
// Aggregate the metrics by dimensions in this pivot using the specified
@@ -391,7 +392,9 @@ message CohortSpec {
// belong to the same cohort.
message Cohort {
// Assigns a name to this cohort. The dimension `cohort` is valued to this
- // name in a report response. If not set, a cohort is named the empty string.
+ // name in a report response. If set, cannot begin with `cohort_` or
+ // `RESERVED_`. If not set, cohorts are named by their zero based index
+ // `cohort_0`, `cohort_1`, etc.
string name = 1;
// The dimension used by cohort. Only supports `firstTouchDate` for retention
@@ -399,12 +402,14 @@ message Cohort {
string dimension = 2;
// The cohort selects users whose first visit date is between start date
- // and end date defined in the date_range. The date range should be aligned
- // with the cohort's granularity.
- // If CohortsRange uses daily granularity, the date range can be aligned to
- // any day.
- // If CohortsRange uses weekly granularity, the date range should be aligned
- // to the week boundary, starting at Sunday and ending Saturday. If
+ // and end date defined in the `dateRange`. In a cohort request, this
+ // `dateRange` is required and the `dateRanges` in the `RunReportRequest` or
+ // `RunPivotReportRequest` must be unspecified.
+ //
+ // The date range should be aligned with the cohort's granularity. If
+ // CohortsRange uses daily granularity, the date range can be aligned to any
+ // day. If CohortsRange uses weekly granularity, the date range should be
+ // aligned to the week boundary, starting at Sunday and ending Saturday. If
// CohortsRange uses monthly granularity, the date range should be aligned to
// the month, starting at the first and ending on the last day of the month.
DateRange date_range = 3;
@@ -412,17 +417,9 @@ message Cohort {
// Settings of a cohort report.
message CohortReportSettings {
- // If true, accumulates the result from first visit day to the end day.
+ // If true, accumulates the result from first visit day to the end day. Not
+ // supported in `RunReportRequest`.
bool accumulate = 1;
-
- // If true, the report is for lifetime value report and should pivot on user
- // event.
- bool pivot_on_user_event = 2;
-
- // If some values are missing while computing ratios, we want to compute the
- // ratios only based on non-missing values.
- // This field should be set to true only for a totals request.
- bool missing_value_as_zero = 4;
}
// Describes date range for a cohort report.
@@ -462,27 +459,41 @@ message ResponseMetaData {
bool data_loss_from_other_row = 3;
}
-// Describes the metric column in the report.
+// Describes a dimension column in the report. Dimensions requested in a report
+// produce column entries within rows and DimensionHeaders. However, dimensions
+// used exclusively within filters or expressions do not produce columns in a
+// report; correspondingly, those dimensions do not produce headers.
+message DimensionHeader {
+ // The dimension's name.
+ string name = 1;
+}
+
+// Describes a metric column in the report. Visible metrics requested in a
+// report produce column entries within rows and MetricHeaders. However,
+// metrics used exclusively within filters or expressions do not produce columns
+// in a report; correspondingly, those metrics do not produce headers.
message MetricHeader {
- // Metric name.
+ // The metric's name.
string name = 1;
- // Metric data type.
+ // The metric's data type.
MetricType type = 2;
}
-// Dimensions' values in a pivot.
+// Dimensions' values in a single pivot.
message PivotHeader {
// The size is the same as the cardinality of the corresponding dimension
// combinations.
- repeated DimensionHeader dimension_headers = 1;
+ repeated PivotDimensionHeader pivot_dimension_headers = 1;
- // The cardinality of the pivot as if offset = 0 and limit = -1.
+ // The cardinality of the pivot as if offset = 0 and limit = -1. The total
+ // number of rows for this pivot's fields regardless of how the parameters
+ // offset and limit are specified in the request.
int32 row_count = 2;
}
-// The header for the dimensions.
-message DimensionHeader {
+// Summarizes dimension values from a row for this pivot.
+message PivotDimensionHeader {
// Values of multiple dimensions in a pivot.
repeated DimensionValue dimension_values = 1;
}
@@ -583,6 +594,54 @@ message QuotaStatus {
int32 remaining = 2;
}
+// Explains a dimension.
+message DimensionMetadata {
+ // This dimension's name. Useable in [Dimension](#Dimension)'s `name`. For
+ // example, `eventName`.
+ string api_name = 1;
+
+ // This dimension's name within the Google Analytics user interface. For
+ // example, `Event name`.
+ string ui_name = 2;
+
+ // Description of how this dimension is used and calculated.
+ string description = 3;
+
+ // Still usable but deprecated names for this dimension. If populated, this
+ // dimension is available by either `apiName` or one of `deprecatedApiNames`
+ // for a period of time. After the deprecation period, the dimension will be
+ // available only by `apiName`.
+ repeated string deprecated_api_names = 4;
+}
+
+// Explains a metric.
+message MetricMetadata {
+ // A metric name. Useable in [Metric](#Metric)'s `name`. For example,
+ // `eventCount`.
+ string api_name = 1;
+
+ // This metric's name within the Google Analytics user interface. For example,
+ // `Event count`.
+ string ui_name = 2;
+
+ // Description of how this metric is used and calculated.
+ string description = 3;
+
+ // Still usable but deprecated names for this metric. If populated, this
+ // metric is available by either `apiName` or one of `deprecatedApiNames`
+ // for a period of time. After the deprecation period, the metric will be
+ // available only by `apiName`.
+ repeated string deprecated_api_names = 4;
+
+ // The type of this metric.
+ MetricType type = 5;
+
+ // The mathematical expression for this derived metric. Can be used in
+ // [Metric](#Metric)'s `expression` field for equivalent reports. Most metrics
+ // are not expressions, and for non-expressions, this field is empty.
+ string expression = 6;
+}
+
// Represents aggregation of metrics.
enum MetricAggregation {
// Unspecified operator.
@@ -601,7 +660,7 @@ enum MetricAggregation {
COUNT = 4;
}
-// Type of a metric value.
+// A metric's value type.
enum MetricType {
// Unspecified type.
METRIC_TYPE_UNSPECIFIED = 0;
@@ -611,4 +670,10 @@ enum MetricType {
// Floating point type.
TYPE_FLOAT = 2;
+
+ // A duration of seconds; a special floating point type.
+ TYPE_SECONDS = 4;
+
+ // An amount of money; a special floating point type.
+ TYPE_CURRENCY = 9;
}
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index 3fcd8750..38c71a4b 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -14,7 +14,7 @@