diff --git a/README.md b/README.md index c379b024..72579f0e 100644 --- a/README.md +++ b/README.md @@ -28,11 +28,11 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle, add this to your dependencies ```Groovy -compile 'com.google.analytics:google-analytics-data:0.1.1' +compile 'com.google.analytics:google-analytics-data:0.1.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.1.1" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.1.0" ``` [//]: # ({x-version-update-end}) diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index ac737b41..943121d4 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -34,8 +34,8 @@ *
*
* try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- * RunReportRequest request = RunReportRequest.newBuilder().build();
- * RunReportResponse response = alphaAnalyticsDataClient.runReport(request);
+ * MetadataName name = MetadataName.ofMetadataName();
+ * Metadata response = alphaAnalyticsDataClient.getMetadata(name);
* }
*
*
@@ -319,6 +319,106 @@ public final BatchRunPivotReportsResponse batchRunPivotReports(
return stub.batchRunPivotReportsCallable();
}
+ // 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.
+ *
+ * Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * MetadataName name = MetadataName.ofMetadataName();
+ * Metadata response = alphaAnalyticsDataClient.getMetadata(name);
+ * }
+ *
+ *
+ * @param name Required. The name of the metadata to retrieve. Either has the form 'metadata' or
+ * 'properties/{property}/metadata'. This name field is specified in the URL path and not URL
+ * parameters. Property is a numeric Google Analytics App + Web Property Id.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Metadata getMetadata(MetadataName name) {
+ GetMetadataRequest request =
+ GetMetadataRequest.newBuilder().setName(name == null ? null : name.toString()).build();
+ return getMetadata(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.
+ *
+ * Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * MetadataName name = MetadataName.ofMetadataName();
+ * Metadata response = alphaAnalyticsDataClient.getMetadata(name.toString());
+ * }
+ *
+ *
+ * @param name Required. The name of the metadata to retrieve. Either has the form 'metadata' or
+ * 'properties/{property}/metadata'. This name field is specified in the URL path and not URL
+ * parameters. Property is a numeric Google Analytics App + Web Property Id.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Metadata getMetadata(String name) {
+ GetMetadataRequest request = GetMetadataRequest.newBuilder().setName(name).build();
+ return getMetadata(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.
+ *
+ * Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * MetadataName name = MetadataName.ofMetadataName();
+ * GetMetadataRequest request = GetMetadataRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * Metadata response = alphaAnalyticsDataClient.getMetadata(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 Metadata getMetadata(GetMetadataRequest request) {
+ return getMetadataCallable().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.
+ *
+ * Sample code: + * + *
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * MetadataName name = MetadataName.ofMetadataName();
+ * GetMetadataRequest request = GetMetadataRequest.newBuilder()
+ * .setName(name.toString())
+ * .build();
+ * ApiFuture<Metadata> future = alphaAnalyticsDataClient.getMetadataCallable().futureCall(request);
+ * // Do something
+ * Metadata response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThe builder of this class is recursive, so contained classes are themselves builders. When * build() is called, the tree of builders is called to create the complete settings object. * - *
For example, to set the total timeout of runReport to 30 seconds: + *
For example, to set the total timeout of getMetadata to 30 seconds: * *
*
* AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
* AlphaAnalyticsDataSettings.newBuilder();
* alphaAnalyticsDataSettingsBuilder
- * .runReportSettings()
+ * .getMetadataSettings()
* .setRetrySettings(
- * alphaAnalyticsDataSettingsBuilder.runReportSettings().getRetrySettings().toBuilder()
+ * alphaAnalyticsDataSettingsBuilder.getMetadataSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AlphaAnalyticsDataSettings alphaAnalyticsDataSettings = alphaAnalyticsDataSettingsBuilder.build();
@@ -86,6 +86,11 @@ public UnaryCallSettings runPivot
return ((AlphaAnalyticsDataStubSettings) getStubSettings()).batchRunPivotReportsSettings();
}
+ /** Returns the object with the settings used for calls to getMetadata. */
+ public UnaryCallSettings getMetadataSettings() {
+ return ((AlphaAnalyticsDataStubSettings) getStubSettings()).getMetadataSettings();
+ }
+
public static final AlphaAnalyticsDataSettings create(AlphaAnalyticsDataStubSettings stub)
throws IOException {
return new AlphaAnalyticsDataSettings.Builder(stub.toBuilder()).build();
@@ -206,6 +211,11 @@ public UnaryCallSettings.Builder runReportS
return getStubSettingsBuilder().batchRunPivotReportsSettings();
}
+ /** Returns the builder for the settings used for calls to getMetadata. */
+ public UnaryCallSettings.Builder getMetadataSettings() {
+ return getStubSettingsBuilder().getMetadataSettings();
+ }
+
@Override
public AlphaAnalyticsDataSettings build() throws IOException {
return new AlphaAnalyticsDataSettings(this);
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
index 8376daf5..f76c1e60 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
@@ -28,8 +28,8 @@
*
*
* try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- * RunReportRequest request = RunReportRequest.newBuilder().build();
- * RunReportResponse response = alphaAnalyticsDataClient.runReport(request);
+ * MetadataName name = MetadataName.ofMetadataName();
+ * Metadata response = alphaAnalyticsDataClient.getMetadata(name);
* }
*
*
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java
index 70df052c..1fc623a0 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java
@@ -19,6 +19,8 @@
import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse;
import com.google.analytics.data.v1alpha.BatchRunReportsRequest;
import com.google.analytics.data.v1alpha.BatchRunReportsResponse;
+import com.google.analytics.data.v1alpha.GetMetadataRequest;
+import com.google.analytics.data.v1alpha.Metadata;
import com.google.analytics.data.v1alpha.RunPivotReportRequest;
import com.google.analytics.data.v1alpha.RunPivotReportResponse;
import com.google.analytics.data.v1alpha.RunReportRequest;
@@ -55,6 +57,10 @@ public UnaryCallable batchRunRe
throw new UnsupportedOperationException("Not implemented: batchRunPivotReportsCallable()");
}
+ public UnaryCallable getMetadataCallable() {
+ throw new UnsupportedOperationException("Not implemented: getMetadataCallable()");
+ }
+
@Override
public abstract void close();
}
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
index c10a91ea..6c7777a0 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
@@ -19,6 +19,8 @@
import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse;
import com.google.analytics.data.v1alpha.BatchRunReportsRequest;
import com.google.analytics.data.v1alpha.BatchRunReportsResponse;
+import com.google.analytics.data.v1alpha.GetMetadataRequest;
+import com.google.analytics.data.v1alpha.Metadata;
import com.google.analytics.data.v1alpha.RunPivotReportRequest;
import com.google.analytics.data.v1alpha.RunPivotReportResponse;
import com.google.analytics.data.v1alpha.RunReportRequest;
@@ -62,16 +64,16 @@
* The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
- *
For example, to set the total timeout of runReport to 30 seconds:
+ *
For example, to set the total timeout of getMetadata to 30 seconds:
*
*
*
* AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
* AlphaAnalyticsDataStubSettings.newBuilder();
* alphaAnalyticsDataSettingsBuilder
- * .runReportSettings()
+ * .getMetadataSettings()
* .setRetrySettings(
- * alphaAnalyticsDataSettingsBuilder.runReportSettings().getRetrySettings().toBuilder()
+ * alphaAnalyticsDataSettingsBuilder.getMetadataSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* AlphaAnalyticsDataStubSettings alphaAnalyticsDataSettings = alphaAnalyticsDataSettingsBuilder.build();
@@ -95,6 +97,7 @@ public class AlphaAnalyticsDataStubSettings extends StubSettings
batchRunPivotReportsSettings;
+ private final UnaryCallSettings getMetadataSettings;
/** Returns the object with the settings used for calls to runReport. */
public UnaryCallSettings runReportSettings() {
@@ -118,6 +121,11 @@ public UnaryCallSettings runPivot
return batchRunPivotReportsSettings;
}
+ /** Returns the object with the settings used for calls to getMetadata. */
+ public UnaryCallSettings getMetadataSettings() {
+ return getMetadataSettings;
+ }
+
@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
public AlphaAnalyticsDataStub createStub() throws IOException {
if (getTransportChannelProvider()
@@ -191,6 +199,7 @@ protected AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOExcep
runPivotReportSettings = settingsBuilder.runPivotReportSettings().build();
batchRunReportsSettings = settingsBuilder.batchRunReportsSettings().build();
batchRunPivotReportsSettings = settingsBuilder.batchRunPivotReportsSettings().build();
+ getMetadataSettings = settingsBuilder.getMetadataSettings().build();
}
/** Builder for AlphaAnalyticsDataStubSettings. */
@@ -206,6 +215,7 @@ public static class Builder
private final UnaryCallSettings.Builder<
BatchRunPivotReportsRequest, BatchRunPivotReportsResponse>
batchRunPivotReportsSettings;
+ private final UnaryCallSettings.Builder getMetadataSettings;
private static final ImmutableMap>
RETRYABLE_CODE_DEFINITIONS;
@@ -213,6 +223,9 @@ public static class Builder
static {
ImmutableMap.Builder> definitions =
ImmutableMap.builder();
+ definitions.put(
+ "retry_policy_1_codes",
+ ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNKNOWN)));
definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList()));
definitions.put(
"no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList()));
@@ -224,6 +237,17 @@ public static class Builder
static {
ImmutableMap.Builder definitions = ImmutableMap.builder();
RetrySettings settings = null;
+ settings =
+ RetrySettings.newBuilder()
+ .setInitialRetryDelay(Duration.ofMillis(1000L))
+ .setRetryDelayMultiplier(1.3)
+ .setMaxRetryDelay(Duration.ofMillis(60000L))
+ .setInitialRpcTimeout(Duration.ofMillis(60000L))
+ .setRpcTimeoutMultiplier(1.0)
+ .setMaxRpcTimeout(Duration.ofMillis(60000L))
+ .setTotalTimeout(Duration.ofMillis(60000L))
+ .build();
+ definitions.put("retry_policy_1_params", settings);
settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build();
definitions.put("no_retry_params", settings);
settings =
@@ -252,12 +276,15 @@ protected Builder(ClientContext clientContext) {
batchRunPivotReportsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+ getMetadataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
+
unaryMethodSettingsBuilders =
ImmutableList.>of(
runReportSettings,
runPivotReportSettings,
batchRunReportsSettings,
- batchRunPivotReportsSettings);
+ batchRunPivotReportsSettings,
+ getMetadataSettings);
initDefaults(this);
}
@@ -293,6 +320,11 @@ private static Builder initDefaults(Builder builder) {
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
+ builder
+ .getMetadataSettings()
+ .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_1_codes"))
+ .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_1_params"));
+
return builder;
}
@@ -303,13 +335,15 @@ protected Builder(AlphaAnalyticsDataStubSettings settings) {
runPivotReportSettings = settings.runPivotReportSettings.toBuilder();
batchRunReportsSettings = settings.batchRunReportsSettings.toBuilder();
batchRunPivotReportsSettings = settings.batchRunPivotReportsSettings.toBuilder();
+ getMetadataSettings = settings.getMetadataSettings.toBuilder();
unaryMethodSettingsBuilders =
ImmutableList.>of(
runReportSettings,
runPivotReportSettings,
batchRunReportsSettings,
- batchRunPivotReportsSettings);
+ batchRunPivotReportsSettings,
+ getMetadataSettings);
}
// NEXT_MAJOR_VER: remove 'throws Exception'
@@ -351,6 +385,11 @@ public UnaryCallSettings.Builder runReportS
return batchRunPivotReportsSettings;
}
+ /** Returns the builder for the settings used for calls to getMetadata. */
+ public UnaryCallSettings.Builder getMetadataSettings() {
+ return getMetadataSettings;
+ }
+
@Override
public AlphaAnalyticsDataStubSettings build() throws IOException {
return new AlphaAnalyticsDataStubSettings(this);
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java
index 61a63cb4..d5e8088a 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java
@@ -19,6 +19,8 @@
import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse;
import com.google.analytics.data.v1alpha.BatchRunReportsRequest;
import com.google.analytics.data.v1alpha.BatchRunReportsResponse;
+import com.google.analytics.data.v1alpha.GetMetadataRequest;
+import com.google.analytics.data.v1alpha.Metadata;
import com.google.analytics.data.v1alpha.RunPivotReportRequest;
import com.google.analytics.data.v1alpha.RunPivotReportResponse;
import com.google.analytics.data.v1alpha.RunReportRequest;
@@ -29,10 +31,13 @@
import com.google.api.gax.grpc.GrpcCallSettings;
import com.google.api.gax.grpc.GrpcStubCallableFactory;
import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
+import com.google.common.collect.ImmutableMap;
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
+import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;
@@ -85,6 +90,13 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub {
.setResponseMarshaller(
ProtoUtils.marshaller(BatchRunPivotReportsResponse.getDefaultInstance()))
.build();
+ private static final MethodDescriptor getMetadataMethodDescriptor =
+ MethodDescriptor.newBuilder()
+ .setType(MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/GetMetadata")
+ .setRequestMarshaller(ProtoUtils.marshaller(GetMetadataRequest.getDefaultInstance()))
+ .setResponseMarshaller(ProtoUtils.marshaller(Metadata.getDefaultInstance()))
+ .build();
private final BackgroundResource backgroundResources;
@@ -94,6 +106,7 @@ public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub {
batchRunReportsCallable;
private final UnaryCallable
batchRunPivotReportsCallable;
+ private final UnaryCallable getMetadataCallable;
private final GrpcStubCallableFactory callableFactory;
@@ -155,6 +168,19 @@ protected GrpcAlphaAnalyticsDataStub(
GrpcCallSettings.newBuilder()
.setMethodDescriptor(batchRunPivotReportsMethodDescriptor)
.build();
+ GrpcCallSettings getMetadataTransportSettings =
+ GrpcCallSettings.newBuilder()
+ .setMethodDescriptor(getMetadataMethodDescriptor)
+ .setParamsExtractor(
+ new RequestParamsExtractor() {
+ @Override
+ public Map extract(GetMetadataRequest request) {
+ ImmutableMap.Builder params = ImmutableMap.builder();
+ params.put("name", String.valueOf(request.getName()));
+ return params.build();
+ }
+ })
+ .build();
this.runReportCallable =
callableFactory.createUnaryCallable(
@@ -170,6 +196,9 @@ protected GrpcAlphaAnalyticsDataStub(
batchRunPivotReportsTransportSettings,
settings.batchRunPivotReportsSettings(),
clientContext);
+ this.getMetadataCallable =
+ callableFactory.createUnaryCallable(
+ getMetadataTransportSettings, settings.getMetadataSettings(), clientContext);
backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources());
}
@@ -191,6 +220,10 @@ public UnaryCallable batchRunRe
return batchRunPivotReportsCallable;
}
+ public UnaryCallable getMetadataCallable() {
+ return getMetadataCallable;
+ }
+
@Override
public final void close() {
shutdown();
diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java
index 2de91343..76cee39d 100644
--- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java
+++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java
@@ -222,4 +222,43 @@ public void batchRunPivotReportsExceptionTest() throws Exception {
// Expected exception
}
}
+
+ @Test
+ @SuppressWarnings("all")
+ public void getMetadataTest() {
+ MetadataName name2 = MetadataName.ofMetadataName();
+ Metadata expectedResponse = Metadata.newBuilder().setName(name2.toString()).build();
+ mockAlphaAnalyticsData.addResponse(expectedResponse);
+
+ MetadataName name = MetadataName.ofMetadataName();
+
+ Metadata actualResponse = client.getMetadata(name);
+ Assert.assertEquals(expectedResponse, actualResponse);
+
+ List actualRequests = mockAlphaAnalyticsData.getRequests();
+ Assert.assertEquals(1, actualRequests.size());
+ GetMetadataRequest actualRequest = (GetMetadataRequest) actualRequests.get(0);
+
+ Assert.assertEquals(name, MetadataName.parse(actualRequest.getName()));
+ Assert.assertTrue(
+ channelProvider.isHeaderSent(
+ ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
+ GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
+ }
+
+ @Test
+ @SuppressWarnings("all")
+ public void getMetadataExceptionTest() throws Exception {
+ StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
+ mockAlphaAnalyticsData.addException(exception);
+
+ try {
+ MetadataName name = MetadataName.ofMetadataName();
+
+ client.getMetadata(name);
+ Assert.fail("No exception raised");
+ } catch (InvalidArgumentException e) {
+ // Expected exception
+ }
+ }
}
diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java
index 5adcea6b..5343c74e 100644
--- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java
+++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java
@@ -116,4 +116,18 @@ public void batchRunPivotReports(
responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
}
}
+
+ @Override
+ public void getMetadata(GetMetadataRequest request, StreamObserver responseObserver) {
+ Object response = responses.remove();
+ if (response instanceof Metadata) {
+ requests.add(request);
+ responseObserver.onNext((Metadata) response);
+ responseObserver.onCompleted();
+ } else if (response instanceof Exception) {
+ responseObserver.onError((Exception) response);
+ } else {
+ responseObserver.onError(new IllegalArgumentException("Unrecognized response type"));
+ }
+ }
}
diff --git a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java
index 75decd5e..26d62f76 100644
--- a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java
+++ b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java
@@ -230,6 +230,52 @@ private AlphaAnalyticsDataGrpc() {}
return getBatchRunPivotReportsMethod;
}
+ private static volatile io.grpc.MethodDescriptor<
+ com.google.analytics.data.v1alpha.GetMetadataRequest,
+ com.google.analytics.data.v1alpha.Metadata>
+ getGetMetadataMethod;
+
+ @io.grpc.stub.annotations.RpcMethod(
+ fullMethodName = SERVICE_NAME + '/' + "GetMetadata",
+ requestType = com.google.analytics.data.v1alpha.GetMetadataRequest.class,
+ responseType = com.google.analytics.data.v1alpha.Metadata.class,
+ methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+ public static io.grpc.MethodDescriptor<
+ com.google.analytics.data.v1alpha.GetMetadataRequest,
+ com.google.analytics.data.v1alpha.Metadata>
+ getGetMetadataMethod() {
+ io.grpc.MethodDescriptor<
+ com.google.analytics.data.v1alpha.GetMetadataRequest,
+ com.google.analytics.data.v1alpha.Metadata>
+ getGetMetadataMethod;
+ if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) {
+ synchronized (AlphaAnalyticsDataGrpc.class) {
+ if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) {
+ AlphaAnalyticsDataGrpc.getGetMetadataMethod =
+ getGetMetadataMethod =
+ io.grpc.MethodDescriptor
+ .
+ newBuilder()
+ .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+ .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadata"))
+ .setSampledToLocalTracing(true)
+ .setRequestMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.analytics.data.v1alpha.GetMetadataRequest
+ .getDefaultInstance()))
+ .setResponseMarshaller(
+ io.grpc.protobuf.ProtoUtils.marshaller(
+ com.google.analytics.data.v1alpha.Metadata.getDefaultInstance()))
+ .setSchemaDescriptor(
+ new AlphaAnalyticsDataMethodDescriptorSupplier("GetMetadata"))
+ .build();
+ }
+ }
+ }
+ return getGetMetadataMethod;
+ }
+
/** Creates a new async stub that supports all call types for the service */
public static AlphaAnalyticsDataStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
@@ -348,6 +394,21 @@ public void batchRunPivotReports(
asyncUnimplementedUnaryCall(getBatchRunPivotReportsMethod(), responseObserver);
}
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ */
+ public void getMetadata(
+ com.google.analytics.data.v1alpha.GetMetadataRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ asyncUnimplementedUnaryCall(getGetMetadataMethod(), responseObserver);
+ }
+
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
@@ -379,6 +440,12 @@ public final io.grpc.ServerServiceDefinition bindService() {
com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest,
com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse>(
this, METHODID_BATCH_RUN_PIVOT_REPORTS)))
+ .addMethod(
+ getGetMetadataMethod(),
+ asyncUnaryCall(
+ new MethodHandlers<
+ com.google.analytics.data.v1alpha.GetMetadataRequest,
+ com.google.analytics.data.v1alpha.Metadata>(this, METHODID_GET_METADATA)))
.build();
}
}
@@ -479,6 +546,24 @@ public void batchRunPivotReports(
request,
responseObserver);
}
+
+ /**
+ *
+ *
+ *
+ * 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.
+ *
+ */
+ public void getMetadata(
+ com.google.analytics.data.v1alpha.GetMetadataRequest request,
+ io.grpc.stub.StreamObserver responseObserver) {
+ asyncUnaryCall(
+ getChannel().newCall(getGetMetadataMethod(), getCallOptions()),
+ request,
+ responseObserver);
+ }
}
/**
@@ -561,6 +646,20 @@ public com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse batchRunPi
return blockingUnaryCall(
getChannel(), 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.
+ *
+ */
+ public com.google.analytics.data.v1alpha.Metadata getMetadata(
+ com.google.analytics.data.v1alpha.GetMetadataRequest request) {
+ return blockingUnaryCall(getChannel(), getGetMetadataMethod(), getCallOptions(), request);
+ }
}
/**
@@ -649,12 +748,29 @@ 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.
+ *
+ */
+ public com.google.common.util.concurrent.ListenableFuture<
+ com.google.analytics.data.v1alpha.Metadata>
+ getMetadata(com.google.analytics.data.v1alpha.GetMetadataRequest request) {
+ return futureUnaryCall(
+ getChannel().newCall(getGetMetadataMethod(), 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_METADATA = 4;
private static final class MethodHandlers
implements io.grpc.stub.ServerCalls.UnaryMethod,
@@ -700,6 +816,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv
com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse>)
responseObserver);
break;
+ case METHODID_GET_METADATA:
+ serviceImpl.getMetadata(
+ (com.google.analytics.data.v1alpha.GetMetadataRequest) request,
+ (io.grpc.stub.StreamObserver)
+ responseObserver);
+ break;
default:
throw new AssertionError();
}
@@ -768,6 +890,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() {
.addMethod(getRunPivotReportMethod())
.addMethod(getBatchRunReportsMethod())
.addMethod(getBatchRunPivotReportsMethod())
+ .addMethod(getGetMetadataMethod())
.build();
}
}
diff --git a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml
new file mode 100644
index 00000000..6065ca43
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml
@@ -0,0 +1,61 @@
+
+
+
+
+ 7012
+ com/google/analytics/data/v1alpha/*OrBuilder
+ * get*(*)
+
+
+ 7012
+ com/google/analytics/data/v1alpha/*OrBuilder
+ boolean contains*(*)
+
+
+ 7012
+ com/google/analytics/data/v1alpha/*OrBuilder
+ boolean has*(*)
+
+
+
+
+ 6011
+ com/google/analytics/data/v1alpha/DimensionHeader
+ DIMENSION_VALUES_FIELD_NUMBER
+
+
+ 7002
+ com/google/analytics/data/v1alpha/DimensionHeader*
+ * *DimensionValues*(*)
+
+
+ 6011
+ com/google/analytics/data/v1alpha/PivotHeader
+ DIMENSION_HEADERS_FIELD_NUMBER
+
+
+ 7002
+ com/google/analytics/data/v1alpha/PivotHeader*
+ * *DimensionHeaders*(*)
+
+
+ 6011
+ com/google/analytics/data/v1alpha/CohortReportSettings
+ MISSING_VALUE_AS_ZERO_FIELD_NUMBER
+
+
+ 6011
+ com/google/analytics/data/v1alpha/CohortReportSettings
+ PIVOT_ON_USER_EVENT_FIELD_NUMBER
+
+
+ 7002
+ com/google/analytics/data/v1alpha/CohortReportSettings*
+ * *MissingValueAsZero*(*)
+
+
+ 7002
+ com/google/analytics/data/v1alpha/CohortReportSettings*
+ * *PivotOnUserEvent*(*)
+
+
diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml
index 07b49322..04cfbac4 100644
--- a/proto-google-analytics-data-v1alpha/pom.xml
+++ b/proto-google-analytics-data-v1alpha/pom.xml
@@ -21,6 +21,14 @@
com.google.api.grpc
proto-google-common-protos
+
+ com.google.guava
+ guava
+
+
+ com.google.api
+ api-common
+
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java
index 94baf002..1a14ae53 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java
@@ -27,6 +27,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_analytics_data_v1alpha_Metadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
@@ -59,6 +63,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor;
static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
@@ -72,98 +80,116 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "s_data_api.proto\022\035google.analytics.data."
+ "v1alpha\032(google/analytics/data/v1alpha/d"
+ "ata.proto\032\034google/api/annotations.proto\032"
- + "\027google/api/client.proto\"\311\005\n\020RunReportRe"
- + "quest\0225\n\006entity\030\001 \001(\0132%.google.analytics"
- + ".data.v1alpha.Entity\022<\n\ndimensions\030\002 \003(\013"
- + "2(.google.analytics.data.v1alpha.Dimensi"
- + "on\0226\n\007metrics\030\003 \003(\0132%.google.analytics.d"
- + "ata.v1alpha.Metric\022=\n\013date_ranges\030\004 \003(\0132"
- + "(.google.analytics.data.v1alpha.DateRang"
- + "e\022\016\n\006offset\030\005 \001(\003\022\r\n\005limit\030\006 \001(\003\022M\n\023metr"
- + "ic_aggregations\030\007 \003(\01620.google.analytics"
- + ".data.v1alpha.MetricAggregation\022I\n\020dimen"
- + "sion_filter\030\010 \001(\0132/.google.analytics.dat"
- + "a.v1alpha.FilterExpression\022F\n\rmetric_fil"
- + "ter\030\t \001(\0132/.google.analytics.data.v1alph"
- + "a.FilterExpression\0229\n\torder_bys\030\n \003(\0132&."
- + "google.analytics.data.v1alpha.OrderBy\022\025\n"
- + "\rcurrency_code\030\013 \001(\t\022>\n\013cohort_spec\030\014 \001("
- + "\0132).google.analytics.data.v1alpha.Cohort"
- + "Spec\022\027\n\017keep_empty_rows\030\r \001(\010\022\035\n\025return_"
- + "property_quota\030\016 \001(\010\"\263\003\n\021RunReportRespon"
- + "se\022C\n\016metric_headers\030\001 \003(\0132+.google.anal"
- + "ytics.data.v1alpha.MetricHeader\0220\n\004rows\030"
- + "\002 \003(\0132\".google.analytics.data.v1alpha.Ro"
- + "w\0222\n\006totals\030\010 \003(\0132\".google.analytics.dat"
- + "a.v1alpha.Row\0224\n\010maximums\030\t \003(\0132\".google"
- + ".analytics.data.v1alpha.Row\0224\n\010minimums\030"
- + "\n \003(\0132\".google.analytics.data.v1alpha.Ro"
- + "w\022A\n\010metadata\030\006 \001(\0132/.google.analytics.d"
- + "ata.v1alpha.ResponseMetaData\022D\n\016property"
- + "_quota\030\007 \001(\0132,.google.analytics.data.v1a"
- + "lpha.PropertyQuota\"\333\004\n\025RunPivotReportReq"
- + "uest\0225\n\006entity\030\001 \001(\0132%.google.analytics."
- + "data.v1alpha.Entity\022<\n\ndimensions\030\002 \003(\0132"
- + "(.google.analytics.data.v1alpha.Dimensio"
- + "n\0226\n\007metrics\030\003 \003(\0132%.google.analytics.da"
- + "ta.v1alpha.Metric\022I\n\020dimension_filter\030\004 "
- + "\001(\0132/.google.analytics.data.v1alpha.Filt"
- + "erExpression\022F\n\rmetric_filter\030\005 \001(\0132/.go"
- + "ogle.analytics.data.v1alpha.FilterExpres"
- + "sion\0224\n\006pivots\030\006 \003(\0132$.google.analytics."
- + "data.v1alpha.Pivot\022=\n\013date_ranges\030\007 \003(\0132"
- + "(.google.analytics.data.v1alpha.DateRang"
- + "e\022\025\n\rcurrency_code\030\010 \001(\t\022>\n\013cohort_spec\030"
- + "\t \001(\0132).google.analytics.data.v1alpha.Co"
- + "hortSpec\022\027\n\017keep_empty_rows\030\n \001(\010\022\035\n\025ret"
- + "urn_property_quota\030\013 \001(\010\"\223\003\n\026RunPivotRep"
- + "ortResponse\022A\n\rpivot_headers\030\001 \003(\0132*.goo"
- + "gle.analytics.data.v1alpha.PivotHeader\022C"
- + "\n\016metric_headers\030\002 \003(\0132+.google.analytic"
- + "s.data.v1alpha.MetricHeader\0220\n\004rows\030\003 \003("
- + "\0132\".google.analytics.data.v1alpha.Row\0226\n"
- + "\naggregates\030\004 \003(\0132\".google.analytics.dat"
- + "a.v1alpha.Row\022A\n\010metadata\030\005 \001(\0132/.google"
- + ".analytics.data.v1alpha.ResponseMetaData"
- + "\022D\n\016property_quota\030\006 \001(\0132,.google.analyt"
- + "ics.data.v1alpha.PropertyQuota\"\222\001\n\026Batch"
- + "RunReportsRequest\0225\n\006entity\030\001 \001(\0132%.goog"
- + "le.analytics.data.v1alpha.Entity\022A\n\010requ"
- + "ests\030\002 \003(\0132/.google.analytics.data.v1alp"
- + "ha.RunReportRequest\"\\\n\027BatchRunReportsRe"
- + "sponse\022A\n\007reports\030\001 \003(\01320.google.analyti"
- + "cs.data.v1alpha.RunReportResponse\"\234\001\n\033Ba"
- + "tchRunPivotReportsRequest\0225\n\006entity\030\001 \001("
- + "\0132%.google.analytics.data.v1alpha.Entity"
- + "\022F\n\010requests\030\002 \003(\01324.google.analytics.da"
- + "ta.v1alpha.RunPivotReportRequest\"l\n\034Batc"
- + "hRunPivotReportsResponse\022L\n\rpivot_report"
- + "s\030\001 \003(\01325.google.analytics.data.v1alpha."
- + "RunPivotReportResponse2\254\006\n\022AlphaAnalytic"
- + "sData\022\215\001\n\tRunReport\022/.google.analytics.d"
- + "ata.v1alpha.RunReportRequest\0320.google.an"
- + "alytics.data.v1alpha.RunReportResponse\"\035"
- + "\202\323\344\223\002\027\"\022/v1alpha:runReport:\001*\022\241\001\n\016RunPiv"
- + "otReport\0224.google.analytics.data.v1alpha"
- + ".RunPivotReportRequest\0325.google.analytic"
- + "s.data.v1alpha.RunPivotReportResponse\"\"\202"
- + "\323\344\223\002\034\"\027/v1alpha:runPivotReport:\001*\022\245\001\n\017Ba"
- + "tchRunReports\0225.google.analytics.data.v1"
- + "alpha.BatchRunReportsRequest\0326.google.an"
- + "alytics.data.v1alpha.BatchRunReportsResp"
- + "onse\"#\202\323\344\223\002\035\"\030/v1alpha:batchRunReports:\001"
- + "*\022\271\001\n\024BatchRunPivotReports\022:.google.anal"
+ + "\027google/api/client.proto\032\037google/api/fie"
+ + "ld_behavior.proto\032\031google/api/resource.p"
+ + "roto\"\364\001\n\010Metadata\022\014\n\004name\030\003 \001(\t\022D\n\ndimen"
+ + "sions\030\001 \003(\01320.google.analytics.data.v1al"
+ + "pha.DimensionMetadata\022>\n\007metrics\030\002 \003(\0132-"
+ + ".google.analytics.data.v1alpha.MetricMet"
+ + "adata:T\352AQ\n%analyticsdata.googleapis.com"
+ + "/Metadata\022\010metadata\022\036properties/{propert"
+ + "y}/metadata\"\311\005\n\020RunReportRequest\0225\n\006enti"
+ + "ty\030\001 \001(\0132%.google.analytics.data.v1alpha"
+ + ".Entity\022<\n\ndimensions\030\002 \003(\0132(.google.ana"
+ + "lytics.data.v1alpha.Dimension\0226\n\007metrics"
+ + "\030\003 \003(\0132%.google.analytics.data.v1alpha.M"
+ + "etric\022=\n\013date_ranges\030\004 \003(\0132(.google.anal"
+ + "ytics.data.v1alpha.DateRange\022\016\n\006offset\030\005"
+ + " \001(\003\022\r\n\005limit\030\006 \001(\003\022M\n\023metric_aggregatio"
+ + "ns\030\007 \003(\01620.google.analytics.data.v1alpha"
+ + ".MetricAggregation\022I\n\020dimension_filter\030\010"
+ + " \001(\0132/.google.analytics.data.v1alpha.Fil"
+ + "terExpression\022F\n\rmetric_filter\030\t \001(\0132/.g"
+ + "oogle.analytics.data.v1alpha.FilterExpre"
+ + "ssion\0229\n\torder_bys\030\n \003(\0132&.google.analyt"
+ + "ics.data.v1alpha.OrderBy\022\025\n\rcurrency_cod"
+ + "e\030\013 \001(\t\022>\n\013cohort_spec\030\014 \001(\0132).google.an"
+ + "alytics.data.v1alpha.CohortSpec\022\027\n\017keep_"
+ + "empty_rows\030\r \001(\010\022\035\n\025return_property_quot"
+ + "a\030\016 \001(\010\"\376\003\n\021RunReportResponse\022I\n\021dimensi"
+ + "on_headers\030\013 \003(\0132..google.analytics.data"
+ + ".v1alpha.DimensionHeader\022C\n\016metric_heade"
+ + "rs\030\001 \003(\0132+.google.analytics.data.v1alpha"
+ + ".MetricHeader\0220\n\004rows\030\002 \003(\0132\".google.ana"
+ + "lytics.data.v1alpha.Row\0222\n\006totals\030\010 \003(\0132"
+ + "\".google.analytics.data.v1alpha.Row\0224\n\010m"
+ + "aximums\030\t \003(\0132\".google.analytics.data.v1"
+ + "alpha.Row\0224\n\010minimums\030\n \003(\0132\".google.ana"
+ + "lytics.data.v1alpha.Row\022A\n\010metadata\030\006 \001("
+ + "\0132/.google.analytics.data.v1alpha.Respon"
+ + "seMetaData\022D\n\016property_quota\030\007 \001(\0132,.goo"
+ + "gle.analytics.data.v1alpha.PropertyQuota"
+ + "\"\333\004\n\025RunPivotReportRequest\0225\n\006entity\030\001 \001"
+ + "(\0132%.google.analytics.data.v1alpha.Entit"
+ + "y\022<\n\ndimensions\030\002 \003(\0132(.google.analytics"
+ + ".data.v1alpha.Dimension\0226\n\007metrics\030\003 \003(\013"
+ + "2%.google.analytics.data.v1alpha.Metric\022"
+ + "I\n\020dimension_filter\030\004 \001(\0132/.google.analy"
+ + "tics.data.v1alpha.FilterExpression\022F\n\rme"
+ + "tric_filter\030\005 \001(\0132/.google.analytics.dat"
+ + "a.v1alpha.FilterExpression\0224\n\006pivots\030\006 \003"
+ + "(\0132$.google.analytics.data.v1alpha.Pivot"
+ + "\022=\n\013date_ranges\030\007 \003(\0132(.google.analytics"
+ + ".data.v1alpha.DateRange\022\025\n\rcurrency_code"
+ + "\030\010 \001(\t\022>\n\013cohort_spec\030\t \001(\0132).google.ana"
+ + "lytics.data.v1alpha.CohortSpec\022\027\n\017keep_e"
+ + "mpty_rows\030\n \001(\010\022\035\n\025return_property_quota"
+ + "\030\013 \001(\010\"\336\003\n\026RunPivotReportResponse\022A\n\rpiv"
+ + "ot_headers\030\001 \003(\0132*.google.analytics.data"
+ + ".v1alpha.PivotHeader\022I\n\021dimension_header"
+ + "s\030\007 \003(\0132..google.analytics.data.v1alpha."
+ + "DimensionHeader\022C\n\016metric_headers\030\002 \003(\0132"
+ + "+.google.analytics.data.v1alpha.MetricHe"
+ + "ader\0220\n\004rows\030\003 \003(\0132\".google.analytics.da"
+ + "ta.v1alpha.Row\0226\n\naggregates\030\004 \003(\0132\".goo"
+ + "gle.analytics.data.v1alpha.Row\022A\n\010metada"
+ + "ta\030\005 \001(\0132/.google.analytics.data.v1alpha"
+ + ".ResponseMetaData\022D\n\016property_quota\030\006 \001("
+ + "\0132,.google.analytics.data.v1alpha.Proper"
+ + "tyQuota\"\222\001\n\026BatchRunReportsRequest\0225\n\006en"
+ + "tity\030\001 \001(\0132%.google.analytics.data.v1alp"
+ + "ha.Entity\022A\n\010requests\030\002 \003(\0132/.google.ana"
+ + "lytics.data.v1alpha.RunReportRequest\"\\\n\027"
+ + "BatchRunReportsResponse\022A\n\007reports\030\001 \003(\013"
+ + "20.google.analytics.data.v1alpha.RunRepo"
+ + "rtResponse\"\234\001\n\033BatchRunPivotReportsReque"
+ + "st\0225\n\006entity\030\001 \001(\0132%.google.analytics.da"
+ + "ta.v1alpha.Entity\022F\n\010requests\030\002 \003(\01324.go"
+ + "ogle.analytics.data.v1alpha.RunPivotRepo"
+ + "rtRequest\"l\n\034BatchRunPivotReportsRespons"
+ + "e\022L\n\rpivot_reports\030\001 \003(\01325.google.analyt"
+ + "ics.data.v1alpha.RunPivotReportResponse\""
+ + "Q\n\022GetMetadataRequest\022;\n\004name\030\001 \001(\tB-\340A\002"
+ + "\372A\'\n%analyticsdata.googleapis.com/Metada"
+ + "ta2\352\007\n\022AlphaAnalyticsData\022\215\001\n\tRunReport\022"
+ + "/.google.analytics.data.v1alpha.RunRepor"
+ + "tRequest\0320.google.analytics.data.v1alpha"
+ + ".RunReportResponse\"\035\202\323\344\223\002\027\"\022/v1alpha:run"
+ + "Report:\001*\022\241\001\n\016RunPivotReport\0224.google.an"
+ + "alytics.data.v1alpha.RunPivotReportReque"
+ + "st\0325.google.analytics.data.v1alpha.RunPi"
+ + "votReportResponse\"\"\202\323\344\223\002\034\"\027/v1alpha:runP"
+ + "ivotReport:\001*\022\245\001\n\017BatchRunReports\0225.goog"
+ + "le.analytics.data.v1alpha.BatchRunReport"
+ + "sRequest\0326.google.analytics.data.v1alpha"
+ + ".BatchRunReportsResponse\"#\202\323\344\223\002\035\"\030/v1alp"
+ + "ha:batchRunReports:\001*\022\271\001\n\024BatchRunPivotR"
+ + "eports\022:.google.analytics.data.v1alpha.B"
+ + "atchRunPivotReportsRequest\032;.google.anal"
+ "ytics.data.v1alpha.BatchRunPivotReportsR"
- + "equest\032;.google.analytics.data.v1alpha.B"
- + "atchRunPivotReportsResponse\"(\202\323\344\223\002\"\"\035/v1"
- + "alpha:batchRunPivotReports:\001*\032~\312A\034analyt"
- + "icsdata.googleapis.com\322A\\https://www.goo"
- + "gleapis.com/auth/analytics,https://www.g"
- + "oogleapis.com/auth/analytics.readonlyB\177\n"
- + "!com.google.analytics.data.v1alphaB\025Anal"
- + "yticsDataApiProtoP\001ZAgoogle.golang.org/g"
- + "enproto/googleapis/analytics/data/v1alph"
- + "a;datab\006proto3"
+ + "esponse\"(\202\323\344\223\002\"\"\035/v1alpha:batchRunPivotR"
+ + "eports:\001*\022\273\001\n\013GetMetadata\0221.google.analy"
+ + "tics.data.v1alpha.GetMetadataRequest\032\'.g"
+ + "oogle.analytics.data.v1alpha.Metadata\"P\202"
+ + "\323\344\223\002C\022\030/v1alpha/{name=metadata}Z\'\022%/v1al"
+ + "pha/{name=properties/*/metadata}\332A\004name\032"
+ + "~\312A\034analyticsdata.googleapis.com\322A\\https"
+ + "://www.googleapis.com/auth/analytics,htt"
+ + "ps://www.googleapis.com/auth/analytics.r"
+ + "eadonlyB\177\n!com.google.analytics.data.v1a"
+ + "lphaB\025AnalyticsDataApiProtoP\001ZAgoogle.go"
+ + "lang.org/genproto/googleapis/analytics/d"
+ + "ata/v1alpha;datab\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -172,9 +198,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(),
com.google.api.AnnotationsProto.getDescriptor(),
com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.api.ResourceProto.getDescriptor(),
});
- internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor =
+ internal_static_google_analytics_data_v1alpha_Metadata_descriptor =
getDescriptor().getMessageTypes().get(0);
+ internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_analytics_data_v1alpha_Metadata_descriptor,
+ new java.lang.String[] {
+ "Name", "Dimensions", "Metrics",
+ });
+ internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor =
+ getDescriptor().getMessageTypes().get(1);
internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor,
@@ -195,11 +231,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ReturnPropertyQuota",
});
internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor =
- getDescriptor().getMessageTypes().get(1);
+ getDescriptor().getMessageTypes().get(2);
internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor,
new java.lang.String[] {
+ "DimensionHeaders",
"MetricHeaders",
"Rows",
"Totals",
@@ -209,7 +246,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"PropertyQuota",
});
internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor =
- getDescriptor().getMessageTypes().get(2);
+ getDescriptor().getMessageTypes().get(3);
internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor,
@@ -227,15 +264,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"ReturnPropertyQuota",
});
internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor =
- getDescriptor().getMessageTypes().get(3);
+ getDescriptor().getMessageTypes().get(4);
internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor,
new java.lang.String[] {
- "PivotHeaders", "MetricHeaders", "Rows", "Aggregates", "Metadata", "PropertyQuota",
+ "PivotHeaders",
+ "DimensionHeaders",
+ "MetricHeaders",
+ "Rows",
+ "Aggregates",
+ "Metadata",
+ "PropertyQuota",
});
internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor =
- getDescriptor().getMessageTypes().get(4);
+ getDescriptor().getMessageTypes().get(5);
internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor,
@@ -243,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Entity", "Requests",
});
internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor =
- getDescriptor().getMessageTypes().get(5);
+ getDescriptor().getMessageTypes().get(6);
internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor,
@@ -251,7 +294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Reports",
});
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor =
- getDescriptor().getMessageTypes().get(6);
+ getDescriptor().getMessageTypes().get(7);
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor,
@@ -259,23 +302,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
"Entity", "Requests",
});
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor =
- getDescriptor().getMessageTypes().get(7);
+ getDescriptor().getMessageTypes().get(8);
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable =
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor,
new java.lang.String[] {
"PivotReports",
});
+ internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor,
+ new java.lang.String[] {
+ "Name",
+ });
com.google.protobuf.ExtensionRegistry registry =
com.google.protobuf.ExtensionRegistry.newInstance();
registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
registry.add(com.google.api.AnnotationsProto.http);
+ registry.add(com.google.api.ClientProto.methodSignature);
registry.add(com.google.api.ClientProto.oauthScopes);
+ registry.add(com.google.api.ResourceProto.resource);
+ registry.add(com.google.api.ResourceProto.resourceReference);
com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
descriptor, registry);
com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor();
com.google.api.AnnotationsProto.getDescriptor();
com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.api.ResourceProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java
index 8c328170..6d281ab5 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java
@@ -144,7 +144,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
*
*
* 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();
- mutable_bitField0_ |= 0x00000001;
- }
- dimensionValues_.add(
- input.readMessage(
- com.google.analytics.data.v1alpha.DimensionValue.parser(),
- extensionRegistry));
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
break;
}
default:
@@ -98,9 +94,6 @@ private DimensionHeader(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
- if (((mutable_bitField0_ & 0x00000001) != 0)) {
- dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_);
- }
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -121,74 +114,53 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.analytics.data.v1alpha.DimensionHeader.Builder.class);
}
- public static final int DIMENSION_VALUES_FIELD_NUMBER = 1;
- private java.util.List dimensionValues_;
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
/**
*
*
*
- * 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.List getDimensionValuesList() {
- return dimensionValues_;
- }
- /**
+ * string 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 dimensionValues_ =
- java.util.Collections.emptyList();
-
- private void ensureDimensionValuesIsMutable() {
- if (!((bitField0_ & 0x00000001) != 0)) {
- dimensionValues_ =
- new java.util.ArrayList(
- dimensionValues_);
- bitField0_ |= 0x00000001;
- }
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.analytics.data.v1alpha.DimensionValue,
- com.google.analytics.data.v1alpha.DimensionValue.Builder,
- com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
- dimensionValuesBuilder_;
-
+ private java.lang.Object name_ = "";
/**
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- public java.util.List
- getDimensionValuesList() {
- if (dimensionValuesBuilder_ == null) {
- return java.util.Collections.unmodifiableList(dimensionValues_);
- } else {
- return dimensionValuesBuilder_.getMessageList();
- }
- }
- /**
- *
- *
- *
- * 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
- getDimensionValuesBuilderList() {
- return getDimensionValuesFieldBuilder().getBuilderList();
- }
-
- private com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.analytics.data.v1alpha.DimensionValue,
- com.google.analytics.data.v1alpha.DimensionValue.Builder,
- com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
- getDimensionValuesFieldBuilder() {
- if (dimensionValuesBuilder_ == null) {
- dimensionValuesBuilder_ =
- new com.google.protobuf.RepeatedFieldBuilderV3<
- com.google.analytics.data.v1alpha.DimensionValue,
- com.google.analytics.data.v1alpha.DimensionValue.Builder,
- com.google.analytics.data.v1alpha.DimensionValueOrBuilder>(
- dimensionValues_,
- ((bitField0_ & 0x00000001) != 0),
- getParentForChildren(),
- isClean());
- dimensionValues_ = null;
- }
- return dimensionValuesBuilder_;
- }
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java
index bac6e2e7..e514389a 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java
@@ -27,51 +27,24 @@ public interface DimensionHeaderOrBuilder
*
*
*
- * Values of multiple dimensions in a pivot.
+ * The dimension's name.
*
*
- * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
- */
- java.util.List getDimensionValuesList();
- /**
- *
- *
- *
- * 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
+ implements
+ // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionMetadata)
+ com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder {
+ 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);
+ }
+
+ // Construct using com.google.analytics.data.v1alpha.DimensionMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ apiName_ = "";
+
+ uiName_ = "";
+
+ description_ = "";
+
+ deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstanceForType() {
+ return com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadata build() {
+ com.google.analytics.data.v1alpha.DimensionMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadata buildPartial() {
+ com.google.analytics.data.v1alpha.DimensionMetadata result =
+ new com.google.analytics.data.v1alpha.DimensionMetadata(this);
+ int from_bitField0_ = bitField0_;
+ result.apiName_ = apiName_;
+ result.uiName_ = uiName_;
+ result.description_ = description_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.deprecatedApiNames_ = deprecatedApiNames_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.analytics.data.v1alpha.DimensionMetadata) {
+ return mergeFrom((com.google.analytics.data.v1alpha.DimensionMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionMetadata other) {
+ if (other == com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance())
+ return this;
+ if (!other.getApiName().isEmpty()) {
+ apiName_ = other.apiName_;
+ onChanged();
+ }
+ if (!other.getUiName().isEmpty()) {
+ uiName_ = other.uiName_;
+ onChanged();
+ }
+ if (!other.getDescription().isEmpty()) {
+ description_ = other.description_;
+ onChanged();
+ }
+ if (!other.deprecatedApiNames_.isEmpty()) {
+ if (deprecatedApiNames_.isEmpty()) {
+ deprecatedApiNames_ = other.deprecatedApiNames_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.addAll(other.deprecatedApiNames_);
+ }
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.analytics.data.v1alpha.DimensionMetadata parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.analytics.data.v1alpha.DimensionMetadata) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object apiName_ = "";
+ /**
+ *
+ *
+ *
+ * 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 values) {
+ ensureDeprecatedApiNamesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_);
+ 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;
+ *
+ * @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 PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DimensionMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DimensionMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java
new file mode 100644
index 00000000..bdf23666
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java
@@ -0,0 +1,167 @@
+/*
+ * 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;
+
+public interface DimensionMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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 getDeprecatedApiNamesList();
+ /**
+ *
+ *
+ *
+ * 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/GetMetadataRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java
new file mode 100644
index 00000000..be5ad3ef
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java
@@ -0,0 +1,671 @@
+/*
+ * 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 dimension and metric metadata.
+ *
+ *
+ * Protobuf type {@code google.analytics.data.v1alpha.GetMetadataRequest}
+ */
+public final class GetMetadataRequest extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.GetMetadataRequest)
+ GetMetadataRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetMetadataRequest.newBuilder() to construct.
+ private GetMetadataRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private GetMetadataRequest() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new GetMetadataRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private GetMetadataRequest(
+ 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;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = 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 {
+ 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_GetMetadataRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.GetMetadataRequest.class,
+ com.google.analytics.data.v1alpha.GetMetadataRequest.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ 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;
+
+ @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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ 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.GetMetadataRequest)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.GetMetadataRequest other =
+ (com.google.analytics.data.v1alpha.GetMetadataRequest) obj;
+
+ if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest 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.GetMetadataRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest 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.GetMetadataRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest 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.GetMetadataRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest 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.GetMetadataRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest 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.GetMetadataRequest 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.GetMetadataRequest 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.GetMetadataRequest 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 dimension and metric metadata.
+ *
+ *
+ * Protobuf type {@code google.analytics.data.v1alpha.GetMetadataRequest}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.GetMetadataRequest)
+ com.google.analytics.data.v1alpha.GetMetadataRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.GetMetadataRequest.class,
+ com.google.analytics.data.v1alpha.GetMetadataRequest.Builder.class);
+ }
+
+ // Construct using com.google.analytics.data.v1alpha.GetMetadataRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstanceForType() {
+ return com.google.analytics.data.v1alpha.GetMetadataRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.GetMetadataRequest build() {
+ com.google.analytics.data.v1alpha.GetMetadataRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.GetMetadataRequest buildPartial() {
+ com.google.analytics.data.v1alpha.GetMetadataRequest result =
+ new com.google.analytics.data.v1alpha.GetMetadataRequest(this);
+ result.name_ = name_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.analytics.data.v1alpha.GetMetadataRequest) {
+ return mergeFrom((com.google.analytics.data.v1alpha.GetMetadataRequest) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.analytics.data.v1alpha.GetMetadataRequest other) {
+ if (other == com.google.analytics.data.v1alpha.GetMetadataRequest.getDefaultInstance())
+ return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.analytics.data.v1alpha.GetMetadataRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.analytics.data.v1alpha.GetMetadataRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ 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 {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ 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 {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = 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.GetMetadataRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.GetMetadataRequest)
+ private static final com.google.analytics.data.v1alpha.GetMetadataRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.GetMetadataRequest();
+ }
+
+ public static com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public GetMetadataRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new GetMetadataRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java
new file mode 100644
index 00000000..3badee4d
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java
@@ -0,0 +1,60 @@
+/*
+ * 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;
+
+public interface GetMetadataRequestOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.GetMetadataRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Required. The name of the metadata to retrieve. Either has the form
+ * 'metadata' or 'properties/{property}/metadata'. This name field is
+ * specified in the URL path and not URL parameters. Property is a numeric
+ * Google Analytics App + Web Property Id.
+ *
+ *
+ *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java
new file mode 100644
index 00000000..29c1c67c
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java
@@ -0,0 +1,1630 @@
+/*
+ * 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.Metadata}
+ */
+public final class Metadata extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Metadata)
+ MetadataOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use Metadata.newBuilder() to construct.
+ private Metadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private Metadata() {
+ name_ = "";
+ dimensions_ = java.util.Collections.emptyList();
+ metrics_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new Metadata();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private Metadata(
+ 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();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ dimensions_.add(
+ input.readMessage(
+ com.google.analytics.data.v1alpha.DimensionMetadata.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 18:
+ {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ metrics_ =
+ new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000002;
+ }
+ metrics_.add(
+ input.readMessage(
+ com.google.analytics.data.v1alpha.MetricMetadata.parser(),
+ extensionRegistry));
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = 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)) {
+ dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
+ }
+ if (((mutable_bitField0_ & 0x00000002) != 0)) {
+ metrics_ = java.util.Collections.unmodifiableList(metrics_);
+ }
+ 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_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.Metadata.class,
+ com.google.analytics.data.v1alpha.Metadata.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+
+ public static final int DIMENSIONS_FIELD_NUMBER = 1;
+ private java.util.List dimensions_;
+ /**
+ *
+ *
+ *
+ * The dimensions descriptions.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ @java.lang.Override
+ public java.util.List getDimensionsList() {
+ return dimensions_;
+ }
+ /**
+ *
+ *
+ *
+ * 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 metrics_;
+ /**
+ *
+ *
+ *
+ * The metric descriptions.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ @java.lang.Override
+ public java.util.List getMetricsList() {
+ return metrics_;
+ }
+ /**
+ *
+ *
+ *
+ * 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));
+ }
+ if (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
+ }
+ 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));
+ }
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
+ }
+ 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.Metadata)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.Metadata other =
+ (com.google.analytics.data.v1alpha.Metadata) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ 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();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().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.Metadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata 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.Metadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata 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.Metadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata 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.Metadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata 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.Metadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata 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.Metadata 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.Metadata 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.Metadata 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.Metadata}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Metadata)
+ com.google.analytics.data.v1alpha.MetadataOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.Metadata.class,
+ com.google.analytics.data.v1alpha.Metadata.Builder.class);
+ }
+
+ // Construct using com.google.analytics.data.v1alpha.Metadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDimensionsFieldBuilder();
+ getMetricsFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ name_ = "";
+
+ if (dimensionsBuilder_ == null) {
+ dimensions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ dimensionsBuilder_.clear();
+ }
+ if (metricsBuilder_ == null) {
+ metrics_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ metricsBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.analytics.data.v1alpha.AnalyticsDataApiProto
+ .internal_static_google_analytics_data_v1alpha_Metadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Metadata getDefaultInstanceForType() {
+ return com.google.analytics.data.v1alpha.Metadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Metadata build() {
+ com.google.analytics.data.v1alpha.Metadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Metadata buildPartial() {
+ com.google.analytics.data.v1alpha.Metadata result =
+ new com.google.analytics.data.v1alpha.Metadata(this);
+ int from_bitField0_ = bitField0_;
+ result.name_ = name_;
+ if (dimensionsBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ dimensions_ = java.util.Collections.unmodifiableList(dimensions_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.dimensions_ = dimensions_;
+ } else {
+ result.dimensions_ = dimensionsBuilder_.build();
+ }
+ if (metricsBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)) {
+ metrics_ = java.util.Collections.unmodifiableList(metrics_);
+ bitField0_ = (bitField0_ & ~0x00000002);
+ }
+ result.metrics_ = metrics_;
+ } else {
+ result.metrics_ = metricsBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.analytics.data.v1alpha.Metadata) {
+ return mergeFrom((com.google.analytics.data.v1alpha.Metadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.analytics.data.v1alpha.Metadata other) {
+ if (other == com.google.analytics.data.v1alpha.Metadata.getDefaultInstance()) return this;
+ if (!other.getName().isEmpty()) {
+ name_ = other.name_;
+ onChanged();
+ }
+ if (dimensionsBuilder_ == null) {
+ if (!other.dimensions_.isEmpty()) {
+ if (dimensions_.isEmpty()) {
+ dimensions_ = other.dimensions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDimensionsIsMutable();
+ dimensions_.addAll(other.dimensions_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.dimensions_.isEmpty()) {
+ if (dimensionsBuilder_.isEmpty()) {
+ dimensionsBuilder_.dispose();
+ dimensionsBuilder_ = null;
+ dimensions_ = other.dimensions_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ dimensionsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getDimensionsFieldBuilder()
+ : null;
+ } else {
+ dimensionsBuilder_.addAllMessages(other.dimensions_);
+ }
+ }
+ }
+ if (metricsBuilder_ == null) {
+ if (!other.metrics_.isEmpty()) {
+ if (metrics_.isEmpty()) {
+ metrics_ = other.metrics_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ } else {
+ ensureMetricsIsMutable();
+ metrics_.addAll(other.metrics_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.metrics_.isEmpty()) {
+ if (metricsBuilder_.isEmpty()) {
+ metricsBuilder_.dispose();
+ metricsBuilder_ = null;
+ metrics_ = other.metrics_;
+ bitField0_ = (bitField0_ & ~0x00000002);
+ metricsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getMetricsFieldBuilder()
+ : null;
+ } else {
+ metricsBuilder_.addAllMessages(other.metrics_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.analytics.data.v1alpha.Metadata parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.analytics.data.v1alpha.Metadata) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The name.
+ */
+ 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 {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The bytes for name.
+ */
+ 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 {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List dimensions_ =
+ java.util.Collections.emptyList();
+
+ private void ensureDimensionsIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ dimensions_ =
+ new java.util.ArrayList(
+ dimensions_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionMetadata,
+ com.google.analytics.data.v1alpha.DimensionMetadata.Builder,
+ com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>
+ dimensionsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The dimensions descriptions.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ public java.util.List getDimensionsList() {
+ if (dimensionsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(dimensions_);
+ } else {
+ return dimensionsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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
+ getDimensionsBuilderList() {
+ return getDimensionsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionMetadata,
+ com.google.analytics.data.v1alpha.DimensionMetadata.Builder,
+ com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>
+ getDimensionsFieldBuilder() {
+ if (dimensionsBuilder_ == null) {
+ dimensionsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionMetadata,
+ com.google.analytics.data.v1alpha.DimensionMetadata.Builder,
+ com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder>(
+ dimensions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+ dimensions_ = null;
+ }
+ return dimensionsBuilder_;
+ }
+
+ private java.util.List metrics_ =
+ java.util.Collections.emptyList();
+
+ private void ensureMetricsIsMutable() {
+ if (!((bitField0_ & 0x00000002) != 0)) {
+ metrics_ =
+ new java.util.ArrayList(metrics_);
+ bitField0_ |= 0x00000002;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.MetricMetadata,
+ com.google.analytics.data.v1alpha.MetricMetadata.Builder,
+ com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>
+ metricsBuilder_;
+
+ /**
+ *
+ *
+ *
+ * The metric descriptions.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2;
+ */
+ public java.util.List getMetricsList() {
+ if (metricsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(metrics_);
+ } else {
+ return metricsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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
+ getMetricsBuilderList() {
+ return getMetricsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.MetricMetadata,
+ com.google.analytics.data.v1alpha.MetricMetadata.Builder,
+ com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>
+ getMetricsFieldBuilder() {
+ if (metricsBuilder_ == null) {
+ metricsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.MetricMetadata,
+ com.google.analytics.data.v1alpha.MetricMetadata.Builder,
+ com.google.analytics.data.v1alpha.MetricMetadataOrBuilder>(
+ metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+ metrics_ = null;
+ }
+ return metricsBuilder_;
+ }
+
+ @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.Metadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Metadata)
+ private static final com.google.analytics.data.v1alpha.Metadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Metadata();
+ }
+
+ public static com.google.analytics.data.v1alpha.Metadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public Metadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new Metadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Metadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java
new file mode 100644
index 00000000..ec4a0649
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java
@@ -0,0 +1,197 @@
+/*
+ * 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.
+ */
+
+package com.google.analytics.data.v1alpha;
+
+import com.google.api.core.BetaApi;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.pathtemplate.ValidationException;
+import com.google.api.resourcenames.ResourceName;
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.Objects;
+
+/** AUTO-GENERATED DOCUMENTATION AND CLASS */
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class MetadataName implements ResourceName {
+
+ @Deprecated
+ protected MetadataName() {}
+
+ private static final String METADATA_FIXED_VALUE = "metadata";
+ private static final MetadataName METADATA_INSTANCE = new MetadataName("metadata");
+ private static final PathTemplate PROPERTY_METADATA_PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("properties/{property}/metadata");
+
+ private volatile Map fieldValuesMap;
+ private PathTemplate pathTemplate;
+ private String fixedValue;
+
+ private String property;
+
+ public String getProperty() {
+ return property;
+ }
+
+ private MetadataName(PropertyMetadataBuilder builder) {
+ property = Preconditions.checkNotNull(builder.getProperty());
+ pathTemplate = PROPERTY_METADATA_PATH_TEMPLATE;
+ }
+
+ private MetadataName(String fixedValue) {
+ this.fixedValue = fixedValue;
+ fieldValuesMap = ImmutableMap.of("", fixedValue);
+ }
+
+ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+ public static PropertyMetadataBuilder newPropertyMetadataBuilder() {
+ return new PropertyMetadataBuilder();
+ }
+
+ public static MetadataName of(String metadata) {
+ return METADATA_INSTANCE;
+ }
+
+ @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+ public static MetadataName ofMetadataName() {
+ return METADATA_INSTANCE;
+ }
+
+ @BetaApi("The static create methods are not stable yet and may be changed in the future.")
+ public static MetadataName ofPropertyMetadataName(String property) {
+ return newPropertyMetadataBuilder().setProperty(property).build();
+ }
+
+ @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+ public static String formatMetadataName() {
+ return METADATA_FIXED_VALUE;
+ }
+
+ @BetaApi("The static format methods are not stable yet and may be changed in the future.")
+ public static String formatPropertyMetadataName(String property) {
+ return newPropertyMetadataBuilder().setProperty(property).build().toString();
+ }
+
+ public static MetadataName parse(String formattedString) {
+ if (formattedString.isEmpty()) {
+ return null;
+ }
+ if (METADATA_FIXED_VALUE.equals(formattedString)) {
+ return METADATA_INSTANCE;
+ } else if (PROPERTY_METADATA_PATH_TEMPLATE.matches(formattedString)) {
+ Map matchMap = PROPERTY_METADATA_PATH_TEMPLATE.match(formattedString);
+ return ofPropertyMetadataName(matchMap.get("property"));
+ }
+ throw new ValidationException("JobName.parse: formattedString not in valid format");
+ }
+
+ public static List parseList(List formattedStrings) {
+ List list = new ArrayList<>(formattedStrings.size());
+ for (String formattedString : formattedStrings) {
+ list.add(parse(formattedString));
+ }
+ return list;
+ }
+
+ public static List toStringList(List values) {
+ List list = new ArrayList<>(values.size());
+ for (MetadataName value : values) {
+ if (value == null) {
+ list.add("");
+ } else {
+ list.add(value.toString());
+ }
+ }
+ return list;
+ }
+
+ public static boolean isParsableFrom(String formattedString) {
+ return METADATA_FIXED_VALUE.equals(formattedString)
+ || PROPERTY_METADATA_PATH_TEMPLATE.matches(formattedString);
+ }
+
+ @Override
+ public Map getFieldValuesMap() {
+ if (fieldValuesMap == null) {
+ synchronized (this) {
+ if (fieldValuesMap == null) {
+ ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder();
+ if (property != null) {
+ fieldMapBuilder.put("property", property);
+ }
+ fieldValuesMap = fieldMapBuilder.build();
+ }
+ }
+ }
+ return fieldValuesMap;
+ }
+
+ public String getFieldValue(String fieldName) {
+ return getFieldValuesMap().get(fieldName);
+ }
+
+ @Override
+ public String toString() {
+ return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap());
+ }
+
+ /** Builder for properties/{property}/metadata. */
+ @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
+ public static class PropertyMetadataBuilder {
+
+ private String property;
+
+ private PropertyMetadataBuilder() {}
+
+ public String getProperty() {
+ return property;
+ }
+
+ public PropertyMetadataBuilder setProperty(String property) {
+ this.property = property;
+ return this;
+ }
+
+ public MetadataName build() {
+ return new MetadataName(this);
+ }
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (o == this) {
+ return true;
+ }
+ if (o != null || getClass() == o.getClass()) {
+ MetadataName that = (MetadataName) o;
+ return (Objects.equals(this.property, that.property));
+ }
+ return false;
+ }
+
+ @Override
+ public int hashCode() {
+ int h = 1;
+ h *= 1000003;
+ h ^= Objects.hashCode(fixedValue);
+ h *= 1000003;
+ h ^= Objects.hashCode(property);
+ return h;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java
new file mode 100644
index 00000000..442d5702
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java
@@ -0,0 +1,154 @@
+/*
+ * 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;
+
+public interface MetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Metadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ *
+ * Resource name of this metadata.
+ *
+ *
+ * string name = 3;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ *
+ * The dimensions descriptions.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1;
+ */
+ java.util.List getDimensionsList();
+ /**
+ *
+ *
+ *
+ * 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 getMetricsList();
+ /**
+ *
+ *
+ *
+ * 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/java/com/google/analytics/data/v1alpha/MetricHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java
index 8fccd0fa..9812dfc2 100644
--- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java
@@ -22,7 +22,10 @@
*
*
*
- * 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
+ implements
+ // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricMetadata)
+ com.google.analytics.data.v1alpha.MetricMetadataOrBuilder {
+ 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);
+ }
+
+ // Construct using com.google.analytics.data.v1alpha.MetricMetadata.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ apiName_ = "";
+
+ uiName_ = "";
+
+ description_ = "";
+
+ deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ type_ = 0;
+
+ expression_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstanceForType() {
+ return com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadata build() {
+ com.google.analytics.data.v1alpha.MetricMetadata result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadata buildPartial() {
+ com.google.analytics.data.v1alpha.MetricMetadata result =
+ new com.google.analytics.data.v1alpha.MetricMetadata(this);
+ int from_bitField0_ = bitField0_;
+ result.apiName_ = apiName_;
+ result.uiName_ = uiName_;
+ result.description_ = description_;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.deprecatedApiNames_ = deprecatedApiNames_;
+ result.type_ = type_;
+ result.expression_ = expression_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.analytics.data.v1alpha.MetricMetadata) {
+ return mergeFrom((com.google.analytics.data.v1alpha.MetricMetadata) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricMetadata other) {
+ if (other == com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance())
+ return this;
+ if (!other.getApiName().isEmpty()) {
+ apiName_ = other.apiName_;
+ onChanged();
+ }
+ if (!other.getUiName().isEmpty()) {
+ uiName_ = other.uiName_;
+ onChanged();
+ }
+ if (!other.getDescription().isEmpty()) {
+ description_ = other.description_;
+ onChanged();
+ }
+ if (!other.deprecatedApiNames_.isEmpty()) {
+ if (deprecatedApiNames_.isEmpty()) {
+ deprecatedApiNames_ = other.deprecatedApiNames_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDeprecatedApiNamesIsMutable();
+ deprecatedApiNames_.addAll(other.deprecatedApiNames_);
+ }
+ onChanged();
+ }
+ if (other.type_ != 0) {
+ setTypeValue(other.getTypeValue());
+ }
+ if (!other.getExpression().isEmpty()) {
+ expression_ = other.expression_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.analytics.data.v1alpha.MetricMetadata parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.analytics.data.v1alpha.MetricMetadata) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object apiName_ = "";
+ /**
+ *
+ *
+ *
+ * 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 values) {
+ ensureDeprecatedApiNamesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, deprecatedApiNames_);
+ 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;
+ *
+ * @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 PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MetricMetadata parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MetricMetadata(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java
new file mode 100644
index 00000000..9dc60223
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java
@@ -0,0 +1,221 @@
+/*
+ * 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;
+
+public interface MetricMetadataOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.MetricMetadata)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * 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 getDeprecatedApiNamesList();
+ /**
+ *
+ *
+ *
+ * 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 getOrderBysList
*
*
* 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 getOrderBysList
*
*
* 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 getOrderBysList
*
*
* 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();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ dimensionValues_.add(
+ input.readMessage(
+ com.google.analytics.data.v1alpha.DimensionValue.parser(),
+ extensionRegistry));
+ 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)) {
+ dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_);
+ }
+ 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_PivotDimensionHeader_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.class,
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder.class);
+ }
+
+ public static final int DIMENSION_VALUES_FIELD_NUMBER = 1;
+ private java.util.List dimensionValues_;
+ /**
+ *
+ *
+ *
+ * Values of multiple dimensions in a pivot.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ @java.lang.Override
+ public java.util.List getDimensionValuesList() {
+ return dimensionValues_;
+ }
+ /**
+ *
+ *
+ *
+ * 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
+ implements
+ // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PivotDimensionHeader)
+ com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.class,
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder.class);
+ }
+
+ // Construct using com.google.analytics.data.v1alpha.PivotDimensionHeader.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDimensionValuesFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (dimensionValuesBuilder_ == null) {
+ dimensionValues_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ dimensionValuesBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.analytics.data.v1alpha.ReportingApiProto
+ .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader getDefaultInstanceForType() {
+ return com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader build() {
+ com.google.analytics.data.v1alpha.PivotDimensionHeader result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader buildPartial() {
+ com.google.analytics.data.v1alpha.PivotDimensionHeader result =
+ new com.google.analytics.data.v1alpha.PivotDimensionHeader(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();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.analytics.data.v1alpha.PivotDimensionHeader) {
+ return mergeFrom((com.google.analytics.data.v1alpha.PivotDimensionHeader) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.analytics.data.v1alpha.PivotDimensionHeader other) {
+ if (other == com.google.analytics.data.v1alpha.PivotDimensionHeader.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_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.analytics.data.v1alpha.PivotDimensionHeader parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.analytics.data.v1alpha.PivotDimensionHeader) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.util.List dimensionValues_ =
+ java.util.Collections.emptyList();
+
+ private void ensureDimensionValuesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ dimensionValues_ =
+ new java.util.ArrayList(
+ dimensionValues_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionValue,
+ com.google.analytics.data.v1alpha.DimensionValue.Builder,
+ com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
+ dimensionValuesBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Values of multiple dimensions in a pivot.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ public java.util.List
+ getDimensionValuesList() {
+ if (dimensionValuesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(dimensionValues_);
+ } else {
+ return dimensionValuesBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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
+ getDimensionValuesBuilderList() {
+ return getDimensionValuesFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionValue,
+ com.google.analytics.data.v1alpha.DimensionValue.Builder,
+ com.google.analytics.data.v1alpha.DimensionValueOrBuilder>
+ getDimensionValuesFieldBuilder() {
+ if (dimensionValuesBuilder_ == null) {
+ dimensionValuesBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionValue,
+ com.google.analytics.data.v1alpha.DimensionValue.Builder,
+ com.google.analytics.data.v1alpha.DimensionValueOrBuilder>(
+ dimensionValues_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ dimensionValues_ = null;
+ }
+ return dimensionValuesBuilder_;
+ }
+
+ @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.PivotDimensionHeader)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PivotDimensionHeader)
+ private static final com.google.analytics.data.v1alpha.PivotDimensionHeader DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PivotDimensionHeader();
+ }
+
+ public static com.google.analytics.data.v1alpha.PivotDimensionHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public PivotDimensionHeader parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new PivotDimensionHeader(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.PivotDimensionHeader getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java
new file mode 100644
index 00000000..f838ba89
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java
@@ -0,0 +1,77 @@
+/*
+ * 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;
+
+public interface PivotDimensionHeaderOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.PivotDimensionHeader)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * Values of multiple dimensions in a pivot.
+ *
+ *
+ * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1;
+ */
+ java.util.List getDimensionValuesList();
+ /**
+ *
+ *
+ *
+ * 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..99ea9418 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();
+ pivotDimensionHeaders_ =
+ new java.util.ArrayList<
+ com.google.analytics.data.v1alpha.PivotDimensionHeader>();
mutable_bitField0_ |= 0x00000001;
}
- dimensionHeaders_.add(
+ pivotDimensionHeaders_.add(
input.readMessage(
- com.google.analytics.data.v1alpha.DimensionHeader.parser(),
+ com.google.analytics.data.v1alpha.PivotDimensionHeader.parser(),
extensionRegistry));
break;
}
@@ -104,7 +105,7 @@ private PivotHeader(
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
- dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_);
+ pivotDimensionHeaders_ = java.util.Collections.unmodifiableList(pivotDimensionHeaders_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
@@ -126,8 +127,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.analytics.data.v1alpha.PivotHeader.Builder.class);
}
- public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1;
- private java.util.List dimensionHeaders_;
+ public static final int PIVOT_DIMENSION_HEADERS_FIELD_NUMBER = 1;
+ private java.util.List
+ pivotDimensionHeaders_;
/**
*
*
@@ -136,12 +138,13 @@ 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 java.util.List
- getDimensionHeadersList() {
- return dimensionHeaders_;
+ public java.util.List
+ getPivotDimensionHeadersList() {
+ return pivotDimensionHeaders_;
}
/**
*
@@ -151,12 +154,13 @@ 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 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;
@@ -234,8 +242,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 +257,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 +281,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 +294,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 +404,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 +440,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 +483,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 +542,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 +603,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 +668,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 +688,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 +714,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 +737,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 +763,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 +789,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 +812,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 +835,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 +859,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 +881,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 +903,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 +919,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 +939,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 +959,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 +976,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 +994,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.Listrepeated .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,9 +81,10 @@ 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);
/**
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..222b96b7 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 +326,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 +341,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 +355,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 +369,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;
@@ -690,6 +788,9 @@ 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));
+ }
unknownFields.writeTo(output);
}
@@ -720,6 +821,10 @@ 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));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -736,6 +841,7 @@ 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;
@@ -760,6 +866,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();
@@ -928,6 +1038,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getDimensionHeadersFieldBuilder();
getMetricHeadersFieldBuilder();
getRowsFieldBuilder();
getTotalsFieldBuilder();
@@ -939,33 +1050,39 @@ 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();
}
@@ -1009,46 +1126,55 @@ 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 {
@@ -1114,11 +1240,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 +1284,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 +1298,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 +1311,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 +1325,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 +1338,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 +1352,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 +1365,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 +1379,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 +1392,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()
@@ -1287,14 +1440,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 +1858,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 +1875,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 +1892,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 +1916,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 +1937,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 +1960,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 +1984,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 +2005,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 +2026,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 +2047,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 +2056,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 +2067,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 +2087,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 +2101,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 +2119,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 +2137,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 +2151,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 +2166,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 +2189,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 +2201,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- * 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;
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..58a80153 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,8 @@ 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";
+import "google/api/resource.proto";
option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data";
option java_multiple_files = true;
@@ -75,6 +77,37 @@ 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.
+ rpc GetMetadata(GetMetadataRequest) returns (Metadata) {
+ option (google.api.http) = {
+ get: "/v1alpha/{name=metadata}"
+ additional_bindings {
+ get: "/v1alpha/{name=properties/*/metadata}"
+ }
+ };
+ option (google.api.method_signature) = "name";
+ }
+}
+
+// The dimensions and metrics currently accepted in reporting methods.
+message Metadata {
+ option (google.api.resource) = {
+ type: "analyticsdata.googleapis.com/Metadata"
+ pattern: "metadata"
+ pattern: "properties/{property}/metadata"
+ };
+
+ // Resource name of this metadata.
+ string name = 3;
+
+ // The dimensions descriptions.
+ repeated DimensionMetadata dimensions = 1;
+
+ // The metric descriptions.
+ repeated MetricMetadata metrics = 2;
}
// The request to generate a report.
@@ -92,25 +125,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 +160,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 +172,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.
@@ -171,14 +214,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 +233,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 +244,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 +294,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 +353,17 @@ message BatchRunPivotReportsResponse {
// Individual responses. Each response has a separate pivot report request.
repeated RunPivotReportResponse pivot_reports = 1;
}
+
+// Request for dimension and metric metadata.
+message GetMetadataRequest {
+ // Required. The name of the metadata to retrieve. Either has the form
+ // 'metadata' or 'properties/{property}/metadata'. This name field is
+ // specified in the URL path and not URL parameters. Property is a numeric
+ // Google Analytics App + Web Property Id.
+ string name = 1 [
+ (google.api.field_behavior) = REQUIRED,
+ (google.api.resource_reference) = {
+ type: "analyticsdata.googleapis.com/Metadata"
+ }
+ ];
+}
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..5202800f 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,39 @@ 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.
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 +592,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 +658,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 +668,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/synth.metadata b/synth.metadata
index 7d8524c8..8ced900f 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-analytics-data.git",
- "sha": "8b8ff792dc4a683f5dd76a8567e22d0a58c6c485"
+ "sha": "8cf496aef67575417cd73e650bfd5c33a39180f6"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "35c1332eac14e759b6c9015831ae8a27b05f891d",
- "internalRef": "328889909"
+ "sha": "32cd28cc67e8f644856471573821bf930b7ee513",
+ "internalRef": "329352783"
}
},
{
@@ -131,6 +131,8 @@
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java",
@@ -142,10 +144,17 @@
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java",
@@ -155,6 +164,8 @@
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderByOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java",
+ "proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java",
"proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java",