Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - * IosAppDataStream response = - * analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream); - * } - * }- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - PropertyName parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *
Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * String parent = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString(); - * IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - * IosAppDataStream response = - * analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream); - * } - * }- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - String parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *
Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * CreateIosAppDataStreamRequest request = - * CreateIosAppDataStreamRequest.newBuilder() - * .setIosAppDataStream(IosAppDataStream.newBuilder().build()) - * .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - * .build(); - * IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(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 IosAppDataStream createIosAppDataStream(CreateIosAppDataStreamRequest request) { - return createIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *
Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * CreateIosAppDataStreamRequest request = - * CreateIosAppDataStreamRequest.newBuilder() - * .setIosAppDataStream(IosAppDataStream.newBuilder().build()) - * .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * analyticsAdminServiceClient.createIosAppDataStreamCallable().futureCall(request); - * // Do something. - * IosAppDataStream response = future.get(); - * } - * }
Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * PropertyName parent = PropertyName.of("[PROPERTY]"); - * AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - * AndroidAppDataStream response = - * analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream); - * } - * }- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - PropertyName parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *
Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * String parent = - * AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString(); - * AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - * AndroidAppDataStream response = - * analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream); - * } - * }- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - String parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *
Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * CreateAndroidAppDataStreamRequest request = - * CreateAndroidAppDataStreamRequest.newBuilder() - * .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build()) - * .setParent( - * AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - * .build(); - * AndroidAppDataStream response = - * analyticsAdminServiceClient.createAndroidAppDataStream(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 AndroidAppDataStream createAndroidAppDataStream( - CreateAndroidAppDataStreamRequest request) { - return createAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *
Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *
To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *
Sample code: - * - *
{@code - * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = - * AnalyticsAdminServiceClient.create()) { - * CreateAndroidAppDataStreamRequest request = - * CreateAndroidAppDataStreamRequest.newBuilder() - * .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build()) - * .setParent( - * AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - * .build(); - * ApiFuture- */ - public final UnaryCallablefuture = - * analyticsAdminServiceClient.createAndroidAppDataStreamCallable().futureCall(request); - * // Do something. - * AndroidAppDataStream response = future.get(); - * } - * }
Sample code: + * + *
{@code + * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + * AnalyticsAdminServiceClient.create()) { + * SearchChangeHistoryEventsRequest request = + * SearchChangeHistoryEventsRequest.newBuilder() + * .setAccount(AccountName.of("[ACCOUNT]").toString()) + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .addAllResourceType(new ArrayList+ * + * @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 SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request) { + return searchChangeHistoryEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *()) + * .addAllAction(new ArrayList ()) + * .addAllActorEmail(new ArrayList ()) + * .setEarliestChangeTime(Timestamp.newBuilder().build()) + * .setLatestChangeTime(Timestamp.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * for (ChangeHistoryEvent element : + * analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + * AnalyticsAdminServiceClient.create()) { + * SearchChangeHistoryEventsRequest request = + * SearchChangeHistoryEventsRequest.newBuilder() + * .setAccount(AccountName.of("[ACCOUNT]").toString()) + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .addAllResourceType(new ArrayList+ */ + public final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable() { + return stub.searchChangeHistoryEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *()) + * .addAllAction(new ArrayList ()) + * .addAllActorEmail(new ArrayList ()) + * .setEarliestChangeTime(Timestamp.newBuilder().build()) + * .setLatestChangeTime(Timestamp.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * ApiFuture future = + * analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request); + * // Do something. + * for (ChangeHistoryEvent element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * }
Sample code: + * + *
{@code + * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = + * AnalyticsAdminServiceClient.create()) { + * SearchChangeHistoryEventsRequest request = + * SearchChangeHistoryEventsRequest.newBuilder() + * .setAccount(AccountName.of("[ACCOUNT]").toString()) + * .setProperty(PropertyName.of("[PROPERTY]").toString()) + * .addAllResourceType(new ArrayList+ */ + public final UnaryCallable()) + * .addAllAction(new ArrayList ()) + * .addAllActorEmail(new ArrayList ()) + * .setEarliestChangeTime(Timestamp.newBuilder().build()) + * .setLatestChangeTime(Timestamp.newBuilder().build()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .build(); + * while (true) { + * SearchChangeHistoryEventsResponse response = + * analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request); + * for (ChangeHistoryEvent element : response.getResponsesList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } + * } + * }
- * Creates an iOS app stream with the specified location and attributes. - * Note that an iOS app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver
- * Creates an Android app stream with the specified location and attributes. - * Note that an Android app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver
+ * Searches through all changes to an account or its children given the + * specified set of filters. + *+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -3264,7 +3189,7 @@ public final io.grpc.ServerServiceDefinition bindService() { io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PROPERTY))) + com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) .addMethod( getUpdatePropertyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3392,13 +3317,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getCreateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_CREATE_IOS_APP_DATA_STREAM))) .addMethod( getListIosAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3426,13 +3344,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) - .addMethod( - getCreateAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream>( - this, METHODID_CREATE_ANDROID_APP_DATA_STREAM))) .addMethod( getListAndroidAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3522,6 +3433,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( this, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getSearchChangeHistoryEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( + this, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) .build(); } } @@ -3722,7 +3640,7 @@ public void createProperty( */ public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver
- * Creates an iOS app stream with the specified location and attributes. - * Note that an iOS app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver
- * Creates an Android app stream with the specified location and attributes. - * Note that an Android app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver
+ * Searches through all changes to an account or its children given the + * specified set of filters. + *+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -4570,7 +4461,7 @@ public com.google.analytics.admin.v1alpha.Property createProperty( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public com.google.protobuf.Empty deleteProperty( + public com.google.analytics.admin.v1alpha.Property deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePropertyMethod(), getCallOptions(), request); @@ -4837,25 +4728,6 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStrea getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
- * Creates an iOS app stream with the specified location and attributes. - * Note that an iOS app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateIosAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -4910,25 +4782,6 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
- * Creates an Android app stream with the specified location and attributes. - * Note that an Android app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAndroidAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -5110,6 +4963,21 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Searches through all changes to an account or its children given the + * specified set of filters. + *+ */ + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + } } /** @@ -5287,7 +5155,8 @@ protected AnalyticsAdminServiceFutureStub build( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public com.google.common.util.concurrent.ListenableFuture
- * Creates an iOS app stream with the specified location and attributes. - * Note that an iOS app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5656,27 +5504,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } - /** - * - * - *
- * Creates an Android app stream with the specified location and attributes. - * Note that an Android app stream must be linked to a Firebase app to receive - * traffic. - * To create a working app stream, make sure your property is linked to a - * Firebase project. Then, use the Firebase API to create a Firebase app, - * which will also create an appropriate data stream in Analytics (may take up - * to 24 hours). - *- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5872,6 +5699,22 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Searches through all changes to an account or its children given the + * specified set of filters. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -5903,25 +5746,24 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_IOS_APP_DATA_STREAM = 26; private static final int METHODID_DELETE_IOS_APP_DATA_STREAM = 27; private static final int METHODID_UPDATE_IOS_APP_DATA_STREAM = 28; - private static final int METHODID_CREATE_IOS_APP_DATA_STREAM = 29; - private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 30; - private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 31; - private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 32; - private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 33; - private static final int METHODID_CREATE_ANDROID_APP_DATA_STREAM = 34; - private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 35; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 36; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 37; - private static final int METHODID_CREATE_FIREBASE_LINK = 38; - private static final int METHODID_UPDATE_FIREBASE_LINK = 39; - private static final int METHODID_DELETE_FIREBASE_LINK = 40; - private static final int METHODID_LIST_FIREBASE_LINKS = 41; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 42; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 43; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 44; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 45; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 46; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 47; + private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 29; + private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 30; + private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; + private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; + private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 33; + private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 34; + private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 35; + private static final int METHODID_CREATE_FIREBASE_LINK = 36; + private static final int METHODID_UPDATE_FIREBASE_LINK = 37; + private static final int METHODID_DELETE_FIREBASE_LINK = 38; + private static final int METHODID_LIST_FIREBASE_LINKS = 39; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 40; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 41; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 42; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 43; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 44; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 45; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 46; private static final class MethodHandlers
+ * Types of actions that may change a resource. + *+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActionType} + */ +public enum ActionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Action type unknown or not specified. + *+ * + *
ACTION_TYPE_UNSPECIFIED = 0;
+ */
+ ACTION_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Resource was created in this change. + *+ * + *
CREATED = 1;
+ */
+ CREATED(1),
+ /**
+ *
+ *
+ * + * Resource was updated in this change. + *+ * + *
UPDATED = 2;
+ */
+ UPDATED(2),
+ /**
+ *
+ *
+ * + * Resource was deleted in this change. + *+ * + *
DELETED = 3;
+ */
+ DELETED(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Action type unknown or not specified. + *+ * + *
ACTION_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Resource was created in this change. + *+ * + *
CREATED = 1;
+ */
+ public static final int CREATED_VALUE = 1;
+ /**
+ *
+ *
+ * + * Resource was updated in this change. + *+ * + *
UPDATED = 2;
+ */
+ public static final int UPDATED_VALUE = 2;
+ /**
+ *
+ *
+ * + * Resource was deleted in this change. + *+ * + *
DELETED = 3;
+ */
+ public static final int DELETED_VALUE = 3;
+
+ 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 ActionType 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 ActionType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ACTION_TYPE_UNSPECIFIED;
+ case 1:
+ return CREATED;
+ case 2:
+ return UPDATED;
+ case 3:
+ return DELETED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Different kinds of actors that can make changes to Google Analytics + * resources. + *+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActorType} + */ +public enum ActorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Unknown or unspecified actor type. + *+ * + *
ACTOR_TYPE_UNSPECIFIED = 0;
+ */
+ ACTOR_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Changes made by the user specified in actor_email. + *+ * + *
USER = 1;
+ */
+ USER(1),
+ /**
+ *
+ *
+ * + * Changes made by the Google Analytics system. + *+ * + *
SYSTEM = 2;
+ */
+ SYSTEM(2),
+ /**
+ *
+ *
+ * + * Changes made by Google Analytics support team staff. + *+ * + *
SUPPORT = 3;
+ */
+ SUPPORT(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Unknown or unspecified actor type. + *+ * + *
ACTOR_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Changes made by the user specified in actor_email. + *+ * + *
USER = 1;
+ */
+ public static final int USER_VALUE = 1;
+ /**
+ *
+ *
+ * + * Changes made by the Google Analytics system. + *+ * + *
SYSTEM = 2;
+ */
+ public static final int SYSTEM_VALUE = 2;
+ /**
+ *
+ *
+ * + * Changes made by Google Analytics support team staff. + *+ * + *
SUPPORT = 3;
+ */
+ public static final int SUPPORT_VALUE = 3;
+
+ 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 ActorType 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 ActorType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return ACTOR_TYPE_UNSPECIFIED;
+ case 1:
+ return USER;
+ case 2:
+ return SYSTEM;
+ case 3:
+ return SUPPORT;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * A description of a change to a single Google Analytics resource. + *+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ +public final class ChangeHistoryChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + ChangeHistoryChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryChange.newBuilder() to construct. + private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChangeHistoryChange() { + resource_ = ""; + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryChange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryChange( + 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(); + + resource_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceBeforeChange_ != null) { + subBuilder = resourceBeforeChange_.toBuilder(); + } + resourceBeforeChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceBeforeChange_); + resourceBeforeChange_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceAfterChange_ != null) { + subBuilder = resourceAfterChange_.toBuilder(); + } + resourceAfterChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceAfterChange_); + resourceAfterChange_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + public interface ChangeHistoryResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return Whether the account field is set.
+ */
+ boolean hasAccount();
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return The account.
+ */
+ com.google.analytics.admin.v1alpha.Account getAccount();
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return Whether the property field is set.
+ */
+ boolean hasProperty();
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return The property.
+ */
+ com.google.analytics.admin.v1alpha.Property getProperty();
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return Whether the webDataStream field is set.
+ */
+ boolean hasWebDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return The webDataStream.
+ */
+ com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return Whether the androidAppDataStream field is set.
+ */
+ boolean hasAndroidAppDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return The androidAppDataStream.
+ */
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
+ getAndroidAppDataStreamOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return Whether the iosAppDataStream field is set.
+ */
+ boolean hasIosAppDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return The iosAppDataStream.
+ */
+ com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream();
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return Whether the firebaseLink field is set.
+ */
+ boolean hasFirebaseLink();
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return The firebaseLink.
+ */
+ com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink();
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder();
+
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return Whether the googleAdsLink field is set.
+ */
+ boolean hasGoogleAdsLink();
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return The googleAdsLink.
+ */
+ com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink();
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder();
+
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase
+ getResourceCase();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a resource as before or after the result of a change in + * change history. + *+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class ChangeHistoryResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + ChangeHistoryResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryResource.newBuilder() to construct. + private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChangeHistoryResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryResource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryResource( + 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.admin.v1alpha.Account.Builder subBuilder = null; + if (resourceCase_ == 1) { + subBuilder = ((com.google.analytics.admin.v1alpha.Account) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Account) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.Property.Builder subBuilder = null; + if (resourceCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.Property) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Property) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; + if (resourceCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.WebDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.IosAppDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 5; + break; + } + case 50: + { + com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; + if (resourceCase_ == 6) { + subBuilder = + ((com.google.analytics.admin.v1alpha.FirebaseLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 6; + break; + } + case 58: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder subBuilder = null; + if (resourceCase_ == 7) { + subBuilder = + ((com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCOUNT(1), + PROPERTY(2), + WEB_DATA_STREAM(3), + ANDROID_APP_DATA_STREAM(4), + IOS_APP_DATA_STREAM(5), + FIREBASE_LINK(6), + GOOGLE_ADS_LINK(7), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(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 ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 3: + return WEB_DATA_STREAM; + case 4: + return ANDROID_APP_DATA_STREAM; + case 5: + return IOS_APP_DATA_STREAM; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + /** + * + * + *
+ * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return Whether the account field is set.
+ */
+ @java.lang.Override
+ public boolean hasAccount() {
+ return resourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return The account.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.Account getAccount() {
+ if (resourceCase_ == 1) {
+ return (com.google.analytics.admin.v1alpha.Account) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() {
+ if (resourceCase_ == 1) {
+ return (com.google.analytics.admin.v1alpha.Account) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ }
+
+ public static final int PROPERTY_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return Whether the property field is set.
+ */
+ @java.lang.Override
+ public boolean hasProperty() {
+ return resourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return The property.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.Property getProperty() {
+ if (resourceCase_ == 2) {
+ return (com.google.analytics.admin.v1alpha.Property) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() {
+ if (resourceCase_ == 2) {
+ return (com.google.analytics.admin.v1alpha.Property) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ }
+
+ public static final int WEB_DATA_STREAM_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return Whether the webDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasWebDataStream() {
+ return resourceCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return The webDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() {
+ if (resourceCase_ == 3) {
+ return (com.google.analytics.admin.v1alpha.WebDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() {
+ if (resourceCase_ == 3) {
+ return (com.google.analytics.admin.v1alpha.WebDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ }
+
+ public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return Whether the androidAppDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndroidAppDataStream() {
+ return resourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return The androidAppDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() {
+ if (resourceCase_ == 4) {
+ return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
+ getAndroidAppDataStreamOrBuilder() {
+ if (resourceCase_ == 4) {
+ return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ }
+
+ public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return Whether the iosAppDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasIosAppDataStream() {
+ return resourceCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return The iosAppDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() {
+ if (resourceCase_ == 5) {
+ return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder
+ getIosAppDataStreamOrBuilder() {
+ if (resourceCase_ == 5) {
+ return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ }
+
+ public static final int FIREBASE_LINK_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return Whether the firebaseLink field is set.
+ */
+ @java.lang.Override
+ public boolean hasFirebaseLink() {
+ return resourceCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return The firebaseLink.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() {
+ if (resourceCase_ == 6) {
+ return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() {
+ if (resourceCase_ == 6) {
+ return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ }
+
+ public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return Whether the googleAdsLink field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleAdsLink() {
+ return resourceCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return The googleAdsLink.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() {
+ if (resourceCase_ == 7) {
+ return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() {
+ if (resourceCase_ == 7) {
+ return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.GoogleAdsLink.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 (resourceCase_ == 1) {
+ output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_);
+ }
+ if (resourceCase_ == 2) {
+ output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_);
+ }
+ if (resourceCase_ == 3) {
+ output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_);
+ }
+ if (resourceCase_ == 4) {
+ output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_);
+ }
+ if (resourceCase_ == 5) {
+ output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_);
+ }
+ if (resourceCase_ == 6) {
+ output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_);
+ }
+ if (resourceCase_ == 7) {
+ output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (resourceCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.analytics.admin.v1alpha.Account) resource_);
+ }
+ if (resourceCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.analytics.admin.v1alpha.Property) resource_);
+ }
+ if (resourceCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_);
+ }
+ if (resourceCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_);
+ }
+ if (resourceCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_);
+ }
+ if (resourceCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_);
+ }
+ if (resourceCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_);
+ }
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other =
+ (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) obj;
+
+ if (!getResourceCase().equals(other.getResourceCase())) return false;
+ switch (resourceCase_) {
+ case 1:
+ if (!getAccount().equals(other.getAccount())) return false;
+ break;
+ case 2:
+ if (!getProperty().equals(other.getProperty())) return false;
+ break;
+ case 3:
+ if (!getWebDataStream().equals(other.getWebDataStream())) return false;
+ break;
+ case 4:
+ if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false;
+ break;
+ case 5:
+ if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false;
+ break;
+ case 6:
+ if (!getFirebaseLink().equals(other.getFirebaseLink())) return false;
+ break;
+ case 7:
+ if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) 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 (resourceCase_) {
+ case 1:
+ hash = (37 * hash) + ACCOUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getAccount().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + PROPERTY_FIELD_NUMBER;
+ hash = (53 * hash) + getProperty().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER;
+ hash = (53 * hash) + getWebDataStream().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER;
+ hash = (53 * hash) + getAndroidAppDataStream().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER;
+ hash = (53 * hash) + getIosAppDataStream().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getFirebaseLink().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER;
+ hash = (53 * hash) + getGoogleAdsLink().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource 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 snapshot of a resource as before or after the result of a change in + * change history. + *+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return Whether the account field is set.
+ */
+ @java.lang.Override
+ public boolean hasAccount() {
+ return resourceCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ *
+ * @return The account.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.Account getAccount() {
+ if (accountBuilder_ == null) {
+ if (resourceCase_ == 1) {
+ return (com.google.analytics.admin.v1alpha.Account) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 1) {
+ return accountBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) {
+ if (accountBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ accountBuilder_.setMessage(value);
+ }
+ resourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ public Builder setAccount(
+ com.google.analytics.admin.v1alpha.Account.Builder builderForValue) {
+ if (accountBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ accountBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) {
+ if (accountBuilder_ == null) {
+ if (resourceCase_ == 1
+ && resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.Account.newBuilder(
+ (com.google.analytics.admin.v1alpha.Account) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 1) {
+ accountBuilder_.mergeFrom(value);
+ }
+ accountBuilder_.setMessage(value);
+ }
+ resourceCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ public Builder clearAccount() {
+ if (accountBuilder_ == null) {
+ if (resourceCase_ == 1) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 1) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ accountBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() {
+ return getAccountFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() {
+ if ((resourceCase_ == 1) && (accountBuilder_ != null)) {
+ return accountBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 1) {
+ return (com.google.analytics.admin.v1alpha.Account) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an Account resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Account account = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.Account,
+ com.google.analytics.admin.v1alpha.Account.Builder,
+ com.google.analytics.admin.v1alpha.AccountOrBuilder>
+ getAccountFieldBuilder() {
+ if (accountBuilder_ == null) {
+ if (!(resourceCase_ == 1)) {
+ resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance();
+ }
+ accountBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.Account,
+ com.google.analytics.admin.v1alpha.Account.Builder,
+ com.google.analytics.admin.v1alpha.AccountOrBuilder>(
+ (com.google.analytics.admin.v1alpha.Account) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 1;
+ onChanged();
+ ;
+ return accountBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.Property,
+ com.google.analytics.admin.v1alpha.Property.Builder,
+ com.google.analytics.admin.v1alpha.PropertyOrBuilder>
+ propertyBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return Whether the property field is set.
+ */
+ @java.lang.Override
+ public boolean hasProperty() {
+ return resourceCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ *
+ * @return The property.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.Property getProperty() {
+ if (propertyBuilder_ == null) {
+ if (resourceCase_ == 2) {
+ return (com.google.analytics.admin.v1alpha.Property) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 2) {
+ return propertyBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) {
+ if (propertyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ propertyBuilder_.setMessage(value);
+ }
+ resourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ public Builder setProperty(
+ com.google.analytics.admin.v1alpha.Property.Builder builderForValue) {
+ if (propertyBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ propertyBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) {
+ if (propertyBuilder_ == null) {
+ if (resourceCase_ == 2
+ && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.Property.newBuilder(
+ (com.google.analytics.admin.v1alpha.Property) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 2) {
+ propertyBuilder_.mergeFrom(value);
+ }
+ propertyBuilder_.setMessage(value);
+ }
+ resourceCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ public Builder clearProperty() {
+ if (propertyBuilder_ == null) {
+ if (resourceCase_ == 2) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 2) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ propertyBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() {
+ return getPropertyFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() {
+ if ((resourceCase_ == 2) && (propertyBuilder_ != null)) {
+ return propertyBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 2) {
+ return (com.google.analytics.admin.v1alpha.Property) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a Property resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.Property property = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.Property,
+ com.google.analytics.admin.v1alpha.Property.Builder,
+ com.google.analytics.admin.v1alpha.PropertyOrBuilder>
+ getPropertyFieldBuilder() {
+ if (propertyBuilder_ == null) {
+ if (!(resourceCase_ == 2)) {
+ resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance();
+ }
+ propertyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.Property,
+ com.google.analytics.admin.v1alpha.Property.Builder,
+ com.google.analytics.admin.v1alpha.PropertyOrBuilder>(
+ (com.google.analytics.admin.v1alpha.Property) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 2;
+ onChanged();
+ ;
+ return propertyBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.WebDataStream,
+ com.google.analytics.admin.v1alpha.WebDataStream.Builder,
+ com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>
+ webDataStreamBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return Whether the webDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasWebDataStream() {
+ return resourceCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ *
+ * @return The webDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() {
+ if (webDataStreamBuilder_ == null) {
+ if (resourceCase_ == 3) {
+ return (com.google.analytics.admin.v1alpha.WebDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 3) {
+ return webDataStreamBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) {
+ if (webDataStreamBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ webDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ public Builder setWebDataStream(
+ com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) {
+ if (webDataStreamBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ webDataStreamBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) {
+ if (webDataStreamBuilder_ == null) {
+ if (resourceCase_ == 3
+ && resource_
+ != com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.WebDataStream.newBuilder(
+ (com.google.analytics.admin.v1alpha.WebDataStream) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 3) {
+ webDataStreamBuilder_.mergeFrom(value);
+ }
+ webDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ public Builder clearWebDataStream() {
+ if (webDataStreamBuilder_ == null) {
+ if (resourceCase_ == 3) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 3) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ webDataStreamBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() {
+ return getWebDataStreamFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() {
+ if ((resourceCase_ == 3) && (webDataStreamBuilder_ != null)) {
+ return webDataStreamBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 3) {
+ return (com.google.analytics.admin.v1alpha.WebDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a WebDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.WebDataStream,
+ com.google.analytics.admin.v1alpha.WebDataStream.Builder,
+ com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>
+ getWebDataStreamFieldBuilder() {
+ if (webDataStreamBuilder_ == null) {
+ if (!(resourceCase_ == 3)) {
+ resource_ = com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance();
+ }
+ webDataStreamBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.WebDataStream,
+ com.google.analytics.admin.v1alpha.WebDataStream.Builder,
+ com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>(
+ (com.google.analytics.admin.v1alpha.WebDataStream) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 3;
+ onChanged();
+ ;
+ return webDataStreamBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>
+ androidAppDataStreamBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return Whether the androidAppDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasAndroidAppDataStream() {
+ return resourceCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ *
+ * @return The androidAppDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() {
+ if (androidAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 4) {
+ return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 4) {
+ return androidAppDataStreamBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ public Builder setAndroidAppDataStream(
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream value) {
+ if (androidAppDataStreamBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ androidAppDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ public Builder setAndroidAppDataStream(
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) {
+ if (androidAppDataStreamBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ androidAppDataStreamBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ public Builder mergeAndroidAppDataStream(
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream value) {
+ if (androidAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 4
+ && resource_
+ != com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder(
+ (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 4) {
+ androidAppDataStreamBuilder_.mergeFrom(value);
+ }
+ androidAppDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ public Builder clearAndroidAppDataStream() {
+ if (androidAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 4) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 4) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ androidAppDataStreamBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder
+ getAndroidAppDataStreamBuilder() {
+ return getAndroidAppDataStreamFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
+ getAndroidAppDataStreamOrBuilder() {
+ if ((resourceCase_ == 4) && (androidAppDataStreamBuilder_ != null)) {
+ return androidAppDataStreamBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 4) {
+ return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an AndroidAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>
+ getAndroidAppDataStreamFieldBuilder() {
+ if (androidAppDataStreamBuilder_ == null) {
+ if (!(resourceCase_ == 4)) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance();
+ }
+ androidAppDataStreamBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>(
+ (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 4;
+ onChanged();
+ ;
+ return androidAppDataStreamBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.IosAppDataStream,
+ com.google.analytics.admin.v1alpha.IosAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>
+ iosAppDataStreamBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return Whether the iosAppDataStream field is set.
+ */
+ @java.lang.Override
+ public boolean hasIosAppDataStream() {
+ return resourceCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ *
+ * @return The iosAppDataStream.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() {
+ if (iosAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 5) {
+ return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 5) {
+ return iosAppDataStreamBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ public Builder setIosAppDataStream(
+ com.google.analytics.admin.v1alpha.IosAppDataStream value) {
+ if (iosAppDataStreamBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ iosAppDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ public Builder setIosAppDataStream(
+ com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) {
+ if (iosAppDataStreamBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ iosAppDataStreamBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ public Builder mergeIosAppDataStream(
+ com.google.analytics.admin.v1alpha.IosAppDataStream value) {
+ if (iosAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 5
+ && resource_
+ != com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(
+ (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 5) {
+ iosAppDataStreamBuilder_.mergeFrom(value);
+ }
+ iosAppDataStreamBuilder_.setMessage(value);
+ }
+ resourceCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ public Builder clearIosAppDataStream() {
+ if (iosAppDataStreamBuilder_ == null) {
+ if (resourceCase_ == 5) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 5) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ iosAppDataStreamBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder
+ getIosAppDataStreamBuilder() {
+ return getIosAppDataStreamFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder
+ getIosAppDataStreamOrBuilder() {
+ if ((resourceCase_ == 5) && (iosAppDataStreamBuilder_ != null)) {
+ return iosAppDataStreamBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 5) {
+ return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of an IosAppDataStream resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.IosAppDataStream,
+ com.google.analytics.admin.v1alpha.IosAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>
+ getIosAppDataStreamFieldBuilder() {
+ if (iosAppDataStreamBuilder_ == null) {
+ if (!(resourceCase_ == 5)) {
+ resource_ = com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance();
+ }
+ iosAppDataStreamBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.IosAppDataStream,
+ com.google.analytics.admin.v1alpha.IosAppDataStream.Builder,
+ com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>(
+ (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 5;
+ onChanged();
+ ;
+ return iosAppDataStreamBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.FirebaseLink,
+ com.google.analytics.admin.v1alpha.FirebaseLink.Builder,
+ com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>
+ firebaseLinkBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return Whether the firebaseLink field is set.
+ */
+ @java.lang.Override
+ public boolean hasFirebaseLink() {
+ return resourceCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ *
+ * @return The firebaseLink.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() {
+ if (firebaseLinkBuilder_ == null) {
+ if (resourceCase_ == 6) {
+ return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 6) {
+ return firebaseLinkBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) {
+ if (firebaseLinkBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ firebaseLinkBuilder_.setMessage(value);
+ }
+ resourceCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ public Builder setFirebaseLink(
+ com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) {
+ if (firebaseLinkBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ firebaseLinkBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) {
+ if (firebaseLinkBuilder_ == null) {
+ if (resourceCase_ == 6
+ && resource_
+ != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder(
+ (com.google.analytics.admin.v1alpha.FirebaseLink) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 6) {
+ firebaseLinkBuilder_.mergeFrom(value);
+ }
+ firebaseLinkBuilder_.setMessage(value);
+ }
+ resourceCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ public Builder clearFirebaseLink() {
+ if (firebaseLinkBuilder_ == null) {
+ if (resourceCase_ == 6) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 6) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ firebaseLinkBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() {
+ return getFirebaseLinkFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() {
+ if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) {
+ return firebaseLinkBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 6) {
+ return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a FirebaseLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.FirebaseLink,
+ com.google.analytics.admin.v1alpha.FirebaseLink.Builder,
+ com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>
+ getFirebaseLinkFieldBuilder() {
+ if (firebaseLinkBuilder_ == null) {
+ if (!(resourceCase_ == 6)) {
+ resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance();
+ }
+ firebaseLinkBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.FirebaseLink,
+ com.google.analytics.admin.v1alpha.FirebaseLink.Builder,
+ com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>(
+ (com.google.analytics.admin.v1alpha.FirebaseLink) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 6;
+ onChanged();
+ ;
+ return firebaseLinkBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.GoogleAdsLink,
+ com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder,
+ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>
+ googleAdsLinkBuilder_;
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return Whether the googleAdsLink field is set.
+ */
+ @java.lang.Override
+ public boolean hasGoogleAdsLink() {
+ return resourceCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ *
+ * @return The googleAdsLink.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() {
+ if (googleAdsLinkBuilder_ == null) {
+ if (resourceCase_ == 7) {
+ return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance();
+ } else {
+ if (resourceCase_ == 7) {
+ return googleAdsLinkBuilder_.getMessage();
+ }
+ return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) {
+ if (googleAdsLinkBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resource_ = value;
+ onChanged();
+ } else {
+ googleAdsLinkBuilder_.setMessage(value);
+ }
+ resourceCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ public Builder setGoogleAdsLink(
+ com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) {
+ if (googleAdsLinkBuilder_ == null) {
+ resource_ = builderForValue.build();
+ onChanged();
+ } else {
+ googleAdsLinkBuilder_.setMessage(builderForValue.build());
+ }
+ resourceCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) {
+ if (googleAdsLinkBuilder_ == null) {
+ if (resourceCase_ == 7
+ && resource_
+ != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) {
+ resource_ =
+ com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder(
+ (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resource_ = value;
+ }
+ onChanged();
+ } else {
+ if (resourceCase_ == 7) {
+ googleAdsLinkBuilder_.mergeFrom(value);
+ }
+ googleAdsLinkBuilder_.setMessage(value);
+ }
+ resourceCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ public Builder clearGoogleAdsLink() {
+ if (googleAdsLinkBuilder_ == null) {
+ if (resourceCase_ == 7) {
+ resourceCase_ = 0;
+ resource_ = null;
+ onChanged();
+ }
+ } else {
+ if (resourceCase_ == 7) {
+ resourceCase_ = 0;
+ resource_ = null;
+ }
+ googleAdsLinkBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() {
+ return getGoogleAdsLinkFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() {
+ if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) {
+ return googleAdsLinkBuilder_.getMessageOrBuilder();
+ } else {
+ if (resourceCase_ == 7) {
+ return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_;
+ }
+ return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * A snapshot of a GoogleAdsLink resource in change history. + *+ * + *
.google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.GoogleAdsLink,
+ com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder,
+ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>
+ getGoogleAdsLinkFieldBuilder() {
+ if (googleAdsLinkBuilder_ == null) {
+ if (!(resourceCase_ == 7)) {
+ resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance();
+ }
+ googleAdsLinkBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.GoogleAdsLink,
+ com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder,
+ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>(
+ (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_,
+ getParentForChildren(),
+ isClean());
+ resource_ = null;
+ }
+ resourceCase_ = 7;
+ onChanged();
+ ;
+ return googleAdsLinkBuilder_;
+ }
+
+ @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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)
+ private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange
+ .ChangeHistoryResource
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE =
+ new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource();
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The resource.
+ */
+ @java.lang.Override
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ 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();
+ resource_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The bytes for resource.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ACTION_FIELD_NUMBER = 2;
+ private int action_;
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override
+ public int getActionValue() {
+ return action_;
+ }
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The action.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ActionType getAction() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.admin.v1alpha.ActionType result =
+ com.google.analytics.admin.v1alpha.ActionType.valueOf(action_);
+ return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result;
+ }
+
+ public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3;
+ private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ resourceBeforeChange_;
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return Whether the resourceBeforeChange field is set.
+ */
+ @java.lang.Override
+ public boolean hasResourceBeforeChange() {
+ return resourceBeforeChange_ != null;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return The resourceBeforeChange.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceBeforeChange() {
+ return resourceBeforeChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceBeforeChange_;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceBeforeChangeOrBuilder() {
+ return getResourceBeforeChange();
+ }
+
+ public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4;
+ private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ resourceAfterChange_;
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return Whether the resourceAfterChange field is set.
+ */
+ @java.lang.Override
+ public boolean hasResourceAfterChange() {
+ return resourceAfterChange_ != null;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return The resourceAfterChange.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceAfterChange() {
+ return resourceAfterChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceAfterChange_;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceAfterChangeOrBuilder() {
+ return getResourceAfterChange();
+ }
+
+ 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 (!getResourceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_);
+ }
+ if (action_
+ != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(2, action_);
+ }
+ if (resourceBeforeChange_ != null) {
+ output.writeMessage(3, getResourceBeforeChange());
+ }
+ if (resourceAfterChange_ != null) {
+ output.writeMessage(4, getResourceAfterChange());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getResourceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_);
+ }
+ if (action_
+ != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_);
+ }
+ if (resourceBeforeChange_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceBeforeChange());
+ }
+ if (resourceAfterChange_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceAfterChange());
+ }
+ 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.admin.v1alpha.ChangeHistoryChange)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange other =
+ (com.google.analytics.admin.v1alpha.ChangeHistoryChange) obj;
+
+ if (!getResource().equals(other.getResource())) return false;
+ if (action_ != other.action_) return false;
+ if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false;
+ if (hasResourceBeforeChange()) {
+ if (!getResourceBeforeChange().equals(other.getResourceBeforeChange())) return false;
+ }
+ if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false;
+ if (hasResourceAfterChange()) {
+ if (!getResourceAfterChange().equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getResource().hashCode();
+ hash = (37 * hash) + ACTION_FIELD_NUMBER;
+ hash = (53 * hash) + action_;
+ if (hasResourceBeforeChange()) {
+ hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceBeforeChange().hashCode();
+ }
+ if (hasResourceAfterChange()) {
+ hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getResourceAfterChange().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.admin.v1alpha.ChangeHistoryChange parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.admin.v1alpha.ChangeHistoryChange parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.admin.v1alpha.ChangeHistoryChange parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.admin.v1alpha.ChangeHistoryChange 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 description of a change to a single Google Analytics resource. + *+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The resource.
+ */
+ public java.lang.String getResource() {
+ java.lang.Object ref = resource_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ resource_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The bytes for resource.
+ */
+ public com.google.protobuf.ByteString getResourceBytes() {
+ java.lang.Object ref = resource_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ resource_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @param value The resource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResource(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearResource() {
+
+ resource_ = getDefaultInstance().getResource();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @param value The bytes for resource to set.
+ * @return This builder for chaining.
+ */
+ public Builder setResourceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ resource_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int action_ = 0;
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The enum numeric value on the wire for action.
+ */
+ @java.lang.Override
+ public int getActionValue() {
+ return action_;
+ }
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @param value The enum numeric value on the wire for action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActionValue(int value) {
+
+ action_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The action.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ActionType getAction() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.admin.v1alpha.ActionType result =
+ com.google.analytics.admin.v1alpha.ActionType.valueOf(action_);
+ return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @param value The action to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAction(com.google.analytics.admin.v1alpha.ActionType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ action_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAction() {
+
+ action_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ resourceBeforeChange_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>
+ resourceBeforeChangeBuilder_;
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return Whether the resourceBeforeChange field is set.
+ */
+ public boolean hasResourceBeforeChange() {
+ return resourceBeforeChangeBuilder_ != null || resourceBeforeChange_ != null;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return The resourceBeforeChange.
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceBeforeChange() {
+ if (resourceBeforeChangeBuilder_ == null) {
+ return resourceBeforeChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceBeforeChange_;
+ } else {
+ return resourceBeforeChangeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public Builder setResourceBeforeChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) {
+ if (resourceBeforeChangeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceBeforeChange_ = value;
+ onChanged();
+ } else {
+ resourceBeforeChangeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public Builder setResourceBeforeChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder
+ builderForValue) {
+ if (resourceBeforeChangeBuilder_ == null) {
+ resourceBeforeChange_ = builderForValue.build();
+ onChanged();
+ } else {
+ resourceBeforeChangeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public Builder mergeResourceBeforeChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) {
+ if (resourceBeforeChangeBuilder_ == null) {
+ if (resourceBeforeChange_ != null) {
+ resourceBeforeChange_ =
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .newBuilder(resourceBeforeChange_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resourceBeforeChange_ = value;
+ }
+ onChanged();
+ } else {
+ resourceBeforeChangeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public Builder clearResourceBeforeChange() {
+ if (resourceBeforeChangeBuilder_ == null) {
+ resourceBeforeChange_ = null;
+ onChanged();
+ } else {
+ resourceBeforeChange_ = null;
+ resourceBeforeChangeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder
+ getResourceBeforeChangeBuilder() {
+
+ onChanged();
+ return getResourceBeforeChangeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceBeforeChangeOrBuilder() {
+ if (resourceBeforeChangeBuilder_ != null) {
+ return resourceBeforeChangeBuilder_.getMessageOrBuilder();
+ } else {
+ return resourceBeforeChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceBeforeChange_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>
+ getResourceBeforeChangeFieldBuilder() {
+ if (resourceBeforeChangeBuilder_ == null) {
+ resourceBeforeChangeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange
+ .ChangeHistoryResourceOrBuilder>(
+ getResourceBeforeChange(), getParentForChildren(), isClean());
+ resourceBeforeChange_ = null;
+ }
+ return resourceBeforeChangeBuilder_;
+ }
+
+ private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ resourceAfterChange_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>
+ resourceAfterChangeBuilder_;
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return Whether the resourceAfterChange field is set.
+ */
+ public boolean hasResourceAfterChange() {
+ return resourceAfterChangeBuilder_ != null || resourceAfterChange_ != null;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return The resourceAfterChange.
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceAfterChange() {
+ if (resourceAfterChangeBuilder_ == null) {
+ return resourceAfterChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceAfterChange_;
+ } else {
+ return resourceAfterChangeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public Builder setResourceAfterChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) {
+ if (resourceAfterChangeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ resourceAfterChange_ = value;
+ onChanged();
+ } else {
+ resourceAfterChangeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public Builder setResourceAfterChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder
+ builderForValue) {
+ if (resourceAfterChangeBuilder_ == null) {
+ resourceAfterChange_ = builderForValue.build();
+ onChanged();
+ } else {
+ resourceAfterChangeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public Builder mergeResourceAfterChange(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) {
+ if (resourceAfterChangeBuilder_ == null) {
+ if (resourceAfterChange_ != null) {
+ resourceAfterChange_ =
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .newBuilder(resourceAfterChange_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ resourceAfterChange_ = value;
+ }
+ onChanged();
+ } else {
+ resourceAfterChangeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public Builder clearResourceAfterChange() {
+ if (resourceAfterChangeBuilder_ == null) {
+ resourceAfterChange_ = null;
+ onChanged();
+ } else {
+ resourceAfterChange_ = null;
+ resourceAfterChangeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder
+ getResourceAfterChangeBuilder() {
+
+ onChanged();
+ return getResourceAfterChangeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceAfterChangeOrBuilder() {
+ if (resourceAfterChangeBuilder_ != null) {
+ return resourceAfterChangeBuilder_.getMessageOrBuilder();
+ } else {
+ return resourceAfterChange_ == null
+ ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .getDefaultInstance()
+ : resourceAfterChange_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>
+ getResourceAfterChangeFieldBuilder() {
+ if (resourceAfterChangeBuilder_ == null) {
+ resourceAfterChangeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ .Builder,
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange
+ .ChangeHistoryResourceOrBuilder>(
+ getResourceAfterChange(), getParentForChildren(), isClean());
+ resourceAfterChange_ = null;
+ }
+ return resourceAfterChangeBuilder_;
+ }
+
+ @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.admin.v1alpha.ChangeHistoryChange)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange)
+ private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange();
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The resource.
+ */
+ java.lang.String getResource();
+ /**
+ *
+ *
+ * + * Resource name of the resource whose changes are described by this entry. + *+ * + *
string resource = 1;
+ *
+ * @return The bytes for resource.
+ */
+ com.google.protobuf.ByteString getResourceBytes();
+
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The enum numeric value on the wire for action.
+ */
+ int getActionValue();
+ /**
+ *
+ *
+ * + * The type of action that changed this resource. + *+ * + *
.google.analytics.admin.v1alpha.ActionType action = 2;
+ *
+ * @return The action.
+ */
+ com.google.analytics.admin.v1alpha.ActionType getAction();
+
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return Whether the resourceBeforeChange field is set.
+ */
+ boolean hasResourceBeforeChange();
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ *
+ * @return The resourceBeforeChange.
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceBeforeChange();
+ /**
+ *
+ *
+ * + * Resource contents from before the change was made. If this resource was + * created in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3;
+ *
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceBeforeChangeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return Whether the resourceAfterChange field is set.
+ */
+ boolean hasResourceAfterChange();
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ *
+ * @return The resourceAfterChange.
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource
+ getResourceAfterChange();
+ /**
+ *
+ *
+ * + * Resource contents from after the change was made. If this resource was + * deleted in this change, this field will be missing. + *+ * + *
+ * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4;
+ *
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder
+ getResourceAfterChangeOrBuilder();
+}
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java
new file mode 100644
index 00000000..f8ba7c9e
--- /dev/null
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java
@@ -0,0 +1,1883 @@
+/*
+ * 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/admin/v1alpha/resources.proto
+
+package com.google.analytics.admin.v1alpha;
+
+/**
+ *
+ *
+ * + * A set of changes within a Google Analytics account or its child properties + * that resulted from the same cause. Common causes would be updates made in the + * Google Analytics UI, changes from customer support, or automatic Google + * Analytics system changes. + *+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ +public final class ChangeHistoryEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + ChangeHistoryEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryEvent.newBuilder() to construct. + private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChangeHistoryEvent() { + id_ = ""; + actorType_ = 0; + userActorEmail_ = ""; + changes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryEvent( + 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(); + + id_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (changeTime_ != null) { + subBuilder = changeTime_.toBuilder(); + } + changeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(changeTime_); + changeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + actorType_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + userActorEmail_ = s; + break; + } + case 40: + { + changesFiltered_ = input.readBool(); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChangeHistoryChange>(); + mutable_bitField0_ |= 0x00000001; + } + changes_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+ * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ 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();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHANGE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp changeTime_;
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return Whether the changeTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasChangeTime() {
+ return changeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return The changeTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getChangeTime() {
+ return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() {
+ return getChangeTime();
+ }
+
+ public static final int ACTOR_TYPE_FIELD_NUMBER = 3;
+ private int actorType_;
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The enum numeric value on the wire for actorType.
+ */
+ @java.lang.Override
+ public int getActorTypeValue() {
+ return actorType_;
+ }
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The actorType.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ActorType getActorType() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.admin.v1alpha.ActorType result =
+ com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_);
+ return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result;
+ }
+
+ public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4;
+ private volatile java.lang.Object userActorEmail_;
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The userActorEmail.
+ */
+ @java.lang.Override
+ public java.lang.String getUserActorEmail() {
+ java.lang.Object ref = userActorEmail_;
+ 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();
+ userActorEmail_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The bytes for userActorEmail.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUserActorEmailBytes() {
+ java.lang.Object ref = userActorEmail_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userActorEmail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHANGES_FILTERED_FIELD_NUMBER = 5;
+ private boolean changesFiltered_;
+ /**
+ *
+ *
+ * + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + *+ * + *
bool changes_filtered = 5;
+ *
+ * @return The changesFiltered.
+ */
+ @java.lang.Override
+ public boolean getChangesFiltered() {
+ return changesFiltered_;
+ }
+
+ public static final int CHANGES_FIELD_NUMBER = 6;
+ private java.util.List+ * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ @java.lang.Override
+ public java.util.List+ * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>
+ getChangesOrBuilderList() {
+ return changes_;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ @java.lang.Override
+ public int getChangesCount() {
+ return changes_.size();
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) {
+ return changes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(
+ int index) {
+ return changes_.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 (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (changeTime_ != null) {
+ output.writeMessage(2, getChangeTime());
+ }
+ if (actorType_
+ != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(3, actorType_);
+ }
+ if (!getUserActorEmailBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_);
+ }
+ if (changesFiltered_ != false) {
+ output.writeBool(5, changesFiltered_);
+ }
+ for (int i = 0; i < changes_.size(); i++) {
+ output.writeMessage(6, changes_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (changeTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChangeTime());
+ }
+ if (actorType_
+ != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_);
+ }
+ if (!getUserActorEmailBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_);
+ }
+ if (changesFiltered_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, changesFiltered_);
+ }
+ for (int i = 0; i < changes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, changes_.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.admin.v1alpha.ChangeHistoryEvent)) {
+ return super.equals(obj);
+ }
+ com.google.analytics.admin.v1alpha.ChangeHistoryEvent other =
+ (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (hasChangeTime() != other.hasChangeTime()) return false;
+ if (hasChangeTime()) {
+ if (!getChangeTime().equals(other.getChangeTime())) return false;
+ }
+ if (actorType_ != other.actorType_) return false;
+ if (!getUserActorEmail().equals(other.getUserActorEmail())) return false;
+ if (getChangesFiltered() != other.getChangesFiltered()) return false;
+ if (!getChangesList().equals(other.getChangesList())) 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) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ if (hasChangeTime()) {
+ hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getChangeTime().hashCode();
+ }
+ hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + actorType_;
+ hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER;
+ hash = (53 * hash) + getUserActorEmail().hashCode();
+ hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChangesFiltered());
+ if (getChangesCount() > 0) {
+ hash = (37 * hash) + CHANGES_FIELD_NUMBER;
+ hash = (53 * hash) + getChangesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.admin.v1alpha.ChangeHistoryEvent parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.admin.v1alpha.ChangeHistoryEvent parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.admin.v1alpha.ChangeHistoryEvent parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.admin.v1alpha.ChangeHistoryEvent 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 set of changes within a Google Analytics account or its child properties + * that resulted from the same cause. Common causes would be updates made in the + * Google Analytics UI, changes from customer support, or automatic Google + * Analytics system changes. + *+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp changeTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ changeTimeBuilder_;
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return Whether the changeTime field is set.
+ */
+ public boolean hasChangeTime() {
+ return changeTimeBuilder_ != null || changeTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return The changeTime.
+ */
+ public com.google.protobuf.Timestamp getChangeTime() {
+ if (changeTimeBuilder_ == null) {
+ return changeTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : changeTime_;
+ } else {
+ return changeTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public Builder setChangeTime(com.google.protobuf.Timestamp value) {
+ if (changeTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ changeTime_ = value;
+ onChanged();
+ } else {
+ changeTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (changeTimeBuilder_ == null) {
+ changeTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ changeTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public Builder mergeChangeTime(com.google.protobuf.Timestamp value) {
+ if (changeTimeBuilder_ == null) {
+ if (changeTime_ != null) {
+ changeTime_ =
+ com.google.protobuf.Timestamp.newBuilder(changeTime_).mergeFrom(value).buildPartial();
+ } else {
+ changeTime_ = value;
+ }
+ onChanged();
+ } else {
+ changeTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public Builder clearChangeTime() {
+ if (changeTimeBuilder_ == null) {
+ changeTime_ = null;
+ onChanged();
+ } else {
+ changeTime_ = null;
+ changeTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() {
+
+ onChanged();
+ return getChangeTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() {
+ if (changeTimeBuilder_ != null) {
+ return changeTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return changeTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : changeTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getChangeTimeFieldBuilder() {
+ if (changeTimeBuilder_ == null) {
+ changeTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getChangeTime(), getParentForChildren(), isClean());
+ changeTime_ = null;
+ }
+ return changeTimeBuilder_;
+ }
+
+ private int actorType_ = 0;
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The enum numeric value on the wire for actorType.
+ */
+ @java.lang.Override
+ public int getActorTypeValue() {
+ return actorType_;
+ }
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @param value The enum numeric value on the wire for actorType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActorTypeValue(int value) {
+
+ actorType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The actorType.
+ */
+ @java.lang.Override
+ public com.google.analytics.admin.v1alpha.ActorType getActorType() {
+ @SuppressWarnings("deprecation")
+ com.google.analytics.admin.v1alpha.ActorType result =
+ com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_);
+ return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @param value The actorType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setActorType(com.google.analytics.admin.v1alpha.ActorType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ actorType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearActorType() {
+
+ actorType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object userActorEmail_ = "";
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The userActorEmail.
+ */
+ public java.lang.String getUserActorEmail() {
+ java.lang.Object ref = userActorEmail_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userActorEmail_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The bytes for userActorEmail.
+ */
+ public com.google.protobuf.ByteString getUserActorEmailBytes() {
+ java.lang.Object ref = userActorEmail_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userActorEmail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @param value The userActorEmail to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserActorEmail(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ userActorEmail_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUserActorEmail() {
+
+ userActorEmail_ = getDefaultInstance().getUserActorEmail();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @param value The bytes for userActorEmail to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserActorEmailBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ userActorEmail_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean changesFiltered_;
+ /**
+ *
+ *
+ * + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + *+ * + *
bool changes_filtered = 5;
+ *
+ * @return The changesFiltered.
+ */
+ @java.lang.Override
+ public boolean getChangesFiltered() {
+ return changesFiltered_;
+ }
+ /**
+ *
+ *
+ * + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + *+ * + *
bool changes_filtered = 5;
+ *
+ * @param value The changesFiltered to set.
+ * @return This builder for chaining.
+ */
+ public Builder setChangesFiltered(boolean value) {
+
+ changesFiltered_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + *+ * + *
bool changes_filtered = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearChangesFiltered() {
+
+ changesFiltered_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public java.util.List+ * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public int getChangesCount() {
+ if (changesBuilder_ == null) {
+ return changes_.size();
+ } else {
+ return changesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) {
+ if (changesBuilder_ == null) {
+ return changes_.get(index);
+ } else {
+ return changesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder setChanges(
+ int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) {
+ if (changesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChangesIsMutable();
+ changes_.set(index, value);
+ onChanged();
+ } else {
+ changesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder setChanges(
+ int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) {
+ if (changesBuilder_ == null) {
+ ensureChangesIsMutable();
+ changes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ changesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder addChanges(com.google.analytics.admin.v1alpha.ChangeHistoryChange value) {
+ if (changesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChangesIsMutable();
+ changes_.add(value);
+ onChanged();
+ } else {
+ changesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder addChanges(
+ int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) {
+ if (changesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChangesIsMutable();
+ changes_.add(index, value);
+ onChanged();
+ } else {
+ changesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder addChanges(
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) {
+ if (changesBuilder_ == null) {
+ ensureChangesIsMutable();
+ changes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ changesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder addChanges(
+ int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) {
+ if (changesBuilder_ == null) {
+ ensureChangesIsMutable();
+ changes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ changesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder addAllChanges(
+ java.lang.Iterable extends com.google.analytics.admin.v1alpha.ChangeHistoryChange>
+ values) {
+ if (changesBuilder_ == null) {
+ ensureChangesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changes_);
+ onChanged();
+ } else {
+ changesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder clearChanges() {
+ if (changesBuilder_ == null) {
+ changes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ changesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public Builder removeChanges(int index) {
+ if (changesBuilder_ == null) {
+ ensureChangesIsMutable();
+ changes_.remove(index);
+ onChanged();
+ } else {
+ changesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder getChangesBuilder(
+ int index) {
+ return getChangesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(
+ int index) {
+ if (changesBuilder_ == null) {
+ return changes_.get(index);
+ } else {
+ return changesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public java.util.List extends com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>
+ getChangesOrBuilderList() {
+ if (changesBuilder_ != null) {
+ return changesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(changes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder() {
+ return getChangesFieldBuilder()
+ .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder(
+ int index) {
+ return getChangesFieldBuilder()
+ .addBuilder(
+ index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ public java.util.List+ * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ * + * ID of this change history event. This ID is unique across Google Analytics. + *+ * + *
string id = 1;
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return Whether the changeTime field is set.
+ */
+ boolean hasChangeTime();
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ *
+ * @return The changeTime.
+ */
+ com.google.protobuf.Timestamp getChangeTime();
+ /**
+ *
+ *
+ * + * Time when change was made. + *+ * + *
.google.protobuf.Timestamp change_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The enum numeric value on the wire for actorType.
+ */
+ int getActorTypeValue();
+ /**
+ *
+ *
+ * + * The type of actor that made this change. + *+ * + *
.google.analytics.admin.v1alpha.ActorType actor_type = 3;
+ *
+ * @return The actorType.
+ */
+ com.google.analytics.admin.v1alpha.ActorType getActorType();
+
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The userActorEmail.
+ */
+ java.lang.String getUserActorEmail();
+ /**
+ *
+ *
+ * + * Email address of the Google account that made the change. This will be a + * valid email address if the actor field is set to USER, and empty otherwise. + * Google accounts that have been deleted will cause an error. + *+ * + *
string user_actor_email = 4;
+ *
+ * @return The bytes for userActorEmail.
+ */
+ com.google.protobuf.ByteString getUserActorEmailBytes();
+
+ /**
+ *
+ *
+ * + * If true, then the list of changes returned was filtered, and does not + * represent all changes that occurred in this event. + *+ * + *
bool changes_filtered = 5;
+ *
+ * @return The changesFiltered.
+ */
+ boolean getChangesFiltered();
+
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ java.util.List+ * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index);
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ int getChangesCount();
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ java.util.List extends com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>
+ getChangesOrBuilderList();
+ /**
+ *
+ *
+ * + * A list of changes made in this change history event that fit the filters + * specified in SearchChangeHistoryEventsRequest. + *+ * + *
repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6;
+ */
+ com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index);
+}
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java
new file mode 100644
index 00000000..0c12ac82
--- /dev/null
+++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java
@@ -0,0 +1,289 @@
+/*
+ * 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/admin/v1alpha/resources.proto
+
+package com.google.analytics.admin.v1alpha;
+
+/**
+ *
+ *
+ * + * Types of resources whose changes may be returned from change history. + *+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ChangeHistoryResourceType} + */ +public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Resource type unknown or not specified. + *+ * + *
CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0;
+ */
+ CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Account resource + *+ * + *
ACCOUNT = 1;
+ */
+ ACCOUNT(1),
+ /**
+ *
+ *
+ * + * Property resource + *+ * + *
PROPERTY = 2;
+ */
+ PROPERTY(2),
+ /**
+ *
+ *
+ * + * WebDataStream resource + *+ * + *
WEB_DATA_STREAM = 3;
+ */
+ WEB_DATA_STREAM(3),
+ /**
+ *
+ *
+ * + * AndroidAppDataStream resource + *+ * + *
ANDROID_APP_DATA_STREAM = 4;
+ */
+ ANDROID_APP_DATA_STREAM(4),
+ /**
+ *
+ *
+ * + * IosAppDataStream resource + *+ * + *
IOS_APP_DATA_STREAM = 5;
+ */
+ IOS_APP_DATA_STREAM(5),
+ /**
+ *
+ *
+ * + * FirebaseLink resource + *+ * + *
FIREBASE_LINK = 6;
+ */
+ FIREBASE_LINK(6),
+ /**
+ *
+ *
+ * + * GoogleAdsLink resource + *+ * + *
GOOGLE_ADS_LINK = 7;
+ */
+ GOOGLE_ADS_LINK(7),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Resource type unknown or not specified. + *+ * + *
CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0;
+ */
+ public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Account resource + *+ * + *
ACCOUNT = 1;
+ */
+ public static final int ACCOUNT_VALUE = 1;
+ /**
+ *
+ *
+ * + * Property resource + *+ * + *
PROPERTY = 2;
+ */
+ public static final int PROPERTY_VALUE = 2;
+ /**
+ *
+ *
+ * + * WebDataStream resource + *+ * + *
WEB_DATA_STREAM = 3;
+ */
+ public static final int WEB_DATA_STREAM_VALUE = 3;
+ /**
+ *
+ *
+ * + * AndroidAppDataStream resource + *+ * + *
ANDROID_APP_DATA_STREAM = 4;
+ */
+ public static final int ANDROID_APP_DATA_STREAM_VALUE = 4;
+ /**
+ *
+ *
+ * + * IosAppDataStream resource + *+ * + *
IOS_APP_DATA_STREAM = 5;
+ */
+ public static final int IOS_APP_DATA_STREAM_VALUE = 5;
+ /**
+ *
+ *
+ * + * FirebaseLink resource + *+ * + *
FIREBASE_LINK = 6;
+ */
+ public static final int FIREBASE_LINK_VALUE = 6;
+ /**
+ *
+ *
+ * + * GoogleAdsLink resource + *+ * + *
GOOGLE_ADS_LINK = 7;
+ */
+ public static final int GOOGLE_ADS_LINK_VALUE = 7;
+
+ 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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) {
+ switch (value) {
+ case 0:
+ return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED;
+ case 1:
+ return ACCOUNT;
+ case 2:
+ return PROPERTY;
+ case 3:
+ return WEB_DATA_STREAM;
+ case 4:
+ return ANDROID_APP_DATA_STREAM;
+ case 5:
+ return IOS_APP_DATA_STREAM;
+ case 6:
+ return FIREBASE_LINK;
+ case 7:
+ return GOOGLE_ADS_LINK;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap- * Request message for CreateAndroidAppDataStream RPC. - *- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ -public final class CreateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - CreateAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateAndroidAppDataStreamRequest.newBuilder() to construct. - private CreateAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private CreateAndroidAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateAndroidAppDataStreamRequest( - 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.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; - if (androidAppDataStream_ != null) { - subBuilder = androidAppDataStream_.toBuilder(); - } - androidAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(androidAppDataStream_); - androidAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); - } - - public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - /** - * - * - *
- * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the androidAppDataStream field is set.
- */
- @java.lang.Override
- public boolean hasAndroidAppDataStream() {
- return androidAppDataStream_ != null;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The androidAppDataStream.
- */
- @java.lang.Override
- public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() {
- return androidAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()
- : androidAppDataStream_;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- @java.lang.Override
- public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
- getAndroidAppDataStreamOrBuilder() {
- return getAndroidAppDataStream();
- }
-
- public static final int PARENT_FIELD_NUMBER = 2;
- private volatile java.lang.Object parent_;
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The parent.
- */
- @java.lang.Override
- public java.lang.String getParent() {
- java.lang.Object ref = parent_;
- 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();
- parent_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for parent.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getParentBytes() {
- java.lang.Object ref = parent_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- parent_ = 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 (androidAppDataStream_ != null) {
- output.writeMessage(1, getAndroidAppDataStream());
- }
- if (!getParentBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (androidAppDataStream_ != null) {
- size +=
- com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream());
- }
- if (!getParentBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_);
- }
- 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.admin.v1alpha.CreateAndroidAppDataStreamRequest)) {
- return super.equals(obj);
- }
- com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other =
- (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) obj;
-
- if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false;
- if (hasAndroidAppDataStream()) {
- if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false;
- }
- if (!getParent().equals(other.getParent())) 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 (hasAndroidAppDataStream()) {
- hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER;
- hash = (53 * hash) + getAndroidAppDataStream().hashCode();
- }
- hash = (37 * hash) + PARENT_FIELD_NUMBER;
- hash = (53 * hash) + getParent().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.admin.v1alpha.CreateAndroidAppDataStreamRequest
- parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest
- 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.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.admin.v1alpha.CreateAndroidAppDataStreamRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * Request message for CreateAndroidAppDataStream RPC. - *- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the androidAppDataStream field is set.
- */
- public boolean hasAndroidAppDataStream() {
- return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The androidAppDataStream.
- */
- public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() {
- if (androidAppDataStreamBuilder_ == null) {
- return androidAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()
- : androidAppDataStream_;
- } else {
- return androidAppDataStreamBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder setAndroidAppDataStream(
- com.google.analytics.admin.v1alpha.AndroidAppDataStream value) {
- if (androidAppDataStreamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- androidAppDataStream_ = value;
- onChanged();
- } else {
- androidAppDataStreamBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder setAndroidAppDataStream(
- com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) {
- if (androidAppDataStreamBuilder_ == null) {
- androidAppDataStream_ = builderForValue.build();
- onChanged();
- } else {
- androidAppDataStreamBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder mergeAndroidAppDataStream(
- com.google.analytics.admin.v1alpha.AndroidAppDataStream value) {
- if (androidAppDataStreamBuilder_ == null) {
- if (androidAppDataStream_ != null) {
- androidAppDataStream_ =
- com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder(
- androidAppDataStream_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- androidAppDataStream_ = value;
- }
- onChanged();
- } else {
- androidAppDataStreamBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder clearAndroidAppDataStream() {
- if (androidAppDataStreamBuilder_ == null) {
- androidAppDataStream_ = null;
- onChanged();
- } else {
- androidAppDataStream_ = null;
- androidAppDataStreamBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder
- getAndroidAppDataStreamBuilder() {
-
- onChanged();
- return getAndroidAppDataStreamFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
- getAndroidAppDataStreamOrBuilder() {
- if (androidAppDataStreamBuilder_ != null) {
- return androidAppDataStreamBuilder_.getMessageOrBuilder();
- } else {
- return androidAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()
- : androidAppDataStream_;
- }
- }
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.analytics.admin.v1alpha.AndroidAppDataStream,
- com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder,
- com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>
- getAndroidAppDataStreamFieldBuilder() {
- if (androidAppDataStreamBuilder_ == null) {
- androidAppDataStreamBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.analytics.admin.v1alpha.AndroidAppDataStream,
- com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder,
- com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>(
- getAndroidAppDataStream(), getParentForChildren(), isClean());
- androidAppDataStream_ = null;
- }
- return androidAppDataStreamBuilder_;
- }
-
- private java.lang.Object parent_ = "";
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The parent.
- */
- public java.lang.String getParent() {
- java.lang.Object ref = parent_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- parent_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for parent.
- */
- public com.google.protobuf.ByteString getParentBytes() {
- java.lang.Object ref = parent_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- parent_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The parent to set.
- * @return This builder for chaining.
- */
- public Builder setParent(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- parent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearParent() {
-
- parent_ = getDefaultInstance().getParent();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The bytes for parent to set.
- * @return This builder for chaining.
- */
- public Builder setParentBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- parent_ = 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.admin.v1alpha.CreateAndroidAppDataStreamRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest)
- private static final com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest();
- }
-
- public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser- * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the androidAppDataStream field is set.
- */
- boolean hasAndroidAppDataStream();
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The androidAppDataStream.
- */
- com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream();
- /**
- *
- *
- * - * Required. The android app stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder
- getAndroidAppDataStreamOrBuilder();
-
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The parent.
- */
- java.lang.String getParent();
- /**
- *
- *
- * - * Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for parent.
- */
- com.google.protobuf.ByteString getParentBytes();
-}
diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java
deleted file mode 100644
index 744017da..00000000
--- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java
+++ /dev/null
@@ -1,972 +0,0 @@
-/*
- * 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/admin/v1alpha/analytics_admin.proto
-
-package com.google.analytics.admin.v1alpha;
-
-/**
- *
- *
- * - * Request message for CreateIosAppDataStream RPC. - *- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ -public final class CreateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - CreateIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateIosAppDataStreamRequest.newBuilder() to construct. - private CreateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { - super(builder); - } - - private CreateIosAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateIosAppDataStreamRequest( - 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.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; - if (iosAppDataStream_ != null) { - subBuilder = iosAppDataStream_.toBuilder(); - } - iosAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(iosAppDataStream_); - iosAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); - } - - public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - /** - * - * - *
- * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the iosAppDataStream field is set.
- */
- @java.lang.Override
- public boolean hasIosAppDataStream() {
- return iosAppDataStream_ != null;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The iosAppDataStream.
- */
- @java.lang.Override
- public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() {
- return iosAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()
- : iosAppDataStream_;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- @java.lang.Override
- public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder
- getIosAppDataStreamOrBuilder() {
- return getIosAppDataStream();
- }
-
- public static final int PARENT_FIELD_NUMBER = 2;
- private volatile java.lang.Object parent_;
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The parent.
- */
- @java.lang.Override
- public java.lang.String getParent() {
- java.lang.Object ref = parent_;
- 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();
- parent_ = s;
- return s;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for parent.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getParentBytes() {
- java.lang.Object ref = parent_;
- if (ref instanceof java.lang.String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- parent_ = 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 (iosAppDataStream_ != null) {
- output.writeMessage(1, getIosAppDataStream());
- }
- if (!getParentBytes().isEmpty()) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_);
- }
- unknownFields.writeTo(output);
- }
-
- @java.lang.Override
- public int getSerializedSize() {
- int size = memoizedSize;
- if (size != -1) return size;
-
- size = 0;
- if (iosAppDataStream_ != null) {
- size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream());
- }
- if (!getParentBytes().isEmpty()) {
- size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_);
- }
- 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.admin.v1alpha.CreateIosAppDataStreamRequest)) {
- return super.equals(obj);
- }
- com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other =
- (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) obj;
-
- if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false;
- if (hasIosAppDataStream()) {
- if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false;
- }
- if (!getParent().equals(other.getParent())) 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 (hasIosAppDataStream()) {
- hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER;
- hash = (53 * hash) + getIosAppDataStream().hashCode();
- }
- hash = (37 * hash) + PARENT_FIELD_NUMBER;
- hash = (53 * hash) + getParent().hashCode();
- hash = (29 * hash) + unknownFields.hashCode();
- memoizedHashCode = hash;
- return hash;
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return PARSER.parseFrom(data, extensionRegistry);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.admin.v1alpha.CreateIosAppDataStreamRequest parseDelimitedFrom(
- java.io.InputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom(
- com.google.protobuf.CodedInputStream input) throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.admin.v1alpha.CreateIosAppDataStreamRequest prototype) {
- return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
- }
-
- @java.lang.Override
- public Builder toBuilder() {
- return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
- }
-
- @java.lang.Override
- protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
- Builder builder = new Builder(parent);
- return builder;
- }
- /**
- *
- *
- * - * Request message for CreateIosAppDataStream RPC. - *- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
- * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return Whether the iosAppDataStream field is set.
- */
- public boolean hasIosAppDataStream() {
- return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- *
- * @return The iosAppDataStream.
- */
- public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() {
- if (iosAppDataStreamBuilder_ == null) {
- return iosAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()
- : iosAppDataStream_;
- } else {
- return iosAppDataStreamBuilder_.getMessage();
- }
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) {
- if (iosAppDataStreamBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- iosAppDataStream_ = value;
- onChanged();
- } else {
- iosAppDataStreamBuilder_.setMessage(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder setIosAppDataStream(
- com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) {
- if (iosAppDataStreamBuilder_ == null) {
- iosAppDataStream_ = builderForValue.build();
- onChanged();
- } else {
- iosAppDataStreamBuilder_.setMessage(builderForValue.build());
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder mergeIosAppDataStream(
- com.google.analytics.admin.v1alpha.IosAppDataStream value) {
- if (iosAppDataStreamBuilder_ == null) {
- if (iosAppDataStream_ != null) {
- iosAppDataStream_ =
- com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_)
- .mergeFrom(value)
- .buildPartial();
- } else {
- iosAppDataStream_ = value;
- }
- onChanged();
- } else {
- iosAppDataStreamBuilder_.mergeFrom(value);
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public Builder clearIosAppDataStream() {
- if (iosAppDataStreamBuilder_ == null) {
- iosAppDataStream_ = null;
- onChanged();
- } else {
- iosAppDataStream_ = null;
- iosAppDataStreamBuilder_ = null;
- }
-
- return this;
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder
- getIosAppDataStreamBuilder() {
-
- onChanged();
- return getIosAppDataStreamFieldBuilder().getBuilder();
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder
- getIosAppDataStreamOrBuilder() {
- if (iosAppDataStreamBuilder_ != null) {
- return iosAppDataStreamBuilder_.getMessageOrBuilder();
- } else {
- return iosAppDataStream_ == null
- ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()
- : iosAppDataStream_;
- }
- }
- /**
- *
- *
- * - * Required. The iOS app data stream to create. - *- * - *
- * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED];
- *
- */
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.analytics.admin.v1alpha.IosAppDataStream,
- com.google.analytics.admin.v1alpha.IosAppDataStream.Builder,
- com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>
- getIosAppDataStreamFieldBuilder() {
- if (iosAppDataStreamBuilder_ == null) {
- iosAppDataStreamBuilder_ =
- new com.google.protobuf.SingleFieldBuilderV3<
- com.google.analytics.admin.v1alpha.IosAppDataStream,
- com.google.analytics.admin.v1alpha.IosAppDataStream.Builder,
- com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>(
- getIosAppDataStream(), getParentForChildren(), isClean());
- iosAppDataStream_ = null;
- }
- return iosAppDataStreamBuilder_;
- }
-
- private java.lang.Object parent_ = "";
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The parent.
- */
- public java.lang.String getParent() {
- java.lang.Object ref = parent_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- parent_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return The bytes for parent.
- */
- public com.google.protobuf.ByteString getParentBytes() {
- java.lang.Object ref = parent_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- parent_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
- }
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The parent to set.
- * @return This builder for chaining.
- */
- public Builder setParent(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- parent_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @return This builder for chaining.
- */
- public Builder clearParent() {
-
- parent_ = getDefaultInstance().getParent();
- onChanged();
- return this;
- }
- /**
- *
- *
- * - * Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - *- * - *
- * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
- *
- *
- * @param value The bytes for parent to set.
- * @return This builder for chaining.
- */
- public Builder setParentBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- parent_ = 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.admin.v1alpha.CreateIosAppDataStreamRequest)
- }
-
- // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest)
- private static final com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest
- DEFAULT_INSTANCE;
-
- static {
- DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest();
- }
-
- public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest
- getDefaultInstance() {
- return DEFAULT_INSTANCE;
- }
-
- private static final com.google.protobuf.Parser