This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * RunFunnelReportRequest request =
+ * RunFunnelReportRequest.newBuilder()
+ * .setProperty("property-993141291")
+ * .addAllDateRanges(new ArrayList())
+ * .setFunnel(Funnel.newBuilder().build())
+ * .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+ * .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+ * .addAllSegments(new ArrayList())
+ * .setLimit(102976443)
+ * .setDimensionFilter(FilterExpression.newBuilder().build())
+ * .setReturnPropertyQuota(true)
+ * .build();
+ * RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(request);
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the AlphaAnalyticsDataClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of AlphaAnalyticsDataSettings to + * create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ * AlphaAnalyticsDataSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
+ * AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ * AlphaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
+ * AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlphaAnalyticsDataClient implements BackgroundResource { + private final AlphaAnalyticsDataSettings settings; + private final AlphaAnalyticsDataStub stub; + + /** Constructs an instance of AlphaAnalyticsDataClient with default settings. */ + public static final AlphaAnalyticsDataClient create() throws IOException { + return create(AlphaAnalyticsDataSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataSettings settings) + throws IOException { + return new AlphaAnalyticsDataClient(settings); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AlphaAnalyticsDataSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataStub stub) { + return new AlphaAnalyticsDataClient(stub); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AlphaAnalyticsDataClient(AlphaAnalyticsDataSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AlphaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AlphaAnalyticsDataSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AlphaAnalyticsDataStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized funnel report of your Google Analytics event data. The data returned from + * the API is as a table with columns for the requested dimensions and metrics. + * + *
Funnel exploration lets you visualize the steps your users take to complete a task and + * quickly see how well they are succeeding or failing at each step. For example, how do prospects + * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this + * information, you can improve inefficient or abandoned customer journeys. To learn more, see + * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * RunFunnelReportRequest request =
+ * RunFunnelReportRequest.newBuilder()
+ * .setProperty("property-993141291")
+ * .addAllDateRanges(new ArrayList())
+ * .setFunnel(Funnel.newBuilder().build())
+ * .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+ * .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+ * .addAllSegments(new ArrayList())
+ * .setLimit(102976443)
+ * .setDimensionFilter(FilterExpression.newBuilder().build())
+ * .setReturnPropertyQuota(true)
+ * .build();
+ * RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(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 RunFunnelReportResponse runFunnelReport(RunFunnelReportRequest request) {
+ return runFunnelReportCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD.
+ /**
+ * Returns a customized funnel report of your Google Analytics event data. The data returned from
+ * the API is as a table with columns for the requested dimensions and metrics.
+ *
+ * Funnel exploration lets you visualize the steps your users take to complete a task and + * quickly see how well they are succeeding or failing at each step. For example, how do prospects + * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this + * information, you can improve inefficient or abandoned customer journeys. To learn more, see + * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * RunFunnelReportRequest request =
+ * RunFunnelReportRequest.newBuilder()
+ * .setProperty("property-993141291")
+ * .addAllDateRanges(new ArrayList())
+ * .setFunnel(Funnel.newBuilder().build())
+ * .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+ * .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+ * .addAllSegments(new ArrayList())
+ * .setLimit(102976443)
+ * .setDimensionFilter(FilterExpression.newBuilder().build())
+ * .setReturnPropertyQuota(true)
+ * .build();
+ * ApiFuture future =
+ * alphaAnalyticsDataClient.runFunnelReportCallable().futureCall(request);
+ * // Do something.
+ * RunFunnelReportResponse response = future.get();
+ * }
+ * }
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
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 runFunnelReport to 30 seconds: + * + *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
+ * AlphaAnalyticsDataSettings.newBuilder();
+ * alphaAnalyticsDataSettingsBuilder
+ * .runFunnelReportSettings()
+ * .setRetrySettings(
+ * alphaAnalyticsDataSettingsBuilder
+ * .runFunnelReportSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ * alphaAnalyticsDataSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class AlphaAnalyticsDataSettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= AlphaAnalyticsDataClient =======================
+ *
+ * Service Description: Google Analytics reporting data service.
+ *
+ * Sample for AlphaAnalyticsDataClient:
+ *
+ * This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public abstract class AlphaAnalyticsDataStub implements BackgroundResource {
+
+ public UnaryCallable The default instance has everything set to sensible defaults:
+ *
+ * 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 runFunnelReport to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction This class is for advanced usage.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcAlphaAnalyticsDataCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub {
+ private static final MethodDescriptor{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ * RunFunnelReportRequest request =
+ * RunFunnelReportRequest.newBuilder()
+ * .setProperty("property-993141291")
+ * .addAllDateRanges(new ArrayList
+ */
+@Generated("by gapic-generator-java")
+package com.google.analytics.data.v1alpha;
+
+import javax.annotation.Generated;
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
new file mode 100644
index 00000000..18da5c70
--- /dev/null
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 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.stub;
+
+import com.google.analytics.data.v1alpha.RunFunnelReportRequest;
+import com.google.analytics.data.v1alpha.RunFunnelReportResponse;
+import com.google.api.core.BetaApi;
+import com.google.api.gax.core.BackgroundResource;
+import com.google.api.gax.rpc.UnaryCallable;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * Base stub class for the AlphaAnalyticsData service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
+ * AlphaAnalyticsDataStubSettings.newBuilder();
+ * alphaAnalyticsDataSettingsBuilder
+ * .runFunnelReportSettings()
+ * .setRetrySettings(
+ * alphaAnalyticsDataSettingsBuilder
+ * .runFunnelReportSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * AlphaAnalyticsDataStubSettings alphaAnalyticsDataSettings =
+ * alphaAnalyticsDataSettingsBuilder.build();
+ * }
+ */
+@BetaApi
+@Generated("by gapic-generator-java")
+public class AlphaAnalyticsDataStubSettings extends StubSettings
+ * To express that the result needs to be between two numbers (inclusive). + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.BetweenFilter} + */ +public final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.BetweenFilter) + BetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use BetweenFilter.newBuilder() to construct. + private BetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BetweenFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BetweenFilter( + 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: + { + com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; + if (fromValue_ != null) { + subBuilder = fromValue_.toBuilder(); + } + fromValue_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fromValue_); + fromValue_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; + if (toValue_ != null) { + subBuilder = toValue_.toBuilder(); + } + toValue_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(toValue_); + toValue_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.BetweenFilter.class, + com.google.analytics.data.v1alpha.BetweenFilter.Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.NumericValue fromValue_; + /** + * + * + *
+ * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return Whether the fromValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasFromValue() {
+ return fromValue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return The fromValue.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValue getFromValue() {
+ return fromValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : fromValue_;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() {
+ return getFromValue();
+ }
+
+ public static final int TO_VALUE_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.NumericValue toValue_;
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return Whether the toValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasToValue() {
+ return toValue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return The toValue.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValue getToValue() {
+ return toValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : toValue_;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder() {
+ return getToValue();
+ }
+
+ 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 (fromValue_ != null) {
+ output.writeMessage(1, getFromValue());
+ }
+ if (toValue_ != null) {
+ output.writeMessage(2, getToValue());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (fromValue_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue());
+ }
+ if (toValue_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue());
+ }
+ 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.BetweenFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.BetweenFilter other =
+ (com.google.analytics.data.v1alpha.BetweenFilter) obj;
+
+ if (hasFromValue() != other.hasFromValue()) return false;
+ if (hasFromValue()) {
+ if (!getFromValue().equals(other.getFromValue())) return false;
+ }
+ if (hasToValue() != other.hasToValue()) return false;
+ if (hasToValue()) {
+ if (!getToValue().equals(other.getToValue())) 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 (hasFromValue()) {
+ hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getFromValue().hashCode();
+ }
+ if (hasToValue()) {
+ hash = (37 * hash) + TO_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getToValue().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter 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.BetweenFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter 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.BetweenFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter 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.BetweenFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter 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.BetweenFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter 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.BetweenFilter 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.BetweenFilter 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.BetweenFilter 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;
+ }
+ /**
+ *
+ *
+ * + * To express that the result needs to be between two numbers (inclusive). + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.BetweenFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return Whether the fromValue field is set.
+ */
+ public boolean hasFromValue() {
+ return fromValueBuilder_ != null || fromValue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return The fromValue.
+ */
+ public com.google.analytics.data.v1alpha.NumericValue getFromValue() {
+ if (fromValueBuilder_ == null) {
+ return fromValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : fromValue_;
+ } else {
+ return fromValueBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public Builder setFromValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (fromValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ fromValue_ = value;
+ onChanged();
+ } else {
+ fromValueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public Builder setFromValue(
+ com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) {
+ if (fromValueBuilder_ == null) {
+ fromValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ fromValueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public Builder mergeFromValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (fromValueBuilder_ == null) {
+ if (fromValue_ != null) {
+ fromValue_ =
+ com.google.analytics.data.v1alpha.NumericValue.newBuilder(fromValue_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ fromValue_ = value;
+ }
+ onChanged();
+ } else {
+ fromValueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public Builder clearFromValue() {
+ if (fromValueBuilder_ == null) {
+ fromValue_ = null;
+ onChanged();
+ } else {
+ fromValue_ = null;
+ fromValueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public com.google.analytics.data.v1alpha.NumericValue.Builder getFromValueBuilder() {
+
+ onChanged();
+ return getFromValueFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() {
+ if (fromValueBuilder_ != null) {
+ return fromValueBuilder_.getMessageOrBuilder();
+ } else {
+ return fromValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : fromValue_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>
+ getFromValueFieldBuilder() {
+ if (fromValueBuilder_ == null) {
+ fromValueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>(
+ getFromValue(), getParentForChildren(), isClean());
+ fromValue_ = null;
+ }
+ return fromValueBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.NumericValue toValue_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>
+ toValueBuilder_;
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return Whether the toValue field is set.
+ */
+ public boolean hasToValue() {
+ return toValueBuilder_ != null || toValue_ != null;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return The toValue.
+ */
+ public com.google.analytics.data.v1alpha.NumericValue getToValue() {
+ if (toValueBuilder_ == null) {
+ return toValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : toValue_;
+ } else {
+ return toValueBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public Builder setToValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (toValueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ toValue_ = value;
+ onChanged();
+ } else {
+ toValueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public Builder setToValue(
+ com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) {
+ if (toValueBuilder_ == null) {
+ toValue_ = builderForValue.build();
+ onChanged();
+ } else {
+ toValueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public Builder mergeToValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (toValueBuilder_ == null) {
+ if (toValue_ != null) {
+ toValue_ =
+ com.google.analytics.data.v1alpha.NumericValue.newBuilder(toValue_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ toValue_ = value;
+ }
+ onChanged();
+ } else {
+ toValueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public Builder clearToValue() {
+ if (toValueBuilder_ == null) {
+ toValue_ = null;
+ onChanged();
+ } else {
+ toValue_ = null;
+ toValueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public com.google.analytics.data.v1alpha.NumericValue.Builder getToValueBuilder() {
+
+ onChanged();
+ return getToValueFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder() {
+ if (toValueBuilder_ != null) {
+ return toValueBuilder_.getMessageOrBuilder();
+ } else {
+ return toValue_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : toValue_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>
+ getToValueFieldBuilder() {
+ if (toValueBuilder_ == null) {
+ toValueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>(
+ getToValue(), getParentForChildren(), isClean());
+ toValue_ = null;
+ }
+ return toValueBuilder_;
+ }
+
+ @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.BetweenFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BetweenFilter)
+ private static final com.google.analytics.data.v1alpha.BetweenFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BetweenFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.BetweenFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return Whether the fromValue field is set.
+ */
+ boolean hasFromValue();
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ *
+ * @return The fromValue.
+ */
+ com.google.analytics.data.v1alpha.NumericValue getFromValue();
+ /**
+ *
+ *
+ * + * Begins with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue from_value = 1;
+ */
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder();
+
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return Whether the toValue field is set.
+ */
+ boolean hasToValue();
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ *
+ * @return The toValue.
+ */
+ com.google.analytics.data.v1alpha.NumericValue getToValue();
+ /**
+ *
+ *
+ * + * Ends with this number. + *+ * + *
.google.analytics.data.v1alpha.NumericValue to_value = 2;
+ */
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java
new file mode 100644
index 00000000..c2fda774
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java
@@ -0,0 +1,1059 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests + * are allowed up to 4 date ranges. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DateRange} + */ +public final class DateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DateRange) + DateRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DateRange.newBuilder() to construct. + private DateRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DateRange() { + startDate_ = ""; + endDate_ = ""; + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DateRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DateRange( + 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(); + + startDate_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + endDate_ = s; + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DateRange.class, + com.google.analytics.data.v1alpha.DateRange.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + private volatile java.lang.Object startDate_; + /** + * + * + *
+ * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The startDate.
+ */
+ @java.lang.Override
+ public java.lang.String getStartDate() {
+ java.lang.Object ref = startDate_;
+ 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();
+ startDate_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The bytes for startDate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getStartDateBytes() {
+ java.lang.Object ref = startDate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ startDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int END_DATE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object endDate_;
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The endDate.
+ */
+ @java.lang.Override
+ public java.lang.String getEndDate() {
+ java.lang.Object ref = endDate_;
+ 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();
+ endDate_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The bytes for endDate.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEndDateBytes() {
+ java.lang.Object ref = endDate_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ endDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NAME_FIELD_NUMBER = 3;
+ private volatile java.lang.Object name_;
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ 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;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ 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.DateRange)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DateRange other =
+ (com.google.analytics.data.v1alpha.DateRange) obj;
+
+ if (!getStartDate().equals(other.getStartDate())) return false;
+ if (!getEndDate().equals(other.getEndDate())) return false;
+ 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) + START_DATE_FIELD_NUMBER;
+ hash = (53 * hash) + getStartDate().hashCode();
+ hash = (37 * hash) + END_DATE_FIELD_NUMBER;
+ hash = (53 * hash) + getEndDate().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.DateRange parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange 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.DateRange parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange 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.DateRange parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange 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.DateRange parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange 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.DateRange parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange 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.DateRange 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.DateRange 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.DateRange 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;
+ }
+ /**
+ *
+ *
+ * + * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests + * are allowed up to 4 date ranges. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DateRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The startDate.
+ */
+ public java.lang.String getStartDate() {
+ java.lang.Object ref = startDate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ startDate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The bytes for startDate.
+ */
+ public com.google.protobuf.ByteString getStartDateBytes() {
+ java.lang.Object ref = startDate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ startDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @param value The startDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartDate(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ startDate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStartDate() {
+
+ startDate_ = getDefaultInstance().getStartDate();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @param value The bytes for startDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStartDateBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ startDate_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object endDate_ = "";
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The endDate.
+ */
+ public java.lang.String getEndDate() {
+ java.lang.Object ref = endDate_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ endDate_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The bytes for endDate.
+ */
+ public com.google.protobuf.ByteString getEndDateBytes() {
+ java.lang.Object ref = endDate_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ endDate_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @param value The endDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndDate(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ endDate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEndDate() {
+
+ endDate_ = getDefaultInstance().getEndDate();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @param value The bytes for endDate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEndDateBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ endDate_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
string name = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
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;
+ }
+
+ @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.DateRange)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DateRange)
+ private static final com.google.analytics.data.v1alpha.DateRange DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DateRange();
+ }
+
+ public static com.google.analytics.data.v1alpha.DateRange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The startDate.
+ */
+ java.lang.String getStartDate();
+ /**
+ *
+ *
+ * + * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot + * be after `end_date`. The format `NdaysAgo`, `yesterday`, or `today` is also + * accepted, and in that case, the date is inferred based on the property's + * reporting time zone. + *+ * + *
string start_date = 1;
+ *
+ * @return The bytes for startDate.
+ */
+ com.google.protobuf.ByteString getStartDateBytes();
+
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The endDate.
+ */
+ java.lang.String getEndDate();
+ /**
+ *
+ *
+ * + * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot + * be before `start_date`. The format `NdaysAgo`, `yesterday`, or `today` is + * also accepted, and in that case, the date is inferred based on the + * property's reporting time zone. + *+ * + *
string end_date = 2;
+ *
+ * @return The bytes for endDate.
+ */
+ com.google.protobuf.ByteString getEndDateBytes();
+
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
string name = 3;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Assigns a name to this date range. The dimension `dateRange` is valued to + * this name in a report response. If set, cannot begin with `date_range_` or + * `RESERVED_`. If not set, date ranges are named by their zero based index in + * the request: `date_range_0`, `date_range_1`, etc. + *+ * + *
string name = 3;
+ *
+ * @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/Dimension.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java
new file mode 100644
index 00000000..1f4b3d48
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java
@@ -0,0 +1,999 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Dimensions are attributes of your data. For example, the dimension city + * indicates the city from which an event originates. Dimension values in report + * responses are strings; for example, the city could be "Paris" or "New York". + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Dimension} + */ +public final class Dimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Dimension) + DimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use Dimension.newBuilder() to construct. + private Dimension(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Dimension() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Dimension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Dimension( + 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; + } + case 18: + { + com.google.analytics.data.v1alpha.DimensionExpression.Builder subBuilder = null; + if (dimensionExpression_ != null) { + subBuilder = dimensionExpression_.toBuilder(); + } + dimensionExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dimensionExpression_); + dimensionExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Dimension.class, + com.google.analytics.data.v1alpha.Dimension.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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 DIMENSION_EXPRESSION_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.DimensionExpression dimensionExpression_;
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return Whether the dimensionExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasDimensionExpression() {
+ return dimensionExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return The dimensionExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() {
+ return dimensionExpression_ == null
+ ? com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance()
+ : dimensionExpression_;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder
+ getDimensionExpressionOrBuilder() {
+ return getDimensionExpression();
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (dimensionExpression_ != null) {
+ output.writeMessage(2, getDimensionExpression());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (dimensionExpression_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression());
+ }
+ 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.Dimension)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.Dimension other =
+ (com.google.analytics.data.v1alpha.Dimension) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (hasDimensionExpression() != other.hasDimensionExpression()) return false;
+ if (hasDimensionExpression()) {
+ if (!getDimensionExpression().equals(other.getDimensionExpression())) 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 (hasDimensionExpression()) {
+ hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionExpression().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension 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.Dimension parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension 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.Dimension parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension 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.Dimension parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension 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.Dimension parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension 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.Dimension 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.Dimension 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.Dimension 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;
+ }
+ /**
+ *
+ *
+ * + * Dimensions are attributes of your data. For example, the dimension city + * indicates the city from which an event originates. Dimension values in report + * responses are strings; for example, the city could be "Paris" or "New York". + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Dimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @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 com.google.analytics.data.v1alpha.DimensionExpression dimensionExpression_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder>
+ dimensionExpressionBuilder_;
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return Whether the dimensionExpression field is set.
+ */
+ public boolean hasDimensionExpression() {
+ return dimensionExpressionBuilder_ != null || dimensionExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return The dimensionExpression.
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() {
+ if (dimensionExpressionBuilder_ == null) {
+ return dimensionExpression_ == null
+ ? com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance()
+ : dimensionExpression_;
+ } else {
+ return dimensionExpressionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public Builder setDimensionExpression(
+ com.google.analytics.data.v1alpha.DimensionExpression value) {
+ if (dimensionExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dimensionExpression_ = value;
+ onChanged();
+ } else {
+ dimensionExpressionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public Builder setDimensionExpression(
+ com.google.analytics.data.v1alpha.DimensionExpression.Builder builderForValue) {
+ if (dimensionExpressionBuilder_ == null) {
+ dimensionExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ dimensionExpressionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public Builder mergeDimensionExpression(
+ com.google.analytics.data.v1alpha.DimensionExpression value) {
+ if (dimensionExpressionBuilder_ == null) {
+ if (dimensionExpression_ != null) {
+ dimensionExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.newBuilder(dimensionExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ dimensionExpression_ = value;
+ }
+ onChanged();
+ } else {
+ dimensionExpressionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public Builder clearDimensionExpression() {
+ if (dimensionExpressionBuilder_ == null) {
+ dimensionExpression_ = null;
+ onChanged();
+ } else {
+ dimensionExpression_ = null;
+ dimensionExpressionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpression.Builder
+ getDimensionExpressionBuilder() {
+
+ onChanged();
+ return getDimensionExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder
+ getDimensionExpressionOrBuilder() {
+ if (dimensionExpressionBuilder_ != null) {
+ return dimensionExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ return dimensionExpression_ == null
+ ? com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance()
+ : dimensionExpression_;
+ }
+ }
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder>
+ getDimensionExpressionFieldBuilder() {
+ if (dimensionExpressionBuilder_ == null) {
+ dimensionExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder>(
+ getDimensionExpression(), getParentForChildren(), isClean());
+ dimensionExpression_ = null;
+ }
+ return dimensionExpressionBuilder_;
+ }
+
+ @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.Dimension)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Dimension)
+ private static final com.google.analytics.data.v1alpha.Dimension DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Dimension();
+ }
+
+ public static com.google.analytics.data.v1alpha.Dimension getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Used to express a dimension which is the result of a formula of multiple + * dimensions. Example usages: + * 1) lower_case(dimension) + * 2) concatenate(dimension1, symbol, dimension2). + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression} + */ +public final class DimensionExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionExpression) + DimensionExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionExpression.newBuilder() to construct. + private DimensionExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DimensionExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DimensionExpression( + 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 34: + { + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 6; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); + } + + public interface CaseExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The dimensionName.
+ */
+ java.lang.String getDimensionName();
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The bytes for dimensionName.
+ */
+ com.google.protobuf.ByteString getDimensionNameBytes();
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to a single case. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression.CaseExpression} + */ + public static final class CaseExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + CaseExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CaseExpression.newBuilder() to construct. + private CaseExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CaseExpression() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CaseExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CaseExpression( + 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(); + + dimensionName_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object dimensionName_; + /** + * + * + *
+ * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The dimensionName.
+ */
+ @java.lang.Override
+ public java.lang.String getDimensionName() {
+ java.lang.Object ref = dimensionName_;
+ 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();
+ dimensionName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The bytes for dimensionName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDimensionNameBytes() {
+ java.lang.Object ref = dimensionName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dimensionName_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_);
+ }
+ 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.DimensionExpression.CaseExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other =
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) obj;
+
+ if (!getDimensionName().equals(other.getDimensionName())) 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) + DIMENSION_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ 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.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression 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.DimensionExpression.CaseExpression 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;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to a single case. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression.CaseExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The dimensionName.
+ */
+ public java.lang.String getDimensionName() {
+ java.lang.Object ref = dimensionName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dimensionName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return The bytes for dimensionName.
+ */
+ public com.google.protobuf.ByteString getDimensionNameBytes() {
+ java.lang.Object ref = dimensionName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dimensionName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @param value The dimensionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDimensionName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dimensionName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDimensionName() {
+
+ dimensionName_ = getDefaultInstance().getDimensionName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of a dimension. The name must refer back to a name in dimensions + * field of the request. + *+ * + *
string dimension_name = 1;
+ *
+ * @param value The bytes for dimensionName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dimensionName_ = 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.DimensionExpression.CaseExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ private static final com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return A list containing the dimensionNames.
+ */
+ java.util.List+ * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return The count of dimensionNames.
+ */
+ int getDimensionNamesCount();
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The dimensionNames at the given index.
+ */
+ java.lang.String getDimensionNames(int index);
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the dimensionNames at the given index.
+ */
+ com.google.protobuf.ByteString getDimensionNamesBytes(int index);
+
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The delimiter.
+ */
+ java.lang.String getDelimiter();
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The bytes for delimiter.
+ */
+ com.google.protobuf.ByteString getDelimiterBytes();
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression} + */ + public static final class ConcatenateExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + ConcatenateExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConcatenateExpression.newBuilder() to construct. + private ConcatenateExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ConcatenateExpression() { + dimensionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + delimiter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConcatenateExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConcatenateExpression( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dimensionNames_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + delimiter_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionNames_ = dimensionNames_.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_DimensionExpression_ConcatenateExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder + .class); + } + + public static final int DIMENSION_NAMES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList dimensionNames_; + /** + * + * + *
+ * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return A list containing the dimensionNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDimensionNamesList() {
+ return dimensionNames_;
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return The count of dimensionNames.
+ */
+ public int getDimensionNamesCount() {
+ return dimensionNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The dimensionNames at the given index.
+ */
+ public java.lang.String getDimensionNames(int index) {
+ return dimensionNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the dimensionNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDimensionNamesBytes(int index) {
+ return dimensionNames_.getByteString(index);
+ }
+
+ public static final int DELIMITER_FIELD_NUMBER = 2;
+ private volatile java.lang.Object delimiter_;
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The delimiter.
+ */
+ @java.lang.Override
+ public java.lang.String getDelimiter() {
+ java.lang.Object ref = delimiter_;
+ 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();
+ delimiter_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The bytes for delimiter.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDelimiterBytes() {
+ java.lang.Object ref = delimiter_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ delimiter_ = 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 {
+ for (int i = 0; i < dimensionNames_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionNames_.getRaw(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < dimensionNames_.size(); i++) {
+ dataSize += computeStringSizeNoTag(dimensionNames_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getDimensionNamesList().size();
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_);
+ }
+ 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.DimensionExpression.ConcatenateExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other =
+ (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) obj;
+
+ if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false;
+ if (!getDelimiter().equals(other.getDelimiter())) 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 (getDimensionNamesCount() > 0) {
+ hash = (37 * hash) + DIMENSION_NAMES_FIELD_NUMBER;
+ hash = (53 * hash) + getDimensionNamesList().hashCode();
+ }
+ hash = (37 * hash) + DELIMITER_FIELD_NUMBER;
+ hash = (53 * hash) + getDelimiter().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression
+ 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.DimensionExpression.ConcatenateExpression 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;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return A list containing the dimensionNames.
+ */
+ public com.google.protobuf.ProtocolStringList getDimensionNamesList() {
+ return dimensionNames_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return The count of dimensionNames.
+ */
+ public int getDimensionNamesCount() {
+ return dimensionNames_.size();
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The dimensionNames at the given index.
+ */
+ public java.lang.String getDimensionNames(int index) {
+ return dimensionNames_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the dimensionNames at the given index.
+ */
+ public com.google.protobuf.ByteString getDimensionNamesBytes(int index) {
+ return dimensionNames_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The dimensionNames to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDimensionNames(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionNamesIsMutable();
+ dimensionNames_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param value The dimensionNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDimensionNames(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDimensionNamesIsMutable();
+ dimensionNames_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param values The dimensionNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllDimensionNames(java.lang.Iterable+ * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDimensionNames() {
+ dimensionNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Names of dimensions. The names must refer back to names in the dimensions + * field of the request. + *+ * + *
repeated string dimension_names = 1;
+ *
+ * @param value The bytes of the dimensionNames to add.
+ * @return This builder for chaining.
+ */
+ public Builder addDimensionNamesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureDimensionNamesIsMutable();
+ dimensionNames_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object delimiter_ = "";
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The delimiter.
+ */
+ public java.lang.String getDelimiter() {
+ java.lang.Object ref = delimiter_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ delimiter_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return The bytes for delimiter.
+ */
+ public com.google.protobuf.ByteString getDelimiterBytes() {
+ java.lang.Object ref = delimiter_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ delimiter_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @param value The delimiter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDelimiter(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ delimiter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDelimiter() {
+
+ delimiter_ = getDefaultInstance().getDelimiter();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The delimiter placed between dimension names. + * Delimiters are often single characters such as "|" or "," but can be + * longer strings. If a dimension value contains the delimiter, both will be + * present in response with no distinction. For example if dimension 1 value + * = "US,FR", dimension 2 value = "JP", and delimiter = ",", then the + * response will contain "US,FR,JP". + *+ * + *
string delimiter = 2;
+ *
+ * @param value The bytes for delimiter to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDelimiterBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ delimiter_ = 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.DimensionExpression.ConcatenateExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ private static final com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ * @return Whether the lowerCase field is set.
+ */
+ @java.lang.Override
+ public boolean hasLowerCase() {
+ return oneExpressionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ * @return The lowerCase.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() {
+ if (oneExpressionCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getLowerCaseOrBuilder() {
+ if (oneExpressionCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+
+ public static final int UPPER_CASE_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ * @return Whether the upperCase field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpperCase() {
+ return oneExpressionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ * @return The upperCase.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() {
+ if (oneExpressionCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getUpperCaseOrBuilder() {
+ if (oneExpressionCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+
+ public static final int CONCATENATE_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return Whether the concatenate field is set.
+ */
+ @java.lang.Override
+ public boolean hasConcatenate() {
+ return oneExpressionCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return The concatenate.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ getConcatenate() {
+ if (oneExpressionCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder
+ getConcatenateOrBuilder() {
+ if (oneExpressionCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ }
+
+ 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 (oneExpressionCase_ == 4) {
+ output.writeMessage(
+ 4, (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_);
+ }
+ if (oneExpressionCase_ == 5) {
+ output.writeMessage(
+ 5, (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_);
+ }
+ if (oneExpressionCase_ == 6) {
+ output.writeMessage(
+ 6,
+ (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (oneExpressionCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4,
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_);
+ }
+ if (oneExpressionCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5,
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_);
+ }
+ if (oneExpressionCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6,
+ (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_);
+ }
+ 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.DimensionExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionExpression other =
+ (com.google.analytics.data.v1alpha.DimensionExpression) obj;
+
+ if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false;
+ switch (oneExpressionCase_) {
+ case 4:
+ if (!getLowerCase().equals(other.getLowerCase())) return false;
+ break;
+ case 5:
+ if (!getUpperCase().equals(other.getUpperCase())) return false;
+ break;
+ case 6:
+ if (!getConcatenate().equals(other.getConcatenate())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (oneExpressionCase_) {
+ case 4:
+ hash = (37 * hash) + LOWER_CASE_FIELD_NUMBER;
+ hash = (53 * hash) + getLowerCase().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + UPPER_CASE_FIELD_NUMBER;
+ hash = (53 * hash) + getUpperCase().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + CONCATENATE_FIELD_NUMBER;
+ hash = (53 * hash) + getConcatenate().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression 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.DimensionExpression parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression 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.DimensionExpression parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression 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.DimensionExpression parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression 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.DimensionExpression parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression 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.DimensionExpression 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.DimensionExpression 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.DimensionExpression 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;
+ }
+ /**
+ *
+ *
+ * + * Used to express a dimension which is the result of a formula of multiple + * dimensions. Example usages: + * 1) lower_case(dimension) + * 2) concatenate(dimension1, symbol, dimension2). + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ *
+ * @return Whether the lowerCase field is set.
+ */
+ @java.lang.Override
+ public boolean hasLowerCase() {
+ return oneExpressionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ *
+ * @return The lowerCase.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() {
+ if (lowerCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ } else {
+ if (oneExpressionCase_ == 4) {
+ return lowerCaseBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ public Builder setLowerCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) {
+ if (lowerCaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneExpression_ = value;
+ onChanged();
+ } else {
+ lowerCaseBuilder_.setMessage(value);
+ }
+ oneExpressionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ public Builder setLowerCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder
+ builderForValue) {
+ if (lowerCaseBuilder_ == null) {
+ oneExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ lowerCaseBuilder_.setMessage(builderForValue.build());
+ }
+ oneExpressionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ public Builder mergeLowerCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) {
+ if (lowerCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 4
+ && oneExpression_
+ != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance()) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder(
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneExpression_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneExpressionCase_ == 4) {
+ lowerCaseBuilder_.mergeFrom(value);
+ } else {
+ lowerCaseBuilder_.setMessage(value);
+ }
+ }
+ oneExpressionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ public Builder clearLowerCase() {
+ if (lowerCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 4) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneExpressionCase_ == 4) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ }
+ lowerCaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder
+ getLowerCaseBuilder() {
+ return getLowerCaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getLowerCaseOrBuilder() {
+ if ((oneExpressionCase_ == 4) && (lowerCaseBuilder_ != null)) {
+ return lowerCaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneExpressionCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>
+ getLowerCaseFieldBuilder() {
+ if (lowerCaseBuilder_ == null) {
+ if (!(oneExpressionCase_ == 4)) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ lowerCaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_,
+ getParentForChildren(),
+ isClean());
+ oneExpression_ = null;
+ }
+ oneExpressionCase_ = 4;
+ onChanged();
+ ;
+ return lowerCaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>
+ upperCaseBuilder_;
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ *
+ * @return Whether the upperCase field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpperCase() {
+ return oneExpressionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ *
+ * @return The upperCase.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() {
+ if (upperCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ } else {
+ if (oneExpressionCase_ == 5) {
+ return upperCaseBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ public Builder setUpperCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) {
+ if (upperCaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneExpression_ = value;
+ onChanged();
+ } else {
+ upperCaseBuilder_.setMessage(value);
+ }
+ oneExpressionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ public Builder setUpperCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder
+ builderForValue) {
+ if (upperCaseBuilder_ == null) {
+ oneExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ upperCaseBuilder_.setMessage(builderForValue.build());
+ }
+ oneExpressionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ public Builder mergeUpperCase(
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) {
+ if (upperCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 5
+ && oneExpression_
+ != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance()) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder(
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneExpression_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneExpressionCase_ == 5) {
+ upperCaseBuilder_.mergeFrom(value);
+ } else {
+ upperCaseBuilder_.setMessage(value);
+ }
+ }
+ oneExpressionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ public Builder clearUpperCase() {
+ if (upperCaseBuilder_ == null) {
+ if (oneExpressionCase_ == 5) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneExpressionCase_ == 5) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ }
+ upperCaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder
+ getUpperCaseBuilder() {
+ return getUpperCaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getUpperCaseOrBuilder() {
+ if ((oneExpressionCase_ == 5) && (upperCaseBuilder_ != null)) {
+ return upperCaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneExpressionCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>
+ getUpperCaseFieldBuilder() {
+ if (upperCaseBuilder_ == null) {
+ if (!(oneExpressionCase_ == 5)) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression
+ .getDefaultInstance();
+ }
+ upperCaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)
+ oneExpression_,
+ getParentForChildren(),
+ isClean());
+ oneExpression_ = null;
+ }
+ oneExpressionCase_ = 5;
+ onChanged();
+ ;
+ return upperCaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder>
+ concatenateBuilder_;
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return Whether the concatenate field is set.
+ */
+ @java.lang.Override
+ public boolean hasConcatenate() {
+ return oneExpressionCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return The concatenate.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ getConcatenate() {
+ if (concatenateBuilder_ == null) {
+ if (oneExpressionCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ } else {
+ if (oneExpressionCase_ == 6) {
+ return concatenateBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ public Builder setConcatenate(
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression value) {
+ if (concatenateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneExpression_ = value;
+ onChanged();
+ } else {
+ concatenateBuilder_.setMessage(value);
+ }
+ oneExpressionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ public Builder setConcatenate(
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder
+ builderForValue) {
+ if (concatenateBuilder_ == null) {
+ oneExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ concatenateBuilder_.setMessage(builderForValue.build());
+ }
+ oneExpressionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ public Builder mergeConcatenate(
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression value) {
+ if (concatenateBuilder_ == null) {
+ if (oneExpressionCase_ == 6
+ && oneExpression_
+ != com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance()) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .newBuilder(
+ (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneExpression_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneExpressionCase_ == 6) {
+ concatenateBuilder_.mergeFrom(value);
+ } else {
+ concatenateBuilder_.setMessage(value);
+ }
+ }
+ oneExpressionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ public Builder clearConcatenate() {
+ if (concatenateBuilder_ == null) {
+ if (oneExpressionCase_ == 6) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneExpressionCase_ == 6) {
+ oneExpressionCase_ = 0;
+ oneExpression_ = null;
+ }
+ concatenateBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder
+ getConcatenateBuilder() {
+ return getConcatenateFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder
+ getConcatenateOrBuilder() {
+ if ((oneExpressionCase_ == 6) && (concatenateBuilder_ != null)) {
+ return concatenateBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneExpressionCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_;
+ }
+ return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
+ * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder>
+ getConcatenateFieldBuilder() {
+ if (concatenateBuilder_ == null) {
+ if (!(oneExpressionCase_ == 6)) {
+ oneExpression_ =
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression
+ .getDefaultInstance();
+ }
+ concatenateBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression,
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder,
+ com.google.analytics.data.v1alpha.DimensionExpression
+ .ConcatenateExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)
+ oneExpression_,
+ getParentForChildren(),
+ isClean());
+ oneExpression_ = null;
+ }
+ oneExpressionCase_ = 6;
+ onChanged();
+ ;
+ return concatenateBuilder_;
+ }
+
+ @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.DimensionExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression)
+ private static final com.google.analytics.data.v1alpha.DimensionExpression DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionExpression getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ * @return Whether the lowerCase field is set.
+ */
+ boolean hasLowerCase();
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ *
+ * @return The lowerCase.
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase();
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to lower case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4;
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getLowerCaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ * @return Whether the upperCase field is set.
+ */
+ boolean hasUpperCase();
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ *
+ * @return The upperCase.
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase();
+ /**
+ *
+ *
+ * + * Used to convert a dimension value to upper case. + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5;
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder
+ getUpperCaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return Whether the concatenate field is set.
+ */
+ boolean hasConcatenate();
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ *
+ * @return The concatenate.
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression getConcatenate();
+ /**
+ *
+ *
+ * + * Used to combine dimension values to a single dimension. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6;
+ *
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder
+ getConcatenateOrBuilder();
+
+ public com.google.analytics.data.v1alpha.DimensionExpression.OneExpressionCase
+ getOneExpressionCase();
+}
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
new file mode 100644
index 00000000..418da030
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java
@@ -0,0 +1,644 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * 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} + */ +public final class DimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionHeader) + DimensionHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionHeader.newBuilder() to construct. + private DimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DimensionHeader() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DimensionHeader( + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionHeader.class, + com.google.analytics.data.v1alpha.DimensionHeader.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ 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.DimensionHeader)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionHeader other =
+ (com.google.analytics.data.v1alpha.DimensionHeader) 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.DimensionHeader parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader 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.DimensionHeader parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader 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.DimensionHeader parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader 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.DimensionHeader parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader 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.DimensionHeader parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader 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.DimensionHeader 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.DimensionHeader 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.DimensionHeader 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;
+ }
+ /**
+ *
+ *
+ * + * 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} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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.DimensionHeader)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionHeader)
+ private static final com.google.analytics.data.v1alpha.DimensionHeader DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionHeader();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The dimension's name. + *+ * + *
string name = 1;
+ *
+ * @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/DimensionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java
new file mode 100644
index 00000000..06c69152
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java
@@ -0,0 +1,106 @@
+/*
+ * 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 DimensionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Dimension)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The name of the dimension. See the [API + * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions) + * for the list of dimension names. + * If `dimensionExpression` is specified, `name` can be any string that you + * would like within the allowed character set. For example if a + * `dimensionExpression` concatenates `country` and `city`, you could call + * that dimension `countryAndCity`. Dimension names that you choose must match + * the regular expression `^[a-zA-Z0-9_]$`. + * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, + * `dimensionExpression`, and `pivots`. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return Whether the dimensionExpression field is set.
+ */
+ boolean hasDimensionExpression();
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ *
+ * @return The dimensionExpression.
+ */
+ com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression();
+ /**
+ *
+ *
+ * + * One dimension can be the result of an expression of multiple dimensions. + * For example, dimension "country, city": concatenate(country, ", ", city). + *+ * + *
.google.analytics.data.v1alpha.DimensionExpression dimension_expression = 2;
+ */
+ com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder getDimensionExpressionOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java
new file mode 100644
index 00000000..b878cc79
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java
@@ -0,0 +1,767 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * The value of a dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionValue} + */ +public final class DimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.DimensionValue) + DimensionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionValue.newBuilder() to construct. + private DimensionValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DimensionValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DimensionValue( + 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(); + oneValueCase_ = 1; + oneValue_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionValue.class, + com.google.analytics.data.v1alpha.DimensionValue.Builder.class); + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(1), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ 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();
+ if (oneValueCase_ == 1) {
+ oneValue_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 1) {
+ oneValue_ = 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 (oneValueCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneValue_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (oneValueCase_ == 1) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneValue_);
+ }
+ 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.DimensionValue)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.DimensionValue other =
+ (com.google.analytics.data.v1alpha.DimensionValue) obj;
+
+ if (!getOneValueCase().equals(other.getOneValueCase())) return false;
+ switch (oneValueCase_) {
+ case 1:
+ if (!getValue().equals(other.getValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (oneValueCase_) {
+ case 1:
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue 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.DimensionValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue 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.DimensionValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue 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.DimensionValue parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue 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.DimensionValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue 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.DimensionValue 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.DimensionValue 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.DimensionValue 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 value of a dimension. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneValueCase_ == 1) {
+ oneValue_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 1) {
+ ref = oneValue_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 1) {
+ oneValue_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneValueCase_ = 1;
+ oneValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ if (oneValueCase_ == 1) {
+ oneValueCase_ = 0;
+ oneValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ oneValueCase_ = 1;
+ oneValue_ = 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.DimensionValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionValue)
+ private static final com.google.analytics.data.v1alpha.DimensionValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionValue();
+ }
+
+ public static com.google.analytics.data.v1alpha.DimensionValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ *
+ *
+ * + * Value as a string if the dimension type is a string. + *+ * + *
string value = 1;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+
+ public com.google.analytics.data.v1alpha.DimensionValue.OneValueCase getOneValueCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java
new file mode 100644
index 00000000..555eb191
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java
@@ -0,0 +1,162 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Scoping specifies which events are considered when evaluating if an event + * meets a criteria. + *+ * + * Protobuf enum {@code google.analytics.data.v1alpha.EventCriteriaScoping} + */ +public enum EventCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified criteria scoping. Do not specify. + *+ * + *
EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0;
+ */
+ EVENT_CRITERIA_SCOPING_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * If the criteria is satisfied within one event, the event matches the + * criteria. + *+ * + *
EVENT_CRITERIA_WITHIN_SAME_EVENT = 1;
+ */
+ EVENT_CRITERIA_WITHIN_SAME_EVENT(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified criteria scoping. Do not specify. + *+ * + *
EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * If the criteria is satisfied within one event, the event matches the + * criteria. + *+ * + *
EVENT_CRITERIA_WITHIN_SAME_EVENT = 1;
+ */
+ public static final int EVENT_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventCriteriaScoping valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventCriteriaScoping forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_CRITERIA_SCOPING_UNSPECIFIED;
+ case 1:
+ return EVENT_CRITERIA_WITHIN_SAME_EVENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Enumerates options for how long an exclusion will last if an event + * matches the `eventExclusionCriteria`. + *+ * + * Protobuf enum {@code google.analytics.data.v1alpha.EventExclusionDuration} + */ +public enum EventExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified exclusion duration. Do not specify. + *+ * + *
EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0;
+ */
+ EVENT_EXCLUSION_DURATION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Permanently exclude events from the segment if the event ever meets + * the `eventExclusionCriteria` condition. + *+ * + *
EVENT_EXCLUSION_PERMANENT = 1;
+ */
+ EVENT_EXCLUSION_PERMANENT(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified exclusion duration. Do not specify. + *+ * + *
EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0;
+ */
+ public static final int EVENT_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Permanently exclude events from the segment if the event ever meets + * the `eventExclusionCriteria` condition. + *+ * + *
EVENT_EXCLUSION_PERMANENT = 1;
+ */
+ public static final int EVENT_EXCLUSION_PERMANENT_VALUE = 1;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static EventExclusionDuration valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static EventExclusionDuration forNumber(int value) {
+ switch (value) {
+ case 0:
+ return EVENT_EXCLUSION_DURATION_UNSPECIFIED;
+ case 1:
+ return EVENT_EXCLUSION_PERMANENT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Event segments are subsets of events that were triggered on your site or app. + * for example, all purchase events made in a particular location; app_exception + * events that occurred on a specific operating system. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} + */ +public final class EventSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegment) + EventSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegment.newBuilder() to construct. + private EventSegment(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private EventSegment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegment( + 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: + { + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder subBuilder = null; + if (eventInclusionCriteria_ != null) { + subBuilder = eventInclusionCriteria_.toBuilder(); + } + eventInclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventInclusionCriteria_); + eventInclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentExclusion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegment.class, + com.google.analytics.data.v1alpha.EventSegment.Builder.class); + } + + public static final int EVENT_INCLUSION_CRITERIA_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.EventSegmentCriteria eventInclusionCriteria_; + /** + * + * + *
+ * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ * @return Whether the eventInclusionCriteria field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventInclusionCriteria() {
+ return eventInclusionCriteria_ != null;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ * @return The eventInclusionCriteria.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() {
+ return eventInclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventInclusionCriteria_;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventInclusionCriteriaOrBuilder() {
+ return getEventInclusionCriteria();
+ }
+
+ public static final int EXCLUSION_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_;
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return Whether the exclusion field is set.
+ */
+ @java.lang.Override
+ public boolean hasExclusion() {
+ return exclusion_ != null;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return The exclusion.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() {
+ return exclusion_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance()
+ : exclusion_;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder() {
+ return getExclusion();
+ }
+
+ 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 (eventInclusionCriteria_ != null) {
+ output.writeMessage(1, getEventInclusionCriteria());
+ }
+ if (exclusion_ != null) {
+ output.writeMessage(2, getExclusion());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventInclusionCriteria_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventInclusionCriteria());
+ }
+ if (exclusion_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion());
+ }
+ 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.EventSegment)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.EventSegment other =
+ (com.google.analytics.data.v1alpha.EventSegment) obj;
+
+ if (hasEventInclusionCriteria() != other.hasEventInclusionCriteria()) return false;
+ if (hasEventInclusionCriteria()) {
+ if (!getEventInclusionCriteria().equals(other.getEventInclusionCriteria())) return false;
+ }
+ if (hasExclusion() != other.hasExclusion()) return false;
+ if (hasExclusion()) {
+ if (!getExclusion().equals(other.getExclusion())) 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 (hasEventInclusionCriteria()) {
+ hash = (37 * hash) + EVENT_INCLUSION_CRITERIA_FIELD_NUMBER;
+ hash = (53 * hash) + getEventInclusionCriteria().hashCode();
+ }
+ if (hasExclusion()) {
+ hash = (37 * hash) + EXCLUSION_FIELD_NUMBER;
+ hash = (53 * hash) + getExclusion().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment 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.EventSegment parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment 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.EventSegment parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment 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.EventSegment parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment 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.EventSegment parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment 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.EventSegment 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.EventSegment 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.EventSegment 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;
+ }
+ /**
+ *
+ *
+ * + * Event segments are subsets of events that were triggered on your site or app. + * for example, all purchase events made in a particular location; app_exception + * events that occurred on a specific operating system. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ *
+ * @return Whether the eventInclusionCriteria field is set.
+ */
+ public boolean hasEventInclusionCriteria() {
+ return eventInclusionCriteriaBuilder_ != null || eventInclusionCriteria_ != null;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ *
+ * @return The eventInclusionCriteria.
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ return eventInclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventInclusionCriteria_;
+ } else {
+ return eventInclusionCriteriaBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public Builder setEventInclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria value) {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventInclusionCriteria_ = value;
+ onChanged();
+ } else {
+ eventInclusionCriteriaBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public Builder setEventInclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ eventInclusionCriteria_ = builderForValue.build();
+ onChanged();
+ } else {
+ eventInclusionCriteriaBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public Builder mergeEventInclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria value) {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ if (eventInclusionCriteria_ != null) {
+ eventInclusionCriteria_ =
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder(
+ eventInclusionCriteria_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ eventInclusionCriteria_ = value;
+ }
+ onChanged();
+ } else {
+ eventInclusionCriteriaBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public Builder clearEventInclusionCriteria() {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ eventInclusionCriteria_ = null;
+ onChanged();
+ } else {
+ eventInclusionCriteria_ = null;
+ eventInclusionCriteriaBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder
+ getEventInclusionCriteriaBuilder() {
+
+ onChanged();
+ return getEventInclusionCriteriaFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventInclusionCriteriaOrBuilder() {
+ if (eventInclusionCriteriaBuilder_ != null) {
+ return eventInclusionCriteriaBuilder_.getMessageOrBuilder();
+ } else {
+ return eventInclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventInclusionCriteria_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentCriteria,
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>
+ getEventInclusionCriteriaFieldBuilder() {
+ if (eventInclusionCriteriaBuilder_ == null) {
+ eventInclusionCriteriaBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentCriteria,
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>(
+ getEventInclusionCriteria(), getParentForChildren(), isClean());
+ eventInclusionCriteria_ = null;
+ }
+ return eventInclusionCriteriaBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentExclusion,
+ com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder>
+ exclusionBuilder_;
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return Whether the exclusion field is set.
+ */
+ public boolean hasExclusion() {
+ return exclusionBuilder_ != null || exclusion_ != null;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return The exclusion.
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() {
+ if (exclusionBuilder_ == null) {
+ return exclusion_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance()
+ : exclusion_;
+ } else {
+ return exclusionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public Builder setExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) {
+ if (exclusionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ exclusion_ = value;
+ onChanged();
+ } else {
+ exclusionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public Builder setExclusion(
+ com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder builderForValue) {
+ if (exclusionBuilder_ == null) {
+ exclusion_ = builderForValue.build();
+ onChanged();
+ } else {
+ exclusionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public Builder mergeExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) {
+ if (exclusionBuilder_ == null) {
+ if (exclusion_ != null) {
+ exclusion_ =
+ com.google.analytics.data.v1alpha.EventSegmentExclusion.newBuilder(exclusion_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ exclusion_ = value;
+ }
+ onChanged();
+ } else {
+ exclusionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public Builder clearExclusion() {
+ if (exclusionBuilder_ == null) {
+ exclusion_ = null;
+ onChanged();
+ } else {
+ exclusion_ = null;
+ exclusionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder getExclusionBuilder() {
+
+ onChanged();
+ return getExclusionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder
+ getExclusionOrBuilder() {
+ if (exclusionBuilder_ != null) {
+ return exclusionBuilder_.getMessageOrBuilder();
+ } else {
+ return exclusion_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance()
+ : exclusion_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentExclusion,
+ com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder>
+ getExclusionFieldBuilder() {
+ if (exclusionBuilder_ == null) {
+ exclusionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentExclusion,
+ com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder>(
+ getExclusion(), getParentForChildren(), isClean());
+ exclusion_ = null;
+ }
+ return exclusionBuilder_;
+ }
+
+ @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.EventSegment)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegment)
+ private static final com.google.analytics.data.v1alpha.EventSegment DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegment();
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegment getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Conditions tell Analytics what data to include in or exclude from the + * segment. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} + */ +public final class EventSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentConditionGroup) + EventSegmentConditionGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentConditionGroup.newBuilder() to construct. + private EventSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private EventSegmentConditionGroup() { + conditionScoping_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentConditionGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentConditionGroup( + 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 8: + { + int rawValue = input.readEnum(); + + conditionScoping_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (segmentFilterExpression_ != null) { + subBuilder = segmentFilterExpression_.toBuilder(); + } + segmentFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentFilterExpression_); + segmentFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder.class); + } + + public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; + private int conditionScoping_; + /** + * + * + *
+ * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The enum numeric value on the wire for conditionScoping.
+ */
+ @java.lang.Override
+ public int getConditionScopingValue() {
+ return conditionScoping_;
+ }
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The conditionScoping.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.EventCriteriaScoping result =
+ com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_;
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return Whether the segmentFilterExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasSegmentFilterExpression() {
+ return segmentFilterExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return The segmentFilterExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() {
+ return segmentFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()
+ : segmentFilterExpression_;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder
+ getSegmentFilterExpressionOrBuilder() {
+ return getSegmentFilterExpression();
+ }
+
+ 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 (conditionScoping_
+ != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, conditionScoping_);
+ }
+ if (segmentFilterExpression_ != null) {
+ output.writeMessage(2, getSegmentFilterExpression());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (conditionScoping_
+ != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_);
+ }
+ if (segmentFilterExpression_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression());
+ }
+ 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.EventSegmentConditionGroup)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup other =
+ (com.google.analytics.data.v1alpha.EventSegmentConditionGroup) obj;
+
+ if (conditionScoping_ != other.conditionScoping_) return false;
+ if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false;
+ if (hasSegmentFilterExpression()) {
+ if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) 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) + CONDITION_SCOPING_FIELD_NUMBER;
+ hash = (53 * hash) + conditionScoping_;
+ if (hasSegmentFilterExpression()) {
+ hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getSegmentFilterExpression().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.EventSegmentConditionGroup parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.EventSegmentConditionGroup parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.EventSegmentConditionGroup parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.EventSegmentConditionGroup parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.EventSegmentConditionGroup 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.EventSegmentConditionGroup 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.EventSegmentConditionGroup 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;
+ }
+ /**
+ *
+ *
+ * + * Conditions tell Analytics what data to include in or exclude from the + * segment. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The enum numeric value on the wire for conditionScoping.
+ */
+ @java.lang.Override
+ public int getConditionScopingValue() {
+ return conditionScoping_;
+ }
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @param value The enum numeric value on the wire for conditionScoping to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConditionScopingValue(int value) {
+
+ conditionScoping_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The conditionScoping.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.EventCriteriaScoping result =
+ com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @param value The conditionScoping to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConditionScoping(
+ com.google.analytics.data.v1alpha.EventCriteriaScoping value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ conditionScoping_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearConditionScoping() {
+
+ conditionScoping_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.SegmentFilterExpression,
+ com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>
+ segmentFilterExpressionBuilder_;
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return Whether the segmentFilterExpression field is set.
+ */
+ public boolean hasSegmentFilterExpression() {
+ return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return The segmentFilterExpression.
+ */
+ public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() {
+ if (segmentFilterExpressionBuilder_ == null) {
+ return segmentFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()
+ : segmentFilterExpression_;
+ } else {
+ return segmentFilterExpressionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public Builder setSegmentFilterExpression(
+ com.google.analytics.data.v1alpha.SegmentFilterExpression value) {
+ if (segmentFilterExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ segmentFilterExpression_ = value;
+ onChanged();
+ } else {
+ segmentFilterExpressionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public Builder setSegmentFilterExpression(
+ com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) {
+ if (segmentFilterExpressionBuilder_ == null) {
+ segmentFilterExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ segmentFilterExpressionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public Builder mergeSegmentFilterExpression(
+ com.google.analytics.data.v1alpha.SegmentFilterExpression value) {
+ if (segmentFilterExpressionBuilder_ == null) {
+ if (segmentFilterExpression_ != null) {
+ segmentFilterExpression_ =
+ com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder(
+ segmentFilterExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ segmentFilterExpression_ = value;
+ }
+ onChanged();
+ } else {
+ segmentFilterExpressionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public Builder clearSegmentFilterExpression() {
+ if (segmentFilterExpressionBuilder_ == null) {
+ segmentFilterExpression_ = null;
+ onChanged();
+ } else {
+ segmentFilterExpression_ = null;
+ segmentFilterExpressionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder
+ getSegmentFilterExpressionBuilder() {
+
+ onChanged();
+ return getSegmentFilterExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder
+ getSegmentFilterExpressionOrBuilder() {
+ if (segmentFilterExpressionBuilder_ != null) {
+ return segmentFilterExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ return segmentFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()
+ : segmentFilterExpression_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.SegmentFilterExpression,
+ com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>
+ getSegmentFilterExpressionFieldBuilder() {
+ if (segmentFilterExpressionBuilder_ == null) {
+ segmentFilterExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.SegmentFilterExpression,
+ com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>(
+ getSegmentFilterExpression(), getParentForChildren(), isClean());
+ segmentFilterExpression_ = null;
+ }
+ return segmentFilterExpressionBuilder_;
+ }
+
+ @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.EventSegmentConditionGroup)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentConditionGroup)
+ private static final com.google.analytics.data.v1alpha.EventSegmentConditionGroup
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentConditionGroup();
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The enum numeric value on the wire for conditionScoping.
+ */
+ int getConditionScopingValue();
+ /**
+ *
+ *
+ * + * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + * Optional. If unspecified, a `conditionScoping` of + * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1;
+ *
+ * @return The conditionScoping.
+ */
+ com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping();
+
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return Whether the segmentFilterExpression field is set.
+ */
+ boolean hasSegmentFilterExpression();
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ *
+ * @return The segmentFilterExpression.
+ */
+ com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression();
+ /**
+ *
+ *
+ * + * Data is included or excluded from the segment based on if it matches + * this expression. Expressions express criteria on dimension, metrics, + * and/or parameters. + *+ * + *
.google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2;
+ *
+ */
+ com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder
+ getSegmentFilterExpressionOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java
new file mode 100644
index 00000000..960c6a2a
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java
@@ -0,0 +1,1054 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * An event matches a criteria if the event meet the conditions in the + * criteria. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} + */ +public final class EventSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentCriteria) + EventSegmentCriteriaOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentCriteria.newBuilder() to construct. + private EventSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private EventSegmentCriteria() { + andConditionGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentCriteria(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentCriteria( + 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)) { + andConditionGroups_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.EventSegmentConditionGroup>(); + mutable_bitField0_ |= 0x00000001; + } + andConditionGroups_.add( + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + } + 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_EventSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentCriteria.class, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder.class); + } + + public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; + private java.util.List
+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder>
+ getAndConditionGroupsOrBuilderList() {
+ return andConditionGroups_;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ @java.lang.Override
+ public int getAndConditionGroupsCount() {
+ return andConditionGroups_.size();
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups(
+ int index) {
+ return andConditionGroups_.get(index);
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder
+ getAndConditionGroupsOrBuilder(int index) {
+ return andConditionGroups_.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 < andConditionGroups_.size(); i++) {
+ output.writeMessage(1, andConditionGroups_.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 < andConditionGroups_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.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.EventSegmentCriteria)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.EventSegmentCriteria other =
+ (com.google.analytics.data.v1alpha.EventSegmentCriteria) obj;
+
+ if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) 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 (getAndConditionGroupsCount() > 0) {
+ hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getAndConditionGroupsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.EventSegmentCriteria parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.EventSegmentCriteria parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.EventSegmentCriteria parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.EventSegmentCriteria parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.EventSegmentCriteria 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.EventSegmentCriteria 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.EventSegmentCriteria 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;
+ }
+ /**
+ *
+ *
+ * + * An event matches a criteria if the event meet the conditions in the + * criteria. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public java.util.List+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public int getAndConditionGroupsCount() {
+ if (andConditionGroupsBuilder_ == null) {
+ return andConditionGroups_.size();
+ } else {
+ return andConditionGroupsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups(
+ int index) {
+ if (andConditionGroupsBuilder_ == null) {
+ return andConditionGroups_.get(index);
+ } else {
+ return andConditionGroupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder setAndConditionGroups(
+ int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) {
+ if (andConditionGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.set(index, value);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder setAndConditionGroups(
+ int index,
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) {
+ if (andConditionGroupsBuilder_ == null) {
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder addAndConditionGroups(
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) {
+ if (andConditionGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.add(value);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder addAndConditionGroups(
+ int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) {
+ if (andConditionGroupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.add(index, value);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder addAndConditionGroups(
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) {
+ if (andConditionGroupsBuilder_ == null) {
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder addAndConditionGroups(
+ int index,
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) {
+ if (andConditionGroupsBuilder_ == null) {
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder addAllAndConditionGroups(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.EventSegmentConditionGroup>
+ values) {
+ if (andConditionGroupsBuilder_ == null) {
+ ensureAndConditionGroupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder clearAndConditionGroups() {
+ if (andConditionGroupsBuilder_ == null) {
+ andConditionGroups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public Builder removeAndConditionGroups(int index) {
+ if (andConditionGroupsBuilder_ == null) {
+ ensureAndConditionGroupsIsMutable();
+ andConditionGroups_.remove(index);
+ onChanged();
+ } else {
+ andConditionGroupsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder
+ getAndConditionGroupsBuilder(int index) {
+ return getAndConditionGroupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder
+ getAndConditionGroupsOrBuilder(int index) {
+ if (andConditionGroupsBuilder_ == null) {
+ return andConditionGroups_.get(index);
+ } else {
+ return andConditionGroupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder>
+ getAndConditionGroupsOrBuilderList() {
+ if (andConditionGroupsBuilder_ != null) {
+ return andConditionGroupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(andConditionGroups_);
+ }
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder
+ addAndConditionGroupsBuilder() {
+ return getAndConditionGroupsFieldBuilder()
+ .addBuilder(
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder
+ addAndConditionGroupsBuilder(int index) {
+ return getAndConditionGroupsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ public java.util.List+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ java.util.List+ * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups(int index);
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ int getAndConditionGroupsCount();
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder>
+ getAndConditionGroupsOrBuilderList();
+ /**
+ *
+ *
+ * + * An event matches this criteria if the event matches each of these + * `andConditionGroups`. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1;
+ *
+ */
+ com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder
+ getAndConditionGroupsOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java
new file mode 100644
index 00000000..952466f7
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java
@@ -0,0 +1,949 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Specifies which events are excluded in this segment. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} + */ +public final class EventSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentExclusion) + EventSegmentExclusionOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentExclusion.newBuilder() to construct. + private EventSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private EventSegmentExclusion() { + eventExclusionDuration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentExclusion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentExclusion( + 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 8: + { + int rawValue = input.readEnum(); + + eventExclusionDuration_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder subBuilder = null; + if (eventExclusionCriteria_ != null) { + subBuilder = eventExclusionCriteria_.toBuilder(); + } + eventExclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventExclusionCriteria_); + eventExclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentExclusion.class, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder.class); + } + + public static final int EVENT_EXCLUSION_DURATION_FIELD_NUMBER = 1; + private int eventExclusionDuration_; + /** + * + * + *
+ * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for eventExclusionDuration.
+ */
+ @java.lang.Override
+ public int getEventExclusionDurationValue() {
+ return eventExclusionDuration_;
+ }
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The eventExclusionDuration.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.EventExclusionDuration result =
+ com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_;
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ * @return Whether the eventExclusionCriteria field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventExclusionCriteria() {
+ return eventExclusionCriteria_ != null;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ * @return The eventExclusionCriteria.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() {
+ return eventExclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventExclusionCriteria_;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventExclusionCriteriaOrBuilder() {
+ return getEventExclusionCriteria();
+ }
+
+ 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 (eventExclusionDuration_
+ != com.google.analytics.data.v1alpha.EventExclusionDuration
+ .EVENT_EXCLUSION_DURATION_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, eventExclusionDuration_);
+ }
+ if (eventExclusionCriteria_ != null) {
+ output.writeMessage(2, getEventExclusionCriteria());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (eventExclusionDuration_
+ != com.google.analytics.data.v1alpha.EventExclusionDuration
+ .EVENT_EXCLUSION_DURATION_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventExclusionDuration_);
+ }
+ if (eventExclusionCriteria_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventExclusionCriteria());
+ }
+ 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.EventSegmentExclusion)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.EventSegmentExclusion other =
+ (com.google.analytics.data.v1alpha.EventSegmentExclusion) obj;
+
+ if (eventExclusionDuration_ != other.eventExclusionDuration_) return false;
+ if (hasEventExclusionCriteria() != other.hasEventExclusionCriteria()) return false;
+ if (hasEventExclusionCriteria()) {
+ if (!getEventExclusionCriteria().equals(other.getEventExclusionCriteria())) 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) + EVENT_EXCLUSION_DURATION_FIELD_NUMBER;
+ hash = (53 * hash) + eventExclusionDuration_;
+ if (hasEventExclusionCriteria()) {
+ hash = (37 * hash) + EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER;
+ hash = (53 * hash) + getEventExclusionCriteria().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.EventSegmentExclusion parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.EventSegmentExclusion parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.EventSegmentExclusion parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.EventSegmentExclusion parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.EventSegmentExclusion 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.EventSegmentExclusion 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.EventSegmentExclusion 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;
+ }
+ /**
+ *
+ *
+ * + * Specifies which events are excluded in this segment. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for eventExclusionDuration.
+ */
+ @java.lang.Override
+ public int getEventExclusionDurationValue() {
+ return eventExclusionDuration_;
+ }
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @param value The enum numeric value on the wire for eventExclusionDuration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventExclusionDurationValue(int value) {
+
+ eventExclusionDuration_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The eventExclusionDuration.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.EventExclusionDuration result =
+ com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @param value The eventExclusionDuration to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventExclusionDuration(
+ com.google.analytics.data.v1alpha.EventExclusionDuration value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ eventExclusionDuration_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventExclusionDuration() {
+
+ eventExclusionDuration_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentCriteria,
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>
+ eventExclusionCriteriaBuilder_;
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ *
+ * @return Whether the eventExclusionCriteria field is set.
+ */
+ public boolean hasEventExclusionCriteria() {
+ return eventExclusionCriteriaBuilder_ != null || eventExclusionCriteria_ != null;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ *
+ * @return The eventExclusionCriteria.
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ return eventExclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventExclusionCriteria_;
+ } else {
+ return eventExclusionCriteriaBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public Builder setEventExclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria value) {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ eventExclusionCriteria_ = value;
+ onChanged();
+ } else {
+ eventExclusionCriteriaBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public Builder setEventExclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ eventExclusionCriteria_ = builderForValue.build();
+ onChanged();
+ } else {
+ eventExclusionCriteriaBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public Builder mergeEventExclusionCriteria(
+ com.google.analytics.data.v1alpha.EventSegmentCriteria value) {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ if (eventExclusionCriteria_ != null) {
+ eventExclusionCriteria_ =
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder(
+ eventExclusionCriteria_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ eventExclusionCriteria_ = value;
+ }
+ onChanged();
+ } else {
+ eventExclusionCriteriaBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public Builder clearEventExclusionCriteria() {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ eventExclusionCriteria_ = null;
+ onChanged();
+ } else {
+ eventExclusionCriteria_ = null;
+ eventExclusionCriteriaBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder
+ getEventExclusionCriteriaBuilder() {
+
+ onChanged();
+ return getEventExclusionCriteriaFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventExclusionCriteriaOrBuilder() {
+ if (eventExclusionCriteriaBuilder_ != null) {
+ return eventExclusionCriteriaBuilder_.getMessageOrBuilder();
+ } else {
+ return eventExclusionCriteria_ == null
+ ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()
+ : eventExclusionCriteria_;
+ }
+ }
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentCriteria,
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>
+ getEventExclusionCriteriaFieldBuilder() {
+ if (eventExclusionCriteriaBuilder_ == null) {
+ eventExclusionCriteriaBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.EventSegmentCriteria,
+ com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder,
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>(
+ getEventExclusionCriteria(), getParentForChildren(), isClean());
+ eventExclusionCriteria_ = null;
+ }
+ return eventExclusionCriteriaBuilder_;
+ }
+
+ @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.EventSegmentExclusion)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentExclusion)
+ private static final com.google.analytics.data.v1alpha.EventSegmentExclusion DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentExclusion();
+ }
+
+ public static com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The enum numeric value on the wire for eventExclusionDuration.
+ */
+ int getEventExclusionDurationValue();
+ /**
+ *
+ *
+ * + * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + * Optional. If unspecified, an `eventExclusionDuration` of + * `EVENT_EXCLUSION_PERMANENT` is used. + *+ * + *
.google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1;
+ *
+ *
+ * @return The eventExclusionDuration.
+ */
+ com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration();
+
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ * @return Whether the eventExclusionCriteria field is set.
+ */
+ boolean hasEventExclusionCriteria();
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ *
+ * @return The eventExclusionCriteria.
+ */
+ com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria();
+ /**
+ *
+ *
+ * + * If an event meets this condition, the event is excluded from membership + * in the segment for the `eventExclusionDuration`. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2;
+ */
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventExclusionCriteriaOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java
new file mode 100644
index 00000000..9c0a76f6
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java
@@ -0,0 +1,96 @@
+/*
+ * 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 EventSegmentOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegment)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ * @return Whether the eventInclusionCriteria field is set.
+ */
+ boolean hasEventInclusionCriteria();
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ *
+ * @return The eventInclusionCriteria.
+ */
+ com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria();
+ /**
+ *
+ *
+ * + * Defines which events are included in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1;
+ */
+ com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder
+ getEventInclusionCriteriaOrBuilder();
+
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return Whether the exclusion field is set.
+ */
+ boolean hasExclusion();
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ *
+ * @return The exclusion.
+ */
+ com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion();
+ /**
+ *
+ *
+ * + * Defines which events are excluded in this segment. Optional. + *+ * + *
.google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2;
+ */
+ com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java
new file mode 100644
index 00000000..1facc0d4
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java
@@ -0,0 +1,1947 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * An expression to filter dimension or metric values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Filter} + */ +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Filter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Filter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Filter( + 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(); + + fieldName_ = s; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Filter.class, + com.google.analytics.data.v1alpha.Filter.Builder.class); + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldName_; + /** + * + * + *
+ * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ @java.lang.Override
+ public java.lang.String getFieldName() {
+ java.lang.Object ref = fieldName_;
+ 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();
+ fieldName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFieldNameBytes() {
+ java.lang.Object ref = fieldName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STRING_FILTER_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (oneFilterCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if (oneFilterCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+
+ public static final int IN_LIST_FILTER_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (oneFilterCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if (oneFilterCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+
+ public static final int NUMERIC_FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+
+ public static final int BETWEEN_FILTER_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_);
+ }
+ if (oneFilterCase_ == 2) {
+ output.writeMessage(2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 3) {
+ output.writeMessage(3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ output.writeMessage(5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_);
+ }
+ if (oneFilterCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ 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.Filter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.Filter other = (com.google.analytics.data.v1alpha.Filter) obj;
+
+ if (!getFieldName().equals(other.getFieldName())) return false;
+ if (!getOneFilterCase().equals(other.getOneFilterCase())) return false;
+ switch (oneFilterCase_) {
+ case 2:
+ if (!getStringFilter().equals(other.getStringFilter())) return false;
+ break;
+ case 3:
+ if (!getInListFilter().equals(other.getInListFilter())) return false;
+ break;
+ case 4:
+ if (!getNumericFilter().equals(other.getNumericFilter())) return false;
+ break;
+ case 5:
+ if (!getBetweenFilter().equals(other.getBetweenFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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) + FIELD_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldName().hashCode();
+ switch (oneFilterCase_) {
+ case 2:
+ hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getStringFilter().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getInListFilter().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericFilter().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getBetweenFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter 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.Filter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter 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.Filter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter 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.Filter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter 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.Filter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter 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.Filter 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.Filter 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.Filter 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;
+ }
+ /**
+ *
+ *
+ * + * An expression to filter dimension or metric values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Filter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ public java.lang.String getFieldName() {
+ java.lang.Object ref = fieldName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fieldName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ public com.google.protobuf.ByteString getFieldNameBytes() {
+ java.lang.Object ref = fieldName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @param value The fieldName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFieldName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fieldName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFieldName() {
+
+ fieldName_ = getDefaultInstance().getFieldName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @param value The bytes for fieldName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFieldNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fieldName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ stringFilterBuilder_;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 2) {
+ return stringFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ public Builder setStringFilter(
+ com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) {
+ if (stringFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 2
+ && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.StringFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 2) {
+ stringFilterBuilder_.mergeFrom(value);
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ public Builder clearStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 2) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 2) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ stringFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() {
+ return getStringFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) {
+ return stringFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ getStringFilterFieldBuilder() {
+ if (stringFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 2)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ stringFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 2;
+ onChanged();
+ ;
+ return stringFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ inListFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 3) {
+ return inListFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ public Builder setInListFilter(
+ com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) {
+ if (inListFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 3
+ && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.InListFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 3) {
+ inListFilterBuilder_.mergeFrom(value);
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ public Builder clearInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 3) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 3) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ inListFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() {
+ return getInListFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) {
+ return inListFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ getInListFilterFieldBuilder() {
+ if (inListFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 3)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ inListFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 3;
+ onChanged();
+ ;
+ return inListFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ numericFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return numericFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ public Builder setNumericFilter(
+ com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) {
+ if (numericFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4
+ && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.NumericFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 4) {
+ numericFilterBuilder_.mergeFrom(value);
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ public Builder clearNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ numericFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() {
+ return getNumericFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) {
+ return numericFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ getNumericFilterFieldBuilder() {
+ if (numericFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 4)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ numericFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 4;
+ onChanged();
+ ;
+ return numericFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ betweenFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return betweenFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ public Builder setBetweenFilter(
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) {
+ if (betweenFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5
+ && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.BetweenFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 5) {
+ betweenFilterBuilder_.mergeFrom(value);
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ public Builder clearBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ betweenFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() {
+ return getBetweenFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) {
+ return betweenFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ getBetweenFilterFieldBuilder() {
+ if (betweenFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 5)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ betweenFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 5;
+ onChanged();
+ ;
+ return betweenFilterBuilder_;
+ }
+
+ @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.Filter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter)
+ private static final com.google.analytics.data.v1alpha.Filter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter();
+ }
+
+ public static com.google.analytics.data.v1alpha.Filter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * To express dimension or metric filters. The fields in the same + * FilterExpression need to be either all dimensions or all metrics. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FilterExpression} + */ +public final class FilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FilterExpression) + FilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilterExpression.newBuilder() to construct. + private FilterExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FilterExpression( + 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: + { + com.google.analytics.data.v1alpha.FilterExpressionList.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FilterExpressionList.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.Filter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = ((com.google.analytics.data.v1alpha.Filter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.Filter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.Filter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FilterExpression.class, + com.google.analytics.data.v1alpha.FilterExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + FILTER(4), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+ * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+
+ public static final int OR_GROUP_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+
+ public static final int NOT_EXPRESSION_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ }
+
+ public static final int FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return Whether the filter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Filter getFilter() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.Filter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.Filter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ }
+
+ 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 (exprCase_ == 1) {
+ output.writeMessage(1, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ output.writeMessage(2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ output.writeMessage(3, (com.google.analytics.data.v1alpha.FilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.Filter) expr_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (exprCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.analytics.data.v1alpha.FilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.Filter) expr_);
+ }
+ 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.FilterExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FilterExpression other =
+ (com.google.analytics.data.v1alpha.FilterExpression) obj;
+
+ if (!getExprCase().equals(other.getExprCase())) return false;
+ switch (exprCase_) {
+ case 1:
+ if (!getAndGroup().equals(other.getAndGroup())) return false;
+ break;
+ case 2:
+ if (!getOrGroup().equals(other.getOrGroup())) return false;
+ break;
+ case 3:
+ if (!getNotExpression().equals(other.getNotExpression())) return false;
+ break;
+ case 4:
+ if (!getFilter().equals(other.getFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (exprCase_) {
+ case 1:
+ hash = (37 * hash) + AND_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getAndGroup().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + OR_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getOrGroup().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getNotExpression().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression 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.FilterExpression parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression 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.FilterExpression parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression 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.FilterExpression parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression 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.FilterExpression parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression 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.FilterExpression 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.FilterExpression 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.FilterExpression 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;
+ }
+ /**
+ *
+ *
+ * + * To express dimension or metric filters. The fields in the same + * FilterExpression need to be either all dimensions or all metrics. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ } else {
+ if (exprCase_ == 1) {
+ return andGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ public Builder setAndGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ public Builder setAndGroup(
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder builderForValue) {
+ if (andGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ public Builder mergeAndGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1
+ && expr_
+ != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 1) {
+ andGroupBuilder_.mergeFrom(value);
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ public Builder clearAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ andGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getAndGroupBuilder() {
+ return getAndGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() {
+ if ((exprCase_ == 1) && (andGroupBuilder_ != null)) {
+ return andGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpressionList,
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>
+ getAndGroupFieldBuilder() {
+ if (andGroupBuilder_ == null) {
+ if (!(exprCase_ == 1)) {
+ expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ andGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpressionList,
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 1;
+ onChanged();
+ ;
+ return andGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpressionList,
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>
+ orGroupBuilder_;
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ } else {
+ if (exprCase_ == 2) {
+ return orGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder builderForValue) {
+ if (orGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ public Builder mergeOrGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2
+ && expr_
+ != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 2) {
+ orGroupBuilder_.mergeFrom(value);
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ public Builder clearOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ orGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getOrGroupBuilder() {
+ return getOrGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() {
+ if ((exprCase_ == 2) && (orGroupBuilder_ != null)) {
+ return orGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpressionList,
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>
+ getOrGroupFieldBuilder() {
+ if (orGroupBuilder_ == null) {
+ if (!(exprCase_ == 2)) {
+ expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance();
+ }
+ orGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpressionList,
+ com.google.analytics.data.v1alpha.FilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 2;
+ onChanged();
+ ;
+ return orGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpression,
+ com.google.analytics.data.v1alpha.FilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>
+ notExpressionBuilder_;
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ } else {
+ if (exprCase_ == 3) {
+ return notExpressionBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ public Builder setNotExpression(com.google.analytics.data.v1alpha.FilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ public Builder setNotExpression(
+ com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) {
+ if (notExpressionBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ public Builder mergeNotExpression(com.google.analytics.data.v1alpha.FilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3
+ && expr_ != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FilterExpression.newBuilder(
+ (com.google.analytics.data.v1alpha.FilterExpression) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 3) {
+ notExpressionBuilder_.mergeFrom(value);
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ public Builder clearNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ notExpressionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpression.Builder getNotExpressionBuilder() {
+ return getNotExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() {
+ if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) {
+ return notExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpression,
+ com.google.analytics.data.v1alpha.FilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>
+ getNotExpressionFieldBuilder() {
+ if (notExpressionBuilder_ == null) {
+ if (!(exprCase_ == 3)) {
+ expr_ = com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance();
+ }
+ notExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FilterExpression,
+ com.google.analytics.data.v1alpha.FilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.FilterExpression) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 3;
+ onChanged();
+ ;
+ return notExpressionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Filter,
+ com.google.analytics.data.v1alpha.Filter.Builder,
+ com.google.analytics.data.v1alpha.FilterOrBuilder>
+ filterBuilder_;
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return Whether the filter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return The filter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Filter getFilter() {
+ if (filterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.Filter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ } else {
+ if (exprCase_ == 4) {
+ return filterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ public Builder setFilter(com.google.analytics.data.v1alpha.Filter value) {
+ if (filterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(value);
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ public Builder setFilter(com.google.analytics.data.v1alpha.Filter.Builder builderForValue) {
+ if (filterBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ filterBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ public Builder mergeFilter(com.google.analytics.data.v1alpha.Filter value) {
+ if (filterBuilder_ == null) {
+ if (exprCase_ == 4
+ && expr_ != com.google.analytics.data.v1alpha.Filter.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.Filter.newBuilder(
+ (com.google.analytics.data.v1alpha.Filter) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 4) {
+ filterBuilder_.mergeFrom(value);
+ } else {
+ filterBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ public Builder clearFilter() {
+ if (filterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ filterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ public com.google.analytics.data.v1alpha.Filter.Builder getFilterBuilder() {
+ return getFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() {
+ if ((exprCase_ == 4) && (filterBuilder_ != null)) {
+ return filterBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.Filter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Filter,
+ com.google.analytics.data.v1alpha.Filter.Builder,
+ com.google.analytics.data.v1alpha.FilterOrBuilder>
+ getFilterFieldBuilder() {
+ if (filterBuilder_ == null) {
+ if (!(exprCase_ == 4)) {
+ expr_ = com.google.analytics.data.v1alpha.Filter.getDefaultInstance();
+ }
+ filterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Filter,
+ com.google.analytics.data.v1alpha.Filter.Builder,
+ com.google.analytics.data.v1alpha.FilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.Filter) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 4;
+ onChanged();
+ ;
+ return filterBuilder_;
+ }
+
+ @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.FilterExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpression)
+ private static final com.google.analytics.data.v1alpha.FilterExpression DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpression getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FilterExpressionList} + */ +public final class FilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FilterExpressionList) + FilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FilterExpressionList.newBuilder() to construct. + private FilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FilterExpressionList( + 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)) { + expressions_ = + new java.util.ArrayList
+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ return expressions_;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public int getExpressionsCount() {
+ return expressions_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index) {
+ return expressions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(
+ int index) {
+ return expressions_.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 < expressions_.size(); i++) {
+ output.writeMessage(1, expressions_.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 < expressions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.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.FilterExpressionList)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FilterExpressionList other =
+ (com.google.analytics.data.v1alpha.FilterExpressionList) obj;
+
+ if (!getExpressionsList().equals(other.getExpressionsList())) 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 (getExpressionsCount() > 0) {
+ hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExpressionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList 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.FilterExpressionList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList 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.FilterExpressionList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList 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.FilterExpressionList parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList 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.FilterExpressionList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FilterExpressionList 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.FilterExpressionList 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.FilterExpressionList 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.FilterExpressionList 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;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public java.util.List+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public int getExpressionsCount() {
+ if (expressionsBuilder_ == null) {
+ return expressions_.size();
+ } else {
+ return expressionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder setExpressions(
+ int index, com.google.analytics.data.v1alpha.FilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.set(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder setExpressions(
+ int index, com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder addExpressions(com.google.analytics.data.v1alpha.FilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ int index, com.google.analytics.data.v1alpha.FilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ int index, com.google.analytics.data.v1alpha.FilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder addAllExpressions(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.FilterExpression> values) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_);
+ onChanged();
+ } else {
+ expressionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder clearExpressions() {
+ if (expressionsBuilder_ == null) {
+ expressions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ expressionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public Builder removeExpressions(int index) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.remove(index);
+ onChanged();
+ } else {
+ expressionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpression.Builder getExpressionsBuilder(
+ int index) {
+ return getExpressionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(
+ int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ if (expressionsBuilder_ != null) {
+ return expressionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(expressions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder() {
+ return getExpressionsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder(
+ int index) {
+ return getExpressionsFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ public java.util.List+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ java.util.List+ * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index);
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ int getExpressionsCount();
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>
+ getExpressionsOrBuilderList();
+ /**
+ *
+ *
+ * + * A list of filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1;
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java
new file mode 100644
index 00000000..68ef0917
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java
@@ -0,0 +1,170 @@
+/*
+ * 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 FilterExpressionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpression)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ boolean hasAndGroup();
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup();
+ /**
+ *
+ *
+ * + * The FilterExpressions in and_group have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList and_group = 1;
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ boolean hasOrGroup();
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup();
+ /**
+ *
+ *
+ * + * The FilterExpressions in or_group have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FilterExpressionList or_group = 2;
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ boolean hasNotExpression();
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ com.google.analytics.data.v1alpha.FilterExpression getNotExpression();
+ /**
+ *
+ *
+ * + * The FilterExpression is NOT of not_expression. + *+ * + *
.google.analytics.data.v1alpha.FilterExpression not_expression = 3;
+ */
+ com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder();
+
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return Whether the filter field is set.
+ */
+ boolean hasFilter();
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ *
+ * @return The filter.
+ */
+ com.google.analytics.data.v1alpha.Filter getFilter();
+ /**
+ *
+ *
+ * + * A primitive filter. In the same FilterExpression, all of the filter's + * field names need to be either all dimensions or all metrics. + *+ * + *
.google.analytics.data.v1alpha.Filter filter = 4;
+ */
+ com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.FilterExpression.ExprCase getExprCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java
new file mode 100644
index 00000000..769dabb5
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java
@@ -0,0 +1,194 @@
+/*
+ * 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 FilterOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Filter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ java.lang.String getFieldName();
+ /**
+ *
+ *
+ * + * The dimension name or metric name. Must be a name defined in dimensions + * or metrics. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ com.google.protobuf.ByteString getFieldNameBytes();
+
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ boolean hasStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ *
+ * @return The stringFilter.
+ */
+ com.google.analytics.data.v1alpha.StringFilter getStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 2;
+ */
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ boolean hasInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ *
+ * @return The inListFilter.
+ */
+ com.google.analytics.data.v1alpha.InListFilter getInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 3;
+ */
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ boolean hasNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ *
+ * @return The numericFilter.
+ */
+ com.google.analytics.data.v1alpha.NumericFilter getNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 4;
+ */
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ boolean hasBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ *
+ * @return The betweenFilter.
+ */
+ com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 5;
+ */
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.Filter.OneFilterCase getOneFilterCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java
new file mode 100644
index 00000000..95c6463f
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java
@@ -0,0 +1,1058 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Configures the funnel in a funnel report request. A funnel reports on users + * as they pass through a sequence of steps. + * Funnel exploration lets you visualize the steps your users take to complete a + * task and quickly see how well they are succeeding or failing at each step. + * For example, how do prospects become shoppers and then become buyers? How do + * one time buyers become repeat buyers? With this information, you can improve + * inefficient or abandoned customer journeys. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Funnel} + */ +public final class Funnel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Funnel) + FunnelOrBuilder { + private static final long serialVersionUID = 0L; + // Use Funnel.newBuilder() to construct. + private Funnel(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Funnel() { + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Funnel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Funnel( + 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 8: + { + isOpenFunnel_ = input.readBool(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + steps_ = new java.util.ArrayList
+ * In an open funnel, users can enter the funnel in any step, and in a closed + * funnel, users must enter the funnel in the first step. Optional. If + * unspecified, a closed funnel is used. + *+ * + *
bool is_open_funnel = 1;
+ *
+ * @return The isOpenFunnel.
+ */
+ @java.lang.Override
+ public boolean getIsOpenFunnel() {
+ return isOpenFunnel_;
+ }
+
+ public static final int STEPS_FIELD_NUMBER = 2;
+ private java.util.List+ * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ @java.lang.Override
+ public java.util.List+ * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.FunnelStepOrBuilder>
+ getStepsOrBuilderList() {
+ return steps_;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ @java.lang.Override
+ public int getStepsCount() {
+ return steps_.size();
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) {
+ return steps_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) {
+ return steps_.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 {
+ if (isOpenFunnel_ != false) {
+ output.writeBool(1, isOpenFunnel_);
+ }
+ for (int i = 0; i < steps_.size(); i++) {
+ output.writeMessage(2, steps_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (isOpenFunnel_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isOpenFunnel_);
+ }
+ for (int i = 0; i < steps_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, steps_.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.Funnel)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.Funnel other = (com.google.analytics.data.v1alpha.Funnel) obj;
+
+ if (getIsOpenFunnel() != other.getIsOpenFunnel()) return false;
+ if (!getStepsList().equals(other.getStepsList())) 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) + IS_OPEN_FUNNEL_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOpenFunnel());
+ if (getStepsCount() > 0) {
+ hash = (37 * hash) + STEPS_FIELD_NUMBER;
+ hash = (53 * hash) + getStepsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel 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.Funnel parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel 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.Funnel parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel 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.Funnel parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel 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.Funnel parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.Funnel 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.Funnel 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.Funnel 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.Funnel 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;
+ }
+ /**
+ *
+ *
+ * + * Configures the funnel in a funnel report request. A funnel reports on users + * as they pass through a sequence of steps. + * Funnel exploration lets you visualize the steps your users take to complete a + * task and quickly see how well they are succeeding or failing at each step. + * For example, how do prospects become shoppers and then become buyers? How do + * one time buyers become repeat buyers? With this information, you can improve + * inefficient or abandoned customer journeys. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.Funnel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * In an open funnel, users can enter the funnel in any step, and in a closed + * funnel, users must enter the funnel in the first step. Optional. If + * unspecified, a closed funnel is used. + *+ * + *
bool is_open_funnel = 1;
+ *
+ * @return The isOpenFunnel.
+ */
+ @java.lang.Override
+ public boolean getIsOpenFunnel() {
+ return isOpenFunnel_;
+ }
+ /**
+ *
+ *
+ * + * In an open funnel, users can enter the funnel in any step, and in a closed + * funnel, users must enter the funnel in the first step. Optional. If + * unspecified, a closed funnel is used. + *+ * + *
bool is_open_funnel = 1;
+ *
+ * @param value The isOpenFunnel to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsOpenFunnel(boolean value) {
+
+ isOpenFunnel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * In an open funnel, users can enter the funnel in any step, and in a closed + * funnel, users must enter the funnel in the first step. Optional. If + * unspecified, a closed funnel is used. + *+ * + *
bool is_open_funnel = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsOpenFunnel() {
+
+ isOpenFunnel_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public java.util.List+ * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public int getStepsCount() {
+ if (stepsBuilder_ == null) {
+ return steps_.size();
+ } else {
+ return stepsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) {
+ if (stepsBuilder_ == null) {
+ return steps_.get(index);
+ } else {
+ return stepsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder setSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) {
+ if (stepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStepsIsMutable();
+ steps_.set(index, value);
+ onChanged();
+ } else {
+ stepsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder setSteps(
+ int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) {
+ if (stepsBuilder_ == null) {
+ ensureStepsIsMutable();
+ steps_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ stepsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep value) {
+ if (stepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStepsIsMutable();
+ steps_.add(value);
+ onChanged();
+ } else {
+ stepsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder addSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) {
+ if (stepsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStepsIsMutable();
+ steps_.add(index, value);
+ onChanged();
+ } else {
+ stepsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) {
+ if (stepsBuilder_ == null) {
+ ensureStepsIsMutable();
+ steps_.add(builderForValue.build());
+ onChanged();
+ } else {
+ stepsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder addSteps(
+ int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) {
+ if (stepsBuilder_ == null) {
+ ensureStepsIsMutable();
+ steps_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ stepsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder addAllSteps(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.FunnelStep> values) {
+ if (stepsBuilder_ == null) {
+ ensureStepsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_);
+ onChanged();
+ } else {
+ stepsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder clearSteps() {
+ if (stepsBuilder_ == null) {
+ steps_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ stepsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public Builder removeSteps(int index) {
+ if (stepsBuilder_ == null) {
+ ensureStepsIsMutable();
+ steps_.remove(index);
+ onChanged();
+ } else {
+ stepsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelStep.Builder getStepsBuilder(int index) {
+ return getStepsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) {
+ if (stepsBuilder_ == null) {
+ return steps_.get(index);
+ } else {
+ return stepsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.FunnelStepOrBuilder>
+ getStepsOrBuilderList() {
+ if (stepsBuilder_ != null) {
+ return stepsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(steps_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder() {
+ return getStepsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder(int index) {
+ return getStepsFieldBuilder()
+ .addBuilder(index, com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ public java.util.List+ * Breakdowns add a dimension to the funnel table sub report response. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} + */ +public final class FunnelBreakdown extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelBreakdown) + FunnelBreakdownOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelBreakdown.newBuilder() to construct. + private FunnelBreakdown(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelBreakdown() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelBreakdown(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelBreakdown( + 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: + { + com.google.analytics.data.v1alpha.Dimension.Builder subBuilder = null; + if (breakdownDimension_ != null) { + subBuilder = breakdownDimension_.toBuilder(); + } + breakdownDimension_ = + input.readMessage( + com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(breakdownDimension_); + breakdownDimension_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + bitField0_ |= 0x00000001; + limit_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelBreakdown.class, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder.class); + } + + private int bitField0_; + public static final int BREAKDOWN_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.Dimension breakdownDimension_; + /** + * + * + *
+ * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return Whether the breakdownDimension field is set.
+ */
+ @java.lang.Override
+ public boolean hasBreakdownDimension() {
+ return breakdownDimension_ != null;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return The breakdownDimension.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() {
+ return breakdownDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : breakdownDimension_;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() {
+ return getBreakdownDimension();
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 2;
+ private long limit_;
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ @java.lang.Override
+ public long getLimit() {
+ return limit_;
+ }
+
+ 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 (breakdownDimension_ != null) {
+ output.writeMessage(1, getBreakdownDimension());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(2, limit_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (breakdownDimension_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBreakdownDimension());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_);
+ }
+ 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.FunnelBreakdown)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelBreakdown other =
+ (com.google.analytics.data.v1alpha.FunnelBreakdown) obj;
+
+ if (hasBreakdownDimension() != other.hasBreakdownDimension()) return false;
+ if (hasBreakdownDimension()) {
+ if (!getBreakdownDimension().equals(other.getBreakdownDimension())) return false;
+ }
+ if (hasLimit() != other.hasLimit()) return false;
+ if (hasLimit()) {
+ if (getLimit() != other.getLimit()) 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 (hasBreakdownDimension()) {
+ hash = (37 * hash) + BREAKDOWN_DIMENSION_FIELD_NUMBER;
+ hash = (53 * hash) + getBreakdownDimension().hashCode();
+ }
+ if (hasLimit()) {
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.FunnelBreakdown parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.FunnelBreakdown parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.FunnelBreakdown parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.FunnelBreakdown parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.FunnelBreakdown 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.FunnelBreakdown 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.FunnelBreakdown 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;
+ }
+ /**
+ *
+ *
+ * + * Breakdowns add a dimension to the funnel table sub report response. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return Whether the breakdownDimension field is set.
+ */
+ public boolean hasBreakdownDimension() {
+ return breakdownDimensionBuilder_ != null || breakdownDimension_ != null;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return The breakdownDimension.
+ */
+ public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() {
+ if (breakdownDimensionBuilder_ == null) {
+ return breakdownDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : breakdownDimension_;
+ } else {
+ return breakdownDimensionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public Builder setBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) {
+ if (breakdownDimensionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ breakdownDimension_ = value;
+ onChanged();
+ } else {
+ breakdownDimensionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public Builder setBreakdownDimension(
+ com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) {
+ if (breakdownDimensionBuilder_ == null) {
+ breakdownDimension_ = builderForValue.build();
+ onChanged();
+ } else {
+ breakdownDimensionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public Builder mergeBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) {
+ if (breakdownDimensionBuilder_ == null) {
+ if (breakdownDimension_ != null) {
+ breakdownDimension_ =
+ com.google.analytics.data.v1alpha.Dimension.newBuilder(breakdownDimension_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ breakdownDimension_ = value;
+ }
+ onChanged();
+ } else {
+ breakdownDimensionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public Builder clearBreakdownDimension() {
+ if (breakdownDimensionBuilder_ == null) {
+ breakdownDimension_ = null;
+ onChanged();
+ } else {
+ breakdownDimension_ = null;
+ breakdownDimensionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public com.google.analytics.data.v1alpha.Dimension.Builder getBreakdownDimensionBuilder() {
+
+ onChanged();
+ return getBreakdownDimensionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() {
+ if (breakdownDimensionBuilder_ != null) {
+ return breakdownDimensionBuilder_.getMessageOrBuilder();
+ } else {
+ return breakdownDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : breakdownDimension_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Dimension,
+ com.google.analytics.data.v1alpha.Dimension.Builder,
+ com.google.analytics.data.v1alpha.DimensionOrBuilder>
+ getBreakdownDimensionFieldBuilder() {
+ if (breakdownDimensionBuilder_ == null) {
+ breakdownDimensionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Dimension,
+ com.google.analytics.data.v1alpha.Dimension.Builder,
+ com.google.analytics.data.v1alpha.DimensionOrBuilder>(
+ getBreakdownDimension(), getParentForChildren(), isClean());
+ breakdownDimension_ = null;
+ }
+ return breakdownDimensionBuilder_;
+ }
+
+ private long limit_;
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ @java.lang.Override
+ public long getLimit() {
+ return limit_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(long value) {
+ bitField0_ |= 0x00000001;
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ limit_ = 0L;
+ 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.FunnelBreakdown)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelBreakdown)
+ private static final com.google.analytics.data.v1alpha.FunnelBreakdown DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelBreakdown();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return Whether the breakdownDimension field is set.
+ */
+ boolean hasBreakdownDimension();
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ *
+ * @return The breakdownDimension.
+ */
+ com.google.analytics.data.v1alpha.Dimension getBreakdownDimension();
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel table sub report response. The + * breakdown dimension breaks down each funnel step. A valid + * `breakdownDimension` is required if `funnelBreakdown` is specified. + *+ * + *
.google.analytics.data.v1alpha.Dimension breakdown_dimension = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder();
+
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ boolean hasLimit();
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 15. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ long getLimit();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java
new file mode 100644
index 00000000..f7453ba0
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java
@@ -0,0 +1,1062 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a parameter + * filter expression is specified, only the subset of events that match both the + * single event name and the parameter filter expressions match this event + * filter. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} + */ +public final class FunnelEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelEventFilter) + FunnelEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelEventFilter.newBuilder() to construct. + private FunnelEventFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelEventFilter() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelEventFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelEventFilter( + 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(); + bitField0_ |= 0x00000001; + eventName_ = s; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = + null; + if (((bitField0_ & 0x00000002) != 0)) { + subBuilder = funnelParameterFilterExpression_.toBuilder(); + } + funnelParameterFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelParameterFilterExpression_); + funnelParameterFilterExpression_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelEventFilter.class, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder.class); + } + + private int bitField0_; + public static final int EVENT_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object eventName_; + /** + * + * + *
+ * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return Whether the eventName field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The eventName.
+ */
+ @java.lang.Override
+ public java.lang.String getEventName() {
+ java.lang.Object ref = eventName_;
+ 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();
+ eventName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The bytes for eventName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEventNameBytes() {
+ java.lang.Object ref = eventName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ eventName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ funnelParameterFilterExpression_;
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return Whether the funnelParameterFilterExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelParameterFilterExpression() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return The funnelParameterFilterExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ getFunnelParameterFilterExpression() {
+ return funnelParameterFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance()
+ : funnelParameterFilterExpression_;
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getFunnelParameterFilterExpressionOrBuilder() {
+ return funnelParameterFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance()
+ : funnelParameterFilterExpression_;
+ }
+
+ 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 (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeMessage(2, getFunnelParameterFilterExpression());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, getFunnelParameterFilterExpression());
+ }
+ 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.FunnelEventFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelEventFilter other =
+ (com.google.analytics.data.v1alpha.FunnelEventFilter) obj;
+
+ if (hasEventName() != other.hasEventName()) return false;
+ if (hasEventName()) {
+ if (!getEventName().equals(other.getEventName())) return false;
+ }
+ if (hasFunnelParameterFilterExpression() != other.hasFunnelParameterFilterExpression())
+ return false;
+ if (hasFunnelParameterFilterExpression()) {
+ if (!getFunnelParameterFilterExpression().equals(other.getFunnelParameterFilterExpression()))
+ 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 (hasEventName()) {
+ hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventName().hashCode();
+ }
+ if (hasFunnelParameterFilterExpression()) {
+ hash = (37 * hash) + FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getFunnelParameterFilterExpression().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.FunnelEventFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.FunnelEventFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.FunnelEventFilter parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.FunnelEventFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.FunnelEventFilter 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.FunnelEventFilter 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.FunnelEventFilter 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;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a parameter + * filter expression is specified, only the subset of events that match both the + * single event name and the parameter filter expressions match this event + * filter. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return Whether the eventName field is set.
+ */
+ public boolean hasEventName() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The eventName.
+ */
+ public java.lang.String getEventName() {
+ java.lang.Object ref = eventName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ eventName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The bytes for eventName.
+ */
+ public com.google.protobuf.ByteString getEventNameBytes() {
+ java.lang.Object ref = eventName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ eventName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @param value The eventName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00000001;
+ eventName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventName() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ eventName_ = getDefaultInstance().getEventName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @param value The bytes for eventName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ bitField0_ |= 0x00000001;
+ eventName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ funnelParameterFilterExpression_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ funnelParameterFilterExpressionBuilder_;
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return Whether the funnelParameterFilterExpression field is set.
+ */
+ public boolean hasFunnelParameterFilterExpression() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return The funnelParameterFilterExpression.
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ getFunnelParameterFilterExpression() {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ return funnelParameterFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance()
+ : funnelParameterFilterExpression_;
+ } else {
+ return funnelParameterFilterExpressionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public Builder setFunnelParameterFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ funnelParameterFilterExpression_ = value;
+ onChanged();
+ } else {
+ funnelParameterFilterExpressionBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public Builder setFunnelParameterFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ funnelParameterFilterExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ funnelParameterFilterExpressionBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public Builder mergeFunnelParameterFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && funnelParameterFilterExpression_ != null
+ && funnelParameterFilterExpression_
+ != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance()) {
+ funnelParameterFilterExpression_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder(
+ funnelParameterFilterExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ funnelParameterFilterExpression_ = value;
+ }
+ onChanged();
+ } else {
+ funnelParameterFilterExpressionBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public Builder clearFunnelParameterFilterExpression() {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ funnelParameterFilterExpression_ = null;
+ onChanged();
+ } else {
+ funnelParameterFilterExpressionBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000002);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder
+ getFunnelParameterFilterExpressionBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getFunnelParameterFilterExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getFunnelParameterFilterExpressionOrBuilder() {
+ if (funnelParameterFilterExpressionBuilder_ != null) {
+ return funnelParameterFilterExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ return funnelParameterFilterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance()
+ : funnelParameterFilterExpression_;
+ }
+ }
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ getFunnelParameterFilterExpressionFieldBuilder() {
+ if (funnelParameterFilterExpressionBuilder_ == null) {
+ funnelParameterFilterExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>(
+ getFunnelParameterFilterExpression(), getParentForChildren(), isClean());
+ funnelParameterFilterExpression_ = null;
+ }
+ return funnelParameterFilterExpressionBuilder_;
+ }
+
+ @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.FunnelEventFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelEventFilter)
+ private static final com.google.analytics.data.v1alpha.FunnelEventFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelEventFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return Whether the eventName field is set.
+ */
+ boolean hasEventName();
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The eventName.
+ */
+ java.lang.String getEventName();
+ /**
+ *
+ *
+ * + * This filter matches events of this single event name. Event name is + * required. + *+ * + *
optional string event_name = 1;
+ *
+ * @return The bytes for eventName.
+ */
+ com.google.protobuf.ByteString getEventNameBytes();
+
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return Whether the funnelParameterFilterExpression field is set.
+ */
+ boolean hasFunnelParameterFilterExpression();
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ *
+ * @return The funnelParameterFilterExpression.
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ getFunnelParameterFilterExpression();
+ /**
+ *
+ *
+ * + * If specified, this filter matches events that match both the single event + * name and the parameter filter expressions. + * Inside the parameter filter expression, only parameter filters are + * available. + *+ * + *
+ * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2;
+ *
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getFunnelParameterFilterExpressionOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java
new file mode 100644
index 00000000..a5a228dd
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java
@@ -0,0 +1,1941 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * An expression to filter dimension or metric values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilter} + */ +public final class FunnelFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilter) + FunnelFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilter.newBuilder() to construct. + private FunnelFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilter( + 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(); + + fieldName_ = s; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilter.class, + com.google.analytics.data.v1alpha.FunnelFilter.Builder.class); + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object fieldName_; + /** + * + * + *
+ * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ @java.lang.Override
+ public java.lang.String getFieldName() {
+ java.lang.Object ref = fieldName_;
+ 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();
+ fieldName_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getFieldNameBytes() {
+ java.lang.Object ref = fieldName_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STRING_FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+
+ public static final int IN_LIST_FILTER_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+
+ public static final int NUMERIC_FILTER_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+
+ public static final int BETWEEN_FILTER_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_);
+ }
+ if (oneFilterCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 6) {
+ output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 7) {
+ output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_);
+ }
+ if (oneFilterCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ 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.FunnelFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelFilter other =
+ (com.google.analytics.data.v1alpha.FunnelFilter) obj;
+
+ if (!getFieldName().equals(other.getFieldName())) return false;
+ if (!getOneFilterCase().equals(other.getOneFilterCase())) return false;
+ switch (oneFilterCase_) {
+ case 4:
+ if (!getStringFilter().equals(other.getStringFilter())) return false;
+ break;
+ case 5:
+ if (!getInListFilter().equals(other.getInListFilter())) return false;
+ break;
+ case 6:
+ if (!getNumericFilter().equals(other.getNumericFilter())) return false;
+ break;
+ case 7:
+ if (!getBetweenFilter().equals(other.getBetweenFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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) + FIELD_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getFieldName().hashCode();
+ switch (oneFilterCase_) {
+ case 4:
+ hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getStringFilter().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getInListFilter().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericFilter().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getBetweenFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter 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.FunnelFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter 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.FunnelFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter 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.FunnelFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter 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.FunnelFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter 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.FunnelFilter 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.FunnelFilter 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.FunnelFilter 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;
+ }
+ /**
+ *
+ *
+ * + * An expression to filter dimension or metric values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ public java.lang.String getFieldName() {
+ java.lang.Object ref = fieldName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fieldName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ public com.google.protobuf.ByteString getFieldNameBytes() {
+ java.lang.Object ref = fieldName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ fieldName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @param value The fieldName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFieldName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fieldName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearFieldName() {
+
+ fieldName_ = getDefaultInstance().getFieldName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @param value The bytes for fieldName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setFieldNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fieldName_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ stringFilterBuilder_;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return stringFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder setStringFilter(
+ com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) {
+ if (stringFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4
+ && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.StringFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 4) {
+ stringFilterBuilder_.mergeFrom(value);
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder clearStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ stringFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() {
+ return getStringFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) {
+ return stringFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ getStringFilterFieldBuilder() {
+ if (stringFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 4)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ stringFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 4;
+ onChanged();
+ ;
+ return stringFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ inListFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return inListFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder setInListFilter(
+ com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) {
+ if (inListFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5
+ && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.InListFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 5) {
+ inListFilterBuilder_.mergeFrom(value);
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder clearInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ inListFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() {
+ return getInListFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) {
+ return inListFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ getInListFilterFieldBuilder() {
+ if (inListFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 5)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ inListFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 5;
+ onChanged();
+ ;
+ return inListFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ numericFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 6) {
+ return numericFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder setNumericFilter(
+ com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) {
+ if (numericFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6
+ && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.NumericFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 6) {
+ numericFilterBuilder_.mergeFrom(value);
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder clearNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 6) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ numericFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() {
+ return getNumericFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) {
+ return numericFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ getNumericFilterFieldBuilder() {
+ if (numericFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 6)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ numericFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 6;
+ onChanged();
+ ;
+ return numericFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ betweenFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 7) {
+ return betweenFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder setBetweenFilter(
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) {
+ if (betweenFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7
+ && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.BetweenFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 7) {
+ betweenFilterBuilder_.mergeFrom(value);
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder clearBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 7) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ betweenFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() {
+ return getBetweenFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) {
+ return betweenFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ getBetweenFilterFieldBuilder() {
+ if (betweenFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 7)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ betweenFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 7;
+ onChanged();
+ ;
+ return betweenFilterBuilder_;
+ }
+
+ @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.FunnelFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilter)
+ private static final com.google.analytics.data.v1alpha.FunnelFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Expresses combinations of funnel filters. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} + */ +public final class FunnelFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpression) + FunnelFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilterExpression.newBuilder() to construct. + private FunnelFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilterExpression( + 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: + { + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = ((com.google.analytics.data.v1alpha.FunnelFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder subBuilder = null; + if (exprCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelEventFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + FUNNEL_FILTER(4), + FUNNEL_EVENT_FILTER(5), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return FUNNEL_FILTER; + case 5: + return FUNNEL_EVENT_FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+ * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder
+ getAndGroupOrBuilder() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+
+ public static final int OR_GROUP_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder
+ getOrGroupOrBuilder() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+
+ public static final int NOT_EXPRESSION_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder
+ getNotExpressionOrBuilder() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ }
+
+ public static final int FUNNEL_FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return Whether the funnelFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return The funnelFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ }
+
+ public static final int FUNNEL_EVENT_FILTER_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return Whether the funnelEventFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelEventFilter() {
+ return exprCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return The funnelEventFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() {
+ if (exprCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder
+ getFunnelEventFilterOrBuilder() {
+ if (exprCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ }
+
+ 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 (exprCase_ == 1) {
+ output.writeMessage(1, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ output.writeMessage(2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ output.writeMessage(3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_);
+ }
+ if (exprCase_ == 5) {
+ output.writeMessage(5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (exprCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_);
+ }
+ if (exprCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_);
+ }
+ 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.FunnelFilterExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelFilterExpression other =
+ (com.google.analytics.data.v1alpha.FunnelFilterExpression) obj;
+
+ if (!getExprCase().equals(other.getExprCase())) return false;
+ switch (exprCase_) {
+ case 1:
+ if (!getAndGroup().equals(other.getAndGroup())) return false;
+ break;
+ case 2:
+ if (!getOrGroup().equals(other.getOrGroup())) return false;
+ break;
+ case 3:
+ if (!getNotExpression().equals(other.getNotExpression())) return false;
+ break;
+ case 4:
+ if (!getFunnelFilter().equals(other.getFunnelFilter())) return false;
+ break;
+ case 5:
+ if (!getFunnelEventFilter().equals(other.getFunnelEventFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (exprCase_) {
+ case 1:
+ hash = (37 * hash) + AND_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getAndGroup().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + OR_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getOrGroup().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getNotExpression().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + FUNNEL_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFunnelFilter().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + FUNNEL_EVENT_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFunnelEventFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.FunnelFilterExpression parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.FunnelFilterExpression parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.FunnelFilterExpression parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.FunnelFilterExpression parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.FunnelFilterExpression 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.FunnelFilterExpression 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.FunnelFilterExpression 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;
+ }
+ /**
+ *
+ *
+ * + * Expresses combinations of funnel filters. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ } else {
+ if (exprCase_ == 1) {
+ return andGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ public Builder setAndGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ public Builder setAndGroup(
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) {
+ if (andGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ public Builder mergeAndGroup(
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelFilterExpressionList
+ .getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 1) {
+ andGroupBuilder_.mergeFrom(value);
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ public Builder clearAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ andGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder
+ getAndGroupBuilder() {
+ return getAndGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder
+ getAndGroupOrBuilder() {
+ if ((exprCase_ == 1) && (andGroupBuilder_ != null)) {
+ return andGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>
+ getAndGroupFieldBuilder() {
+ if (andGroupBuilder_ == null) {
+ if (!(exprCase_ == 1)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ andGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 1;
+ onChanged();
+ ;
+ return andGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>
+ orGroupBuilder_;
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ } else {
+ if (exprCase_ == 2) {
+ return orGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) {
+ if (orGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ public Builder mergeOrGroup(
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelFilterExpressionList
+ .getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 2) {
+ orGroupBuilder_.mergeFrom(value);
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ public Builder clearOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ orGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder
+ getOrGroupBuilder() {
+ return getOrGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder
+ getOrGroupOrBuilder() {
+ if ((exprCase_ == 2) && (orGroupBuilder_ != null)) {
+ return orGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>
+ getOrGroupFieldBuilder() {
+ if (orGroupBuilder_ == null) {
+ if (!(exprCase_ == 2)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance();
+ }
+ orGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 2;
+ onChanged();
+ ;
+ return orGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ notExpressionBuilder_;
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ } else {
+ if (exprCase_ == 3) {
+ return notExpressionBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ public Builder setNotExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ public Builder setNotExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) {
+ if (notExpressionBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ public Builder mergeNotExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 3) {
+ notExpressionBuilder_.mergeFrom(value);
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ public Builder clearNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ notExpressionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder
+ getNotExpressionBuilder() {
+ return getNotExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder
+ getNotExpressionOrBuilder() {
+ if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) {
+ return notExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ getNotExpressionFieldBuilder() {
+ if (notExpressionBuilder_ == null) {
+ if (!(exprCase_ == 3)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance();
+ }
+ notExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 3;
+ onChanged();
+ ;
+ return notExpressionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilter,
+ com.google.analytics.data.v1alpha.FunnelFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterOrBuilder>
+ funnelFilterBuilder_;
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return Whether the funnelFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return The funnelFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() {
+ if (funnelFilterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ } else {
+ if (exprCase_ == 4) {
+ return funnelFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ public Builder setFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) {
+ if (funnelFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ funnelFilterBuilder_.setMessage(value);
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ public Builder setFunnelFilter(
+ com.google.analytics.data.v1alpha.FunnelFilter.Builder builderForValue) {
+ if (funnelFilterBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ funnelFilterBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ public Builder mergeFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) {
+ if (funnelFilterBuilder_ == null) {
+ if (exprCase_ == 4
+ && expr_ != com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelFilter) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 4) {
+ funnelFilterBuilder_.mergeFrom(value);
+ } else {
+ funnelFilterBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ public Builder clearFunnelFilter() {
+ if (funnelFilterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ funnelFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilter.Builder getFunnelFilterBuilder() {
+ return getFunnelFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() {
+ if ((exprCase_ == 4) && (funnelFilterBuilder_ != null)) {
+ return funnelFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilter,
+ com.google.analytics.data.v1alpha.FunnelFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterOrBuilder>
+ getFunnelFilterFieldBuilder() {
+ if (funnelFilterBuilder_ == null) {
+ if (!(exprCase_ == 4)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance();
+ }
+ funnelFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilter,
+ com.google.analytics.data.v1alpha.FunnelFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelFilter) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 4;
+ onChanged();
+ ;
+ return funnelFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelEventFilter,
+ com.google.analytics.data.v1alpha.FunnelEventFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder>
+ funnelEventFilterBuilder_;
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return Whether the funnelEventFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelEventFilter() {
+ return exprCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return The funnelEventFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() {
+ if (funnelEventFilterBuilder_ == null) {
+ if (exprCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ } else {
+ if (exprCase_ == 5) {
+ return funnelEventFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ public Builder setFunnelEventFilter(com.google.analytics.data.v1alpha.FunnelEventFilter value) {
+ if (funnelEventFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ funnelEventFilterBuilder_.setMessage(value);
+ }
+ exprCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ public Builder setFunnelEventFilter(
+ com.google.analytics.data.v1alpha.FunnelEventFilter.Builder builderForValue) {
+ if (funnelEventFilterBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ funnelEventFilterBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ public Builder mergeFunnelEventFilter(
+ com.google.analytics.data.v1alpha.FunnelEventFilter value) {
+ if (funnelEventFilterBuilder_ == null) {
+ if (exprCase_ == 5
+ && expr_ != com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelEventFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 5) {
+ funnelEventFilterBuilder_.mergeFrom(value);
+ } else {
+ funnelEventFilterBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ public Builder clearFunnelEventFilter() {
+ if (funnelEventFilterBuilder_ == null) {
+ if (exprCase_ == 5) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 5) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ funnelEventFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ public com.google.analytics.data.v1alpha.FunnelEventFilter.Builder
+ getFunnelEventFilterBuilder() {
+ return getFunnelEventFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder
+ getFunnelEventFilterOrBuilder() {
+ if ((exprCase_ == 5) && (funnelEventFilterBuilder_ != null)) {
+ return funnelEventFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelEventFilter,
+ com.google.analytics.data.v1alpha.FunnelEventFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder>
+ getFunnelEventFilterFieldBuilder() {
+ if (funnelEventFilterBuilder_ == null) {
+ if (!(exprCase_ == 5)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance();
+ }
+ funnelEventFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelEventFilter,
+ com.google.analytics.data.v1alpha.FunnelEventFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 5;
+ onChanged();
+ ;
+ return funnelEventFilterBuilder_;
+ }
+
+ @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.FunnelFilterExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilterExpression)
+ private static final com.google.analytics.data.v1alpha.FunnelFilterExpression DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilterExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of funnel filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} + */ +public final class FunnelFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpressionList) + FunnelFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilterExpressionList.newBuilder() to construct. + private FunnelFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilterExpressionList( + 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)) { + expressions_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.FunnelFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + } + 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_FunnelFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List
+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ return expressions_;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public int getExpressionsCount() {
+ return expressions_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) {
+ return expressions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getExpressionsOrBuilder(
+ int index) {
+ return expressions_.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 < expressions_.size(); i++) {
+ output.writeMessage(1, expressions_.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 < expressions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.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.FunnelFilterExpressionList)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList other =
+ (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) obj;
+
+ if (!getExpressionsList().equals(other.getExpressionsList())) 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 (getExpressionsCount() > 0) {
+ hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExpressionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.FunnelFilterExpressionList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.FunnelFilterExpressionList parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.FunnelFilterExpressionList parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.FunnelFilterExpressionList parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.FunnelFilterExpressionList 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.FunnelFilterExpressionList 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.FunnelFilterExpressionList 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;
+ }
+ /**
+ *
+ *
+ * + * A list of funnel filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public java.util.List+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public int getExpressionsCount() {
+ if (expressionsBuilder_ == null) {
+ return expressions_.size();
+ } else {
+ return expressionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder setExpressions(
+ int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.set(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder setExpressions(
+ int index,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder addExpressions(com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder addExpressions(
+ int index,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder addAllExpressions(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.FunnelFilterExpression>
+ values) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_);
+ onChanged();
+ } else {
+ expressionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder clearExpressions() {
+ if (expressionsBuilder_ == null) {
+ expressions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ expressionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public Builder removeExpressions(int index) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.remove(index);
+ onChanged();
+ } else {
+ expressionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder getExpressionsBuilder(
+ int index) {
+ return getExpressionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder
+ getExpressionsOrBuilder(int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public java.util.List<
+ ? extends com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ if (expressionsBuilder_ != null) {
+ return expressionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(expressions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder
+ addExpressionsBuilder() {
+ return getExpressionsFieldBuilder()
+ .addBuilder(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder addExpressionsBuilder(
+ int index) {
+ return getExpressionsFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ public java.util.List+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ java.util.List+ * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index);
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ int getExpressionsCount();
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of funnel filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getExpressionsOrBuilder(
+ int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java
new file mode 100644
index 00000000..b731f681
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java
@@ -0,0 +1,211 @@
+/*
+ * 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 FunnelFilterExpressionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilterExpression)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ boolean hasAndGroup();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `andGroup` have an AND relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getAndGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ boolean hasOrGroup();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression in `orGroup` have an OR relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getOrGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ boolean hasNotExpression();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression();
+ /**
+ *
+ *
+ * + * The FunnelFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getNotExpressionOrBuilder();
+
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return Whether the funnelFilter field is set.
+ */
+ boolean hasFunnelFilter();
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ *
+ * @return The funnelFilter.
+ */
+ com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter();
+ /**
+ *
+ *
+ * + * A primitive funnel filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return Whether the funnelEventFilter field is set.
+ */
+ boolean hasFunnelEventFilter();
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ *
+ * @return The funnelEventFilter.
+ */
+ com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter();
+ /**
+ *
+ *
+ * + * Creates a filter that matches events of a single event name. If a + * parameter filter expression is specified, only the subset of events that + * match both the single event name and the parameter filter expressions + * match this event filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5;
+ */
+ com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder getFunnelEventFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.ExprCase getExprCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java
new file mode 100644
index 00000000..003dbe0c
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java
@@ -0,0 +1,192 @@
+/*
+ * 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 FunnelFilterOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The fieldName.
+ */
+ java.lang.String getFieldName();
+ /**
+ *
+ *
+ * + * The dimension name or metric name. + *+ * + *
string field_name = 1;
+ *
+ * @return The bytes for fieldName.
+ */
+ com.google.protobuf.ByteString getFieldNameBytes();
+
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ boolean hasStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ com.google.analytics.data.v1alpha.StringFilter getStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ boolean hasInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ com.google.analytics.data.v1alpha.InListFilter getInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ boolean hasNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ com.google.analytics.data.v1alpha.NumericFilter getNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ boolean hasBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.FunnelFilter.OneFilterCase getOneFilterCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java
new file mode 100644
index 00000000..75f16313
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java
@@ -0,0 +1,930 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Next actions state the value for a dimension after the user has achieved + * a step but before the same user has achieved the next step. For example if + * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the + * `i`th funnel step row will return first event after the event that qualified + * the user into the `i`th funnel step but before the user achieved the `i+1`th + * funnel step. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} + */ +public final class FunnelNextAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelNextAction) + FunnelNextActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelNextAction.newBuilder() to construct. + private FunnelNextAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelNextAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelNextAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelNextAction( + 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: + { + com.google.analytics.data.v1alpha.Dimension.Builder subBuilder = null; + if (nextActionDimension_ != null) { + subBuilder = nextActionDimension_.toBuilder(); + } + nextActionDimension_ = + input.readMessage( + com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextActionDimension_); + nextActionDimension_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + bitField0_ |= 0x00000001; + limit_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelNextAction.class, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder.class); + } + + private int bitField0_; + public static final int NEXT_ACTION_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.Dimension nextActionDimension_; + /** + * + * + *
+ * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return Whether the nextActionDimension field is set.
+ */
+ @java.lang.Override
+ public boolean hasNextActionDimension() {
+ return nextActionDimension_ != null;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return The nextActionDimension.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() {
+ return nextActionDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : nextActionDimension_;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() {
+ return getNextActionDimension();
+ }
+
+ public static final int LIMIT_FIELD_NUMBER = 2;
+ private long limit_;
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ @java.lang.Override
+ public long getLimit() {
+ return limit_;
+ }
+
+ 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 (nextActionDimension_ != null) {
+ output.writeMessage(1, getNextActionDimension());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeInt64(2, limit_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (nextActionDimension_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextActionDimension());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_);
+ }
+ 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.FunnelNextAction)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelNextAction other =
+ (com.google.analytics.data.v1alpha.FunnelNextAction) obj;
+
+ if (hasNextActionDimension() != other.hasNextActionDimension()) return false;
+ if (hasNextActionDimension()) {
+ if (!getNextActionDimension().equals(other.getNextActionDimension())) return false;
+ }
+ if (hasLimit() != other.hasLimit()) return false;
+ if (hasLimit()) {
+ if (getLimit() != other.getLimit()) 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 (hasNextActionDimension()) {
+ hash = (37 * hash) + NEXT_ACTION_DIMENSION_FIELD_NUMBER;
+ hash = (53 * hash) + getNextActionDimension().hashCode();
+ }
+ if (hasLimit()) {
+ hash = (37 * hash) + LIMIT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit());
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction 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.FunnelNextAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction 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.FunnelNextAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction 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.FunnelNextAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction 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.FunnelNextAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction 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.FunnelNextAction 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.FunnelNextAction 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.FunnelNextAction 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;
+ }
+ /**
+ *
+ *
+ * + * Next actions state the value for a dimension after the user has achieved + * a step but before the same user has achieved the next step. For example if + * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the + * `i`th funnel step row will return first event after the event that qualified + * the user into the `i`th funnel step but before the user achieved the `i+1`th + * funnel step. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return Whether the nextActionDimension field is set.
+ */
+ public boolean hasNextActionDimension() {
+ return nextActionDimensionBuilder_ != null || nextActionDimension_ != null;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return The nextActionDimension.
+ */
+ public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() {
+ if (nextActionDimensionBuilder_ == null) {
+ return nextActionDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : nextActionDimension_;
+ } else {
+ return nextActionDimensionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public Builder setNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) {
+ if (nextActionDimensionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextActionDimension_ = value;
+ onChanged();
+ } else {
+ nextActionDimensionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public Builder setNextActionDimension(
+ com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) {
+ if (nextActionDimensionBuilder_ == null) {
+ nextActionDimension_ = builderForValue.build();
+ onChanged();
+ } else {
+ nextActionDimensionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public Builder mergeNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) {
+ if (nextActionDimensionBuilder_ == null) {
+ if (nextActionDimension_ != null) {
+ nextActionDimension_ =
+ com.google.analytics.data.v1alpha.Dimension.newBuilder(nextActionDimension_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ nextActionDimension_ = value;
+ }
+ onChanged();
+ } else {
+ nextActionDimensionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public Builder clearNextActionDimension() {
+ if (nextActionDimensionBuilder_ == null) {
+ nextActionDimension_ = null;
+ onChanged();
+ } else {
+ nextActionDimension_ = null;
+ nextActionDimensionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public com.google.analytics.data.v1alpha.Dimension.Builder getNextActionDimensionBuilder() {
+
+ onChanged();
+ return getNextActionDimensionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() {
+ if (nextActionDimensionBuilder_ != null) {
+ return nextActionDimensionBuilder_.getMessageOrBuilder();
+ } else {
+ return nextActionDimension_ == null
+ ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()
+ : nextActionDimension_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Dimension,
+ com.google.analytics.data.v1alpha.Dimension.Builder,
+ com.google.analytics.data.v1alpha.DimensionOrBuilder>
+ getNextActionDimensionFieldBuilder() {
+ if (nextActionDimensionBuilder_ == null) {
+ nextActionDimensionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.Dimension,
+ com.google.analytics.data.v1alpha.Dimension.Builder,
+ com.google.analytics.data.v1alpha.DimensionOrBuilder>(
+ getNextActionDimension(), getParentForChildren(), isClean());
+ nextActionDimension_ = null;
+ }
+ return nextActionDimensionBuilder_;
+ }
+
+ private long limit_;
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ @java.lang.Override
+ public boolean hasLimit() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ @java.lang.Override
+ public long getLimit() {
+ return limit_;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @param value The limit to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLimit(long value) {
+ bitField0_ |= 0x00000001;
+ limit_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLimit() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ limit_ = 0L;
+ 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.FunnelNextAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelNextAction)
+ private static final com.google.analytics.data.v1alpha.FunnelNextAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelNextAction();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return Whether the nextActionDimension field is set.
+ */
+ boolean hasNextActionDimension();
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ *
+ * @return The nextActionDimension.
+ */
+ com.google.analytics.data.v1alpha.Dimension getNextActionDimension();
+ /**
+ *
+ *
+ * + * The dimension column added to the funnel visualization sub report response. + * The next action dimension returns the next dimension value of this + * dimension after the user has attained the `i`th funnel step. + * `nextActionDimension` currently only supports the `eventName` dimension. + *+ * + *
.google.analytics.data.v1alpha.Dimension next_action_dimension = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder();
+
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return Whether the limit field is set.
+ */
+ boolean hasLimit();
+ /**
+ *
+ *
+ * + * The maximum number of distinct values of the breakdown dimension to return + * in the response. A `limit` of `5` is used if limit is not specified. Limit + * must exceed zero and cannot exceed 5. + *+ * + *
optional int64 limit = 2;
+ *
+ * @return The limit.
+ */
+ long getLimit();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java
new file mode 100644
index 00000000..5cc16096
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java
@@ -0,0 +1,92 @@
+/*
+ * 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 FunnelOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Funnel)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * In an open funnel, users can enter the funnel in any step, and in a closed + * funnel, users must enter the funnel in the first step. Optional. If + * unspecified, a closed funnel is used. + *+ * + *
bool is_open_funnel = 1;
+ *
+ * @return The isOpenFunnel.
+ */
+ boolean getIsOpenFunnel();
+
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ java.util.List+ * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ com.google.analytics.data.v1alpha.FunnelStep getSteps(int index);
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ int getStepsCount();
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.FunnelStepOrBuilder>
+ getStepsOrBuilderList();
+ /**
+ *
+ *
+ * + * The sequential steps of this funnel. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelStep steps = 2;
+ */
+ com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java
new file mode 100644
index 00000000..51fc8320
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java
@@ -0,0 +1,2437 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * An expression to filter parameter values in a funnel. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} + */ +public final class FunnelParameterFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilter) + FunnelParameterFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilter.newBuilder() to construct. + private FunnelParameterFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelParameterFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilter( + 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(); + oneParameterCase_ = 1; + oneParameter_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 2; + oneParameter_ = s; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilter.class, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder.class); + } + + private int oneParameterCase_ = 0; + private java.lang.Object oneParameter_; + + public enum OneParameterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENT_PARAMETER_NAME(1), + ITEM_PARAMETER_NAME(2), + ONEPARAMETER_NOT_SET(0); + private final int value; + + private OneParameterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneParameterCase valueOf(int value) { + return forNumber(value); + } + + public static OneParameterCase forNumber(int value) { + switch (value) { + case 1: + return EVENT_PARAMETER_NAME; + case 2: + return ITEM_PARAMETER_NAME; + case 0: + return ONEPARAMETER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneParameterCase getOneParameterCase() { + return OneParameterCase.forNumber(oneParameterCase_); + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int EVENT_PARAMETER_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+ * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return Whether the eventParameterName field is set.
+ */
+ public boolean hasEventParameterName() {
+ return oneParameterCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The eventParameterName.
+ */
+ public java.lang.String getEventParameterName() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 1) {
+ ref = oneParameter_;
+ }
+ 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();
+ if (oneParameterCase_ == 1) {
+ oneParameter_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The bytes for eventParameterName.
+ */
+ public com.google.protobuf.ByteString getEventParameterNameBytes() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 1) {
+ ref = oneParameter_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneParameterCase_ == 1) {
+ oneParameter_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ITEM_PARAMETER_NAME_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return Whether the itemParameterName field is set.
+ */
+ public boolean hasItemParameterName() {
+ return oneParameterCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The itemParameterName.
+ */
+ public java.lang.String getItemParameterName() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 2) {
+ ref = oneParameter_;
+ }
+ 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();
+ if (oneParameterCase_ == 2) {
+ oneParameter_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The bytes for itemParameterName.
+ */
+ public com.google.protobuf.ByteString getItemParameterNameBytes() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 2) {
+ ref = oneParameter_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneParameterCase_ == 2) {
+ oneParameter_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STRING_FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+
+ public static final int IN_LIST_FILTER_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+
+ public static final int NUMERIC_FILTER_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+
+ public static final int BETWEEN_FILTER_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+
+ 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 (oneParameterCase_ == 1) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneParameter_);
+ }
+ if (oneParameterCase_ == 2) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneParameter_);
+ }
+ if (oneFilterCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 6) {
+ output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 7) {
+ output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (oneParameterCase_ == 1) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneParameter_);
+ }
+ if (oneParameterCase_ == 2) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneParameter_);
+ }
+ if (oneFilterCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_);
+ }
+ if (oneFilterCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_);
+ }
+ 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.FunnelParameterFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelParameterFilter other =
+ (com.google.analytics.data.v1alpha.FunnelParameterFilter) obj;
+
+ if (!getOneParameterCase().equals(other.getOneParameterCase())) return false;
+ switch (oneParameterCase_) {
+ case 1:
+ if (!getEventParameterName().equals(other.getEventParameterName())) return false;
+ break;
+ case 2:
+ if (!getItemParameterName().equals(other.getItemParameterName())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getOneFilterCase().equals(other.getOneFilterCase())) return false;
+ switch (oneFilterCase_) {
+ case 4:
+ if (!getStringFilter().equals(other.getStringFilter())) return false;
+ break;
+ case 5:
+ if (!getInListFilter().equals(other.getInListFilter())) return false;
+ break;
+ case 6:
+ if (!getNumericFilter().equals(other.getNumericFilter())) return false;
+ break;
+ case 7:
+ if (!getBetweenFilter().equals(other.getBetweenFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (oneParameterCase_) {
+ case 1:
+ hash = (37 * hash) + EVENT_PARAMETER_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getEventParameterName().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + ITEM_PARAMETER_NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getItemParameterName().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ switch (oneFilterCase_) {
+ case 4:
+ hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getStringFilter().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getInListFilter().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getNumericFilter().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getBetweenFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.FunnelParameterFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.FunnelParameterFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.FunnelParameterFilter parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.FunnelParameterFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.FunnelParameterFilter 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.FunnelParameterFilter 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.FunnelParameterFilter 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;
+ }
+ /**
+ *
+ *
+ * + * An expression to filter parameter values in a funnel. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return Whether the eventParameterName field is set.
+ */
+ @java.lang.Override
+ public boolean hasEventParameterName() {
+ return oneParameterCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The eventParameterName.
+ */
+ @java.lang.Override
+ public java.lang.String getEventParameterName() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 1) {
+ ref = oneParameter_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneParameterCase_ == 1) {
+ oneParameter_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The bytes for eventParameterName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getEventParameterNameBytes() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 1) {
+ ref = oneParameter_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneParameterCase_ == 1) {
+ oneParameter_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @param value The eventParameterName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventParameterName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneParameterCase_ = 1;
+ oneParameter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearEventParameterName() {
+ if (oneParameterCase_ == 1) {
+ oneParameterCase_ = 0;
+ oneParameter_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @param value The bytes for eventParameterName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEventParameterNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ oneParameterCase_ = 1;
+ oneParameter_ = value;
+ onChanged();
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return Whether the itemParameterName field is set.
+ */
+ @java.lang.Override
+ public boolean hasItemParameterName() {
+ return oneParameterCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The itemParameterName.
+ */
+ @java.lang.Override
+ public java.lang.String getItemParameterName() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 2) {
+ ref = oneParameter_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneParameterCase_ == 2) {
+ oneParameter_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The bytes for itemParameterName.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getItemParameterNameBytes() {
+ java.lang.Object ref = "";
+ if (oneParameterCase_ == 2) {
+ ref = oneParameter_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneParameterCase_ == 2) {
+ oneParameter_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @param value The itemParameterName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setItemParameterName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneParameterCase_ = 2;
+ oneParameter_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearItemParameterName() {
+ if (oneParameterCase_ == 2) {
+ oneParameterCase_ = 0;
+ oneParameter_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @param value The bytes for itemParameterName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setItemParameterNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ oneParameterCase_ = 2;
+ oneParameter_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ stringFilterBuilder_;
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasStringFilter() {
+ return oneFilterCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilter getStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return stringFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder setStringFilter(
+ com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) {
+ if (stringFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ stringFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4
+ && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.StringFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 4) {
+ stringFilterBuilder_.mergeFrom(value);
+ } else {
+ stringFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public Builder clearStringFilter() {
+ if (stringFilterBuilder_ == null) {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 4) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ stringFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() {
+ return getStringFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() {
+ if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) {
+ return stringFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>
+ getStringFilterFieldBuilder() {
+ if (stringFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 4)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance();
+ }
+ stringFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.StringFilter,
+ com.google.analytics.data.v1alpha.StringFilter.Builder,
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.StringFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 4;
+ onChanged();
+ ;
+ return stringFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ inListFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasInListFilter() {
+ return oneFilterCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilter getInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return inListFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder setInListFilter(
+ com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) {
+ if (inListFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ inListFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5
+ && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.InListFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 5) {
+ inListFilterBuilder_.mergeFrom(value);
+ } else {
+ inListFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public Builder clearInListFilter() {
+ if (inListFilterBuilder_ == null) {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 5) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ inListFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() {
+ return getInListFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() {
+ if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) {
+ return inListFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 5) {
+ return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>
+ getInListFilterFieldBuilder() {
+ if (inListFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 5)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance();
+ }
+ inListFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.InListFilter,
+ com.google.analytics.data.v1alpha.InListFilter.Builder,
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.InListFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 5;
+ onChanged();
+ ;
+ return inListFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ numericFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasNumericFilter() {
+ return oneFilterCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 6) {
+ return numericFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder setNumericFilter(
+ com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) {
+ if (numericFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ numericFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6
+ && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.NumericFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 6) {
+ numericFilterBuilder_.mergeFrom(value);
+ } else {
+ numericFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public Builder clearNumericFilter() {
+ if (numericFilterBuilder_ == null) {
+ if (oneFilterCase_ == 6) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 6) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ numericFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() {
+ return getNumericFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() {
+ if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) {
+ return numericFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 6) {
+ return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>
+ getNumericFilterFieldBuilder() {
+ if (numericFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 6)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance();
+ }
+ numericFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericFilter,
+ com.google.analytics.data.v1alpha.NumericFilter.Builder,
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 6;
+ onChanged();
+ ;
+ return numericFilterBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ betweenFilterBuilder_;
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasBetweenFilter() {
+ return oneFilterCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ } else {
+ if (oneFilterCase_ == 7) {
+ return betweenFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneFilter_ = value;
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder setBetweenFilter(
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) {
+ if (betweenFilterBuilder_ == null) {
+ oneFilter_ = builderForValue.build();
+ onChanged();
+ } else {
+ betweenFilterBuilder_.setMessage(builderForValue.build());
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7
+ && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) {
+ oneFilter_ =
+ com.google.analytics.data.v1alpha.BetweenFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ oneFilter_ = value;
+ }
+ onChanged();
+ } else {
+ if (oneFilterCase_ == 7) {
+ betweenFilterBuilder_.mergeFrom(value);
+ } else {
+ betweenFilterBuilder_.setMessage(value);
+ }
+ }
+ oneFilterCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public Builder clearBetweenFilter() {
+ if (betweenFilterBuilder_ == null) {
+ if (oneFilterCase_ == 7) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ onChanged();
+ }
+ } else {
+ if (oneFilterCase_ == 7) {
+ oneFilterCase_ = 0;
+ oneFilter_ = null;
+ }
+ betweenFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() {
+ return getBetweenFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() {
+ if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) {
+ return betweenFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (oneFilterCase_ == 7) {
+ return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_;
+ }
+ return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>
+ getBetweenFilterFieldBuilder() {
+ if (betweenFilterBuilder_ == null) {
+ if (!(oneFilterCase_ == 7)) {
+ oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance();
+ }
+ betweenFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.BetweenFilter,
+ com.google.analytics.data.v1alpha.BetweenFilter.Builder,
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_,
+ getParentForChildren(),
+ isClean());
+ oneFilter_ = null;
+ }
+ oneFilterCase_ = 7;
+ onChanged();
+ ;
+ return betweenFilterBuilder_;
+ }
+
+ @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.FunnelParameterFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilter)
+ private static final com.google.analytics.data.v1alpha.FunnelParameterFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Expresses combinations of funnel filters on parameters. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} + */ +public final class FunnelParameterFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpression) + FunnelParameterFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilterExpression.newBuilder() to construct. + private FunnelParameterFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelParameterFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilterExpression( + 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: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = + null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + FUNNEL_PARAMETER_FILTER(4), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return FUNNEL_PARAMETER_FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+ * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getAndGroupOrBuilder() {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+
+ public static final int OR_GROUP_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getOrGroupOrBuilder() {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+
+ public static final int NOT_EXPRESSION_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getNotExpressionOrBuilder() {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance();
+ }
+
+ public static final int FUNNEL_PARAMETER_FILTER_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ * @return Whether the funnelParameterFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelParameterFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ * @return The funnelParameterFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder
+ getFunnelParameterFilterOrBuilder() {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ }
+
+ 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 (exprCase_ == 1) {
+ output.writeMessage(
+ 1, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (exprCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_);
+ }
+ if (exprCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_);
+ }
+ if (exprCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_);
+ }
+ 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.FunnelParameterFilterExpression)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression other =
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) obj;
+
+ if (!getExprCase().equals(other.getExprCase())) return false;
+ switch (exprCase_) {
+ case 1:
+ if (!getAndGroup().equals(other.getAndGroup())) return false;
+ break;
+ case 2:
+ if (!getOrGroup().equals(other.getOrGroup())) return false;
+ break;
+ case 3:
+ if (!getNotExpression().equals(other.getNotExpression())) return false;
+ break;
+ case 4:
+ if (!getFunnelParameterFilter().equals(other.getFunnelParameterFilter())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (exprCase_) {
+ case 1:
+ hash = (37 * hash) + AND_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getAndGroup().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + OR_GROUP_FIELD_NUMBER;
+ hash = (53 * hash) + getOrGroup().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getNotExpression().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + FUNNEL_PARAMETER_FILTER_FIELD_NUMBER;
+ hash = (53 * hash) + getFunnelParameterFilter().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ 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.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression 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.FunnelParameterFilterExpression 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;
+ }
+ /**
+ *
+ *
+ * + * Expresses combinations of funnel filters on parameters. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ *
+ * @return Whether the andGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndGroup() {
+ return exprCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ *
+ * @return The andGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ } else {
+ if (exprCase_ == 1) {
+ return andGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ public Builder setAndGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ public Builder setAndGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder
+ builderForValue) {
+ if (andGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ andGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ public Builder mergeAndGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 1) {
+ andGroupBuilder_.mergeFrom(value);
+ } else {
+ andGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ public Builder clearAndGroup() {
+ if (andGroupBuilder_ == null) {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 1) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ andGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder
+ getAndGroupBuilder() {
+ return getAndGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getAndGroupOrBuilder() {
+ if ((exprCase_ == 1) && (andGroupBuilder_ != null)) {
+ return andGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 1) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>
+ getAndGroupFieldBuilder() {
+ if (andGroupBuilder_ == null) {
+ if (!(exprCase_ == 1)) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ andGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 1;
+ onChanged();
+ ;
+ return andGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>
+ orGroupBuilder_;
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ @java.lang.Override
+ public boolean hasOrGroup() {
+ return exprCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ } else {
+ if (exprCase_ == 2) {
+ return orGroupBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ public Builder setOrGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder
+ builderForValue) {
+ if (orGroupBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ orGroupBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ public Builder mergeOrGroup(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 2) {
+ orGroupBuilder_.mergeFrom(value);
+ } else {
+ orGroupBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ public Builder clearOrGroup() {
+ if (orGroupBuilder_ == null) {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 2) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ orGroupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder
+ getOrGroupBuilder() {
+ return getOrGroupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getOrGroupOrBuilder() {
+ if ((exprCase_ == 2) && (orGroupBuilder_ != null)) {
+ return orGroupBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 2) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>
+ getOrGroupFieldBuilder() {
+ if (orGroupBuilder_ == null) {
+ if (!(exprCase_ == 2)) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ .getDefaultInstance();
+ }
+ orGroupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 2;
+ onChanged();
+ ;
+ return orGroupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ notExpressionBuilder_;
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ *
+ * @return Whether the notExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasNotExpression() {
+ return exprCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ *
+ * @return The notExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance();
+ } else {
+ if (exprCase_ == 3) {
+ return notExpressionBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ public Builder setNotExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ public Builder setNotExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) {
+ if (notExpressionBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ notExpressionBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ public Builder mergeNotExpression(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 3) {
+ notExpressionBuilder_.mergeFrom(value);
+ } else {
+ notExpressionBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ public Builder clearNotExpression() {
+ if (notExpressionBuilder_ == null) {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 3) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ notExpressionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder
+ getNotExpressionBuilder() {
+ return getNotExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getNotExpressionOrBuilder() {
+ if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) {
+ return notExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 3) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ getNotExpressionFieldBuilder() {
+ if (notExpressionBuilder_ == null) {
+ if (!(exprCase_ == 3)) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance();
+ }
+ notExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 3;
+ onChanged();
+ ;
+ return notExpressionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilter,
+ com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder>
+ funnelParameterFilterBuilder_;
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ *
+ * @return Whether the funnelParameterFilter field is set.
+ */
+ @java.lang.Override
+ public boolean hasFunnelParameterFilter() {
+ return exprCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ *
+ * @return The funnelParameterFilter.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() {
+ if (funnelParameterFilterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ } else {
+ if (exprCase_ == 4) {
+ return funnelParameterFilterBuilder_.getMessage();
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ public Builder setFunnelParameterFilter(
+ com.google.analytics.data.v1alpha.FunnelParameterFilter value) {
+ if (funnelParameterFilterBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expr_ = value;
+ onChanged();
+ } else {
+ funnelParameterFilterBuilder_.setMessage(value);
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ public Builder setFunnelParameterFilter(
+ com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder builderForValue) {
+ if (funnelParameterFilterBuilder_ == null) {
+ expr_ = builderForValue.build();
+ onChanged();
+ } else {
+ funnelParameterFilterBuilder_.setMessage(builderForValue.build());
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ public Builder mergeFunnelParameterFilter(
+ com.google.analytics.data.v1alpha.FunnelParameterFilter value) {
+ if (funnelParameterFilterBuilder_ == null) {
+ if (exprCase_ == 4
+ && expr_
+ != com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance()) {
+ expr_ =
+ com.google.analytics.data.v1alpha.FunnelParameterFilter.newBuilder(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ expr_ = value;
+ }
+ onChanged();
+ } else {
+ if (exprCase_ == 4) {
+ funnelParameterFilterBuilder_.mergeFrom(value);
+ } else {
+ funnelParameterFilterBuilder_.setMessage(value);
+ }
+ }
+ exprCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ public Builder clearFunnelParameterFilter() {
+ if (funnelParameterFilterBuilder_ == null) {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ onChanged();
+ }
+ } else {
+ if (exprCase_ == 4) {
+ exprCase_ = 0;
+ expr_ = null;
+ }
+ funnelParameterFilterBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder
+ getFunnelParameterFilterBuilder() {
+ return getFunnelParameterFilterFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder
+ getFunnelParameterFilterOrBuilder() {
+ if ((exprCase_ == 4) && (funnelParameterFilterBuilder_ != null)) {
+ return funnelParameterFilterBuilder_.getMessageOrBuilder();
+ } else {
+ if (exprCase_ == 4) {
+ return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_;
+ }
+ return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilter,
+ com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder>
+ getFunnelParameterFilterFieldBuilder() {
+ if (funnelParameterFilterBuilder_ == null) {
+ if (!(exprCase_ == 4)) {
+ expr_ = com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance();
+ }
+ funnelParameterFilterBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelParameterFilter,
+ com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder>(
+ (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_,
+ getParentForChildren(),
+ isClean());
+ expr_ = null;
+ }
+ exprCase_ = 4;
+ onChanged();
+ ;
+ return funnelParameterFilterBuilder_;
+ }
+
+ @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.FunnelParameterFilterExpression)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilterExpression)
+ private static final com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilterExpression();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of funnel parameter filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} + */ +public final class FunnelParameterFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + FunnelParameterFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilterExpressionList.newBuilder() to construct. + private FunnelParameterFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelParameterFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilterExpressionList( + 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)) { + expressions_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + } + 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_FunnelParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List
+ * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ return expressions_;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public int getExpressionsCount() {
+ return expressions_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions(
+ int index) {
+ return expressions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getExpressionsOrBuilder(int index) {
+ return expressions_.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 < expressions_.size(); i++) {
+ output.writeMessage(1, expressions_.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 < expressions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.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.FunnelParameterFilterExpressionList)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList other =
+ (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) obj;
+
+ if (!getExpressionsList().equals(other.getExpressionsList())) 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 (getExpressionsCount() > 0) {
+ hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getExpressionsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList
+ 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.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList 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.FunnelParameterFilterExpressionList 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;
+ }
+ /**
+ *
+ *
+ * + * A list of funnel parameter filter expressions. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public java.util.List+ * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public int getExpressionsCount() {
+ if (expressionsBuilder_ == null) {
+ return expressions_.size();
+ } else {
+ return expressionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions(
+ int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder setExpressions(
+ int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.set(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder setExpressions(
+ int index,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder addExpressions(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder addExpressions(
+ int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) {
+ if (expressionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureExpressionsIsMutable();
+ expressions_.add(index, value);
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder addExpressions(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder addExpressions(
+ int index,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ expressionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder addAllExpressions(
+ java.lang.Iterable<
+ ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>
+ values) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_);
+ onChanged();
+ } else {
+ expressionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder clearExpressions() {
+ if (expressionsBuilder_ == null) {
+ expressions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ expressionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public Builder removeExpressions(int index) {
+ if (expressionsBuilder_ == null) {
+ ensureExpressionsIsMutable();
+ expressions_.remove(index);
+ onChanged();
+ } else {
+ expressionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder
+ getExpressionsBuilder(int index) {
+ return getExpressionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getExpressionsOrBuilder(int index) {
+ if (expressionsBuilder_ == null) {
+ return expressions_.get(index);
+ } else {
+ return expressionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList() {
+ if (expressionsBuilder_ != null) {
+ return expressionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(expressions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder
+ addExpressionsBuilder() {
+ return getExpressionsFieldBuilder()
+ .addBuilder(
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder
+ addExpressionsBuilder(int index) {
+ return getExpressionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
+ * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ public java.util.List+ * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ java.util.List+ * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions(int index);
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ int getExpressionsCount();
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ java.util.List<
+ ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>
+ getExpressionsOrBuilderList();
+ /**
+ *
+ *
+ * + * The list of funnel parameter filter expressions. + *+ * + *
repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1;
+ *
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getExpressionsOrBuilder(int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java
new file mode 100644
index 00000000..a60e54a6
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java
@@ -0,0 +1,177 @@
+/*
+ * 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 FunnelParameterFilterExpressionOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilterExpression)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ * @return Whether the andGroup field is set.
+ */
+ boolean hasAndGroup();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ *
+ * @return The andGroup.
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `andGroup` have an AND + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1;
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getAndGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return Whether the orGroup field is set.
+ */
+ boolean hasOrGroup();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ *
+ * @return The orGroup.
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression in `orGroup` have an OR + * relationship. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2;
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder
+ getOrGroupOrBuilder();
+
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ * @return Whether the notExpression field is set.
+ */
+ boolean hasNotExpression();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ *
+ * @return The notExpression.
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression();
+ /**
+ *
+ *
+ * + * The FunnelParameterFilterExpression is NOT of `notExpression`. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3;
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder
+ getNotExpressionOrBuilder();
+
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ * @return Whether the funnelParameterFilter field is set.
+ */
+ boolean hasFunnelParameterFilter();
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ *
+ * @return The funnelParameterFilter.
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter();
+ /**
+ *
+ *
+ * + * A primitive funnel parameter filter. + *+ * + *
.google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4;
+ */
+ com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder
+ getFunnelParameterFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.ExprCase getExprCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java
new file mode 100644
index 00000000..9b09f780
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java
@@ -0,0 +1,286 @@
+/*
+ * 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 FunnelParameterFilterOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilter)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return Whether the eventParameterName field is set.
+ */
+ boolean hasEventParameterName();
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The eventParameterName.
+ */
+ java.lang.String getEventParameterName();
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified event parameter. Event + * parameters are logged as parameters of the event. Event parameters + * include fields like "firebase_screen" & "currency". + * Event parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + *+ * + *
string event_parameter_name = 1;
+ *
+ * @return The bytes for eventParameterName.
+ */
+ com.google.protobuf.ByteString getEventParameterNameBytes();
+
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return Whether the itemParameterName field is set.
+ */
+ boolean hasItemParameterName();
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The itemParameterName.
+ */
+ java.lang.String getItemParameterName();
+ /**
+ *
+ *
+ * + * This filter will be evaluated on the specified item parameter. Item + * parameters are logged as parameters in the item array. Item parameters + * include fields like "item_name" & "item_category". + * Item parameters can only be used in segments & funnels and can only be + * used in a descendent filter from an EventFilter. In a descendent filter + * from an EventFilter either event or item parameters should be used. + * Item parameters are only available in ecommerce events. To learn more + * about ecommerce events, see the [Measure ecommerce] + * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + * guide. + *+ * + *
string item_parameter_name = 2;
+ *
+ * @return The bytes for itemParameterName.
+ */
+ com.google.protobuf.ByteString getItemParameterNameBytes();
+
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return Whether the stringFilter field is set.
+ */
+ boolean hasStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ *
+ * @return The stringFilter.
+ */
+ com.google.analytics.data.v1alpha.StringFilter getStringFilter();
+ /**
+ *
+ *
+ * + * Strings related filter. + *+ * + *
.google.analytics.data.v1alpha.StringFilter string_filter = 4;
+ */
+ com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return Whether the inListFilter field is set.
+ */
+ boolean hasInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ *
+ * @return The inListFilter.
+ */
+ com.google.analytics.data.v1alpha.InListFilter getInListFilter();
+ /**
+ *
+ *
+ * + * A filter for in list values. + *+ * + *
.google.analytics.data.v1alpha.InListFilter in_list_filter = 5;
+ */
+ com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return Whether the numericFilter field is set.
+ */
+ boolean hasNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ *
+ * @return The numericFilter.
+ */
+ com.google.analytics.data.v1alpha.NumericFilter getNumericFilter();
+ /**
+ *
+ *
+ * + * A filter for numeric or date values. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter numeric_filter = 6;
+ */
+ com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder();
+
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return Whether the betweenFilter field is set.
+ */
+ boolean hasBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ *
+ * @return The betweenFilter.
+ */
+ com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter();
+ /**
+ *
+ *
+ * + * A filter for between two values. + *+ * + *
.google.analytics.data.v1alpha.BetweenFilter between_filter = 7;
+ */
+ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder();
+
+ public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneParameterCase
+ getOneParameterCase();
+
+ public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneFilterCase getOneFilterCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java
new file mode 100644
index 00000000..716b8362
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java
@@ -0,0 +1,1111 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * The funnel report's response metadata carries additional information about + * the funnel report. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} + */ +public final class FunnelResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelResponseMetadata) + FunnelResponseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelResponseMetadata.newBuilder() to construct. + private FunnelResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelResponseMetadata() { + samplingMetadatas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelResponseMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelResponseMetadata( + 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)) { + samplingMetadatas_ = + new java.util.ArrayList
+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>
+ getSamplingMetadatasOrBuilderList() {
+ return samplingMetadatas_;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ @java.lang.Override
+ public int getSamplingMetadatasCount() {
+ return samplingMetadatas_.size();
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) {
+ return samplingMetadatas_.get(index);
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder(
+ int index) {
+ return samplingMetadatas_.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 < samplingMetadatas_.size(); i++) {
+ output.writeMessage(1, samplingMetadatas_.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 < samplingMetadatas_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(1, samplingMetadatas_.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.FunnelResponseMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata other =
+ (com.google.analytics.data.v1alpha.FunnelResponseMetadata) obj;
+
+ if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) 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 (getSamplingMetadatasCount() > 0) {
+ hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER;
+ hash = (53 * hash) + getSamplingMetadatasList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.FunnelResponseMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.FunnelResponseMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.FunnelResponseMetadata parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.FunnelResponseMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.FunnelResponseMetadata 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.FunnelResponseMetadata 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.FunnelResponseMetadata 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 funnel report's response metadata carries additional information about + * the funnel report. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public java.util.List+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public int getSamplingMetadatasCount() {
+ if (samplingMetadatasBuilder_ == null) {
+ return samplingMetadatas_.size();
+ } else {
+ return samplingMetadatasBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) {
+ if (samplingMetadatasBuilder_ == null) {
+ return samplingMetadatas_.get(index);
+ } else {
+ return samplingMetadatasBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder setSamplingMetadatas(
+ int index, com.google.analytics.data.v1alpha.SamplingMetadata value) {
+ if (samplingMetadatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.set(index, value);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder setSamplingMetadatas(
+ int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) {
+ if (samplingMetadatasBuilder_ == null) {
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMetadata value) {
+ if (samplingMetadatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.add(value);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder addSamplingMetadatas(
+ int index, com.google.analytics.data.v1alpha.SamplingMetadata value) {
+ if (samplingMetadatasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.add(index, value);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder addSamplingMetadatas(
+ com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) {
+ if (samplingMetadatasBuilder_ == null) {
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.add(builderForValue.build());
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder addSamplingMetadatas(
+ int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) {
+ if (samplingMetadatasBuilder_ == null) {
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder addAllSamplingMetadatas(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.SamplingMetadata> values) {
+ if (samplingMetadatasBuilder_ == null) {
+ ensureSamplingMetadatasIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, samplingMetadatas_);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder clearSamplingMetadatas() {
+ if (samplingMetadatasBuilder_ == null) {
+ samplingMetadatas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public Builder removeSamplingMetadatas(int index) {
+ if (samplingMetadatasBuilder_ == null) {
+ ensureSamplingMetadatasIsMutable();
+ samplingMetadatas_.remove(index);
+ onChanged();
+ } else {
+ samplingMetadatasBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMetadatasBuilder(
+ int index) {
+ return getSamplingMetadatasFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder
+ getSamplingMetadatasOrBuilder(int index) {
+ if (samplingMetadatasBuilder_ == null) {
+ return samplingMetadatas_.get(index);
+ } else {
+ return samplingMetadatasBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>
+ getSamplingMetadatasOrBuilderList() {
+ if (samplingMetadatasBuilder_ != null) {
+ return samplingMetadatasBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(samplingMetadatas_);
+ }
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder
+ addSamplingMetadatasBuilder() {
+ return getSamplingMetadatasFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMetadatasBuilder(
+ int index) {
+ return getSamplingMetadatasFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ public java.util.List+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ java.util.List+ * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index);
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ int getSamplingMetadatasCount();
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>
+ getSamplingMetadatasOrBuilderList();
+ /**
+ *
+ *
+ * + * If funnel report results are + * [sampled](https://support.google.com/analytics/answer/2637192), this + * describes what percentage of events were used in this funnel report. One + * `samplingMetadatas` is populated for each date range. Each + * `samplingMetadatas` corresponds to a date range in order that date ranges + * were specified in the request. + * However if the results are not sampled, this field will not be defined. + *+ * + *
repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1;
+ */
+ com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder(
+ int index);
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java
new file mode 100644
index 00000000..e55b7100
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java
@@ -0,0 +1,1429 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Steps define the user journey you want to measure. Steps contain one or + * more conditions that your users must meet to be included in that step of + * the funnel journey. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} + */ +public final class FunnelStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelStep) + FunnelStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelStep.newBuilder() to construct. + private FunnelStep(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelStep() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelStep( + 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(); + + name_ = s; + break; + } + case 16: + { + isDirectlyFollowedBy_ = input.readBool(); + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) != 0)) { + subBuilder = withinDurationFromPriorStep_.toBuilder(); + } + withinDurationFromPriorStep_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(withinDurationFromPriorStep_); + withinDurationFromPriorStep_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; + if (filterExpression_ != null) { + subBuilder = filterExpression_.toBuilder(); + } + filterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterExpression_); + filterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelStep.class, + com.google.analytics.data.v1alpha.FunnelStep.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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 IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER = 2;
+ private boolean isDirectlyFollowedBy_;
+ /**
+ *
+ *
+ * + * If true, this step must directly follow the previous step. If false, + * there can be events between the previous step and this step. If + * unspecified, `isDirectlyFollowedBy` is treated as false. + *+ * + *
bool is_directly_followed_by = 2;
+ *
+ * @return The isDirectlyFollowedBy.
+ */
+ @java.lang.Override
+ public boolean getIsDirectlyFollowedBy() {
+ return isDirectlyFollowedBy_;
+ }
+
+ public static final int WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER = 3;
+ private com.google.protobuf.Duration withinDurationFromPriorStep_;
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return Whether the withinDurationFromPriorStep field is set.
+ */
+ @java.lang.Override
+ public boolean hasWithinDurationFromPriorStep() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return The withinDurationFromPriorStep.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Duration getWithinDurationFromPriorStep() {
+ return withinDurationFromPriorStep_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : withinDurationFromPriorStep_;
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ @java.lang.Override
+ public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() {
+ return withinDurationFromPriorStep_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : withinDurationFromPriorStep_;
+ }
+
+ public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4;
+ private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_;
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return Whether the filterExpression field is set.
+ */
+ @java.lang.Override
+ public boolean hasFilterExpression() {
+ return filterExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return The filterExpression.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() {
+ return filterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()
+ : filterExpression_;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder
+ getFilterExpressionOrBuilder() {
+ return getFilterExpression();
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (isDirectlyFollowedBy_ != false) {
+ output.writeBool(2, isDirectlyFollowedBy_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(3, getWithinDurationFromPriorStep());
+ }
+ if (filterExpression_ != null) {
+ output.writeMessage(4, getFilterExpression());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (isDirectlyFollowedBy_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isDirectlyFollowedBy_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, getWithinDurationFromPriorStep());
+ }
+ if (filterExpression_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression());
+ }
+ 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.FunnelStep)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelStep other =
+ (com.google.analytics.data.v1alpha.FunnelStep) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (getIsDirectlyFollowedBy() != other.getIsDirectlyFollowedBy()) return false;
+ if (hasWithinDurationFromPriorStep() != other.hasWithinDurationFromPriorStep()) return false;
+ if (hasWithinDurationFromPriorStep()) {
+ if (!getWithinDurationFromPriorStep().equals(other.getWithinDurationFromPriorStep()))
+ return false;
+ }
+ if (hasFilterExpression() != other.hasFilterExpression()) return false;
+ if (hasFilterExpression()) {
+ if (!getFilterExpression().equals(other.getFilterExpression())) 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 = (37 * hash) + IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDirectlyFollowedBy());
+ if (hasWithinDurationFromPriorStep()) {
+ hash = (37 * hash) + WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER;
+ hash = (53 * hash) + getWithinDurationFromPriorStep().hashCode();
+ }
+ if (hasFilterExpression()) {
+ hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER;
+ hash = (53 * hash) + getFilterExpression().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep 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.FunnelStep parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep 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.FunnelStep parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep 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.FunnelStep parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep 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.FunnelStep parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep 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.FunnelStep 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.FunnelStep 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.FunnelStep 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;
+ }
+ /**
+ *
+ *
+ * + * Steps define the user journey you want to measure. Steps contain one or + * more conditions that your users must meet to be included in that step of + * the funnel journey. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @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 boolean isDirectlyFollowedBy_;
+ /**
+ *
+ *
+ * + * If true, this step must directly follow the previous step. If false, + * there can be events between the previous step and this step. If + * unspecified, `isDirectlyFollowedBy` is treated as false. + *+ * + *
bool is_directly_followed_by = 2;
+ *
+ * @return The isDirectlyFollowedBy.
+ */
+ @java.lang.Override
+ public boolean getIsDirectlyFollowedBy() {
+ return isDirectlyFollowedBy_;
+ }
+ /**
+ *
+ *
+ * + * If true, this step must directly follow the previous step. If false, + * there can be events between the previous step and this step. If + * unspecified, `isDirectlyFollowedBy` is treated as false. + *+ * + *
bool is_directly_followed_by = 2;
+ *
+ * @param value The isDirectlyFollowedBy to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsDirectlyFollowedBy(boolean value) {
+
+ isDirectlyFollowedBy_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If true, this step must directly follow the previous step. If false, + * there can be events between the previous step and this step. If + * unspecified, `isDirectlyFollowedBy` is treated as false. + *+ * + *
bool is_directly_followed_by = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsDirectlyFollowedBy() {
+
+ isDirectlyFollowedBy_ = false;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration withinDurationFromPriorStep_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ withinDurationFromPriorStepBuilder_;
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return Whether the withinDurationFromPriorStep field is set.
+ */
+ public boolean hasWithinDurationFromPriorStep() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return The withinDurationFromPriorStep.
+ */
+ public com.google.protobuf.Duration getWithinDurationFromPriorStep() {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ return withinDurationFromPriorStep_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : withinDurationFromPriorStep_;
+ } else {
+ return withinDurationFromPriorStepBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public Builder setWithinDurationFromPriorStep(com.google.protobuf.Duration value) {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ withinDurationFromPriorStep_ = value;
+ onChanged();
+ } else {
+ withinDurationFromPriorStepBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public Builder setWithinDurationFromPriorStep(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ withinDurationFromPriorStep_ = builderForValue.build();
+ onChanged();
+ } else {
+ withinDurationFromPriorStepBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public Builder mergeWithinDurationFromPriorStep(com.google.protobuf.Duration value) {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && withinDurationFromPriorStep_ != null
+ && withinDurationFromPriorStep_ != com.google.protobuf.Duration.getDefaultInstance()) {
+ withinDurationFromPriorStep_ =
+ com.google.protobuf.Duration.newBuilder(withinDurationFromPriorStep_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ withinDurationFromPriorStep_ = value;
+ }
+ onChanged();
+ } else {
+ withinDurationFromPriorStepBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public Builder clearWithinDurationFromPriorStep() {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ withinDurationFromPriorStep_ = null;
+ onChanged();
+ } else {
+ withinDurationFromPriorStepBuilder_.clear();
+ }
+ bitField0_ = (bitField0_ & ~0x00000001);
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public com.google.protobuf.Duration.Builder getWithinDurationFromPriorStepBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getWithinDurationFromPriorStepFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() {
+ if (withinDurationFromPriorStepBuilder_ != null) {
+ return withinDurationFromPriorStepBuilder_.getMessageOrBuilder();
+ } else {
+ return withinDurationFromPriorStep_ == null
+ ? com.google.protobuf.Duration.getDefaultInstance()
+ : withinDurationFromPriorStep_;
+ }
+ }
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>
+ getWithinDurationFromPriorStepFieldBuilder() {
+ if (withinDurationFromPriorStepBuilder_ == null) {
+ withinDurationFromPriorStepBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration,
+ com.google.protobuf.Duration.Builder,
+ com.google.protobuf.DurationOrBuilder>(
+ getWithinDurationFromPriorStep(), getParentForChildren(), isClean());
+ withinDurationFromPriorStep_ = null;
+ }
+ return withinDurationFromPriorStepBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ filterExpressionBuilder_;
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return Whether the filterExpression field is set.
+ */
+ public boolean hasFilterExpression() {
+ return filterExpressionBuilder_ != null || filterExpression_ != null;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return The filterExpression.
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() {
+ if (filterExpressionBuilder_ == null) {
+ return filterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()
+ : filterExpression_;
+ } else {
+ return filterExpressionBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public Builder setFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (filterExpressionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ filterExpression_ = value;
+ onChanged();
+ } else {
+ filterExpressionBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public Builder setFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) {
+ if (filterExpressionBuilder_ == null) {
+ filterExpression_ = builderForValue.build();
+ onChanged();
+ } else {
+ filterExpressionBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public Builder mergeFilterExpression(
+ com.google.analytics.data.v1alpha.FunnelFilterExpression value) {
+ if (filterExpressionBuilder_ == null) {
+ if (filterExpression_ != null) {
+ filterExpression_ =
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder(filterExpression_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ filterExpression_ = value;
+ }
+ onChanged();
+ } else {
+ filterExpressionBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public Builder clearFilterExpression() {
+ if (filterExpressionBuilder_ == null) {
+ filterExpression_ = null;
+ onChanged();
+ } else {
+ filterExpression_ = null;
+ filterExpressionBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder
+ getFilterExpressionBuilder() {
+
+ onChanged();
+ return getFilterExpressionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder
+ getFilterExpressionOrBuilder() {
+ if (filterExpressionBuilder_ != null) {
+ return filterExpressionBuilder_.getMessageOrBuilder();
+ } else {
+ return filterExpression_ == null
+ ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()
+ : filterExpression_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>
+ getFilterExpressionFieldBuilder() {
+ if (filterExpressionBuilder_ == null) {
+ filterExpressionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelFilterExpression,
+ com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder,
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>(
+ getFilterExpression(), getParentForChildren(), isClean());
+ filterExpression_ = null;
+ }
+ return filterExpressionBuilder_;
+ }
+
+ @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.FunnelStep)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelStep)
+ private static final com.google.analytics.data.v1alpha.FunnelStep DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelStep();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelStep getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The distinctive name for this step. If unspecified, steps will be named + * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + * string value returned by the `funnelStepName` dimension. For example, + * specifying `name = Purchase` in the request's third funnel step will + * produce `3. Purchase` in the funnel report response. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * If true, this step must directly follow the previous step. If false, + * there can be events between the previous step and this step. If + * unspecified, `isDirectlyFollowedBy` is treated as false. + *+ * + *
bool is_directly_followed_by = 2;
+ *
+ * @return The isDirectlyFollowedBy.
+ */
+ boolean getIsDirectlyFollowedBy();
+
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return Whether the withinDurationFromPriorStep field is set.
+ */
+ boolean hasWithinDurationFromPriorStep();
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ *
+ * @return The withinDurationFromPriorStep.
+ */
+ com.google.protobuf.Duration getWithinDurationFromPriorStep();
+ /**
+ *
+ *
+ * + * If specified, this step must complete within this duration of the + * completion of the prior step. `withinDurationFromPriorStep` is inclusive + * of the endpoint at the microsecond granularity. For example a duration of + * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + * microsecond. + * `withinDurationFromPriorStep` is optional, and if unspecified, steps may + * be separated by any time duration. + *+ * + *
optional .google.protobuf.Duration within_duration_from_prior_step = 3;
+ */
+ com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder();
+
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return Whether the filterExpression field is set.
+ */
+ boolean hasFilterExpression();
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ *
+ * @return The filterExpression.
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression();
+ /**
+ *
+ *
+ * + * The condition that your users must meet to be included in this step of + * the funnel journey. + *+ * + *
.google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4;
+ */
+ com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getFilterExpressionOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java
new file mode 100644
index 00000000..f7d89e9b
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java
@@ -0,0 +1,2327 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Funnel sub reports contain the dimension and metric data values. For example, + * 12 users reached the second step of the funnel. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} + */ +public final class FunnelSubReport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelSubReport) + FunnelSubReportOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelSubReport.newBuilder() to construct. + private FunnelSubReport(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private FunnelSubReport() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelSubReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelSubReport( + 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)) { + dimensionHeaders_ = + new java.util.ArrayList
+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList() {
+ return dimensionHeaders_;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ @java.lang.Override
+ public int getDimensionHeadersCount() {
+ return dimensionHeaders_.size();
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) {
+ return dimensionHeaders_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ @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. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ @java.lang.Override
+ public java.util.List+ * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>
+ getMetricHeadersOrBuilderList() {
+ return metricHeaders_;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ @java.lang.Override
+ public int getMetricHeadersCount() {
+ return metricHeaders_.size();
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) {
+ return metricHeaders_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(
+ int index) {
+ return metricHeaders_.get(index);
+ }
+
+ public static final int ROWS_FIELD_NUMBER = 3;
+ private java.util.List+ * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ @java.lang.Override
+ public java.util.List+ * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.data.v1alpha.RowOrBuilder>
+ getRowsOrBuilderList() {
+ return rows_;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ @java.lang.Override
+ public int getRowsCount() {
+ return rows_.size();
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.Row getRows(int index) {
+ return rows_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) {
+ return rows_.get(index);
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 4;
+ private com.google.analytics.data.v1alpha.FunnelResponseMetadata metadata_;
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return Whether the metadata field is set.
+ */
+ @java.lang.Override
+ public boolean hasMetadata() {
+ return metadata_ != null;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return The metadata.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() {
+ return metadata_ == null
+ ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance()
+ : metadata_;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder() {
+ return getMetadata();
+ }
+
+ 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 < dimensionHeaders_.size(); i++) {
+ output.writeMessage(1, dimensionHeaders_.get(i));
+ }
+ for (int i = 0; i < metricHeaders_.size(); i++) {
+ output.writeMessage(2, metricHeaders_.get(i));
+ }
+ for (int i = 0; i < rows_.size(); i++) {
+ output.writeMessage(3, rows_.get(i));
+ }
+ if (metadata_ != null) {
+ output.writeMessage(4, getMetadata());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ 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 < metricHeaders_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i));
+ }
+ for (int i = 0; i < rows_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i));
+ }
+ if (metadata_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
+ }
+ 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.FunnelSubReport)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.FunnelSubReport other =
+ (com.google.analytics.data.v1alpha.FunnelSubReport) obj;
+
+ if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false;
+ if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false;
+ if (!getRowsList().equals(other.getRowsList())) return false;
+ if (hasMetadata() != other.hasMetadata()) return false;
+ if (hasMetadata()) {
+ if (!getMetadata().equals(other.getMetadata())) 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 (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();
+ }
+ if (getRowsCount() > 0) {
+ hash = (37 * hash) + ROWS_FIELD_NUMBER;
+ hash = (53 * hash) + getRowsList().hashCode();
+ }
+ if (hasMetadata()) {
+ hash = (37 * hash) + METADATA_FIELD_NUMBER;
+ hash = (53 * hash) + getMetadata().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport 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.FunnelSubReport parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport 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.FunnelSubReport parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport 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.FunnelSubReport parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport 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.FunnelSubReport parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport 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.FunnelSubReport 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.FunnelSubReport 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.FunnelSubReport 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;
+ }
+ /**
+ *
+ *
+ * + * Funnel sub reports contain the dimension and metric data values. For example, + * 12 users reached the second step of the funnel. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public java.util.List+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public int getDimensionHeadersCount() {
+ if (dimensionHeadersBuilder_ == null) {
+ return dimensionHeaders_.size();
+ } else {
+ return dimensionHeadersBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader 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());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader 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());
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader 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_);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public Builder clearDimensionHeaders() {
+ if (dimensionHeadersBuilder_ == null) {
+ dimensionHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public Builder removeDimensionHeaders(int index) {
+ if (dimensionHeadersBuilder_ == null) {
+ ensureDimensionHeadersIsMutable();
+ dimensionHeaders_.remove(index);
+ onChanged();
+ } else {
+ dimensionHeadersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder(
+ int index) {
+ return getDimensionHeadersFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() {
+ return getDimensionHeadersFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ 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. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ public java.util.List+ * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public java.util.List+ * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public int getMetricHeadersCount() {
+ if (metricHeadersBuilder_ == null) {
+ return metricHeaders_.size();
+ } else {
+ return metricHeadersBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) {
+ if (metricHeadersBuilder_ == null) {
+ return metricHeaders_.get(index);
+ } else {
+ return metricHeadersBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder setMetricHeaders(
+ int index, com.google.analytics.data.v1alpha.MetricHeader value) {
+ if (metricHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.set(index, value);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder setMetricHeaders(
+ int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) {
+ if (metricHeadersBuilder_ == null) {
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ metricHeadersBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder addMetricHeaders(com.google.analytics.data.v1alpha.MetricHeader value) {
+ if (metricHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.add(value);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder addMetricHeaders(
+ int index, com.google.analytics.data.v1alpha.MetricHeader value) {
+ if (metricHeadersBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.add(index, value);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder addMetricHeaders(
+ com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) {
+ if (metricHeadersBuilder_ == null) {
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.add(builderForValue.build());
+ onChanged();
+ } else {
+ metricHeadersBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder addMetricHeaders(
+ int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) {
+ if (metricHeadersBuilder_ == null) {
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ metricHeadersBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder addAllMetricHeaders(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.MetricHeader> values) {
+ if (metricHeadersBuilder_ == null) {
+ ensureMetricHeadersIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder clearMetricHeaders() {
+ if (metricHeadersBuilder_ == null) {
+ metricHeaders_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public Builder removeMetricHeaders(int index) {
+ if (metricHeadersBuilder_ == null) {
+ ensureMetricHeadersIsMutable();
+ metricHeaders_.remove(index);
+ onChanged();
+ } else {
+ metricHeadersBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBuilder(
+ int index) {
+ return getMetricHeadersFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(
+ int index) {
+ if (metricHeadersBuilder_ == null) {
+ return metricHeaders_.get(index);
+ } else {
+ return metricHeadersBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>
+ getMetricHeadersOrBuilderList() {
+ if (metricHeadersBuilder_ != null) {
+ return metricHeadersBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(metricHeaders_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() {
+ return getMetricHeadersFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder(
+ int index) {
+ return getMetricHeadersFieldBuilder()
+ .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ public java.util.List+ * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public java.util.List+ * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public int getRowsCount() {
+ if (rowsBuilder_ == null) {
+ return rows_.size();
+ } else {
+ return rowsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public com.google.analytics.data.v1alpha.Row getRows(int index) {
+ if (rowsBuilder_ == null) {
+ return rows_.get(index);
+ } else {
+ return rowsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder setRows(int index, com.google.analytics.data.v1alpha.Row value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.set(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder setRows(
+ int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder addRows(com.google.analytics.data.v1alpha.Row value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder addRows(int index, com.google.analytics.data.v1alpha.Row value) {
+ if (rowsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRowsIsMutable();
+ rows_.add(index, value);
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder addRows(com.google.analytics.data.v1alpha.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder addRows(
+ int index, com.google.analytics.data.v1alpha.Row.Builder builderForValue) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ rowsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder addAllRows(
+ java.lang.Iterable extends com.google.analytics.data.v1alpha.Row> values) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_);
+ onChanged();
+ } else {
+ rowsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder clearRows() {
+ if (rowsBuilder_ == null) {
+ rows_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ rowsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public Builder removeRows(int index) {
+ if (rowsBuilder_ == null) {
+ ensureRowsIsMutable();
+ rows_.remove(index);
+ onChanged();
+ } else {
+ rowsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) {
+ return getRowsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) {
+ if (rowsBuilder_ == null) {
+ return rows_.get(index);
+ } else {
+ return rowsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public java.util.List extends com.google.analytics.data.v1alpha.RowOrBuilder>
+ getRowsOrBuilderList() {
+ if (rowsBuilder_ != null) {
+ return rowsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(rows_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() {
+ return getRowsFieldBuilder()
+ .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) {
+ return getRowsFieldBuilder()
+ .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ public java.util.List+ * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return Whether the metadata field is set.
+ */
+ public boolean hasMetadata() {
+ return metadataBuilder_ != null || metadata_ != null;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return The metadata.
+ */
+ public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() {
+ if (metadataBuilder_ == null) {
+ return metadata_ == null
+ ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance()
+ : metadata_;
+ } else {
+ return metadataBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public Builder setMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) {
+ if (metadataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ metadata_ = value;
+ onChanged();
+ } else {
+ metadataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public Builder setMetadata(
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder builderForValue) {
+ if (metadataBuilder_ == null) {
+ metadata_ = builderForValue.build();
+ onChanged();
+ } else {
+ metadataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public Builder mergeMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) {
+ if (metadataBuilder_ == null) {
+ if (metadata_ != null) {
+ metadata_ =
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder(metadata_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ metadata_ = value;
+ }
+ onChanged();
+ } else {
+ metadataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public Builder clearMetadata() {
+ if (metadataBuilder_ == null) {
+ metadata_ = null;
+ onChanged();
+ } else {
+ metadata_ = null;
+ metadataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder getMetadataBuilder() {
+
+ onChanged();
+ return getMetadataFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder
+ getMetadataOrBuilder() {
+ if (metadataBuilder_ != null) {
+ return metadataBuilder_.getMessageOrBuilder();
+ } else {
+ return metadata_ == null
+ ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance()
+ : metadata_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata,
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder,
+ com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder>
+ getMetadataFieldBuilder() {
+ if (metadataBuilder_ == null) {
+ metadataBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata,
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder,
+ com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder>(
+ getMetadata(), getParentForChildren(), isClean());
+ metadata_ = null;
+ }
+ return metadataBuilder_;
+ }
+
+ @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.FunnelSubReport)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelSubReport)
+ private static final com.google.analytics.data.v1alpha.FunnelSubReport DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelSubReport();
+ }
+
+ public static com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ java.util.List+ * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index);
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ int getDimensionHeadersCount();
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder>
+ getDimensionHeadersOrBuilderList();
+ /**
+ *
+ *
+ * + * Describes dimension columns. Funnel reports always include the funnel step + * dimension in sub report responses. Additional dimensions like breakdowns, + * dates, and next actions may be present in the response if requested. + *+ * + *
repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1;
+ */
+ com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ java.util.List+ * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index);
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ int getMetricHeadersCount();
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.MetricHeaderOrBuilder>
+ getMetricHeadersOrBuilderList();
+ /**
+ *
+ *
+ * + * Describes metric columns. Funnel reports always include active users in sub + * report responses. The funnel table includes additional metrics like + * completion rate, abandonments, and abandonments rate. + *+ * + *
repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2;
+ */
+ com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ java.util.List+ * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ com.google.analytics.data.v1alpha.Row getRows(int index);
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ int getRowsCount();
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ java.util.List extends com.google.analytics.data.v1alpha.RowOrBuilder> getRowsOrBuilderList();
+ /**
+ *
+ *
+ * + * Rows of dimension value combinations and metric values in the report. + *+ * + *
repeated .google.analytics.data.v1alpha.Row rows = 3;
+ */
+ com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return Whether the metadata field is set.
+ */
+ boolean hasMetadata();
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ *
+ * @return The metadata.
+ */
+ com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata();
+ /**
+ *
+ *
+ * + * Metadata for the funnel report. + *+ * + *
.google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4;
+ */
+ com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java
new file mode 100644
index 00000000..b25649d5
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java
@@ -0,0 +1,840 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * The result needs to be in a list of string values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.InListFilter} + */ +public final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.InListFilter) + InListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use InListFilter.newBuilder() to construct. + private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private InListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InListFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private InListFilter( + 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(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + case 16: + { + caseSensitive_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.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_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.InListFilter.class, + com.google.analytics.data.v1alpha.InListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList values_; + /** + * + * + *
+ * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_;
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+
+ public static final int CASE_SENSITIVE_FIELD_NUMBER = 2;
+ private boolean caseSensitive_;
+ /**
+ *
+ *
+ * + * If true, the string value is case sensitive. + *+ * + *
bool case_sensitive = 2;
+ *
+ * @return The caseSensitive.
+ */
+ @java.lang.Override
+ public boolean getCaseSensitive() {
+ return caseSensitive_;
+ }
+
+ 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 < values_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i));
+ }
+ if (caseSensitive_ != false) {
+ output.writeBool(2, caseSensitive_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < values_.size(); i++) {
+ dataSize += computeStringSizeNoTag(values_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getValuesList().size();
+ }
+ if (caseSensitive_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_);
+ }
+ 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.InListFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.InListFilter other =
+ (com.google.analytics.data.v1alpha.InListFilter) obj;
+
+ if (!getValuesList().equals(other.getValuesList())) return false;
+ if (getCaseSensitive() != other.getCaseSensitive()) 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 (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter 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.InListFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter 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.InListFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter 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.InListFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter 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.InListFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter 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.InListFilter 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.InListFilter 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.InListFilter 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 result needs to be in a list of string values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.InListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return A list containing the values.
+ */
+ public com.google.protobuf.ProtocolStringList getValuesList() {
+ return values_.getUnmodifiableView();
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return The count of values.
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ public java.lang.String getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ public com.google.protobuf.ByteString getValuesBytes(int index) {
+ return values_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index to set the value at.
+ * @param value The values to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValues(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param value The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param values The values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllValues(java.lang.Iterable+ * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValues() {
+ values_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param value The bytes of the values to add.
+ * @return This builder for chaining.
+ */
+ public Builder addValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private boolean caseSensitive_;
+ /**
+ *
+ *
+ * + * If true, the string value is case sensitive. + *+ * + *
bool case_sensitive = 2;
+ *
+ * @return The caseSensitive.
+ */
+ @java.lang.Override
+ public boolean getCaseSensitive() {
+ return caseSensitive_;
+ }
+ /**
+ *
+ *
+ * + * If true, the string value is case sensitive. + *+ * + *
bool case_sensitive = 2;
+ *
+ * @param value The caseSensitive to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCaseSensitive(boolean value) {
+
+ caseSensitive_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If true, the string value is case sensitive. + *+ * + *
bool case_sensitive = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCaseSensitive() {
+
+ caseSensitive_ = false;
+ 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.InListFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.InListFilter)
+ private static final com.google.analytics.data.v1alpha.InListFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.InListFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.InListFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return A list containing the values.
+ */
+ java.util.List+ * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @return The count of values.
+ */
+ int getValuesCount();
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the element to return.
+ * @return The values at the given index.
+ */
+ java.lang.String getValues(int index);
+ /**
+ *
+ *
+ * + * The list of string values. + * Must be non-empty. + *+ * + *
repeated string values = 1;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the values at the given index.
+ */
+ com.google.protobuf.ByteString getValuesBytes(int index);
+
+ /**
+ *
+ *
+ * + * If true, the string value is case sensitive. + *+ * + *
bool case_sensitive = 2;
+ *
+ * @return The caseSensitive.
+ */
+ boolean getCaseSensitive();
+}
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
new file mode 100644
index 00000000..b2605e77
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java
@@ -0,0 +1,792 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * 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} + */ +public final class MetricHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.MetricHeader) + MetricHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricHeader.newBuilder() to construct. + private MetricHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetricHeader() { + name_ = ""; + type_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricHeader(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetricHeader( + 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; + } + case 16: + { + int rawValue = input.readEnum(); + + type_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricHeader.class, + com.google.analytics.data.v1alpha.MetricHeader.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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 TYPE_FIELD_NUMBER = 2;
+ private int type_;
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @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;
+ }
+
+ 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, type_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_);
+ }
+ 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.MetricHeader)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.MetricHeader other =
+ (com.google.analytics.data.v1alpha.MetricHeader) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (type_ != other.type_) 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 = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + type_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader 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.MetricHeader parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader 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.MetricHeader parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader 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.MetricHeader parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader 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.MetricHeader parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader 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.MetricHeader 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.MetricHeader 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.MetricHeader 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;
+ }
+ /**
+ *
+ *
+ * + * 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} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ }
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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;
+ }
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @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 int type_ = 0;
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ @java.lang.Override
+ public int getTypeValue() {
+ return type_;
+ }
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @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 metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @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 metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @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 metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = 0;
+ 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.MetricHeader)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricHeader)
+ private static final com.google.analytics.data.v1alpha.MetricHeader DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricHeader();
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricHeader getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * The metric's name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @return The enum numeric value on the wire for type.
+ */
+ int getTypeValue();
+ /**
+ *
+ *
+ * + * The metric's data type. + *+ * + *
.google.analytics.data.v1alpha.MetricType type = 2;
+ *
+ * @return The type.
+ */
+ com.google.analytics.data.v1alpha.MetricType getType();
+}
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
new file mode 100644
index 00000000..96026dd4
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java
@@ -0,0 +1,398 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * A metric's value type. + *+ * + * Protobuf enum {@code google.analytics.data.v1alpha.MetricType} + */ +public enum MetricType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified type. + *+ * + *
METRIC_TYPE_UNSPECIFIED = 0;
+ */
+ METRIC_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Integer type. + *+ * + *
TYPE_INTEGER = 1;
+ */
+ TYPE_INTEGER(1),
+ /**
+ *
+ *
+ * + * Floating point type. + *+ * + *
TYPE_FLOAT = 2;
+ */
+ TYPE_FLOAT(2),
+ /**
+ *
+ *
+ * + * A duration of seconds; a special floating point type. + *+ * + *
TYPE_SECONDS = 4;
+ */
+ TYPE_SECONDS(4),
+ /**
+ *
+ *
+ * + * A duration in milliseconds; a special floating point type. + *+ * + *
TYPE_MILLISECONDS = 5;
+ */
+ TYPE_MILLISECONDS(5),
+ /**
+ *
+ *
+ * + * A duration in minutes; a special floating point type. + *+ * + *
TYPE_MINUTES = 6;
+ */
+ TYPE_MINUTES(6),
+ /**
+ *
+ *
+ * + * A duration in hours; a special floating point type. + *+ * + *
TYPE_HOURS = 7;
+ */
+ TYPE_HOURS(7),
+ /**
+ *
+ *
+ * + * A custom metric of standard type; a special floating point type. + *+ * + *
TYPE_STANDARD = 8;
+ */
+ TYPE_STANDARD(8),
+ /**
+ *
+ *
+ * + * An amount of money; a special floating point type. + *+ * + *
TYPE_CURRENCY = 9;
+ */
+ TYPE_CURRENCY(9),
+ /**
+ *
+ *
+ * + * A length in feet; a special floating point type. + *+ * + *
TYPE_FEET = 10;
+ */
+ TYPE_FEET(10),
+ /**
+ *
+ *
+ * + * A length in miles; a special floating point type. + *+ * + *
TYPE_MILES = 11;
+ */
+ TYPE_MILES(11),
+ /**
+ *
+ *
+ * + * A length in meters; a special floating point type. + *+ * + *
TYPE_METERS = 12;
+ */
+ TYPE_METERS(12),
+ /**
+ *
+ *
+ * + * A length in kilometers; a special floating point type. + *+ * + *
TYPE_KILOMETERS = 13;
+ */
+ TYPE_KILOMETERS(13),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified type. + *+ * + *
METRIC_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int METRIC_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Integer type. + *+ * + *
TYPE_INTEGER = 1;
+ */
+ public static final int TYPE_INTEGER_VALUE = 1;
+ /**
+ *
+ *
+ * + * Floating point type. + *+ * + *
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;
+ /**
+ *
+ *
+ * + * A duration in milliseconds; a special floating point type. + *+ * + *
TYPE_MILLISECONDS = 5;
+ */
+ public static final int TYPE_MILLISECONDS_VALUE = 5;
+ /**
+ *
+ *
+ * + * A duration in minutes; a special floating point type. + *+ * + *
TYPE_MINUTES = 6;
+ */
+ public static final int TYPE_MINUTES_VALUE = 6;
+ /**
+ *
+ *
+ * + * A duration in hours; a special floating point type. + *+ * + *
TYPE_HOURS = 7;
+ */
+ public static final int TYPE_HOURS_VALUE = 7;
+ /**
+ *
+ *
+ * + * A custom metric of standard type; a special floating point type. + *+ * + *
TYPE_STANDARD = 8;
+ */
+ public static final int TYPE_STANDARD_VALUE = 8;
+ /**
+ *
+ *
+ * + * An amount of money; a special floating point type. + *+ * + *
TYPE_CURRENCY = 9;
+ */
+ public static final int TYPE_CURRENCY_VALUE = 9;
+ /**
+ *
+ *
+ * + * A length in feet; a special floating point type. + *+ * + *
TYPE_FEET = 10;
+ */
+ public static final int TYPE_FEET_VALUE = 10;
+ /**
+ *
+ *
+ * + * A length in miles; a special floating point type. + *+ * + *
TYPE_MILES = 11;
+ */
+ public static final int TYPE_MILES_VALUE = 11;
+ /**
+ *
+ *
+ * + * A length in meters; a special floating point type. + *+ * + *
TYPE_METERS = 12;
+ */
+ public static final int TYPE_METERS_VALUE = 12;
+ /**
+ *
+ *
+ * + * A length in kilometers; a special floating point type. + *+ * + *
TYPE_KILOMETERS = 13;
+ */
+ public static final int TYPE_KILOMETERS_VALUE = 13;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static MetricType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static MetricType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return METRIC_TYPE_UNSPECIFIED;
+ case 1:
+ return TYPE_INTEGER;
+ case 2:
+ return TYPE_FLOAT;
+ case 4:
+ return TYPE_SECONDS;
+ case 5:
+ return TYPE_MILLISECONDS;
+ case 6:
+ return TYPE_MINUTES;
+ case 7:
+ return TYPE_HOURS;
+ case 8:
+ return TYPE_STANDARD;
+ case 9:
+ return TYPE_CURRENCY;
+ case 10:
+ return TYPE_FEET;
+ case 11:
+ return TYPE_MILES;
+ case 12:
+ return TYPE_METERS;
+ case 13:
+ return TYPE_KILOMETERS;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The value of a metric. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricValue} + */ +public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.MetricValue) + MetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricValue.newBuilder() to construct. + private MetricValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private MetricValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MetricValue( + 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 34: + { + java.lang.String s = input.readStringRequireUtf8(); + oneValueCase_ = 4; + oneValue_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricValue.class, + com.google.analytics.data.v1alpha.MetricValue.Builder.class); + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + VALUE(4), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 4: + return VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int VALUE_FIELD_NUMBER = 4; + /** + * + * + *
+ * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return oneValueCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The value.
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 4) {
+ ref = oneValue_;
+ }
+ 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();
+ if (oneValueCase_ == 4) {
+ oneValue_ = s;
+ }
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The bytes for value.
+ */
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 4) {
+ ref = oneValue_;
+ }
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 4) {
+ oneValue_ = 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 (oneValueCase_ == 4) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oneValue_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (oneValueCase_ == 4) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oneValue_);
+ }
+ 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.MetricValue)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.MetricValue other =
+ (com.google.analytics.data.v1alpha.MetricValue) obj;
+
+ if (!getOneValueCase().equals(other.getOneValueCase())) return false;
+ switch (oneValueCase_) {
+ case 4:
+ if (!getValue().equals(other.getValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (oneValueCase_) {
+ case 4:
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue 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.MetricValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue 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.MetricValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue 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.MetricValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue 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.MetricValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue 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.MetricValue 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.MetricValue 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.MetricValue 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 value of a metric. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return oneValueCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public java.lang.String getValue() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 4) {
+ ref = oneValue_;
+ }
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ if (oneValueCase_ == 4) {
+ oneValue_ = s;
+ }
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The bytes for value.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueBytes() {
+ java.lang.Object ref = "";
+ if (oneValueCase_ == 4) {
+ ref = oneValue_;
+ }
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ if (oneValueCase_ == 4) {
+ oneValue_ = b;
+ }
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oneValueCase_ = 4;
+ oneValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+ if (oneValueCase_ == 4) {
+ oneValueCase_ = 0;
+ oneValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @param value The bytes for value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ oneValueCase_ = 4;
+ oneValue_ = 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.MetricValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricValue)
+ private static final com.google.analytics.data.v1alpha.MetricValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricValue();
+ }
+
+ public static com.google.analytics.data.v1alpha.MetricValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The value.
+ */
+ java.lang.String getValue();
+ /**
+ *
+ *
+ * + * Measurement value. See MetricHeader for type. + *+ * + *
string value = 4;
+ *
+ * @return The bytes for value.
+ */
+ com.google.protobuf.ByteString getValueBytes();
+
+ public com.google.analytics.data.v1alpha.MetricValue.OneValueCase getOneValueCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java
new file mode 100644
index 00000000..63121287
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java
@@ -0,0 +1,1117 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Filters for numeric or date values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericFilter} + */ +public final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.NumericFilter) + NumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericFilter.newBuilder() to construct. + private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private NumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NumericFilter( + 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 8: + { + int rawValue = input.readEnum(); + + operation_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericFilter.class, + com.google.analytics.data.v1alpha.NumericFilter.Builder.class); + } + + /** + * + * + *
+ * The operation applied to a numeric filter + *+ * + * Protobuf enum {@code google.analytics.data.v1alpha.NumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unspecified. + *+ * + *
OPERATION_UNSPECIFIED = 0;
+ */
+ OPERATION_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Equal + *+ * + *
EQUAL = 1;
+ */
+ EQUAL(1),
+ /**
+ *
+ *
+ * + * Less than + *+ * + *
LESS_THAN = 2;
+ */
+ LESS_THAN(2),
+ /**
+ *
+ *
+ * + * Less than or equal + *+ * + *
LESS_THAN_OR_EQUAL = 3;
+ */
+ LESS_THAN_OR_EQUAL(3),
+ /**
+ *
+ *
+ * + * Greater than + *+ * + *
GREATER_THAN = 4;
+ */
+ GREATER_THAN(4),
+ /**
+ *
+ *
+ * + * Greater than or equal + *+ * + *
GREATER_THAN_OR_EQUAL = 5;
+ */
+ GREATER_THAN_OR_EQUAL(5),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unspecified. + *+ * + *
OPERATION_UNSPECIFIED = 0;
+ */
+ public static final int OPERATION_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Equal + *+ * + *
EQUAL = 1;
+ */
+ public static final int EQUAL_VALUE = 1;
+ /**
+ *
+ *
+ * + * Less than + *+ * + *
LESS_THAN = 2;
+ */
+ public static final int LESS_THAN_VALUE = 2;
+ /**
+ *
+ *
+ * + * Less than or equal + *+ * + *
LESS_THAN_OR_EQUAL = 3;
+ */
+ public static final int LESS_THAN_OR_EQUAL_VALUE = 3;
+ /**
+ *
+ *
+ * + * Greater than + *+ * + *
GREATER_THAN = 4;
+ */
+ public static final int GREATER_THAN_VALUE = 4;
+ /**
+ *
+ *
+ * + * Greater than or equal + *+ * + *
GREATER_THAN_OR_EQUAL = 5;
+ */
+ public static final int GREATER_THAN_OR_EQUAL_VALUE = 5;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Operation valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static Operation forNumber(int value) {
+ switch (value) {
+ case 0:
+ return OPERATION_UNSPECIFIED;
+ case 1:
+ return EQUAL;
+ case 2:
+ return LESS_THAN;
+ case 3:
+ return LESS_THAN_OR_EQUAL;
+ case 4:
+ return GREATER_THAN;
+ case 5:
+ return GREATER_THAN_OR_EQUAL;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The enum numeric value on the wire for operation.
+ */
+ @java.lang.Override
+ public int getOperationValue() {
+ return operation_;
+ }
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The operation.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.NumericFilter.Operation result =
+ com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED
+ : result;
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.NumericValue value_;
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return Whether the value field is set.
+ */
+ @java.lang.Override
+ public boolean hasValue() {
+ return value_ != null;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return The value.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValue getValue() {
+ return value_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : value_;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder() {
+ return getValue();
+ }
+
+ 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 (operation_
+ != com.google.analytics.data.v1alpha.NumericFilter.Operation.OPERATION_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(1, operation_);
+ }
+ if (value_ != null) {
+ output.writeMessage(2, getValue());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (operation_
+ != com.google.analytics.data.v1alpha.NumericFilter.Operation.OPERATION_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_);
+ }
+ if (value_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue());
+ }
+ 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.NumericFilter)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.NumericFilter other =
+ (com.google.analytics.data.v1alpha.NumericFilter) obj;
+
+ if (operation_ != other.operation_) return false;
+ if (hasValue() != other.hasValue()) return false;
+ if (hasValue()) {
+ if (!getValue().equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER;
+ hash = (53 * hash) + operation_;
+ if (hasValue()) {
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter 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.NumericFilter parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter 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.NumericFilter parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter 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.NumericFilter parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter 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.NumericFilter parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter 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.NumericFilter 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.NumericFilter 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.NumericFilter 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;
+ }
+ /**
+ *
+ *
+ * + * Filters for numeric or date values. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The enum numeric value on the wire for operation.
+ */
+ @java.lang.Override
+ public int getOperationValue() {
+ return operation_;
+ }
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @param value The enum numeric value on the wire for operation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperationValue(int value) {
+
+ operation_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The operation.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.data.v1alpha.NumericFilter.Operation result =
+ com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_);
+ return result == null
+ ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @param value The operation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperation(com.google.analytics.data.v1alpha.NumericFilter.Operation value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ operation_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOperation() {
+
+ operation_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.analytics.data.v1alpha.NumericValue value_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>
+ valueBuilder_;
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return Whether the value field is set.
+ */
+ public boolean hasValue() {
+ return valueBuilder_ != null || value_ != null;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return The value.
+ */
+ public com.google.analytics.data.v1alpha.NumericValue getValue() {
+ if (valueBuilder_ == null) {
+ return value_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : value_;
+ } else {
+ return valueBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public Builder setValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (valueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public Builder setValue(
+ com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) {
+ if (valueBuilder_ == null) {
+ value_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public Builder mergeValue(com.google.analytics.data.v1alpha.NumericValue value) {
+ if (valueBuilder_ == null) {
+ if (value_ != null) {
+ value_ =
+ com.google.analytics.data.v1alpha.NumericValue.newBuilder(value_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ value_ = value;
+ }
+ onChanged();
+ } else {
+ valueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public Builder clearValue() {
+ if (valueBuilder_ == null) {
+ value_ = null;
+ onChanged();
+ } else {
+ value_ = null;
+ valueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public com.google.analytics.data.v1alpha.NumericValue.Builder getValueBuilder() {
+
+ onChanged();
+ return getValueFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ public com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder() {
+ if (valueBuilder_ != null) {
+ return valueBuilder_.getMessageOrBuilder();
+ } else {
+ return value_ == null
+ ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance()
+ : value_;
+ }
+ }
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>
+ getValueFieldBuilder() {
+ if (valueBuilder_ == null) {
+ valueBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.NumericValue,
+ com.google.analytics.data.v1alpha.NumericValue.Builder,
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder>(
+ getValue(), getParentForChildren(), isClean());
+ value_ = null;
+ }
+ return valueBuilder_;
+ }
+
+ @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.NumericFilter)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericFilter)
+ private static final com.google.analytics.data.v1alpha.NumericFilter DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericFilter();
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericFilter getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The enum numeric value on the wire for operation.
+ */
+ int getOperationValue();
+ /**
+ *
+ *
+ * + * The operation type for this filter. + *+ * + *
.google.analytics.data.v1alpha.NumericFilter.Operation operation = 1;
+ *
+ * @return The operation.
+ */
+ com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation();
+
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return Whether the value field is set.
+ */
+ boolean hasValue();
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ *
+ * @return The value.
+ */
+ com.google.analytics.data.v1alpha.NumericValue getValue();
+ /**
+ *
+ *
+ * + * A numeric value or a date value. + *+ * + *
.google.analytics.data.v1alpha.NumericValue value = 2;
+ */
+ com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java
new file mode 100644
index 00000000..6dc7d01d
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java
@@ -0,0 +1,805 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * To represent a number. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericValue} + */ +public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private NumericValue( + 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 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericValue.class, + com.google.analytics.data.v1alpha.NumericValue.Builder.class); + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+ * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return Whether the int64Value field is set.
+ */
+ @java.lang.Override
+ public boolean hasInt64Value() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return The int64Value.
+ */
+ @java.lang.Override
+ public long getInt64Value() {
+ if (oneValueCase_ == 1) {
+ return (java.lang.Long) oneValue_;
+ }
+ return 0L;
+ }
+
+ public static final int DOUBLE_VALUE_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return Whether the doubleValue field is set.
+ */
+ @java.lang.Override
+ public boolean hasDoubleValue() {
+ return oneValueCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return The doubleValue.
+ */
+ @java.lang.Override
+ public double getDoubleValue() {
+ if (oneValueCase_ == 2) {
+ return (java.lang.Double) oneValue_;
+ }
+ return 0D;
+ }
+
+ 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 (oneValueCase_ == 1) {
+ output.writeInt64(1, (long) ((java.lang.Long) oneValue_));
+ }
+ if (oneValueCase_ == 2) {
+ output.writeDouble(2, (double) ((java.lang.Double) oneValue_));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (oneValueCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 1, (long) ((java.lang.Long) oneValue_));
+ }
+ if (oneValueCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(
+ 2, (double) ((java.lang.Double) oneValue_));
+ }
+ 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.NumericValue)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.NumericValue other =
+ (com.google.analytics.data.v1alpha.NumericValue) obj;
+
+ if (!getOneValueCase().equals(other.getOneValueCase())) return false;
+ switch (oneValueCase_) {
+ case 1:
+ if (getInt64Value() != other.getInt64Value()) return false;
+ break;
+ case 2:
+ if (java.lang.Double.doubleToLongBits(getDoubleValue())
+ != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false;
+ break;
+ case 0:
+ default:
+ }
+ 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();
+ switch (oneValueCase_) {
+ case 1:
+ hash = (37 * hash) + INT64_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value());
+ break;
+ case 2:
+ hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getDoubleValue()));
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue 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.NumericValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue 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.NumericValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue 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.NumericValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue 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.NumericValue parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue 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.NumericValue 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.NumericValue 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.NumericValue 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;
+ }
+ /**
+ *
+ *
+ * + * To represent a number. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return Whether the int64Value field is set.
+ */
+ public boolean hasInt64Value() {
+ return oneValueCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return The int64Value.
+ */
+ public long getInt64Value() {
+ if (oneValueCase_ == 1) {
+ return (java.lang.Long) oneValue_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @param value The int64Value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInt64Value(long value) {
+ oneValueCase_ = 1;
+ oneValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInt64Value() {
+ if (oneValueCase_ == 1) {
+ oneValueCase_ = 0;
+ oneValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return Whether the doubleValue field is set.
+ */
+ public boolean hasDoubleValue() {
+ return oneValueCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return The doubleValue.
+ */
+ public double getDoubleValue() {
+ if (oneValueCase_ == 2) {
+ return (java.lang.Double) oneValue_;
+ }
+ return 0D;
+ }
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @param value The doubleValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDoubleValue(double value) {
+ oneValueCase_ = 2;
+ oneValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDoubleValue() {
+ if (oneValueCase_ == 2) {
+ oneValueCase_ = 0;
+ oneValue_ = null;
+ 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.NumericValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericValue)
+ private static final com.google.analytics.data.v1alpha.NumericValue DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericValue();
+ }
+
+ public static com.google.analytics.data.v1alpha.NumericValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return Whether the int64Value field is set.
+ */
+ boolean hasInt64Value();
+ /**
+ *
+ *
+ * + * Integer value + *+ * + *
int64 int64_value = 1;
+ *
+ * @return The int64Value.
+ */
+ long getInt64Value();
+
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return Whether the doubleValue field is set.
+ */
+ boolean hasDoubleValue();
+ /**
+ *
+ *
+ * + * Double value + *+ * + *
double double_value = 2;
+ *
+ * @return The doubleValue.
+ */
+ double getDoubleValue();
+
+ public com.google.analytics.data.v1alpha.NumericValue.OneValueCase getOneValueCase();
+}
diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java
new file mode 100644
index 00000000..975f743d
--- /dev/null
+++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java
@@ -0,0 +1,2038 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ * + * Current state of all quotas for this Analytics Property. If any quota for a + * property is exhausted, all requests to that property will return Resource + * Exhausted errors. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PropertyQuota} + */ +public final class PropertyQuota extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.PropertyQuota) + PropertyQuotaOrBuilder { + private static final long serialVersionUID = 0L; + // Use PropertyQuota.newBuilder() to construct. + private PropertyQuota(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private PropertyQuota() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertyQuota(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private PropertyQuota( + 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: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (tokensPerDay_ != null) { + subBuilder = tokensPerDay_.toBuilder(); + } + tokensPerDay_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerDay_); + tokensPerDay_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (tokensPerHour_ != null) { + subBuilder = tokensPerHour_.toBuilder(); + } + tokensPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerHour_); + tokensPerHour_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (concurrentRequests_ != null) { + subBuilder = concurrentRequests_.toBuilder(); + } + concurrentRequests_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(concurrentRequests_); + concurrentRequests_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (serverErrorsPerProjectPerHour_ != null) { + subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); + } + serverErrorsPerProjectPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); + serverErrorsPerProjectPerHour_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (potentiallyThresholdedRequestsPerHour_ != null) { + subBuilder = potentiallyThresholdedRequestsPerHour_.toBuilder(); + } + potentiallyThresholdedRequestsPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(potentiallyThresholdedRequestsPerHour_); + potentiallyThresholdedRequestsPerHour_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().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.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.PropertyQuota.class, + com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); + } + + public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.QuotaStatus tokensPerDay_; + /** + * + * + *
+ * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ *
+ * @return Whether the tokensPerDay field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokensPerDay() {
+ return tokensPerDay_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ *
+ * @return The tokensPerDay.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() {
+ return tokensPerDay_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerDay_;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() {
+ return getTokensPerDay();
+ }
+
+ public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2;
+ private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ *
+ * @return Whether the tokensPerHour field is set.
+ */
+ @java.lang.Override
+ public boolean hasTokensPerHour() {
+ return tokensPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ *
+ * @return The tokensPerHour.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() {
+ return tokensPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerHour_;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() {
+ return getTokensPerHour();
+ }
+
+ public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3;
+ private com.google.analytics.data.v1alpha.QuotaStatus concurrentRequests_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ *
+ * @return Whether the concurrentRequests field is set.
+ */
+ @java.lang.Override
+ public boolean hasConcurrentRequests() {
+ return concurrentRequests_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ *
+ * @return The concurrentRequests.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() {
+ return concurrentRequests_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : concurrentRequests_;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() {
+ return getConcurrentRequests();
+ }
+
+ public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4;
+ private com.google.analytics.data.v1alpha.QuotaStatus serverErrorsPerProjectPerHour_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ * @return Whether the serverErrorsPerProjectPerHour field is set.
+ */
+ @java.lang.Override
+ public boolean hasServerErrorsPerProjectPerHour() {
+ return serverErrorsPerProjectPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ * @return The serverErrorsPerProjectPerHour.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() {
+ return serverErrorsPerProjectPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : serverErrorsPerProjectPerHour_;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder
+ getServerErrorsPerProjectPerHourOrBuilder() {
+ return getServerErrorsPerProjectPerHour();
+ }
+
+ public static final int POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER = 5;
+ private com.google.analytics.data.v1alpha.QuotaStatus potentiallyThresholdedRequestsPerHour_;
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ *
+ * @return Whether the potentiallyThresholdedRequestsPerHour field is set.
+ */
+ @java.lang.Override
+ public boolean hasPotentiallyThresholdedRequestsPerHour() {
+ return potentiallyThresholdedRequestsPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ *
+ * @return The potentiallyThresholdedRequestsPerHour.
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatus getPotentiallyThresholdedRequestsPerHour() {
+ return potentiallyThresholdedRequestsPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : potentiallyThresholdedRequestsPerHour_;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder
+ getPotentiallyThresholdedRequestsPerHourOrBuilder() {
+ return getPotentiallyThresholdedRequestsPerHour();
+ }
+
+ 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 (tokensPerDay_ != null) {
+ output.writeMessage(1, getTokensPerDay());
+ }
+ if (tokensPerHour_ != null) {
+ output.writeMessage(2, getTokensPerHour());
+ }
+ if (concurrentRequests_ != null) {
+ output.writeMessage(3, getConcurrentRequests());
+ }
+ if (serverErrorsPerProjectPerHour_ != null) {
+ output.writeMessage(4, getServerErrorsPerProjectPerHour());
+ }
+ if (potentiallyThresholdedRequestsPerHour_ != null) {
+ output.writeMessage(5, getPotentiallyThresholdedRequestsPerHour());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (tokensPerDay_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTokensPerDay());
+ }
+ if (tokensPerHour_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTokensPerHour());
+ }
+ if (concurrentRequests_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConcurrentRequests());
+ }
+ if (serverErrorsPerProjectPerHour_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, getServerErrorsPerProjectPerHour());
+ }
+ if (potentiallyThresholdedRequestsPerHour_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, getPotentiallyThresholdedRequestsPerHour());
+ }
+ 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.PropertyQuota)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.data.v1alpha.PropertyQuota other =
+ (com.google.analytics.data.v1alpha.PropertyQuota) obj;
+
+ if (hasTokensPerDay() != other.hasTokensPerDay()) return false;
+ if (hasTokensPerDay()) {
+ if (!getTokensPerDay().equals(other.getTokensPerDay())) return false;
+ }
+ if (hasTokensPerHour() != other.hasTokensPerHour()) return false;
+ if (hasTokensPerHour()) {
+ if (!getTokensPerHour().equals(other.getTokensPerHour())) return false;
+ }
+ if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false;
+ if (hasConcurrentRequests()) {
+ if (!getConcurrentRequests().equals(other.getConcurrentRequests())) return false;
+ }
+ if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour())
+ return false;
+ if (hasServerErrorsPerProjectPerHour()) {
+ if (!getServerErrorsPerProjectPerHour().equals(other.getServerErrorsPerProjectPerHour()))
+ return false;
+ }
+ if (hasPotentiallyThresholdedRequestsPerHour()
+ != other.hasPotentiallyThresholdedRequestsPerHour()) return false;
+ if (hasPotentiallyThresholdedRequestsPerHour()) {
+ if (!getPotentiallyThresholdedRequestsPerHour()
+ .equals(other.getPotentiallyThresholdedRequestsPerHour())) 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 (hasTokensPerDay()) {
+ hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER;
+ hash = (53 * hash) + getTokensPerDay().hashCode();
+ }
+ if (hasTokensPerHour()) {
+ hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER;
+ hash = (53 * hash) + getTokensPerHour().hashCode();
+ }
+ if (hasConcurrentRequests()) {
+ hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER;
+ hash = (53 * hash) + getConcurrentRequests().hashCode();
+ }
+ if (hasServerErrorsPerProjectPerHour()) {
+ hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER;
+ hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode();
+ }
+ if (hasPotentiallyThresholdedRequestsPerHour()) {
+ hash = (37 * hash) + POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER;
+ hash = (53 * hash) + getPotentiallyThresholdedRequestsPerHour().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota 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.PropertyQuota parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota 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.PropertyQuota parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota 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.PropertyQuota parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota 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.PropertyQuota parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota 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.PropertyQuota 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.PropertyQuota 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.PropertyQuota 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;
+ }
+ /**
+ *
+ *
+ * + * Current state of all quotas for this Analytics Property. If any quota for a + * property is exhausted, all requests to that property will return Resource + * Exhausted errors. + *+ * + * Protobuf type {@code google.analytics.data.v1alpha.PropertyQuota} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ *
+ * @return Whether the tokensPerDay field is set.
+ */
+ public boolean hasTokensPerDay() {
+ return tokensPerDayBuilder_ != null || tokensPerDay_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ *
+ * @return The tokensPerDay.
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() {
+ if (tokensPerDayBuilder_ == null) {
+ return tokensPerDay_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerDay_;
+ } else {
+ return tokensPerDayBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public Builder setTokensPerDay(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (tokensPerDayBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tokensPerDay_ = value;
+ onChanged();
+ } else {
+ tokensPerDayBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public Builder setTokensPerDay(
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder builderForValue) {
+ if (tokensPerDayBuilder_ == null) {
+ tokensPerDay_ = builderForValue.build();
+ onChanged();
+ } else {
+ tokensPerDayBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public Builder mergeTokensPerDay(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (tokensPerDayBuilder_ == null) {
+ if (tokensPerDay_ != null) {
+ tokensPerDay_ =
+ com.google.analytics.data.v1alpha.QuotaStatus.newBuilder(tokensPerDay_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ tokensPerDay_ = value;
+ }
+ onChanged();
+ } else {
+ tokensPerDayBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public Builder clearTokensPerDay() {
+ if (tokensPerDayBuilder_ == null) {
+ tokensPerDay_ = null;
+ onChanged();
+ } else {
+ tokensPerDay_ = null;
+ tokensPerDayBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus.Builder getTokensPerDayBuilder() {
+
+ onChanged();
+ return getTokensPerDayFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() {
+ if (tokensPerDayBuilder_ != null) {
+ return tokensPerDayBuilder_.getMessageOrBuilder();
+ } else {
+ return tokensPerDay_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerDay_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 25,000 tokens per day; + * Analytics 360 Properties can use 250,000 tokens per day. Most requests + * consume fewer than 10 tokens. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_day = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ getTokensPerDayFieldBuilder() {
+ if (tokensPerDayBuilder_ == null) {
+ tokensPerDayBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>(
+ getTokensPerDay(), getParentForChildren(), isClean());
+ tokensPerDay_ = null;
+ }
+ return tokensPerDayBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ tokensPerHourBuilder_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ *
+ * @return Whether the tokensPerHour field is set.
+ */
+ public boolean hasTokensPerHour() {
+ return tokensPerHourBuilder_ != null || tokensPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ *
+ * @return The tokensPerHour.
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() {
+ if (tokensPerHourBuilder_ == null) {
+ return tokensPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerHour_;
+ } else {
+ return tokensPerHourBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public Builder setTokensPerHour(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (tokensPerHourBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ tokensPerHour_ = value;
+ onChanged();
+ } else {
+ tokensPerHourBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public Builder setTokensPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder builderForValue) {
+ if (tokensPerHourBuilder_ == null) {
+ tokensPerHour_ = builderForValue.build();
+ onChanged();
+ } else {
+ tokensPerHourBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public Builder mergeTokensPerHour(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (tokensPerHourBuilder_ == null) {
+ if (tokensPerHour_ != null) {
+ tokensPerHour_ =
+ com.google.analytics.data.v1alpha.QuotaStatus.newBuilder(tokensPerHour_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ tokensPerHour_ = value;
+ }
+ onChanged();
+ } else {
+ tokensPerHourBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public Builder clearTokensPerHour() {
+ if (tokensPerHourBuilder_ == null) {
+ tokensPerHour_ = null;
+ onChanged();
+ } else {
+ tokensPerHour_ = null;
+ tokensPerHourBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus.Builder getTokensPerHourBuilder() {
+
+ onChanged();
+ return getTokensPerHourFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() {
+ if (tokensPerHourBuilder_ != null) {
+ return tokensPerHourBuilder_.getMessageOrBuilder();
+ } else {
+ return tokensPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : tokensPerHour_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can use up to 5,000 tokens per hour; + * Analytics 360 Properties can use 50,000 tokens per hour. An API request + * consumes a single number of tokens, and that number is deducted from both + * the hourly and daily quotas. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ getTokensPerHourFieldBuilder() {
+ if (tokensPerHourBuilder_ == null) {
+ tokensPerHourBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>(
+ getTokensPerHour(), getParentForChildren(), isClean());
+ tokensPerHour_ = null;
+ }
+ return tokensPerHourBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.QuotaStatus concurrentRequests_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ concurrentRequestsBuilder_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ *
+ * @return Whether the concurrentRequests field is set.
+ */
+ public boolean hasConcurrentRequests() {
+ return concurrentRequestsBuilder_ != null || concurrentRequests_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ *
+ * @return The concurrentRequests.
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() {
+ if (concurrentRequestsBuilder_ == null) {
+ return concurrentRequests_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : concurrentRequests_;
+ } else {
+ return concurrentRequestsBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public Builder setConcurrentRequests(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (concurrentRequestsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ concurrentRequests_ = value;
+ onChanged();
+ } else {
+ concurrentRequestsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public Builder setConcurrentRequests(
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder builderForValue) {
+ if (concurrentRequestsBuilder_ == null) {
+ concurrentRequests_ = builderForValue.build();
+ onChanged();
+ } else {
+ concurrentRequestsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public Builder mergeConcurrentRequests(com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (concurrentRequestsBuilder_ == null) {
+ if (concurrentRequests_ != null) {
+ concurrentRequests_ =
+ com.google.analytics.data.v1alpha.QuotaStatus.newBuilder(concurrentRequests_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ concurrentRequests_ = value;
+ }
+ onChanged();
+ } else {
+ concurrentRequestsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public Builder clearConcurrentRequests() {
+ if (concurrentRequestsBuilder_ == null) {
+ concurrentRequests_ = null;
+ onChanged();
+ } else {
+ concurrentRequests_ = null;
+ concurrentRequestsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus.Builder getConcurrentRequestsBuilder() {
+
+ onChanged();
+ return getConcurrentRequestsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() {
+ if (concurrentRequestsBuilder_ != null) {
+ return concurrentRequestsBuilder_.getMessageOrBuilder();
+ } else {
+ return concurrentRequests_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : concurrentRequests_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties can send up to 10 concurrent requests; + * Analytics 360 Properties can use up to 50 concurrent requests. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus concurrent_requests = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ getConcurrentRequestsFieldBuilder() {
+ if (concurrentRequestsBuilder_ == null) {
+ concurrentRequestsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>(
+ getConcurrentRequests(), getParentForChildren(), isClean());
+ concurrentRequests_ = null;
+ }
+ return concurrentRequestsBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.QuotaStatus serverErrorsPerProjectPerHour_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ serverErrorsPerProjectPerHourBuilder_;
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ *
+ * @return Whether the serverErrorsPerProjectPerHour field is set.
+ */
+ public boolean hasServerErrorsPerProjectPerHour() {
+ return serverErrorsPerProjectPerHourBuilder_ != null
+ || serverErrorsPerProjectPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ *
+ * @return The serverErrorsPerProjectPerHour.
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ return serverErrorsPerProjectPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : serverErrorsPerProjectPerHour_;
+ } else {
+ return serverErrorsPerProjectPerHourBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public Builder setServerErrorsPerProjectPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ serverErrorsPerProjectPerHour_ = value;
+ onChanged();
+ } else {
+ serverErrorsPerProjectPerHourBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public Builder setServerErrorsPerProjectPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder builderForValue) {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ serverErrorsPerProjectPerHour_ = builderForValue.build();
+ onChanged();
+ } else {
+ serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public Builder mergeServerErrorsPerProjectPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ if (serverErrorsPerProjectPerHour_ != null) {
+ serverErrorsPerProjectPerHour_ =
+ com.google.analytics.data.v1alpha.QuotaStatus.newBuilder(
+ serverErrorsPerProjectPerHour_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ serverErrorsPerProjectPerHour_ = value;
+ }
+ onChanged();
+ } else {
+ serverErrorsPerProjectPerHourBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public Builder clearServerErrorsPerProjectPerHour() {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ serverErrorsPerProjectPerHour_ = null;
+ onChanged();
+ } else {
+ serverErrorsPerProjectPerHour_ = null;
+ serverErrorsPerProjectPerHourBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus.Builder
+ getServerErrorsPerProjectPerHourBuilder() {
+
+ onChanged();
+ return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder
+ getServerErrorsPerProjectPerHourOrBuilder() {
+ if (serverErrorsPerProjectPerHourBuilder_ != null) {
+ return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder();
+ } else {
+ return serverErrorsPerProjectPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : serverErrorsPerProjectPerHour_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Standard Analytics Properties and cloud project pairs can have up to 10 + * server errors per hour; Analytics 360 Properties and cloud project pairs + * can have up to 50 server errors per hour. + *+ * + *
.google.analytics.data.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ getServerErrorsPerProjectPerHourFieldBuilder() {
+ if (serverErrorsPerProjectPerHourBuilder_ == null) {
+ serverErrorsPerProjectPerHourBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>(
+ getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean());
+ serverErrorsPerProjectPerHour_ = null;
+ }
+ return serverErrorsPerProjectPerHourBuilder_;
+ }
+
+ private com.google.analytics.data.v1alpha.QuotaStatus potentiallyThresholdedRequestsPerHour_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ potentiallyThresholdedRequestsPerHourBuilder_;
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ *
+ * @return Whether the potentiallyThresholdedRequestsPerHour field is set.
+ */
+ public boolean hasPotentiallyThresholdedRequestsPerHour() {
+ return potentiallyThresholdedRequestsPerHourBuilder_ != null
+ || potentiallyThresholdedRequestsPerHour_ != null;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ *
+ * @return The potentiallyThresholdedRequestsPerHour.
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus
+ getPotentiallyThresholdedRequestsPerHour() {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ return potentiallyThresholdedRequestsPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : potentiallyThresholdedRequestsPerHour_;
+ } else {
+ return potentiallyThresholdedRequestsPerHourBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public Builder setPotentiallyThresholdedRequestsPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ potentiallyThresholdedRequestsPerHour_ = value;
+ onChanged();
+ } else {
+ potentiallyThresholdedRequestsPerHourBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public Builder setPotentiallyThresholdedRequestsPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder builderForValue) {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ potentiallyThresholdedRequestsPerHour_ = builderForValue.build();
+ onChanged();
+ } else {
+ potentiallyThresholdedRequestsPerHourBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public Builder mergePotentiallyThresholdedRequestsPerHour(
+ com.google.analytics.data.v1alpha.QuotaStatus value) {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ if (potentiallyThresholdedRequestsPerHour_ != null) {
+ potentiallyThresholdedRequestsPerHour_ =
+ com.google.analytics.data.v1alpha.QuotaStatus.newBuilder(
+ potentiallyThresholdedRequestsPerHour_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ potentiallyThresholdedRequestsPerHour_ = value;
+ }
+ onChanged();
+ } else {
+ potentiallyThresholdedRequestsPerHourBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public Builder clearPotentiallyThresholdedRequestsPerHour() {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ potentiallyThresholdedRequestsPerHour_ = null;
+ onChanged();
+ } else {
+ potentiallyThresholdedRequestsPerHour_ = null;
+ potentiallyThresholdedRequestsPerHourBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatus.Builder
+ getPotentiallyThresholdedRequestsPerHourBuilder() {
+
+ onChanged();
+ return getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder
+ getPotentiallyThresholdedRequestsPerHourOrBuilder() {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ != null) {
+ return potentiallyThresholdedRequestsPerHourBuilder_.getMessageOrBuilder();
+ } else {
+ return potentiallyThresholdedRequestsPerHour_ == null
+ ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()
+ : potentiallyThresholdedRequestsPerHour_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Analytics Properties can send up to 120 requests with potentially + * thresholded dimensions per hour. In a batch request, each report request + * is individually counted for this quota if the request contains potentially + * thresholded dimensions. + *+ * + *
+ * .google.analytics.data.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>
+ getPotentiallyThresholdedRequestsPerHourFieldBuilder() {
+ if (potentiallyThresholdedRequestsPerHourBuilder_ == null) {
+ potentiallyThresholdedRequestsPerHourBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.data.v1alpha.QuotaStatus,
+ com.google.analytics.data.v1alpha.QuotaStatus.Builder,
+ com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>(
+ getPotentiallyThresholdedRequestsPerHour(), getParentForChildren(), isClean());
+ potentiallyThresholdedRequestsPerHour_ = null;
+ }
+ return potentiallyThresholdedRequestsPerHourBuilder_;
+ }
+
+ @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.PropertyQuota)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PropertyQuota)
+ private static final com.google.analytics.data.v1alpha.PropertyQuota DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PropertyQuota();
+ }
+
+ public static com.google.analytics.data.v1alpha.PropertyQuota getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser