diff --git a/.github/workflows/hermetic_library_generation.yaml b/.github/workflows/hermetic_library_generation.yaml index 31a38fbb06be..8c3df5194ac4 100644 --- a/.github/workflows/hermetic_library_generation.yaml +++ b/.github/workflows/hermetic_library_generation.yaml @@ -37,7 +37,7 @@ jobs: with: fetch-depth: 0 token: ${{ secrets.CLOUD_JAVA_BOT_TOKEN }} - - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.1 + - uses: googleapis/sdk-platform-java/.github/scripts@v2.64.2 if: env.SHOULD_RUN == 'true' with: base_ref: ${{ github.base_ref }} diff --git a/generation_config.yaml b/generation_config.yaml index 4de31477e58a..90119750970a 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ -gapic_generator_version: 2.64.1 -googleapis_commitish: c9578f6385fe0fb9067c5dba8d7cdda39efac0ff +gapic_generator_version: 2.64.2 +googleapis_commitish: 05f65958eb7f2a8bc59db87ad40487f0fb093097 libraries_bom_version: 26.72.0 # the libraries are ordered with respect to library name, which is diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java index 46ba651aa350..01c33a7ba335 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -120,6 +121,132 @@ * * * + * + *

CreateAdUnit + *

API to create an `AdUnit` object. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

UpdateAdUnit + *

API to update an `AdUnit` object. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

BatchCreateAdUnits + *

API to batch create `AdUnit` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

BatchUpdateAdUnits + *

API to batch update `AdUnit` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

BatchActivateAdUnits + *

API to batch activate `AdUnit` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

BatchDeactivateAdUnits + *

Deactivates a list of `AdUnit` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * + * + *

BatchArchiveAdUnits + *

Archives a list of `AdUnit` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ * + *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ * + *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ * + * + * * * *

See the individual methods for example code. @@ -668,6 +795,851 @@ public final ListAdUnitSizesPagedResponse listAdUnitSizes(ListAdUnitSizesRequest return stub.listAdUnitSizesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   AdUnit adUnit = AdUnit.newBuilder().build();
+   *   AdUnit response = adUnitServiceClient.createAdUnit(parent, adUnit);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `AdUnit` will be created. Format: + * `networks/{network_code}` + * @param adUnit Required. The `AdUnit` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdUnit createAdUnit(NetworkName parent, AdUnit adUnit) { + CreateAdUnitRequest request = + CreateAdUnitRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAdUnit(adUnit) + .build(); + return createAdUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   AdUnit adUnit = AdUnit.newBuilder().build();
+   *   AdUnit response = adUnitServiceClient.createAdUnit(parent, adUnit);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `AdUnit` will be created. Format: + * `networks/{network_code}` + * @param adUnit Required. The `AdUnit` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdUnit createAdUnit(String parent, AdUnit adUnit) { + CreateAdUnitRequest request = + CreateAdUnitRequest.newBuilder().setParent(parent).setAdUnit(adUnit).build(); + return createAdUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   CreateAdUnitRequest request =
+   *       CreateAdUnitRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setAdUnit(AdUnit.newBuilder().build())
+   *           .build();
+   *   AdUnit response = adUnitServiceClient.createAdUnit(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 AdUnit createAdUnit(CreateAdUnitRequest request) { + return createAdUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   CreateAdUnitRequest request =
+   *       CreateAdUnitRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setAdUnit(AdUnit.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = adUnitServiceClient.createAdUnitCallable().futureCall(request);
+   *   // Do something.
+   *   AdUnit response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAdUnitCallable() { + return stub.createAdUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   AdUnit adUnit = AdUnit.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AdUnit response = adUnitServiceClient.updateAdUnit(adUnit, updateMask);
+   * }
+   * }
+ * + * @param adUnit Required. The `AdUnit` to update. + *

The `AdUnit`'s name is used to identify the `AdUnit` to update. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AdUnit updateAdUnit(AdUnit adUnit, FieldMask updateMask) { + UpdateAdUnitRequest request = + UpdateAdUnitRequest.newBuilder().setAdUnit(adUnit).setUpdateMask(updateMask).build(); + return updateAdUnit(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   UpdateAdUnitRequest request =
+   *       UpdateAdUnitRequest.newBuilder()
+   *           .setAdUnit(AdUnit.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AdUnit response = adUnitServiceClient.updateAdUnit(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 AdUnit updateAdUnit(UpdateAdUnitRequest request) { + return updateAdUnitCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update an `AdUnit` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   UpdateAdUnitRequest request =
+   *       UpdateAdUnitRequest.newBuilder()
+   *           .setAdUnit(AdUnit.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future = adUnitServiceClient.updateAdUnitCallable().futureCall(request);
+   *   // Do something.
+   *   AdUnit response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAdUnitCallable() { + return stub.updateAdUnitCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreateAdUnitsResponse response =
+   *       adUnitServiceClient.batchCreateAdUnits(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `AdUnits` will be created. Format: + * `networks/{network_code}` The parent field in the CreateAdUnitRequest must match this + * field. + * @param requests Required. The `AdUnit` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateAdUnitsResponse batchCreateAdUnits( + NetworkName parent, List requests) { + BatchCreateAdUnitsRequest request = + BatchCreateAdUnitsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreateAdUnitsResponse response =
+   *       adUnitServiceClient.batchCreateAdUnits(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `AdUnits` will be created. Format: + * `networks/{network_code}` The parent field in the CreateAdUnitRequest must match this + * field. + * @param requests Required. The `AdUnit` objects to create. A maximum of 100 objects can be + * created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateAdUnitsResponse batchCreateAdUnits( + String parent, List requests) { + BatchCreateAdUnitsRequest request = + BatchCreateAdUnitsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchCreateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchCreateAdUnitsRequest request =
+   *       BatchCreateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateAdUnitsResponse response = adUnitServiceClient.batchCreateAdUnits(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 BatchCreateAdUnitsResponse batchCreateAdUnits(BatchCreateAdUnitsRequest request) { + return batchCreateAdUnitsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchCreateAdUnitsRequest request =
+   *       BatchCreateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adUnitServiceClient.batchCreateAdUnitsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchCreateAdUnitsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchCreateAdUnitsCallable() { + return stub.batchCreateAdUnitsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateAdUnitsResponse response =
+   *       adUnitServiceClient.batchUpdateAdUnits(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `AdUnits` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateAdUnitRequest must match this + * field. + * @param requests Required. The `AdUnit` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateAdUnitsResponse batchUpdateAdUnits( + NetworkName parent, List requests) { + BatchUpdateAdUnitsRequest request = + BatchUpdateAdUnitsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateAdUnitsResponse response =
+   *       adUnitServiceClient.batchUpdateAdUnits(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `AdUnits` will be updated. Format: + * `networks/{network_code}` The parent field in the UpdateAdUnitRequest must match this + * field. + * @param requests Required. The `AdUnit` objects to update. A maximum of 100 objects can be + * updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateAdUnitsResponse batchUpdateAdUnits( + String parent, List requests) { + BatchUpdateAdUnitsRequest request = + BatchUpdateAdUnitsRequest.newBuilder().setParent(parent).addAllRequests(requests).build(); + return batchUpdateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchUpdateAdUnitsRequest request =
+   *       BatchUpdateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateAdUnitsResponse response = adUnitServiceClient.batchUpdateAdUnits(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 BatchUpdateAdUnitsResponse batchUpdateAdUnits(BatchUpdateAdUnitsRequest request) { + return batchUpdateAdUnitsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchUpdateAdUnitsRequest request =
+   *       BatchUpdateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adUnitServiceClient.batchUpdateAdUnitsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchUpdateAdUnitsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchUpdateAdUnitsCallable() { + return stub.batchUpdateAdUnitsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchActivateAdUnitsResponse response =
+   *       adUnitServiceClient.batchActivateAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to activate. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateAdUnitsResponse batchActivateAdUnits( + NetworkName parent, List names) { + BatchActivateAdUnitsRequest request = + BatchActivateAdUnitsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchActivateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchActivateAdUnitsResponse response =
+   *       adUnitServiceClient.batchActivateAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to activate. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateAdUnitsResponse batchActivateAdUnits( + String parent, List names) { + BatchActivateAdUnitsRequest request = + BatchActivateAdUnitsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchActivateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchActivateAdUnitsRequest request =
+   *       BatchActivateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchActivateAdUnitsResponse response = adUnitServiceClient.batchActivateAdUnits(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 BatchActivateAdUnitsResponse batchActivateAdUnits( + BatchActivateAdUnitsRequest request) { + return batchActivateAdUnitsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchActivateAdUnitsRequest request =
+   *       BatchActivateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adUnitServiceClient.batchActivateAdUnitsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchActivateAdUnitsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchActivateAdUnitsCallable() { + return stub.batchActivateAdUnitsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateAdUnitsResponse response =
+   *       adUnitServiceClient.batchDeactivateAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to deactivate. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateAdUnitsResponse batchDeactivateAdUnits( + NetworkName parent, List names) { + BatchDeactivateAdUnitsRequest request = + BatchDeactivateAdUnitsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateAdUnitsResponse response =
+   *       adUnitServiceClient.batchDeactivateAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to deactivate. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateAdUnitsResponse batchDeactivateAdUnits( + String parent, List names) { + BatchDeactivateAdUnitsRequest request = + BatchDeactivateAdUnitsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchDeactivateAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchDeactivateAdUnitsRequest request =
+   *       BatchDeactivateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchDeactivateAdUnitsResponse response = adUnitServiceClient.batchDeactivateAdUnits(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 BatchDeactivateAdUnitsResponse batchDeactivateAdUnits( + BatchDeactivateAdUnitsRequest request) { + return batchDeactivateAdUnitsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchDeactivateAdUnitsRequest request =
+   *       BatchDeactivateAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adUnitServiceClient.batchDeactivateAdUnitsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchDeactivateAdUnitsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchDeactivateAdUnitsCallable() { + return stub.batchDeactivateAdUnitsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to archive. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchArchiveAdUnitsResponse batchArchiveAdUnits( + NetworkName parent, List names) { + BatchArchiveAdUnitsRequest request = + BatchArchiveAdUnitsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchArchiveAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `AdUnit`s to archive. Format: + * `networks/{network_code}/adUnits/{ad_unit_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchArchiveAdUnitsResponse batchArchiveAdUnits(String parent, List names) { + BatchArchiveAdUnitsRequest request = + BatchArchiveAdUnitsRequest.newBuilder().setParent(parent).addAllNames(names).build(); + return batchArchiveAdUnits(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchArchiveAdUnitsRequest request =
+   *       BatchArchiveAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(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 BatchArchiveAdUnitsResponse batchArchiveAdUnits(BatchArchiveAdUnitsRequest request) { + return batchArchiveAdUnitsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a list of `AdUnit` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) {
+   *   BatchArchiveAdUnitsRequest request =
+   *       BatchArchiveAdUnitsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       adUnitServiceClient.batchArchiveAdUnitsCallable().futureCall(request);
+   *   // Do something.
+   *   BatchArchiveAdUnitsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + batchArchiveAdUnitsCallable() { + return stub.batchArchiveAdUnitsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java index 6ea18872a78a..ddba202d8605 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/AdUnitServiceSettings.java @@ -104,6 +104,46 @@ public UnaryCallSettings getAdUnitSettings() { return ((AdUnitServiceStubSettings) getStubSettings()).listAdUnitSizesSettings(); } + /** Returns the object with the settings used for calls to createAdUnit. */ + public UnaryCallSettings createAdUnitSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).createAdUnitSettings(); + } + + /** Returns the object with the settings used for calls to updateAdUnit. */ + public UnaryCallSettings updateAdUnitSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).updateAdUnitSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateAdUnits. */ + public UnaryCallSettings + batchCreateAdUnitsSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).batchCreateAdUnitsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateAdUnits. */ + public UnaryCallSettings + batchUpdateAdUnitsSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).batchUpdateAdUnitsSettings(); + } + + /** Returns the object with the settings used for calls to batchActivateAdUnits. */ + public UnaryCallSettings + batchActivateAdUnitsSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).batchActivateAdUnitsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivateAdUnits. */ + public UnaryCallSettings + batchDeactivateAdUnitsSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).batchDeactivateAdUnitsSettings(); + } + + /** Returns the object with the settings used for calls to batchArchiveAdUnits. */ + public UnaryCallSettings + batchArchiveAdUnitsSettings() { + return ((AdUnitServiceStubSettings) getStubSettings()).batchArchiveAdUnitsSettings(); + } + public static final AdUnitServiceSettings create(AdUnitServiceStubSettings stub) throws IOException { return new AdUnitServiceSettings.Builder(stub.toBuilder()).build(); @@ -220,6 +260,46 @@ public UnaryCallSettings.Builder getAdUnitSettings() { return getStubSettingsBuilder().listAdUnitSizesSettings(); } + /** Returns the builder for the settings used for calls to createAdUnit. */ + public UnaryCallSettings.Builder createAdUnitSettings() { + return getStubSettingsBuilder().createAdUnitSettings(); + } + + /** Returns the builder for the settings used for calls to updateAdUnit. */ + public UnaryCallSettings.Builder updateAdUnitSettings() { + return getStubSettingsBuilder().updateAdUnitSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateAdUnits. */ + public UnaryCallSettings.Builder + batchCreateAdUnitsSettings() { + return getStubSettingsBuilder().batchCreateAdUnitsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateAdUnits. */ + public UnaryCallSettings.Builder + batchUpdateAdUnitsSettings() { + return getStubSettingsBuilder().batchUpdateAdUnitsSettings(); + } + + /** Returns the builder for the settings used for calls to batchActivateAdUnits. */ + public UnaryCallSettings.Builder + batchActivateAdUnitsSettings() { + return getStubSettingsBuilder().batchActivateAdUnitsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeactivateAdUnits. */ + public UnaryCallSettings.Builder + batchDeactivateAdUnitsSettings() { + return getStubSettingsBuilder().batchDeactivateAdUnitsSettings(); + } + + /** Returns the builder for the settings used for calls to batchArchiveAdUnits. */ + public UnaryCallSettings.Builder + batchArchiveAdUnitsSettings() { + return getStubSettingsBuilder().batchArchiveAdUnitsSettings(); + } + @Override public AdUnitServiceSettings build() throws IOException { return new AdUnitServiceSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java index 8194b6a0b12f..2e981d06726c 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CmsMetadataValueServiceClient.java @@ -65,7 +65,7 @@ * * *

GetCmsMetadataValue - *

API to retrieve a `CmsMetadataKey` object. + *

API to retrieve a `CmsMetadataValue` object. * *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

*
    @@ -198,7 +198,7 @@ public CmsMetadataValueServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * API to retrieve a `CmsMetadataValue` object. * *

    Sample code: * @@ -215,7 +215,7 @@ public CmsMetadataValueServiceStub getStub() { * } * } * - * @param name Required. The resource name of the CmsMetadataKey. Format: + * @param name Required. The resource name of the CmsMetadataValue. Format: * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -229,7 +229,7 @@ public final CmsMetadataValue getCmsMetadataValue(CmsMetadataValueName name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * API to retrieve a `CmsMetadataValue` object. * *

    Sample code: * @@ -246,7 +246,7 @@ public final CmsMetadataValue getCmsMetadataValue(CmsMetadataValueName name) { * } * } * - * @param name Required. The resource name of the CmsMetadataKey. Format: + * @param name Required. The resource name of the CmsMetadataValue. Format: * `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -258,7 +258,7 @@ public final CmsMetadataValue getCmsMetadataValue(String name) { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * API to retrieve a `CmsMetadataValue` object. * *

    Sample code: * @@ -287,7 +287,7 @@ public final CmsMetadataValue getCmsMetadataValue(GetCmsMetadataValueRequest req // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * API to retrieve a `CmsMetadataKey` object. + * API to retrieve a `CmsMetadataValue` object. * *

    Sample code: * diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java index 5ce3c0035f66..e6b976960a06 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClient.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.FieldMask; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -103,6 +104,113 @@ *

* * + * + *

CreateCustomTargetingKey + *

API to create a `CustomTargetingKey` object. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createCustomTargetingKey(CreateCustomTargetingKeyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createCustomTargetingKey(NetworkName parent, CustomTargetingKey customTargetingKey) + *

  • createCustomTargetingKey(String parent, CustomTargetingKey customTargetingKey) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createCustomTargetingKeyCallable() + *

+ * + * + * + *

BatchCreateCustomTargetingKeys + *

API to batch create `CustomTargetingKey` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • batchCreateCustomTargetingKeys(NetworkName parent, List<CreateCustomTargetingKeyRequest> requests) + *

  • batchCreateCustomTargetingKeys(String parent, List<CreateCustomTargetingKeyRequest> requests) + *

  • batchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • batchCreateCustomTargetingKeysCallable() + *

+ * + * + * + *

UpdateCustomTargetingKey + *

API to update a `CustomTargetingKey` object. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateCustomTargetingKey(UpdateCustomTargetingKeyRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateCustomTargetingKey(CustomTargetingKey customTargetingKey, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateCustomTargetingKeyCallable() + *

+ * + * + * + *

BatchUpdateCustomTargetingKeys + *

API to batch update `CustomTargetingKey` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • batchUpdateCustomTargetingKeys(NetworkName parent, List<UpdateCustomTargetingKeyRequest> requests) + *

  • batchUpdateCustomTargetingKeys(String parent, List<UpdateCustomTargetingKeyRequest> requests) + *

  • batchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • batchUpdateCustomTargetingKeysCallable() + *

+ * + * + * + *

BatchActivateCustomTargetingKeys + *

API to batch activate `CustomTargetingKey` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • batchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • batchActivateCustomTargetingKeys(NetworkName parent, List<String> names) + *

  • batchActivateCustomTargetingKeys(String parent, List<String> names) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • batchActivateCustomTargetingKeysCallable() + *

+ * + * + * + *

BatchDeactivateCustomTargetingKeys + *

Deactivates a list of `CustomTargetingKey` objects. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • batchDeactivateCustomTargetingKeys(BatchDeactivateCustomTargetingKeysRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • batchDeactivateCustomTargetingKeys(NetworkName parent, List<String> names) + *

  • batchDeactivateCustomTargetingKeys(String parent, List<String> names) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • batchDeactivateCustomTargetingKeysCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -508,6 +616,801 @@ public final ListCustomTargetingKeysPagedResponse listCustomTargetingKeys( return stub.listCustomTargetingKeysCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build();
+   *   CustomTargetingKey response =
+   *       customTargetingKeyServiceClient.createCustomTargetingKey(parent, customTargetingKey);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `CustomTargetingKey` will be created. + * Format: `networks/{network_code}` + * @param customTargetingKey Required. The `CustomTargetingKey` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetingKey createCustomTargetingKey( + NetworkName parent, CustomTargetingKey customTargetingKey) { + CreateCustomTargetingKeyRequest request = + CreateCustomTargetingKeyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomTargetingKey(customTargetingKey) + .build(); + return createCustomTargetingKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build();
+   *   CustomTargetingKey response =
+   *       customTargetingKeyServiceClient.createCustomTargetingKey(parent, customTargetingKey);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this `CustomTargetingKey` will be created. + * Format: `networks/{network_code}` + * @param customTargetingKey Required. The `CustomTargetingKey` to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetingKey createCustomTargetingKey( + String parent, CustomTargetingKey customTargetingKey) { + CreateCustomTargetingKeyRequest request = + CreateCustomTargetingKeyRequest.newBuilder() + .setParent(parent) + .setCustomTargetingKey(customTargetingKey) + .build(); + return createCustomTargetingKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   CreateCustomTargetingKeyRequest request =
+   *       CreateCustomTargetingKeyRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setCustomTargetingKey(CustomTargetingKey.newBuilder().build())
+   *           .build();
+   *   CustomTargetingKey response =
+   *       customTargetingKeyServiceClient.createCustomTargetingKey(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 CustomTargetingKey createCustomTargetingKey( + CreateCustomTargetingKeyRequest request) { + return createCustomTargetingKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to create a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   CreateCustomTargetingKeyRequest request =
+   *       CreateCustomTargetingKeyRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setCustomTargetingKey(CustomTargetingKey.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient.createCustomTargetingKeyCallable().futureCall(request);
+   *   // Do something.
+   *   CustomTargetingKey response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCustomTargetingKeyCallable() { + return stub.createCustomTargetingKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchCreateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomTargetingKeys` will be created. + * Format: `networks/{network_code}` The parent field in the CreateCustomTargetingKeyRequest + * must match this field. + * @param requests Required. The `CustomTargetingKey` objects to create. A maximum of 100 objects + * can be created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKeys( + NetworkName parent, List requests) { + BatchCreateCustomTargetingKeysRequest request = + BatchCreateCustomTargetingKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchCreateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchCreateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomTargetingKeys` will be created. + * Format: `networks/{network_code}` The parent field in the CreateCustomTargetingKeyRequest + * must match this field. + * @param requests Required. The `CustomTargetingKey` objects to create. A maximum of 100 objects + * can be created in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKeys( + String parent, List requests) { + BatchCreateCustomTargetingKeysRequest request = + BatchCreateCustomTargetingKeysRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchCreateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchCreateCustomTargetingKeysRequest request =
+   *       BatchCreateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchCreateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(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 BatchCreateCustomTargetingKeysResponse batchCreateCustomTargetingKeys( + BatchCreateCustomTargetingKeysRequest request) { + return batchCreateCustomTargetingKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch create `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchCreateCustomTargetingKeysRequest request =
+   *       BatchCreateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient
+   *           .batchCreateCustomTargetingKeysCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchCreateCustomTargetingKeysResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysCallable() { + return stub.batchCreateCustomTargetingKeysCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomTargetingKey response =
+   *       customTargetingKeyServiceClient.updateCustomTargetingKey(customTargetingKey, updateMask);
+   * }
+   * }
+ * + * @param customTargetingKey Required. The `CustomTargetingKey` to update. + *

The `CustomTargetingKey`'s `name` is used to identify the `CustomTargetingKey` to + * update. + * @param updateMask Required. The list of fields to update. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomTargetingKey updateCustomTargetingKey( + CustomTargetingKey customTargetingKey, FieldMask updateMask) { + UpdateCustomTargetingKeyRequest request = + UpdateCustomTargetingKeyRequest.newBuilder() + .setCustomTargetingKey(customTargetingKey) + .setUpdateMask(updateMask) + .build(); + return updateCustomTargetingKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   UpdateCustomTargetingKeyRequest request =
+   *       UpdateCustomTargetingKeyRequest.newBuilder()
+   *           .setCustomTargetingKey(CustomTargetingKey.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CustomTargetingKey response =
+   *       customTargetingKeyServiceClient.updateCustomTargetingKey(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 CustomTargetingKey updateCustomTargetingKey( + UpdateCustomTargetingKeyRequest request) { + return updateCustomTargetingKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to update a `CustomTargetingKey` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   UpdateCustomTargetingKeyRequest request =
+   *       UpdateCustomTargetingKeyRequest.newBuilder()
+   *           .setCustomTargetingKey(CustomTargetingKey.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient.updateCustomTargetingKeyCallable().futureCall(request);
+   *   // Do something.
+   *   CustomTargetingKey response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateCustomTargetingKeyCallable() { + return stub.updateCustomTargetingKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomTargetingKeys` will be updated. + * Format: `networks/{network_code}` The parent field in the UpdateCustomTargetingKeyRequest + * must match this field. + * @param requests Required. The `CustomTargetingKey` objects to update. A maximum of 100 objects + * can be updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKeys( + NetworkName parent, List requests) { + BatchUpdateCustomTargetingKeysRequest request = + BatchUpdateCustomTargetingKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllRequests(requests) + .build(); + return batchUpdateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List requests = new ArrayList<>();
+   *   BatchUpdateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(parent, requests);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where `CustomTargetingKeys` will be updated. + * Format: `networks/{network_code}` The parent field in the UpdateCustomTargetingKeyRequest + * must match this field. + * @param requests Required. The `CustomTargetingKey` objects to update. A maximum of 100 objects + * can be updated in a batch. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKeys( + String parent, List requests) { + BatchUpdateCustomTargetingKeysRequest request = + BatchUpdateCustomTargetingKeysRequest.newBuilder() + .setParent(parent) + .addAllRequests(requests) + .build(); + return batchUpdateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchUpdateCustomTargetingKeysRequest request =
+   *       BatchUpdateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   BatchUpdateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(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 BatchUpdateCustomTargetingKeysResponse batchUpdateCustomTargetingKeys( + BatchUpdateCustomTargetingKeysRequest request) { + return batchUpdateCustomTargetingKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch update `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchUpdateCustomTargetingKeysRequest request =
+   *       BatchUpdateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllRequests(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient
+   *           .batchUpdateCustomTargetingKeysCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchUpdateCustomTargetingKeysResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysCallable() { + return stub.batchUpdateCustomTargetingKeysCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchActivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomTargetingKey`s to activate. Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargetingKeys( + NetworkName parent, List names) { + BatchActivateCustomTargetingKeysRequest request = + BatchActivateCustomTargetingKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchActivateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchActivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomTargetingKey`s to activate. Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchActivateCustomTargetingKeysResponse batchActivateCustomTargetingKeys( + String parent, List names) { + BatchActivateCustomTargetingKeysRequest request = + BatchActivateCustomTargetingKeysRequest.newBuilder() + .setParent(parent) + .addAllNames(names) + .build(); + return batchActivateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchActivateCustomTargetingKeysRequest request =
+   *       BatchActivateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchActivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(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 BatchActivateCustomTargetingKeysResponse batchActivateCustomTargetingKeys( + BatchActivateCustomTargetingKeysRequest request) { + return batchActivateCustomTargetingKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to batch activate `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchActivateCustomTargetingKeysRequest request =
+   *       BatchActivateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient
+   *           .batchActivateCustomTargetingKeysCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchActivateCustomTargetingKeysResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysCallable() { + return stub.batchActivateCustomTargetingKeysCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomTargetingKey`s to deactivate. Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateCustomTargetingKeysResponse batchDeactivateCustomTargetingKeys( + NetworkName parent, List names) { + BatchDeactivateCustomTargetingKeysRequest request = + BatchDeactivateCustomTargetingKeysRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .addAllNames(names) + .build(); + return batchDeactivateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   List names = new ArrayList<>();
+   *   BatchDeactivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(parent, names);
+   * }
+   * }
+ * + * @param parent Required. Format: `networks/{network_code}` + * @param names Required. The resource names of the `CustomTargetingKey`s to deactivate. Format: + * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final BatchDeactivateCustomTargetingKeysResponse batchDeactivateCustomTargetingKeys( + String parent, List names) { + BatchDeactivateCustomTargetingKeysRequest request = + BatchDeactivateCustomTargetingKeysRequest.newBuilder() + .setParent(parent) + .addAllNames(names) + .build(); + return batchDeactivateCustomTargetingKeys(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchDeactivateCustomTargetingKeysRequest request =
+   *       BatchDeactivateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   BatchDeactivateCustomTargetingKeysResponse response =
+   *       customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(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 BatchDeactivateCustomTargetingKeysResponse batchDeactivateCustomTargetingKeys( + BatchDeactivateCustomTargetingKeysRequest request) { + return batchDeactivateCustomTargetingKeysCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deactivates a list of `CustomTargetingKey` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient =
+   *     CustomTargetingKeyServiceClient.create()) {
+   *   BatchDeactivateCustomTargetingKeysRequest request =
+   *       BatchDeactivateCustomTargetingKeysRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       customTargetingKeyServiceClient
+   *           .batchDeactivateCustomTargetingKeysCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BatchDeactivateCustomTargetingKeysResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysCallable() { + return stub.batchDeactivateCustomTargetingKeysCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java index b073614fe91a..8bf674cc52d2 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceSettings.java @@ -105,6 +105,52 @@ public class CustomTargetingKeyServiceSettings .listCustomTargetingKeysSettings(); } + /** Returns the object with the settings used for calls to createCustomTargetingKey. */ + public UnaryCallSettings + createCustomTargetingKeySettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .createCustomTargetingKeySettings(); + } + + /** Returns the object with the settings used for calls to batchCreateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .batchCreateCustomTargetingKeysSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomTargetingKey. */ + public UnaryCallSettings + updateCustomTargetingKeySettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .updateCustomTargetingKeySettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .batchUpdateCustomTargetingKeysSettings(); + } + + /** Returns the object with the settings used for calls to batchActivateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .batchActivateCustomTargetingKeysSettings(); + } + + /** Returns the object with the settings used for calls to batchDeactivateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings() { + return ((CustomTargetingKeyServiceStubSettings) getStubSettings()) + .batchDeactivateCustomTargetingKeysSettings(); + } + public static final CustomTargetingKeyServiceSettings create( CustomTargetingKeyServiceStubSettings stub) throws IOException { return new CustomTargetingKeyServiceSettings.Builder(stub.toBuilder()).build(); @@ -218,6 +264,48 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().listCustomTargetingKeysSettings(); } + /** Returns the builder for the settings used for calls to createCustomTargetingKey. */ + public UnaryCallSettings.Builder + createCustomTargetingKeySettings() { + return getStubSettingsBuilder().createCustomTargetingKeySettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings() { + return getStubSettingsBuilder().batchCreateCustomTargetingKeysSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomTargetingKey. */ + public UnaryCallSettings.Builder + updateCustomTargetingKeySettings() { + return getStubSettingsBuilder().updateCustomTargetingKeySettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings() { + return getStubSettingsBuilder().batchUpdateCustomTargetingKeysSettings(); + } + + /** Returns the builder for the settings used for calls to batchActivateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings() { + return getStubSettingsBuilder().batchActivateCustomTargetingKeysSettings(); + } + + /** + * Returns the builder for the settings used for calls to batchDeactivateCustomTargetingKeys. + */ + public UnaryCallSettings.Builder< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings() { + return getStubSettingsBuilder().batchDeactivateCustomTargetingKeysSettings(); + } + @Override public CustomTargetingKeyServiceSettings build() throws IOException { return new CustomTargetingKeyServiceSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java new file mode 100644 index 000000000000..0e2c26449be4 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceClient.java @@ -0,0 +1,586 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import com.google.ads.admanager.v1.stub.LineItemServiceStub; +import com.google.ads.admanager.v1.stub.LineItemServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Provides methods for handling `LineItem` objects. + * + *

This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+ *   LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]");
+ *   LineItem response = lineItemServiceClient.getLineItem(name);
+ * }
+ * }
+ * + *

Note: close() needs to be called on the LineItemServiceClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
Methods
MethodDescriptionMethod Variants

GetLineItem

API to retrieve a `LineItem` object.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLineItem(GetLineItemRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getLineItem(LineItemName name) + *

  • getLineItem(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLineItemCallable() + *

+ *

ListLineItems

API to retrieve a list of `LineItem` objects.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLineItems(ListLineItemsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listLineItems(NetworkName parent) + *

  • listLineItems(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLineItemsPagedCallable() + *

  • listLineItemsCallable() + *

+ *
+ * + *

See the individual methods for example code. + * + *

Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

This class can be customized by passing in a custom instance of LineItemServiceSettings to + * create(). For example: + * + *

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LineItemServiceSettings lineItemServiceSettings =
+ *     LineItemServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * LineItemServiceClient lineItemServiceClient =
+ *     LineItemServiceClient.create(lineItemServiceSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LineItemServiceSettings lineItemServiceSettings =
+ *     LineItemServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * LineItemServiceClient lineItemServiceClient =
+ *     LineItemServiceClient.create(lineItemServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class LineItemServiceClient implements BackgroundResource { + private final LineItemServiceSettings settings; + private final LineItemServiceStub stub; + + /** Constructs an instance of LineItemServiceClient with default settings. */ + public static final LineItemServiceClient create() throws IOException { + return create(LineItemServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of LineItemServiceClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final LineItemServiceClient create(LineItemServiceSettings settings) + throws IOException { + return new LineItemServiceClient(settings); + } + + /** + * Constructs an instance of LineItemServiceClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(LineItemServiceSettings). + */ + public static final LineItemServiceClient create(LineItemServiceStub stub) { + return new LineItemServiceClient(stub); + } + + /** + * Constructs an instance of LineItemServiceClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected LineItemServiceClient(LineItemServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((LineItemServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected LineItemServiceClient(LineItemServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final LineItemServiceSettings getSettings() { + return settings; + } + + public LineItemServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `LineItem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]");
+   *   LineItem response = lineItemServiceClient.getLineItem(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the LineItem. Format: + * `networks/{network_code}/lineItems/{line_item_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineItem getLineItem(LineItemName name) { + GetLineItemRequest request = + GetLineItemRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getLineItem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `LineItem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   String name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString();
+   *   LineItem response = lineItemServiceClient.getLineItem(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the LineItem. Format: + * `networks/{network_code}/lineItems/{line_item_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final LineItem getLineItem(String name) { + GetLineItemRequest request = GetLineItemRequest.newBuilder().setName(name).build(); + return getLineItem(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `LineItem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   GetLineItemRequest request =
+   *       GetLineItemRequest.newBuilder()
+   *           .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString())
+   *           .build();
+   *   LineItem response = lineItemServiceClient.getLineItem(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 LineItem getLineItem(GetLineItemRequest request) { + return getLineItemCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a `LineItem` object. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   GetLineItemRequest request =
+   *       GetLineItemRequest.newBuilder()
+   *           .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString())
+   *           .build();
+   *   ApiFuture future = lineItemServiceClient.getLineItemCallable().futureCall(request);
+   *   // Do something.
+   *   LineItem response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLineItemCallable() { + return stub.getLineItemCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `LineItem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   NetworkName parent = NetworkName.of("[NETWORK_CODE]");
+   *   for (LineItem element : lineItemServiceClient.listLineItems(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of LineItems. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLineItemsPagedResponse listLineItems(NetworkName parent) { + ListLineItemsRequest request = + ListLineItemsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listLineItems(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `LineItem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   String parent = NetworkName.of("[NETWORK_CODE]").toString();
+   *   for (LineItem element : lineItemServiceClient.listLineItems(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent, which owns this collection of LineItems. Format: + * `networks/{network_code}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListLineItemsPagedResponse listLineItems(String parent) { + ListLineItemsRequest request = ListLineItemsRequest.newBuilder().setParent(parent).build(); + return listLineItems(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `LineItem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   ListLineItemsRequest request =
+   *       ListLineItemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   for (LineItem element : lineItemServiceClient.listLineItems(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @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 ListLineItemsPagedResponse listLineItems(ListLineItemsRequest request) { + return listLineItemsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `LineItem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   ListLineItemsRequest request =
+   *       ListLineItemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   ApiFuture future =
+   *       lineItemServiceClient.listLineItemsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (LineItem element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLineItemsPagedCallable() { + return stub.listLineItemsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve a list of `LineItem` objects. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+   *   ListLineItemsRequest request =
+   *       ListLineItemsRequest.newBuilder()
+   *           .setParent(NetworkName.of("[NETWORK_CODE]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListLineItemsResponse response =
+   *         lineItemServiceClient.listLineItemsCallable().call(request);
+   *     for (LineItem element : response.getLineItemsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLineItemsCallable() { + return stub.listLineItemsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListLineItemsPagedResponse + extends AbstractPagedListResponse< + ListLineItemsRequest, + ListLineItemsResponse, + LineItem, + ListLineItemsPage, + ListLineItemsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLineItemsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLineItemsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLineItemsPagedResponse(ListLineItemsPage page) { + super(page, ListLineItemsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLineItemsPage + extends AbstractPage< + ListLineItemsRequest, ListLineItemsResponse, LineItem, ListLineItemsPage> { + + private ListLineItemsPage( + PageContext context, + ListLineItemsResponse response) { + super(context, response); + } + + private static ListLineItemsPage createEmptyPage() { + return new ListLineItemsPage(null, null); + } + + @Override + protected ListLineItemsPage createPage( + PageContext context, + ListLineItemsResponse response) { + return new ListLineItemsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLineItemsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLineItemsRequest, + ListLineItemsResponse, + LineItem, + ListLineItemsPage, + ListLineItemsFixedSizeCollection> { + + private ListLineItemsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLineItemsFixedSizeCollection createEmptyCollection() { + return new ListLineItemsFixedSizeCollection(null, 0); + } + + @Override + protected ListLineItemsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLineItemsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java new file mode 100644 index 000000000000..bd9eca7099f3 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/LineItemServiceSettings.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import static com.google.ads.admanager.v1.LineItemServiceClient.ListLineItemsPagedResponse; + +import com.google.ads.admanager.v1.stub.LineItemServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LineItemServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getLineItem: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LineItemServiceSettings.Builder lineItemServiceSettingsBuilder =
+ *     LineItemServiceSettings.newBuilder();
+ * lineItemServiceSettingsBuilder
+ *     .getLineItemSettings()
+ *     .setRetrySettings(
+ *         lineItemServiceSettingsBuilder
+ *             .getLineItemSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * LineItemServiceSettings lineItemServiceSettings = lineItemServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class LineItemServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getLineItem. */ + public UnaryCallSettings getLineItemSettings() { + return ((LineItemServiceStubSettings) getStubSettings()).getLineItemSettings(); + } + + /** Returns the object with the settings used for calls to listLineItems. */ + public PagedCallSettings + listLineItemsSettings() { + return ((LineItemServiceStubSettings) getStubSettings()).listLineItemsSettings(); + } + + public static final LineItemServiceSettings create(LineItemServiceStubSettings stub) + throws IOException { + return new LineItemServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return LineItemServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return LineItemServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return LineItemServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return LineItemServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return LineItemServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return LineItemServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return LineItemServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LineItemServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for LineItemServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(LineItemServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(LineItemServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(LineItemServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(LineItemServiceStubSettings.newBuilder()); + } + + public LineItemServiceStubSettings.Builder getStubSettingsBuilder() { + return ((LineItemServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getLineItem. */ + public UnaryCallSettings.Builder getLineItemSettings() { + return getStubSettingsBuilder().getLineItemSettings(); + } + + /** Returns the builder for the settings used for calls to listLineItems. */ + public PagedCallSettings.Builder< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse> + listLineItemsSettings() { + return getStubSettingsBuilder().listLineItemsSettings(); + } + + @Override + public LineItemServiceSettings build() throws IOException { + return new LineItemServiceSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java index 78450c1e24a2..982035c65443 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceClient.java @@ -18,9 +18,17 @@ import com.google.ads.admanager.v1.stub.NetworkServiceStub; import com.google.ads.admanager.v1.stub.NetworkServiceStubSettings; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; import java.io.IOException; +import java.util.List; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; @@ -82,6 +90,7 @@ * *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

*
    + *
  • listNetworksPagedCallable() *

  • listNetworksCallable() *

* @@ -298,16 +307,23 @@ public final UnaryCallable getNetworkCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) { - * ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); - * ListNetworksResponse response = networkServiceClient.listNetworks(request); + * ListNetworksRequest request = + * ListNetworksRequest.newBuilder() + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setSkip(3532159) + * .build(); + * for (Network element : networkServiceClient.listNetworks(request).iterateAll()) { + * // doThingsWith(element); + * } * } * } * * @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 ListNetworksResponse listNetworks(ListNetworksRequest request) { - return listNetworksCallable().call(request); + public final ListNetworksPagedResponse listNetworks(ListNetworksRequest request) { + return listNetworksPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -323,11 +339,57 @@ public final ListNetworksResponse listNetworks(ListNetworksRequest request) { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) { - * ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); - * ApiFuture future = - * networkServiceClient.listNetworksCallable().futureCall(request); + * ListNetworksRequest request = + * ListNetworksRequest.newBuilder() + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") + * .setSkip(3532159) + * .build(); + * ApiFuture future = + * networkServiceClient.listNetworksPagedCallable().futureCall(request); * // Do something. - * ListNetworksResponse response = future.get(); + * for (Network element : future.get().iterateAll()) { + * // doThingsWith(element); + * } + * } + * } + */ + public final UnaryCallable + listNetworksPagedCallable() { + return stub.listNetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * API to retrieve all the networks the current user has access to. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) {
+   *   ListNetworksRequest request =
+   *       ListNetworksRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setSkip(3532159)
+   *           .build();
+   *   while (true) {
+   *     ListNetworksResponse response = networkServiceClient.listNetworksCallable().call(request);
+   *     for (Network element : response.getNetworksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
    * }
    * }
*/ @@ -364,4 +426,79 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListNetworksPagedResponse + extends AbstractPagedListResponse< + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, + ListNetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListNetworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListNetworksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListNetworksPagedResponse(ListNetworksPage page) { + super(page, ListNetworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListNetworksPage + extends AbstractPage { + + private ListNetworksPage( + PageContext context, + ListNetworksResponse response) { + super(context, response); + } + + private static ListNetworksPage createEmptyPage() { + return new ListNetworksPage(null, null); + } + + @Override + protected ListNetworksPage createPage( + PageContext context, + ListNetworksResponse response) { + return new ListNetworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListNetworksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListNetworksRequest, + ListNetworksResponse, + Network, + ListNetworksPage, + ListNetworksFixedSizeCollection> { + + private ListNetworksFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListNetworksFixedSizeCollection createEmptyCollection() { + return new ListNetworksFixedSizeCollection(null, 0); + } + + @Override + protected ListNetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListNetworksFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java index 2741d1372b59..0bde1e060440 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/NetworkServiceSettings.java @@ -16,6 +16,8 @@ package com.google.ads.admanager.v1; +import static com.google.ads.admanager.v1.NetworkServiceClient.ListNetworksPagedResponse; + import com.google.ads.admanager.v1.stub.NetworkServiceStubSettings; import com.google.api.core.ApiFunction; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -24,6 +26,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import java.io.IOException; @@ -89,7 +92,8 @@ public UnaryCallSettings getNetworkSettings() { } /** Returns the object with the settings used for calls to listNetworks. */ - public UnaryCallSettings listNetworksSettings() { + public PagedCallSettings + listNetworksSettings() { return ((NetworkServiceStubSettings) getStubSettings()).listNetworksSettings(); } @@ -196,7 +200,8 @@ public UnaryCallSettings.Builder getNetworkSettings( } /** Returns the builder for the settings used for calls to listNetworks. */ - public UnaryCallSettings.Builder + public PagedCallSettings.Builder< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> listNetworksSettings() { return getStubSettingsBuilder().listNetworksSettings(); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json index 08137559a626..cc1bb082605a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/gapic_metadata.json @@ -52,6 +52,24 @@ "grpc": { "libraryClient": "AdUnitServiceClient", "rpcs": { + "BatchActivateAdUnits": { + "methods": ["batchActivateAdUnits", "batchActivateAdUnits", "batchActivateAdUnits", "batchActivateAdUnitsCallable"] + }, + "BatchArchiveAdUnits": { + "methods": ["batchArchiveAdUnits", "batchArchiveAdUnits", "batchArchiveAdUnits", "batchArchiveAdUnitsCallable"] + }, + "BatchCreateAdUnits": { + "methods": ["batchCreateAdUnits", "batchCreateAdUnits", "batchCreateAdUnits", "batchCreateAdUnitsCallable"] + }, + "BatchDeactivateAdUnits": { + "methods": ["batchDeactivateAdUnits", "batchDeactivateAdUnits", "batchDeactivateAdUnits", "batchDeactivateAdUnitsCallable"] + }, + "BatchUpdateAdUnits": { + "methods": ["batchUpdateAdUnits", "batchUpdateAdUnits", "batchUpdateAdUnits", "batchUpdateAdUnitsCallable"] + }, + "CreateAdUnit": { + "methods": ["createAdUnit", "createAdUnit", "createAdUnit", "createAdUnitCallable"] + }, "GetAdUnit": { "methods": ["getAdUnit", "getAdUnit", "getAdUnit", "getAdUnitCallable"] }, @@ -60,6 +78,9 @@ }, "ListAdUnits": { "methods": ["listAdUnits", "listAdUnits", "listAdUnits", "listAdUnitsPagedCallable", "listAdUnitsCallable"] + }, + "UpdateAdUnit": { + "methods": ["updateAdUnit", "updateAdUnit", "updateAdUnitCallable"] } } } @@ -310,11 +331,29 @@ "grpc": { "libraryClient": "CustomTargetingKeyServiceClient", "rpcs": { + "BatchActivateCustomTargetingKeys": { + "methods": ["batchActivateCustomTargetingKeys", "batchActivateCustomTargetingKeys", "batchActivateCustomTargetingKeys", "batchActivateCustomTargetingKeysCallable"] + }, + "BatchCreateCustomTargetingKeys": { + "methods": ["batchCreateCustomTargetingKeys", "batchCreateCustomTargetingKeys", "batchCreateCustomTargetingKeys", "batchCreateCustomTargetingKeysCallable"] + }, + "BatchDeactivateCustomTargetingKeys": { + "methods": ["batchDeactivateCustomTargetingKeys", "batchDeactivateCustomTargetingKeys", "batchDeactivateCustomTargetingKeys", "batchDeactivateCustomTargetingKeysCallable"] + }, + "BatchUpdateCustomTargetingKeys": { + "methods": ["batchUpdateCustomTargetingKeys", "batchUpdateCustomTargetingKeys", "batchUpdateCustomTargetingKeys", "batchUpdateCustomTargetingKeysCallable"] + }, + "CreateCustomTargetingKey": { + "methods": ["createCustomTargetingKey", "createCustomTargetingKey", "createCustomTargetingKey", "createCustomTargetingKeyCallable"] + }, "GetCustomTargetingKey": { "methods": ["getCustomTargetingKey", "getCustomTargetingKey", "getCustomTargetingKey", "getCustomTargetingKeyCallable"] }, "ListCustomTargetingKeys": { "methods": ["listCustomTargetingKeys", "listCustomTargetingKeys", "listCustomTargetingKeys", "listCustomTargetingKeysPagedCallable", "listCustomTargetingKeysCallable"] + }, + "UpdateCustomTargetingKey": { + "methods": ["updateCustomTargetingKey", "updateCustomTargetingKey", "updateCustomTargetingKeyCallable"] } } } @@ -422,6 +461,21 @@ } } }, + "LineItemService": { + "clients": { + "grpc": { + "libraryClient": "LineItemServiceClient", + "rpcs": { + "GetLineItem": { + "methods": ["getLineItem", "getLineItem", "getLineItem", "getLineItemCallable"] + }, + "ListLineItems": { + "methods": ["listLineItems", "listLineItems", "listLineItems", "listLineItemsPagedCallable", "listLineItemsCallable"] + } + } + } + } + }, "MobileCarrierService": { "clients": { "grpc": { @@ -476,7 +530,7 @@ "methods": ["getNetwork", "getNetwork", "getNetwork", "getNetworkCallable"] }, "ListNetworks": { - "methods": ["listNetworks", "listNetworksCallable"] + "methods": ["listNetworks", "listNetworksPagedCallable", "listNetworksCallable"] } } } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java index bc441d5874ee..2860ed9534b3 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/package-info.java @@ -474,6 +474,24 @@ * } * } * + *

======================= LineItemServiceClient ======================= + * + *

Service Description: Provides methods for handling `LineItem` objects. + * + *

Sample for LineItemServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) {
+ *   LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]");
+ *   LineItem response = lineItemServiceClient.getLineItem(name);
+ * }
+ * }
+ * *

======================= MobileCarrierServiceClient ======================= * *

Service Description: Provides methods for handling `MobileCarrier` objects. diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStub.java index 17692204c601..7eff6fb50c77 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStub.java @@ -20,11 +20,23 @@ import static com.google.ads.admanager.v1.AdUnitServiceClient.ListAdUnitsPagedResponse; import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.BatchActivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.BatchCreateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; import com.google.ads.admanager.v1.GetAdUnitRequest; import com.google.ads.admanager.v1.ListAdUnitSizesRequest; import com.google.ads.admanager.v1.ListAdUnitSizesResponse; import com.google.ads.admanager.v1.ListAdUnitsRequest; import com.google.ads.admanager.v1.ListAdUnitsResponse; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; @@ -59,6 +71,39 @@ public UnaryCallable listAdUnit throw new UnsupportedOperationException("Not implemented: listAdUnitSizesCallable()"); } + public UnaryCallable createAdUnitCallable() { + throw new UnsupportedOperationException("Not implemented: createAdUnitCallable()"); + } + + public UnaryCallable updateAdUnitCallable() { + throw new UnsupportedOperationException("Not implemented: updateAdUnitCallable()"); + } + + public UnaryCallable + batchCreateAdUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: batchCreateAdUnitsCallable()"); + } + + public UnaryCallable + batchUpdateAdUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: batchUpdateAdUnitsCallable()"); + } + + public UnaryCallable + batchActivateAdUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: batchActivateAdUnitsCallable()"); + } + + public UnaryCallable + batchDeactivateAdUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: batchDeactivateAdUnitsCallable()"); + } + + public UnaryCallable + batchArchiveAdUnitsCallable() { + throw new UnsupportedOperationException("Not implemented: batchArchiveAdUnitsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java index 3e14cb9ecc11..538cef26adb4 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/AdUnitServiceStubSettings.java @@ -21,11 +21,23 @@ import com.google.ads.admanager.v1.AdUnit; import com.google.ads.admanager.v1.AdUnitSize; +import com.google.ads.admanager.v1.BatchActivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.BatchCreateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; import com.google.ads.admanager.v1.GetAdUnitRequest; import com.google.ads.admanager.v1.ListAdUnitSizesRequest; import com.google.ads.admanager.v1.ListAdUnitSizesResponse; import com.google.ads.admanager.v1.ListAdUnitsRequest; import com.google.ads.admanager.v1.ListAdUnitsResponse; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ObsoleteApi; @@ -118,6 +130,18 @@ public class AdUnitServiceStubSettings extends StubSettings listAdUnitSizesSettings; + private final UnaryCallSettings createAdUnitSettings; + private final UnaryCallSettings updateAdUnitSettings; + private final UnaryCallSettings + batchCreateAdUnitsSettings; + private final UnaryCallSettings + batchUpdateAdUnitsSettings; + private final UnaryCallSettings + batchActivateAdUnitsSettings; + private final UnaryCallSettings + batchDeactivateAdUnitsSettings; + private final UnaryCallSettings + batchArchiveAdUnitsSettings; private static final PagedListDescriptor LIST_AD_UNITS_PAGE_STR_DESC = @@ -242,6 +266,46 @@ public UnaryCallSettings getAdUnitSettings() { return listAdUnitSizesSettings; } + /** Returns the object with the settings used for calls to createAdUnit. */ + public UnaryCallSettings createAdUnitSettings() { + return createAdUnitSettings; + } + + /** Returns the object with the settings used for calls to updateAdUnit. */ + public UnaryCallSettings updateAdUnitSettings() { + return updateAdUnitSettings; + } + + /** Returns the object with the settings used for calls to batchCreateAdUnits. */ + public UnaryCallSettings + batchCreateAdUnitsSettings() { + return batchCreateAdUnitsSettings; + } + + /** Returns the object with the settings used for calls to batchUpdateAdUnits. */ + public UnaryCallSettings + batchUpdateAdUnitsSettings() { + return batchUpdateAdUnitsSettings; + } + + /** Returns the object with the settings used for calls to batchActivateAdUnits. */ + public UnaryCallSettings + batchActivateAdUnitsSettings() { + return batchActivateAdUnitsSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivateAdUnits. */ + public UnaryCallSettings + batchDeactivateAdUnitsSettings() { + return batchDeactivateAdUnitsSettings; + } + + /** Returns the object with the settings used for calls to batchArchiveAdUnits. */ + public UnaryCallSettings + batchArchiveAdUnitsSettings() { + return batchArchiveAdUnitsSettings; + } + public AdUnitServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -327,6 +391,13 @@ protected AdUnitServiceStubSettings(Builder settingsBuilder) throws IOException getAdUnitSettings = settingsBuilder.getAdUnitSettings().build(); listAdUnitsSettings = settingsBuilder.listAdUnitsSettings().build(); listAdUnitSizesSettings = settingsBuilder.listAdUnitSizesSettings().build(); + createAdUnitSettings = settingsBuilder.createAdUnitSettings().build(); + updateAdUnitSettings = settingsBuilder.updateAdUnitSettings().build(); + batchCreateAdUnitsSettings = settingsBuilder.batchCreateAdUnitsSettings().build(); + batchUpdateAdUnitsSettings = settingsBuilder.batchUpdateAdUnitsSettings().build(); + batchActivateAdUnitsSettings = settingsBuilder.batchActivateAdUnitsSettings().build(); + batchDeactivateAdUnitsSettings = settingsBuilder.batchDeactivateAdUnitsSettings().build(); + batchArchiveAdUnitsSettings = settingsBuilder.batchArchiveAdUnitsSettings().build(); } /** Builder for AdUnitServiceStubSettings. */ @@ -339,6 +410,20 @@ public static class Builder extends StubSettings.Builder listAdUnitSizesSettings; + private final UnaryCallSettings.Builder createAdUnitSettings; + private final UnaryCallSettings.Builder updateAdUnitSettings; + private final UnaryCallSettings.Builder + batchCreateAdUnitsSettings; + private final UnaryCallSettings.Builder + batchUpdateAdUnitsSettings; + private final UnaryCallSettings.Builder< + BatchActivateAdUnitsRequest, BatchActivateAdUnitsResponse> + batchActivateAdUnitsSettings; + private final UnaryCallSettings.Builder< + BatchDeactivateAdUnitsRequest, BatchDeactivateAdUnitsResponse> + batchDeactivateAdUnitsSettings; + private final UnaryCallSettings.Builder + batchArchiveAdUnitsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -369,10 +454,26 @@ protected Builder(ClientContext clientContext) { getAdUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAdUnitsSettings = PagedCallSettings.newBuilder(LIST_AD_UNITS_PAGE_STR_FACT); listAdUnitSizesSettings = PagedCallSettings.newBuilder(LIST_AD_UNIT_SIZES_PAGE_STR_FACT); + createAdUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAdUnitSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateAdUnitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateAdUnitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchActivateAdUnitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivateAdUnitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchArchiveAdUnitsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getAdUnitSettings, listAdUnitsSettings, listAdUnitSizesSettings); + getAdUnitSettings, + listAdUnitsSettings, + listAdUnitSizesSettings, + createAdUnitSettings, + updateAdUnitSettings, + batchCreateAdUnitsSettings, + batchUpdateAdUnitsSettings, + batchActivateAdUnitsSettings, + batchDeactivateAdUnitsSettings, + batchArchiveAdUnitsSettings); initDefaults(this); } @@ -382,10 +483,26 @@ protected Builder(AdUnitServiceStubSettings settings) { getAdUnitSettings = settings.getAdUnitSettings.toBuilder(); listAdUnitsSettings = settings.listAdUnitsSettings.toBuilder(); listAdUnitSizesSettings = settings.listAdUnitSizesSettings.toBuilder(); + createAdUnitSettings = settings.createAdUnitSettings.toBuilder(); + updateAdUnitSettings = settings.updateAdUnitSettings.toBuilder(); + batchCreateAdUnitsSettings = settings.batchCreateAdUnitsSettings.toBuilder(); + batchUpdateAdUnitsSettings = settings.batchUpdateAdUnitsSettings.toBuilder(); + batchActivateAdUnitsSettings = settings.batchActivateAdUnitsSettings.toBuilder(); + batchDeactivateAdUnitsSettings = settings.batchDeactivateAdUnitsSettings.toBuilder(); + batchArchiveAdUnitsSettings = settings.batchArchiveAdUnitsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getAdUnitSettings, listAdUnitsSettings, listAdUnitSizesSettings); + getAdUnitSettings, + listAdUnitsSettings, + listAdUnitSizesSettings, + createAdUnitSettings, + updateAdUnitSettings, + batchCreateAdUnitsSettings, + batchUpdateAdUnitsSettings, + batchActivateAdUnitsSettings, + batchDeactivateAdUnitsSettings, + batchArchiveAdUnitsSettings); } private static Builder createDefault() { @@ -416,6 +533,41 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createAdUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateAdUnitSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateAdUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateAdUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchActivateAdUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivateAdUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchArchiveAdUnitsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -453,6 +605,46 @@ public UnaryCallSettings.Builder getAdUnitSettings() { return listAdUnitSizesSettings; } + /** Returns the builder for the settings used for calls to createAdUnit. */ + public UnaryCallSettings.Builder createAdUnitSettings() { + return createAdUnitSettings; + } + + /** Returns the builder for the settings used for calls to updateAdUnit. */ + public UnaryCallSettings.Builder updateAdUnitSettings() { + return updateAdUnitSettings; + } + + /** Returns the builder for the settings used for calls to batchCreateAdUnits. */ + public UnaryCallSettings.Builder + batchCreateAdUnitsSettings() { + return batchCreateAdUnitsSettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateAdUnits. */ + public UnaryCallSettings.Builder + batchUpdateAdUnitsSettings() { + return batchUpdateAdUnitsSettings; + } + + /** Returns the builder for the settings used for calls to batchActivateAdUnits. */ + public UnaryCallSettings.Builder + batchActivateAdUnitsSettings() { + return batchActivateAdUnitsSettings; + } + + /** Returns the builder for the settings used for calls to batchDeactivateAdUnits. */ + public UnaryCallSettings.Builder + batchDeactivateAdUnitsSettings() { + return batchDeactivateAdUnitsSettings; + } + + /** Returns the builder for the settings used for calls to batchArchiveAdUnits. */ + public UnaryCallSettings.Builder + batchArchiveAdUnitsSettings() { + return batchArchiveAdUnitsSettings; + } + @Override public AdUnitServiceStubSettings build() throws IOException { return new AdUnitServiceStubSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStub.java index 9e6a658f6769..0933408a3093 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStub.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomTargetingKeyServiceClient.ListCustomTargetingKeysPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; import com.google.ads.admanager.v1.CustomTargetingKey; import com.google.ads.admanager.v1.GetCustomTargetingKeyRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; import javax.annotation.Generated; @@ -51,6 +61,44 @@ public abstract class CustomTargetingKeyServiceStub implements BackgroundResourc throw new UnsupportedOperationException("Not implemented: listCustomTargetingKeysCallable()"); } + public UnaryCallable + createCustomTargetingKeyCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomTargetingKeyCallable()"); + } + + public UnaryCallable< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchCreateCustomTargetingKeysCallable()"); + } + + public UnaryCallable + updateCustomTargetingKeyCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomTargetingKeyCallable()"); + } + + public UnaryCallable< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchUpdateCustomTargetingKeysCallable()"); + } + + public UnaryCallable< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchActivateCustomTargetingKeysCallable()"); + } + + public UnaryCallable< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysCallable() { + throw new UnsupportedOperationException( + "Not implemented: batchDeactivateCustomTargetingKeysCallable()"); + } + @Override public abstract void close(); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java index 907860e16a0a..efebdd1410cf 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/CustomTargetingKeyServiceStubSettings.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomTargetingKeyServiceClient.ListCustomTargetingKeysPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; import com.google.ads.admanager.v1.CustomTargetingKey; import com.google.ads.admanager.v1.GetCustomTargetingKeyRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ObsoleteApi; @@ -117,6 +127,22 @@ public class CustomTargetingKeyServiceStubSettings ListCustomTargetingKeysResponse, ListCustomTargetingKeysPagedResponse> listCustomTargetingKeysSettings; + private final UnaryCallSettings + createCustomTargetingKeySettings; + private final UnaryCallSettings< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings; + private final UnaryCallSettings + updateCustomTargetingKeySettings; + private final UnaryCallSettings< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings; + private final UnaryCallSettings< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings; + private final UnaryCallSettings< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings; private static final PagedListDescriptor< ListCustomTargetingKeysRequest, ListCustomTargetingKeysResponse, CustomTargetingKey> @@ -203,6 +229,46 @@ public ApiFuture getFuturePagedResponse( return listCustomTargetingKeysSettings; } + /** Returns the object with the settings used for calls to createCustomTargetingKey. */ + public UnaryCallSettings + createCustomTargetingKeySettings() { + return createCustomTargetingKeySettings; + } + + /** Returns the object with the settings used for calls to batchCreateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings() { + return batchCreateCustomTargetingKeysSettings; + } + + /** Returns the object with the settings used for calls to updateCustomTargetingKey. */ + public UnaryCallSettings + updateCustomTargetingKeySettings() { + return updateCustomTargetingKeySettings; + } + + /** Returns the object with the settings used for calls to batchUpdateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings() { + return batchUpdateCustomTargetingKeysSettings; + } + + /** Returns the object with the settings used for calls to batchActivateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings() { + return batchActivateCustomTargetingKeysSettings; + } + + /** Returns the object with the settings used for calls to batchDeactivateCustomTargetingKeys. */ + public UnaryCallSettings< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings() { + return batchDeactivateCustomTargetingKeysSettings; + } + public CustomTargetingKeyServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -287,6 +353,16 @@ protected CustomTargetingKeyServiceStubSettings(Builder settingsBuilder) throws getCustomTargetingKeySettings = settingsBuilder.getCustomTargetingKeySettings().build(); listCustomTargetingKeysSettings = settingsBuilder.listCustomTargetingKeysSettings().build(); + createCustomTargetingKeySettings = settingsBuilder.createCustomTargetingKeySettings().build(); + batchCreateCustomTargetingKeysSettings = + settingsBuilder.batchCreateCustomTargetingKeysSettings().build(); + updateCustomTargetingKeySettings = settingsBuilder.updateCustomTargetingKeySettings().build(); + batchUpdateCustomTargetingKeysSettings = + settingsBuilder.batchUpdateCustomTargetingKeysSettings().build(); + batchActivateCustomTargetingKeysSettings = + settingsBuilder.batchActivateCustomTargetingKeysSettings().build(); + batchDeactivateCustomTargetingKeysSettings = + settingsBuilder.batchDeactivateCustomTargetingKeysSettings().build(); } /** Builder for CustomTargetingKeyServiceStubSettings. */ @@ -300,6 +376,22 @@ public static class Builder ListCustomTargetingKeysResponse, ListCustomTargetingKeysPagedResponse> listCustomTargetingKeysSettings; + private final UnaryCallSettings.Builder + createCustomTargetingKeySettings; + private final UnaryCallSettings.Builder< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings; + private final UnaryCallSettings.Builder + updateCustomTargetingKeySettings; + private final UnaryCallSettings.Builder< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings; + private final UnaryCallSettings.Builder< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings; + private final UnaryCallSettings.Builder< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -330,10 +422,23 @@ protected Builder(ClientContext clientContext) { getCustomTargetingKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCustomTargetingKeysSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_TARGETING_KEYS_PAGE_STR_FACT); + createCustomTargetingKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchCreateCustomTargetingKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomTargetingKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchUpdateCustomTargetingKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchActivateCustomTargetingKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + batchDeactivateCustomTargetingKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCustomTargetingKeySettings, listCustomTargetingKeysSettings); + getCustomTargetingKeySettings, + listCustomTargetingKeysSettings, + createCustomTargetingKeySettings, + batchCreateCustomTargetingKeysSettings, + updateCustomTargetingKeySettings, + batchUpdateCustomTargetingKeysSettings, + batchActivateCustomTargetingKeysSettings, + batchDeactivateCustomTargetingKeysSettings); initDefaults(this); } @@ -342,10 +447,27 @@ protected Builder(CustomTargetingKeyServiceStubSettings settings) { getCustomTargetingKeySettings = settings.getCustomTargetingKeySettings.toBuilder(); listCustomTargetingKeysSettings = settings.listCustomTargetingKeysSettings.toBuilder(); + createCustomTargetingKeySettings = settings.createCustomTargetingKeySettings.toBuilder(); + batchCreateCustomTargetingKeysSettings = + settings.batchCreateCustomTargetingKeysSettings.toBuilder(); + updateCustomTargetingKeySettings = settings.updateCustomTargetingKeySettings.toBuilder(); + batchUpdateCustomTargetingKeysSettings = + settings.batchUpdateCustomTargetingKeysSettings.toBuilder(); + batchActivateCustomTargetingKeysSettings = + settings.batchActivateCustomTargetingKeysSettings.toBuilder(); + batchDeactivateCustomTargetingKeysSettings = + settings.batchDeactivateCustomTargetingKeysSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - getCustomTargetingKeySettings, listCustomTargetingKeysSettings); + getCustomTargetingKeySettings, + listCustomTargetingKeysSettings, + createCustomTargetingKeySettings, + batchCreateCustomTargetingKeysSettings, + updateCustomTargetingKeySettings, + batchUpdateCustomTargetingKeysSettings, + batchActivateCustomTargetingKeysSettings, + batchDeactivateCustomTargetingKeysSettings); } private static Builder createDefault() { @@ -371,6 +493,36 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .createCustomTargetingKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchCreateCustomTargetingKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateCustomTargetingKeySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchUpdateCustomTargetingKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchActivateCustomTargetingKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .batchDeactivateCustomTargetingKeysSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + return builder; } @@ -404,6 +556,48 @@ public Builder applyToAllUnaryMethods( return listCustomTargetingKeysSettings; } + /** Returns the builder for the settings used for calls to createCustomTargetingKey. */ + public UnaryCallSettings.Builder + createCustomTargetingKeySettings() { + return createCustomTargetingKeySettings; + } + + /** Returns the builder for the settings used for calls to batchCreateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysSettings() { + return batchCreateCustomTargetingKeysSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomTargetingKey. */ + public UnaryCallSettings.Builder + updateCustomTargetingKeySettings() { + return updateCustomTargetingKeySettings; + } + + /** Returns the builder for the settings used for calls to batchUpdateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysSettings() { + return batchUpdateCustomTargetingKeysSettings; + } + + /** Returns the builder for the settings used for calls to batchActivateCustomTargetingKeys. */ + public UnaryCallSettings.Builder< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysSettings() { + return batchActivateCustomTargetingKeysSettings; + } + + /** + * Returns the builder for the settings used for calls to batchDeactivateCustomTargetingKeys. + */ + public UnaryCallSettings.Builder< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysSettings() { + return batchDeactivateCustomTargetingKeysSettings; + } + @Override public CustomTargetingKeyServiceStubSettings build() throws IOException { return new CustomTargetingKeyServiceStubSettings(this); diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdUnitServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdUnitServiceStub.java index e88b0b1183d4..b142981fd8e8 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdUnitServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonAdUnitServiceStub.java @@ -20,11 +20,23 @@ import static com.google.ads.admanager.v1.AdUnitServiceClient.ListAdUnitsPagedResponse; import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.BatchActivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.BatchCreateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; import com.google.ads.admanager.v1.GetAdUnitRequest; import com.google.ads.admanager.v1.ListAdUnitSizesRequest; import com.google.ads.admanager.v1.ListAdUnitSizesResponse; import com.google.ads.admanager.v1.ListAdUnitsRequest; import com.google.ads.admanager.v1.ListAdUnitsResponse; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -167,6 +179,271 @@ public class HttpJsonAdUnitServiceStub extends AdUnitServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + createAdUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/CreateAdUnit") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("adUnit", request.getAdUnit(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdUnit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAdUnitMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/UpdateAdUnit") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{adUnit.name=networks/*/adUnits/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "adUnit.name", request.getAdUnit().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("adUnit", request.getAdUnit(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AdUnit.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchCreateAdUnitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/BatchCreateAdUnits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits:batchCreate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchCreateAdUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchUpdateAdUnitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/BatchUpdateAdUnits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits:batchUpdate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchUpdateAdUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchActivateAdUnitsRequest, BatchActivateAdUnitsResponse> + batchActivateAdUnitsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/BatchActivateAdUnits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits:batchActivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchActivateAdUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivateAdUnitsRequest, BatchDeactivateAdUnitsResponse> + batchDeactivateAdUnitsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/BatchDeactivateAdUnits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits:batchDeactivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchDeactivateAdUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchArchiveAdUnitsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.AdUnitService/BatchArchiveAdUnits") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/adUnits:batchArchive", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchArchiveAdUnitsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAdUnitCallable; private final UnaryCallable listAdUnitsCallable; private final UnaryCallable @@ -175,6 +452,18 @@ public class HttpJsonAdUnitServiceStub extends AdUnitServiceStub { listAdUnitSizesCallable; private final UnaryCallable listAdUnitSizesPagedCallable; + private final UnaryCallable createAdUnitCallable; + private final UnaryCallable updateAdUnitCallable; + private final UnaryCallable + batchCreateAdUnitsCallable; + private final UnaryCallable + batchUpdateAdUnitsCallable; + private final UnaryCallable + batchActivateAdUnitsCallable; + private final UnaryCallable + batchDeactivateAdUnitsCallable; + private final UnaryCallable + batchArchiveAdUnitsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -252,6 +541,91 @@ protected HttpJsonAdUnitServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings createAdUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAdUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings updateAdUnitTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAdUnitMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("ad_unit.name", String.valueOf(request.getAdUnit().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchCreateAdUnitsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchCreateAdUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchUpdateAdUnitsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchUpdateAdUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchActivateAdUnitsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchActivateAdUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchDeactivateAdUnitsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchDeactivateAdUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + batchArchiveAdUnitsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchArchiveAdUnitsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getAdUnitCallable = callableFactory.createUnaryCallable( @@ -268,6 +642,37 @@ protected HttpJsonAdUnitServiceStub( this.listAdUnitSizesPagedCallable = callableFactory.createPagedCallable( listAdUnitSizesTransportSettings, settings.listAdUnitSizesSettings(), clientContext); + this.createAdUnitCallable = + callableFactory.createUnaryCallable( + createAdUnitTransportSettings, settings.createAdUnitSettings(), clientContext); + this.updateAdUnitCallable = + callableFactory.createUnaryCallable( + updateAdUnitTransportSettings, settings.updateAdUnitSettings(), clientContext); + this.batchCreateAdUnitsCallable = + callableFactory.createUnaryCallable( + batchCreateAdUnitsTransportSettings, + settings.batchCreateAdUnitsSettings(), + clientContext); + this.batchUpdateAdUnitsCallable = + callableFactory.createUnaryCallable( + batchUpdateAdUnitsTransportSettings, + settings.batchUpdateAdUnitsSettings(), + clientContext); + this.batchActivateAdUnitsCallable = + callableFactory.createUnaryCallable( + batchActivateAdUnitsTransportSettings, + settings.batchActivateAdUnitsSettings(), + clientContext); + this.batchDeactivateAdUnitsCallable = + callableFactory.createUnaryCallable( + batchDeactivateAdUnitsTransportSettings, + settings.batchDeactivateAdUnitsSettings(), + clientContext); + this.batchArchiveAdUnitsCallable = + callableFactory.createUnaryCallable( + batchArchiveAdUnitsTransportSettings, + settings.batchArchiveAdUnitsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -279,6 +684,13 @@ public static List getMethodDescriptors() { methodDescriptors.add(getAdUnitMethodDescriptor); methodDescriptors.add(listAdUnitsMethodDescriptor); methodDescriptors.add(listAdUnitSizesMethodDescriptor); + methodDescriptors.add(createAdUnitMethodDescriptor); + methodDescriptors.add(updateAdUnitMethodDescriptor); + methodDescriptors.add(batchCreateAdUnitsMethodDescriptor); + methodDescriptors.add(batchUpdateAdUnitsMethodDescriptor); + methodDescriptors.add(batchActivateAdUnitsMethodDescriptor); + methodDescriptors.add(batchDeactivateAdUnitsMethodDescriptor); + methodDescriptors.add(batchArchiveAdUnitsMethodDescriptor); return methodDescriptors; } @@ -308,6 +720,46 @@ public UnaryCallable listAdUnit return listAdUnitSizesPagedCallable; } + @Override + public UnaryCallable createAdUnitCallable() { + return createAdUnitCallable; + } + + @Override + public UnaryCallable updateAdUnitCallable() { + return updateAdUnitCallable; + } + + @Override + public UnaryCallable + batchCreateAdUnitsCallable() { + return batchCreateAdUnitsCallable; + } + + @Override + public UnaryCallable + batchUpdateAdUnitsCallable() { + return batchUpdateAdUnitsCallable; + } + + @Override + public UnaryCallable + batchActivateAdUnitsCallable() { + return batchActivateAdUnitsCallable; + } + + @Override + public UnaryCallable + batchDeactivateAdUnitsCallable() { + return batchDeactivateAdUnitsCallable; + } + + @Override + public UnaryCallable + batchArchiveAdUnitsCallable() { + return batchArchiveAdUnitsCallable; + } + @Override public final void close() { try { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingKeyServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingKeyServiceStub.java index 597ac4a41a70..d6b2dc7b5564 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingKeyServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonCustomTargetingKeyServiceStub.java @@ -18,10 +18,20 @@ import static com.google.ads.admanager.v1.CustomTargetingKeyServiceClient.ListCustomTargetingKeysPagedResponse; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; import com.google.ads.admanager.v1.CustomTargetingKey; import com.google.ads.admanager.v1.GetCustomTargetingKeyRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysRequest; import com.google.ads.admanager.v1.ListCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -130,12 +140,281 @@ public class HttpJsonCustomTargetingKeyServiceStub extends CustomTargetingKeySer .build()) .build(); + private static final ApiMethodDescriptor + createCustomTargetingKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/CreateCustomTargetingKey") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customTargetingKeys", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "customTargetingKey", request.getCustomTargetingKey(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomTargetingKey.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/BatchCreateCustomTargetingKeys") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customTargetingKeys:batchCreate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + BatchCreateCustomTargetingKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateCustomTargetingKeyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/UpdateCustomTargetingKey") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{customTargetingKey.name=networks/*/customTargetingKeys/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, + "customTargetingKey.name", + request.getCustomTargetingKey().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "customTargetingKey", request.getCustomTargetingKey(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CustomTargetingKey.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/BatchUpdateCustomTargetingKeys") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customTargetingKeys:batchUpdate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + BatchUpdateCustomTargetingKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/BatchActivateCustomTargetingKeys") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/customTargetingKeys:batchActivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + BatchActivateCustomTargetingKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.ads.admanager.v1.CustomTargetingKeyService/BatchDeactivateCustomTargetingKeys") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter + .newBuilder() + .setPath( + "/v1/{parent=networks/*}/customTargetingKeys:batchDeactivate", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer + serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser + .newBuilder() + .setDefaultInstance( + BatchDeactivateCustomTargetingKeysResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getCustomTargetingKeyCallable; private final UnaryCallable listCustomTargetingKeysCallable; private final UnaryCallable listCustomTargetingKeysPagedCallable; + private final UnaryCallable + createCustomTargetingKeyCallable; + private final UnaryCallable< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysCallable; + private final UnaryCallable + updateCustomTargetingKeyCallable; + private final UnaryCallable< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysCallable; + private final UnaryCallable< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysCallable; + private final UnaryCallable< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -205,6 +484,93 @@ protected HttpJsonCustomTargetingKeyServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + createCustomTargetingKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createCustomTargetingKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchCreateCustomTargetingKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + updateCustomTargetingKeyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateCustomTargetingKeyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_targeting_key.name", + String.valueOf(request.getCustomTargetingKey().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchUpdateCustomTargetingKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchActivateCustomTargetingKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(batchDeactivateCustomTargetingKeysMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); this.getCustomTargetingKeyCallable = callableFactory.createUnaryCallable( @@ -221,6 +587,36 @@ protected HttpJsonCustomTargetingKeyServiceStub( listCustomTargetingKeysTransportSettings, settings.listCustomTargetingKeysSettings(), clientContext); + this.createCustomTargetingKeyCallable = + callableFactory.createUnaryCallable( + createCustomTargetingKeyTransportSettings, + settings.createCustomTargetingKeySettings(), + clientContext); + this.batchCreateCustomTargetingKeysCallable = + callableFactory.createUnaryCallable( + batchCreateCustomTargetingKeysTransportSettings, + settings.batchCreateCustomTargetingKeysSettings(), + clientContext); + this.updateCustomTargetingKeyCallable = + callableFactory.createUnaryCallable( + updateCustomTargetingKeyTransportSettings, + settings.updateCustomTargetingKeySettings(), + clientContext); + this.batchUpdateCustomTargetingKeysCallable = + callableFactory.createUnaryCallable( + batchUpdateCustomTargetingKeysTransportSettings, + settings.batchUpdateCustomTargetingKeysSettings(), + clientContext); + this.batchActivateCustomTargetingKeysCallable = + callableFactory.createUnaryCallable( + batchActivateCustomTargetingKeysTransportSettings, + settings.batchActivateCustomTargetingKeysSettings(), + clientContext); + this.batchDeactivateCustomTargetingKeysCallable = + callableFactory.createUnaryCallable( + batchDeactivateCustomTargetingKeysTransportSettings, + settings.batchDeactivateCustomTargetingKeysSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -231,6 +627,12 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(getCustomTargetingKeyMethodDescriptor); methodDescriptors.add(listCustomTargetingKeysMethodDescriptor); + methodDescriptors.add(createCustomTargetingKeyMethodDescriptor); + methodDescriptors.add(batchCreateCustomTargetingKeysMethodDescriptor); + methodDescriptors.add(updateCustomTargetingKeyMethodDescriptor); + methodDescriptors.add(batchUpdateCustomTargetingKeysMethodDescriptor); + methodDescriptors.add(batchActivateCustomTargetingKeysMethodDescriptor); + methodDescriptors.add(batchDeactivateCustomTargetingKeysMethodDescriptor); return methodDescriptors; } @@ -252,6 +654,46 @@ public static List getMethodDescriptors() { return listCustomTargetingKeysPagedCallable; } + @Override + public UnaryCallable + createCustomTargetingKeyCallable() { + return createCustomTargetingKeyCallable; + } + + @Override + public UnaryCallable< + BatchCreateCustomTargetingKeysRequest, BatchCreateCustomTargetingKeysResponse> + batchCreateCustomTargetingKeysCallable() { + return batchCreateCustomTargetingKeysCallable; + } + + @Override + public UnaryCallable + updateCustomTargetingKeyCallable() { + return updateCustomTargetingKeyCallable; + } + + @Override + public UnaryCallable< + BatchUpdateCustomTargetingKeysRequest, BatchUpdateCustomTargetingKeysResponse> + batchUpdateCustomTargetingKeysCallable() { + return batchUpdateCustomTargetingKeysCallable; + } + + @Override + public UnaryCallable< + BatchActivateCustomTargetingKeysRequest, BatchActivateCustomTargetingKeysResponse> + batchActivateCustomTargetingKeysCallable() { + return batchActivateCustomTargetingKeysCallable; + } + + @Override + public UnaryCallable< + BatchDeactivateCustomTargetingKeysRequest, BatchDeactivateCustomTargetingKeysResponse> + batchDeactivateCustomTargetingKeysCallable() { + return batchDeactivateCustomTargetingKeysCallable; + } + @Override public final void close() { try { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceCallableFactory.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceCallableFactory.java new file mode 100644 index 000000000000..c358fb726e72 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceCallableFactory.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the LineItemService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +public class HttpJsonLineItemServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceStub.java new file mode 100644 index 000000000000..e8f54302c052 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonLineItemServiceStub.java @@ -0,0 +1,273 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.stub; + +import static com.google.ads.admanager.v1.LineItemServiceClient.ListLineItemsPagedResponse; + +import com.google.ads.admanager.v1.GetLineItemRequest; +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.ListLineItemsResponse; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the LineItemService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public class HttpJsonLineItemServiceStub extends LineItemServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + getLineItemMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.LineItemService/GetLineItem") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=networks/*/lineItems/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(LineItem.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLineItemsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.ads.admanager.v1.LineItemService/ListLineItems") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=networks/*}/lineItems", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLineItemsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable getLineItemCallable; + private final UnaryCallable listLineItemsCallable; + private final UnaryCallable + listLineItemsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonLineItemServiceStub create(LineItemServiceStubSettings settings) + throws IOException { + return new HttpJsonLineItemServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonLineItemServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonLineItemServiceStub( + LineItemServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final HttpJsonLineItemServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonLineItemServiceStub( + LineItemServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonLineItemServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLineItemServiceStub( + LineItemServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonLineItemServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonLineItemServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonLineItemServiceStub( + LineItemServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings getLineItemTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLineItemMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings + listLineItemsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLineItemsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getLineItemCallable = + callableFactory.createUnaryCallable( + getLineItemTransportSettings, settings.getLineItemSettings(), clientContext); + this.listLineItemsCallable = + callableFactory.createUnaryCallable( + listLineItemsTransportSettings, settings.listLineItemsSettings(), clientContext); + this.listLineItemsPagedCallable = + callableFactory.createPagedCallable( + listLineItemsTransportSettings, settings.listLineItemsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(getLineItemMethodDescriptor); + methodDescriptors.add(listLineItemsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable getLineItemCallable() { + return getLineItemCallable; + } + + @Override + public UnaryCallable listLineItemsCallable() { + return listLineItemsCallable; + } + + @Override + public UnaryCallable + listLineItemsPagedCallable() { + return listLineItemsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonNetworkServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonNetworkServiceStub.java index 0771ad60d289..ebd93a473586 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonNetworkServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/HttpJsonNetworkServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.admanager.v1.stub; +import static com.google.ads.admanager.v1.NetworkServiceClient.ListNetworksPagedResponse; + import com.google.ads.admanager.v1.GetNetworkRequest; import com.google.ads.admanager.v1.ListNetworksRequest; import com.google.ads.admanager.v1.ListNetworksResponse; @@ -105,6 +107,9 @@ public class HttpJsonNetworkServiceStub extends NetworkServiceStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "skip", request.getSkip()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -119,6 +124,8 @@ public class HttpJsonNetworkServiceStub extends NetworkServiceStub { private final UnaryCallable getNetworkCallable; private final UnaryCallable listNetworksCallable; + private final UnaryCallable + listNetworksPagedCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -185,6 +192,9 @@ protected HttpJsonNetworkServiceStub( this.listNetworksCallable = callableFactory.createUnaryCallable( listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); + this.listNetworksPagedCallable = + callableFactory.createPagedCallable( + listNetworksTransportSettings, settings.listNetworksSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -208,6 +218,11 @@ public UnaryCallable listNetworksCall return listNetworksCallable; } + @Override + public UnaryCallable listNetworksPagedCallable() { + return listNetworksPagedCallable; + } + @Override public final void close() { try { diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStub.java new file mode 100644 index 000000000000..c18630c1238c --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStub.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.stub; + +import static com.google.ads.admanager.v1.LineItemServiceClient.ListLineItemsPagedResponse; + +import com.google.ads.admanager.v1.GetLineItemRequest; +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.ListLineItemsResponse; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the LineItemService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +public abstract class LineItemServiceStub implements BackgroundResource { + + public UnaryCallable getLineItemCallable() { + throw new UnsupportedOperationException("Not implemented: getLineItemCallable()"); + } + + public UnaryCallable + listLineItemsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLineItemsPagedCallable()"); + } + + public UnaryCallable listLineItemsCallable() { + throw new UnsupportedOperationException("Not implemented: listLineItemsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java new file mode 100644 index 000000000000..92d6879de629 --- /dev/null +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/LineItemServiceStubSettings.java @@ -0,0 +1,376 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.stub; + +import static com.google.ads.admanager.v1.LineItemServiceClient.ListLineItemsPagedResponse; + +import com.google.ads.admanager.v1.GetLineItemRequest; +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.ListLineItemsResponse; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link LineItemServiceStub}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (admanager.googleapis.com) and default port (443) are used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getLineItem: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * LineItemServiceStubSettings.Builder lineItemServiceSettingsBuilder =
+ *     LineItemServiceStubSettings.newBuilder();
+ * lineItemServiceSettingsBuilder
+ *     .getLineItemSettings()
+ *     .setRetrySettings(
+ *         lineItemServiceSettingsBuilder
+ *             .getLineItemSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * LineItemServiceStubSettings lineItemServiceSettings = lineItemServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for + * additional support in setting retries. + */ +@Generated("by gapic-generator-java") +public class LineItemServiceStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/admanager").build(); + + private final UnaryCallSettings getLineItemSettings; + private final PagedCallSettings< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse> + listLineItemsSettings; + + private static final PagedListDescriptor + LIST_LINE_ITEMS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLineItemsRequest injectToken(ListLineItemsRequest payload, String token) { + return ListLineItemsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLineItemsRequest injectPageSize(ListLineItemsRequest payload, int pageSize) { + return ListLineItemsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLineItemsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLineItemsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLineItemsResponse payload) { + return payload.getLineItemsList(); + } + }; + + private static final PagedListResponseFactory< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse> + LIST_LINE_ITEMS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLineItemsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LINE_ITEMS_PAGE_STR_DESC, request, context); + return ListLineItemsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to getLineItem. */ + public UnaryCallSettings getLineItemSettings() { + return getLineItemSettings; + } + + /** Returns the object with the settings used for calls to listLineItems. */ + public PagedCallSettings + listLineItemsSettings() { + return listLineItemsSettings; + } + + public LineItemServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonLineItemServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "admanager"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "admanager.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "admanager.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultHttpJsonTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(LineItemServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected LineItemServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + getLineItemSettings = settingsBuilder.getLineItemSettings().build(); + listLineItemsSettings = settingsBuilder.listLineItemsSettings().build(); + } + + /** Builder for LineItemServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder getLineItemSettings; + private final PagedCallSettings.Builder< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse> + listLineItemsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + getLineItemSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLineItemsSettings = PagedCallSettings.newBuilder(LIST_LINE_ITEMS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getLineItemSettings, listLineItemsSettings); + initDefaults(this); + } + + protected Builder(LineItemServiceStubSettings settings) { + super(settings); + + getLineItemSettings = settings.getLineItemSettings.toBuilder(); + listLineItemsSettings = settings.listLineItemsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + getLineItemSettings, listLineItemsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .getLineItemSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLineItemsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to getLineItem. */ + public UnaryCallSettings.Builder getLineItemSettings() { + return getLineItemSettings; + } + + /** Returns the builder for the settings used for calls to listLineItems. */ + public PagedCallSettings.Builder< + ListLineItemsRequest, ListLineItemsResponse, ListLineItemsPagedResponse> + listLineItemsSettings() { + return listLineItemsSettings; + } + + @Override + public LineItemServiceStubSettings build() throws IOException { + return new LineItemServiceStubSettings(this); + } + } +} diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStub.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStub.java index 9b7a1a4cec3a..1aab6d66308a 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStub.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStub.java @@ -16,6 +16,8 @@ package com.google.ads.admanager.v1.stub; +import static com.google.ads.admanager.v1.NetworkServiceClient.ListNetworksPagedResponse; + import com.google.ads.admanager.v1.GetNetworkRequest; import com.google.ads.admanager.v1.ListNetworksRequest; import com.google.ads.admanager.v1.ListNetworksResponse; @@ -37,6 +39,10 @@ public UnaryCallable getNetworkCallable() { throw new UnsupportedOperationException("Not implemented: getNetworkCallable()"); } + public UnaryCallable listNetworksPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listNetworksPagedCallable()"); + } + public UnaryCallable listNetworksCallable() { throw new UnsupportedOperationException("Not implemented: listNetworksCallable()"); } diff --git a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java index 149e55c6fee3..ef1fd71f64f0 100644 --- a/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java +++ b/java-admanager/ad-manager/src/main/java/com/google/ads/admanager/v1/stub/NetworkServiceStubSettings.java @@ -16,11 +16,14 @@ package com.google.ads.admanager.v1.stub; +import static com.google.ads.admanager.v1.NetworkServiceClient.ListNetworksPagedResponse; + import com.google.ads.admanager.v1.GetNetworkRequest; import com.google.ads.admanager.v1.ListNetworksRequest; import com.google.ads.admanager.v1.ListNetworksResponse; import com.google.ads.admanager.v1.Network; import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.ObsoleteApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -29,12 +32,18 @@ import com.google.api.gax.httpjson.HttpJsonTransportChannel; import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -100,7 +109,60 @@ public class NetworkServiceStubSettings extends StubSettingsbuilder().add("https://www.googleapis.com/auth/admanager").build(); private final UnaryCallSettings getNetworkSettings; - private final UnaryCallSettings listNetworksSettings; + private final PagedCallSettings< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> + listNetworksSettings; + + private static final PagedListDescriptor + LIST_NETWORKS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListNetworksRequest injectToken(ListNetworksRequest payload, String token) { + return ListNetworksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListNetworksRequest injectPageSize(ListNetworksRequest payload, int pageSize) { + return ListNetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListNetworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListNetworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListNetworksResponse payload) { + return payload.getNetworksList(); + } + }; + + private static final PagedListResponseFactory< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> + LIST_NETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListNetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_NETWORKS_PAGE_STR_DESC, request, context); + return ListNetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; /** Returns the object with the settings used for calls to getNetwork. */ public UnaryCallSettings getNetworkSettings() { @@ -108,7 +170,8 @@ public UnaryCallSettings getNetworkSettings() { } /** Returns the object with the settings used for calls to listNetworks. */ - public UnaryCallSettings listNetworksSettings() { + public PagedCallSettings + listNetworksSettings() { return listNetworksSettings; } @@ -202,7 +265,8 @@ protected NetworkServiceStubSettings(Builder settingsBuilder) throws IOException public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder getNetworkSettings; - private final UnaryCallSettings.Builder + private final PagedCallSettings.Builder< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> listNetworksSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -232,7 +296,7 @@ protected Builder(ClientContext clientContext) { super(clientContext); getNetworkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listNetworksSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listNetworksSettings = PagedCallSettings.newBuilder(LIST_NETWORKS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -298,7 +362,8 @@ public UnaryCallSettings.Builder getNetworkSettings( } /** Returns the builder for the settings used for calls to listNetworks. */ - public UnaryCallSettings.Builder + public PagedCallSettings.Builder< + ListNetworksRequest, ListNetworksResponse, ListNetworksPagedResponse> listNetworksSettings() { return listNetworksSettings; } diff --git a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json index 6a6c91a2f0ce..a0407a82f12f 100644 --- a/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json +++ b/java-admanager/ad-manager/src/main/resources/META-INF/native-image/com.google.ads.admanager.v1/reflect-config.json @@ -314,6 +314,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchActivateAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchActivateCustomFieldsRequest", "queryAllDeclaredConstructors": true, @@ -350,6 +386,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchActivatePlacementsRequest", "queryAllDeclaredConstructors": true, @@ -476,6 +548,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchArchivePlacementsRequest", "queryAllDeclaredConstructors": true, @@ -548,6 +656,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchCreateAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchCreateContactsRequest", "queryAllDeclaredConstructors": true, @@ -620,6 +764,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchCreateEntitySignalsMappingsRequest", "queryAllDeclaredConstructors": true, @@ -764,6 +944,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchDeactivateCustomFieldsRequest", "queryAllDeclaredConstructors": true, @@ -800,6 +1016,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchDeactivatePlacementsRequest", "queryAllDeclaredConstructors": true, @@ -944,6 +1196,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchUpdateContactsRequest", "queryAllDeclaredConstructors": true, @@ -1016,6 +1304,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.BatchUpdateEntitySignalsMappingsRequest", "queryAllDeclaredConstructors": true, @@ -1547,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.CreateAdUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreateAdUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.CreateContactRequest", "queryAllDeclaredConstructors": true, @@ -1583,6 +1925,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.CreateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, @@ -3131,6 +3491,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.GetLineItemRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GetLineItemRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.GetMobileCarrierRequest", "queryAllDeclaredConstructors": true, @@ -3437,6 +3815,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.Goal", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.Goal$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GoalTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GoalTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.GoalTypeEnum$GoalType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.InventoryTargeting", "queryAllDeclaredConstructors": true, @@ -3491,6 +3914,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.LineItem", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LineItem$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LineItemTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LineItemTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.LineItemTypeEnum$LineItemType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.ListAdBreaksRequest", "queryAllDeclaredConstructors": true, @@ -4355,6 +4823,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.ListLineItemsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListLineItemsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListLineItemsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.ListLineItemsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.ListMobileCarriersRequest", "queryAllDeclaredConstructors": true, @@ -6353,6 +6857,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.UnitTypeEnum", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.UnitTypeEnum$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.UnitTypeEnum$UnitType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.UpdateAdBreakRequest", "queryAllDeclaredConstructors": true, @@ -6371,6 +6902,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.UpdateAdUnitRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.UpdateAdUnitRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.UpdateContactRequest", "queryAllDeclaredConstructors": true, @@ -6407,6 +6956,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.ads.admanager.v1.UpdateEntitySignalsMappingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdUnitServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdUnitServiceClientTest.java index d4a5657d7df9..77b37f40b0e2 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdUnitServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/AdUnitServiceClientTest.java @@ -31,6 +31,7 @@ import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.common.collect.Lists; import com.google.protobuf.Duration; +import com.google.protobuf.FieldMask; import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.ArrayList; @@ -406,4 +407,686 @@ public void listAdUnitSizesExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createAdUnitTest() throws Exception { + AdUnit expectedResponse = + AdUnit.newBuilder() + .setName(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .setAdUnitId(-167061094) + .setParentAdUnit(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .addAllParentPath(new ArrayList()) + .setDisplayName("displayName1714148973") + .setAdUnitCode("adUnitCode1827682004") + .addAllAppliedTeams(new ArrayList()) + .addAllTeams(new ArrayList()) + .setDescription("description-1724546052") + .setExplicitlyTargeted(true) + .setHasChildren(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllAdUnitSizes(new ArrayList()) + .setExternalSetTopBoxChannelId("externalSetTopBoxChannelId1711101009") + .setRefreshDelay(Duration.newBuilder().build()) + .addAllAppliedLabels(new ArrayList()) + .addAllEffectiveAppliedLabels(new ArrayList()) + .addAllAppliedLabelFrequencyCaps(new ArrayList()) + .addAllEffectiveLabelFrequencyCaps(new ArrayList()) + .setAppliedAdsenseEnabled(true) + .setEffectiveAdsenseEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + AdUnit adUnit = AdUnit.newBuilder().build(); + + AdUnit actualResponse = client.createAdUnit(parent, adUnit); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAdUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + AdUnit adUnit = AdUnit.newBuilder().build(); + client.createAdUnit(parent, adUnit); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAdUnitTest2() throws Exception { + AdUnit expectedResponse = + AdUnit.newBuilder() + .setName(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .setAdUnitId(-167061094) + .setParentAdUnit(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .addAllParentPath(new ArrayList()) + .setDisplayName("displayName1714148973") + .setAdUnitCode("adUnitCode1827682004") + .addAllAppliedTeams(new ArrayList()) + .addAllTeams(new ArrayList()) + .setDescription("description-1724546052") + .setExplicitlyTargeted(true) + .setHasChildren(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllAdUnitSizes(new ArrayList()) + .setExternalSetTopBoxChannelId("externalSetTopBoxChannelId1711101009") + .setRefreshDelay(Duration.newBuilder().build()) + .addAllAppliedLabels(new ArrayList()) + .addAllEffectiveAppliedLabels(new ArrayList()) + .addAllAppliedLabelFrequencyCaps(new ArrayList()) + .addAllEffectiveLabelFrequencyCaps(new ArrayList()) + .setAppliedAdsenseEnabled(true) + .setEffectiveAdsenseEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + AdUnit adUnit = AdUnit.newBuilder().build(); + + AdUnit actualResponse = client.createAdUnit(parent, adUnit); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAdUnitExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + AdUnit adUnit = AdUnit.newBuilder().build(); + client.createAdUnit(parent, adUnit); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAdUnitTest() throws Exception { + AdUnit expectedResponse = + AdUnit.newBuilder() + .setName(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .setAdUnitId(-167061094) + .setParentAdUnit(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .addAllParentPath(new ArrayList()) + .setDisplayName("displayName1714148973") + .setAdUnitCode("adUnitCode1827682004") + .addAllAppliedTeams(new ArrayList()) + .addAllTeams(new ArrayList()) + .setDescription("description-1724546052") + .setExplicitlyTargeted(true) + .setHasChildren(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllAdUnitSizes(new ArrayList()) + .setExternalSetTopBoxChannelId("externalSetTopBoxChannelId1711101009") + .setRefreshDelay(Duration.newBuilder().build()) + .addAllAppliedLabels(new ArrayList()) + .addAllEffectiveAppliedLabels(new ArrayList()) + .addAllAppliedLabelFrequencyCaps(new ArrayList()) + .addAllEffectiveLabelFrequencyCaps(new ArrayList()) + .setAppliedAdsenseEnabled(true) + .setEffectiveAdsenseEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + AdUnit adUnit = + AdUnit.newBuilder() + .setName(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .setAdUnitId(-167061094) + .setParentAdUnit(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .addAllParentPath(new ArrayList()) + .setDisplayName("displayName1714148973") + .setAdUnitCode("adUnitCode1827682004") + .addAllAppliedTeams(new ArrayList()) + .addAllTeams(new ArrayList()) + .setDescription("description-1724546052") + .setExplicitlyTargeted(true) + .setHasChildren(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllAdUnitSizes(new ArrayList()) + .setExternalSetTopBoxChannelId("externalSetTopBoxChannelId1711101009") + .setRefreshDelay(Duration.newBuilder().build()) + .addAllAppliedLabels(new ArrayList()) + .addAllEffectiveAppliedLabels(new ArrayList()) + .addAllAppliedLabelFrequencyCaps(new ArrayList()) + .addAllEffectiveLabelFrequencyCaps(new ArrayList()) + .setAppliedAdsenseEnabled(true) + .setEffectiveAdsenseEnabled(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AdUnit actualResponse = client.updateAdUnit(adUnit, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAdUnitExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AdUnit adUnit = + AdUnit.newBuilder() + .setName(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .setAdUnitId(-167061094) + .setParentAdUnit(AdUnitName.of("[NETWORK_CODE]", "[AD_UNIT]").toString()) + .addAllParentPath(new ArrayList()) + .setDisplayName("displayName1714148973") + .setAdUnitCode("adUnitCode1827682004") + .addAllAppliedTeams(new ArrayList()) + .addAllTeams(new ArrayList()) + .setDescription("description-1724546052") + .setExplicitlyTargeted(true) + .setHasChildren(true) + .setUpdateTime(Timestamp.newBuilder().build()) + .addAllAdUnitSizes(new ArrayList()) + .setExternalSetTopBoxChannelId("externalSetTopBoxChannelId1711101009") + .setRefreshDelay(Duration.newBuilder().build()) + .addAllAppliedLabels(new ArrayList()) + .addAllEffectiveAppliedLabels(new ArrayList()) + .addAllAppliedLabelFrequencyCaps(new ArrayList()) + .addAllEffectiveLabelFrequencyCaps(new ArrayList()) + .setAppliedAdsenseEnabled(true) + .setEffectiveAdsenseEnabled(true) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAdUnit(adUnit, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateAdUnitsTest() throws Exception { + BatchCreateAdUnitsResponse expectedResponse = + BatchCreateAdUnitsResponse.newBuilder().addAllAdUnits(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateAdUnitsResponse actualResponse = client.batchCreateAdUnits(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateAdUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateAdUnits(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateAdUnitsTest2() throws Exception { + BatchCreateAdUnitsResponse expectedResponse = + BatchCreateAdUnitsResponse.newBuilder().addAllAdUnits(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateAdUnitsResponse actualResponse = client.batchCreateAdUnits(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateAdUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateAdUnits(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateAdUnitsTest() throws Exception { + BatchUpdateAdUnitsResponse expectedResponse = + BatchUpdateAdUnitsResponse.newBuilder().addAllAdUnits(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateAdUnitsResponse actualResponse = client.batchUpdateAdUnits(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateAdUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateAdUnits(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateAdUnitsTest2() throws Exception { + BatchUpdateAdUnitsResponse expectedResponse = + BatchUpdateAdUnitsResponse.newBuilder().addAllAdUnits(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateAdUnitsResponse actualResponse = client.batchUpdateAdUnits(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateAdUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateAdUnits(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateAdUnitsTest() throws Exception { + BatchActivateAdUnitsResponse expectedResponse = + BatchActivateAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchActivateAdUnitsResponse actualResponse = client.batchActivateAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchActivateAdUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchActivateAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateAdUnitsTest2() throws Exception { + BatchActivateAdUnitsResponse expectedResponse = + BatchActivateAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchActivateAdUnitsResponse actualResponse = client.batchActivateAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchActivateAdUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchActivateAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateAdUnitsTest() throws Exception { + BatchDeactivateAdUnitsResponse expectedResponse = + BatchDeactivateAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivateAdUnitsResponse actualResponse = client.batchDeactivateAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeactivateAdUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivateAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateAdUnitsTest2() throws Exception { + BatchDeactivateAdUnitsResponse expectedResponse = + BatchDeactivateAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivateAdUnitsResponse actualResponse = client.batchDeactivateAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeactivateAdUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivateAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchArchiveAdUnitsTest() throws Exception { + BatchArchiveAdUnitsResponse expectedResponse = BatchArchiveAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchArchiveAdUnitsResponse actualResponse = client.batchArchiveAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchArchiveAdUnitsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchArchiveAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchArchiveAdUnitsTest2() throws Exception { + BatchArchiveAdUnitsResponse expectedResponse = BatchArchiveAdUnitsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchArchiveAdUnitsResponse actualResponse = client.batchArchiveAdUnits(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchArchiveAdUnitsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchArchiveAdUnits(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClientTest.java index 5a21dcfcb552..7ebff2cb77b7 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceClientTest.java @@ -29,7 +29,9 @@ import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; import com.google.common.collect.Lists; +import com.google.protobuf.FieldMask; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; import java.util.List; import javax.annotation.Generated; @@ -272,4 +274,537 @@ public void listCustomTargetingKeysExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void createCustomTargetingKeyTest() throws Exception { + CustomTargetingKey expectedResponse = + CustomTargetingKey.newBuilder() + .setName( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setCustomTargetingKeyId(-138683049) + .setAdTagName("adTagName-926580830") + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + + CustomTargetingKey actualResponse = client.createCustomTargetingKey(parent, customTargetingKey); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomTargetingKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + client.createCustomTargetingKey(parent, customTargetingKey); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomTargetingKeyTest2() throws Exception { + CustomTargetingKey expectedResponse = + CustomTargetingKey.newBuilder() + .setName( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setCustomTargetingKeyId(-138683049) + .setAdTagName("adTagName-926580830") + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + + CustomTargetingKey actualResponse = client.createCustomTargetingKey(parent, customTargetingKey); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCustomTargetingKeyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + client.createCustomTargetingKey(parent, customTargetingKey); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateCustomTargetingKeysTest() throws Exception { + BatchCreateCustomTargetingKeysResponse expectedResponse = + BatchCreateCustomTargetingKeysResponse.newBuilder() + .addAllCustomTargetingKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchCreateCustomTargetingKeysResponse actualResponse = + client.batchCreateCustomTargetingKeys(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateCustomTargetingKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchCreateCustomTargetingKeys(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchCreateCustomTargetingKeysTest2() throws Exception { + BatchCreateCustomTargetingKeysResponse expectedResponse = + BatchCreateCustomTargetingKeysResponse.newBuilder() + .addAllCustomTargetingKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchCreateCustomTargetingKeysResponse actualResponse = + client.batchCreateCustomTargetingKeys(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchCreateCustomTargetingKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchCreateCustomTargetingKeys(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomTargetingKeyTest() throws Exception { + CustomTargetingKey expectedResponse = + CustomTargetingKey.newBuilder() + .setName( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setCustomTargetingKeyId(-138683049) + .setAdTagName("adTagName-926580830") + .setDisplayName("displayName1714148973") + .build(); + mockService.addResponse(expectedResponse); + + CustomTargetingKey customTargetingKey = + CustomTargetingKey.newBuilder() + .setName( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setCustomTargetingKeyId(-138683049) + .setAdTagName("adTagName-926580830") + .setDisplayName("displayName1714148973") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomTargetingKey actualResponse = + client.updateCustomTargetingKey(customTargetingKey, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateCustomTargetingKeyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CustomTargetingKey customTargetingKey = + CustomTargetingKey.newBuilder() + .setName( + CustomTargetingKeyName.of("[NETWORK_CODE]", "[CUSTOM_TARGETING_KEY]").toString()) + .setCustomTargetingKeyId(-138683049) + .setAdTagName("adTagName-926580830") + .setDisplayName("displayName1714148973") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomTargetingKey(customTargetingKey, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateCustomTargetingKeysTest() throws Exception { + BatchUpdateCustomTargetingKeysResponse expectedResponse = + BatchUpdateCustomTargetingKeysResponse.newBuilder() + .addAllCustomTargetingKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + + BatchUpdateCustomTargetingKeysResponse actualResponse = + client.batchUpdateCustomTargetingKeys(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateCustomTargetingKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + client.batchUpdateCustomTargetingKeys(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchUpdateCustomTargetingKeysTest2() throws Exception { + BatchUpdateCustomTargetingKeysResponse expectedResponse = + BatchUpdateCustomTargetingKeysResponse.newBuilder() + .addAllCustomTargetingKeys(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + + BatchUpdateCustomTargetingKeysResponse actualResponse = + client.batchUpdateCustomTargetingKeys(parent, requests); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchUpdateCustomTargetingKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List requests = new ArrayList<>(); + client.batchUpdateCustomTargetingKeys(parent, requests); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateCustomTargetingKeysTest() throws Exception { + BatchActivateCustomTargetingKeysResponse expectedResponse = + BatchActivateCustomTargetingKeysResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchActivateCustomTargetingKeysResponse actualResponse = + client.batchActivateCustomTargetingKeys(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchActivateCustomTargetingKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchActivateCustomTargetingKeys(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchActivateCustomTargetingKeysTest2() throws Exception { + BatchActivateCustomTargetingKeysResponse expectedResponse = + BatchActivateCustomTargetingKeysResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchActivateCustomTargetingKeysResponse actualResponse = + client.batchActivateCustomTargetingKeys(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchActivateCustomTargetingKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchActivateCustomTargetingKeys(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateCustomTargetingKeysTest() throws Exception { + BatchDeactivateCustomTargetingKeysResponse expectedResponse = + BatchDeactivateCustomTargetingKeysResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + + BatchDeactivateCustomTargetingKeysResponse actualResponse = + client.batchDeactivateCustomTargetingKeys(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeactivateCustomTargetingKeysExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + client.batchDeactivateCustomTargetingKeys(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void batchDeactivateCustomTargetingKeysTest2() throws Exception { + BatchDeactivateCustomTargetingKeysResponse expectedResponse = + BatchDeactivateCustomTargetingKeysResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + + BatchDeactivateCustomTargetingKeysResponse actualResponse = + client.batchDeactivateCustomTargetingKeys(parent, names); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchDeactivateCustomTargetingKeysExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + List names = new ArrayList<>(); + client.batchDeactivateCustomTargetingKeys(parent, names); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/LineItemServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/LineItemServiceClientTest.java new file mode 100644 index 000000000000..022bacad9e37 --- /dev/null +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/LineItemServiceClientTest.java @@ -0,0 +1,284 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import static com.google.ads.admanager.v1.LineItemServiceClient.ListLineItemsPagedResponse; + +import com.google.ads.admanager.v1.stub.HttpJsonLineItemServiceStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.protobuf.Timestamp; +import com.google.type.Money; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class LineItemServiceClientTest { + private static MockHttpService mockService; + private static LineItemServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonLineItemServiceStub.getMethodDescriptors(), + LineItemServiceSettings.getDefaultEndpoint()); + LineItemServiceSettings settings = + LineItemServiceSettings.newBuilder() + .setTransportChannelProvider( + LineItemServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = LineItemServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void getLineItemTest() throws Exception { + LineItem expectedResponse = + LineItem.newBuilder() + .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString()) + .setOrder(OrderName.of("[NETWORK_CODE]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setRate(Money.newBuilder().build()) + .setBudget(Money.newBuilder().build()) + .addAllCustomFieldValues(new ArrayList()) + .setGoal(Goal.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]"); + + LineItem actualResponse = client.getLineItem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLineItemExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]"); + client.getLineItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLineItemTest2() throws Exception { + LineItem expectedResponse = + LineItem.newBuilder() + .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString()) + .setOrder(OrderName.of("[NETWORK_CODE]", "[ORDER]").toString()) + .setDisplayName("displayName1714148973") + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setRate(Money.newBuilder().build()) + .setBudget(Money.newBuilder().build()) + .addAllCustomFieldValues(new ArrayList()) + .setGoal(Goal.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "networks/network-6627/lineItems/lineItem-6627"; + + LineItem actualResponse = client.getLineItem(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLineItemExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "networks/network-6627/lineItems/lineItem-6627"; + client.getLineItem(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLineItemsTest() throws Exception { + LineItem responsesElement = LineItem.newBuilder().build(); + ListLineItemsResponse expectedResponse = + ListLineItemsResponse.newBuilder() + .setNextPageToken("") + .addAllLineItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + + ListLineItemsPagedResponse pagedListResponse = client.listLineItems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLineItemsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLineItemsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + client.listLineItems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLineItemsTest2() throws Exception { + LineItem responsesElement = LineItem.newBuilder().build(); + ListLineItemsResponse expectedResponse = + ListLineItemsResponse.newBuilder() + .setNextPageToken("") + .addAllLineItems(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "networks/network-5450"; + + ListLineItemsPagedResponse pagedListResponse = client.listLineItems(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLineItemsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLineItemsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "networks/network-5450"; + client.listLineItems(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/NetworkServiceClientTest.java b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/NetworkServiceClientTest.java index bc30eaaba17b..4bada1c5c503 100644 --- a/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/NetworkServiceClientTest.java +++ b/java-admanager/ad-manager/src/test/java/com/google/ads/admanager/v1/NetworkServiceClientTest.java @@ -16,6 +16,8 @@ package com.google.ads.admanager.v1; +import static com.google.ads.admanager.v1.NetworkServiceClient.ListNetworksPagedResponse; + import com.google.ads.admanager.v1.stub.HttpJsonNetworkServiceStub; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.httpjson.GaxHttpJsonProperties; @@ -26,8 +28,10 @@ import com.google.api.gax.rpc.InvalidArgumentException; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; import java.io.IOException; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import javax.annotation.Generated; import org.junit.After; @@ -180,14 +184,27 @@ public void getNetworkExceptionTest2() throws Exception { @Test public void listNetworksTest() throws Exception { + Network responsesElement = Network.newBuilder().build(); ListNetworksResponse expectedResponse = - ListNetworksResponse.newBuilder().addAllNetworks(new ArrayList()).build(); + ListNetworksResponse.newBuilder() + .setNextPageToken("") + .addAllNetworks(Arrays.asList(responsesElement)) + .build(); mockService.addResponse(expectedResponse); - ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSkip(3532159) + .build(); + + ListNetworksPagedResponse pagedListResponse = client.listNetworks(request); - ListNetworksResponse actualResponse = client.listNetworks(request); - Assert.assertEquals(expectedResponse, actualResponse); + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getNetworksList().get(0), resources.get(0)); List actualRequests = mockService.getRequestPaths(); Assert.assertEquals(1, actualRequests.size()); @@ -212,7 +229,12 @@ public void listNetworksExceptionTest() throws Exception { mockService.addException(exception); try { - ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSkip(3532159) + .build(); client.listNetworks(request); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java index df0f88879ede..d663474cd85c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdReviewCenterAdServiceProto.java @@ -84,7 +84,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022_\n" + "\006status\030\004 \001(\0162J.google.ads.admanager.v1.AdRev" - + "iewCenterAdStatusEnum.AdReviewCenterAdStatusB\003\340A\002\022#\n" + + "iewCenterAdStatusEnum.AdReviewCenterAdStatusB\003\340A\001\022#\n" + "\026ad_review_center_ad_id\030\005 \003(\tB\003\340A\001\0223\n" + "\017date_time_range\030\006" + " \001(\0132\025.google.type.IntervalB\003\340A\001\022\030\n" diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java index a6b0e636988e..e9aaba8ac029 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/AdUnitServiceProto.java @@ -40,6 +40,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_ListAdUnitsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ListAdUnitsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateAdUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_ads_admanager_v1_ListAdUnitSizesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -48,6 +72,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_ListAdUnitSizesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ListAdUnitSizesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -62,7 +110,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "e.proto\022\027google.ads.admanager.v1\032.google" + "/ads/admanager/v1/ad_unit_messages.proto" + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"I\n" + + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"I\n" + "\020GetAdUnitRequest\0225\n" + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + "\037admanager.googleapis.com/AdUnit\"\276\001\n" @@ -77,7 +126,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ListAdUnitsResponse\0221\n" + "\010ad_units\030\001 \003(\0132\037.google.ads.admanager.v1.AdUnit\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\005\"\302\001\n" + + "total_size\030\003 \001(\005\"\206\001\n" + + "\023CreateAdUnitRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0225\n" + + "\007ad_unit\030\002" + + " \001(\0132\037.google.ads.admanager.v1.AdUnitB\003\340A\002\"\202\001\n" + + "\023UpdateAdUnitRequest\0225\n" + + "\007ad_unit\030\001 \001(\0132\037.google.ads.admanager.v1.AdUnitB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\232\001\n" + + "\031BatchCreateAdUnitsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022C\n" + + "\010requests\030\002 \003(\0132,.googl" + + "e.ads.admanager.v1.CreateAdUnitRequestB\003\340A\002\"O\n" + + "\032BatchCreateAdUnitsResponse\0221\n" + + "\010ad_units\030\001 \003(\0132\037.google.ads.admanager.v1.AdUnit\"\232\001\n" + + "\031BatchUpdateAdUnitsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022C\n" + + "\010requests\030\002 \003(\0132,.google." + + "ads.admanager.v1.UpdateAdUnitRequestB\003\340A\002\"O\n" + + "\032BatchUpdateAdUnitsResponse\0221\n" + + "\010ad_units\030\001 \003(\0132\037.google.ads.admanager.v1.AdUnit\"\302\001\n" + "\026ListAdUnitSizesRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + " admanager.googleapis.com/Network\022\026\n" @@ -89,23 +161,68 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ListAdUnitSizesResponse\022:\n\r" + "ad_unit_sizes\030\001 \003(\0132#.google.ads.admanager.v1.AdUnitSize\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\254\004\n\r" + + "total_size\030\003 \001(\005\"\217\001\n" + + "\033BatchActivateAdUnitsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0226\n" + + "\005names\030\002 \003(\tB\'\340A\002\372A!\n" + + "\037admanager.googleapis.com/AdUnit\"\036\n" + + "\034BatchActivateAdUnitsResponse\"\221\001\n" + + "\035BatchDeactivateAdUnitsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0226\n" + + "\005names\030\002 \003(\tB\'\340A\002\372A!\n" + + "\037admanager.googleapis.com/AdUnit\" \n" + + "\036BatchDeactivateAdUnitsResponse\"\216\001\n" + + "\032BatchArchiveAdUnitsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\0226\n" + + "\005names\030\002 \003(\tB\'\340A\002\372A!\n" + + "\037admanager.googleapis.com/AdUnit\"\035\n" + + "\033BatchArchiveAdUnitsResponse2\204\017\n\r" + "AdUnitService\022\207\001\n" - + "\tGetAdUnit\022).google.ads.admanager.v1.GetAdUnitRequest\032\037.google.ads" - + ".admanager.v1.AdUnit\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/adUnits/*}\022\232\001\n" - + "\013ListAdUnits\022+.google.ads.admanager.v1.ListAdUni" - + "tsRequest\032,.google.ads.admanager.v1.List" - + "AdUnitsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/adUnits\022\252\001\n" - + "\017ListAdUnitSizes\022/.google.ads.admanager.v1.ListAdUn" - + "itSizesRequest\0320.google.ads.admanager.v1" - + ".ListAdUnitSizesResponse\"4\332A\006parent\202\323\344\223\002" - + "%\022#/v1/{parent=networks/*}/adUnitSizes\032G" - + "\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\306\001\n" - + "\033com.google.ads.admanager.v1B\022AdUnitServicePr" - + "otoP\001Z@google.golang.org/genproto/google" - + "apis/ads/admanager/v1;admanager\252\002\027Google" - + ".Ads.AdManager.V1\312\002\027Google\\Ads\\AdManager" - + "\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\tGetAdUnit\022).google.ads.admanager.v1.GetAdUnitRequest\032\037.google.ads.adm" + + "anager.v1.AdUnit\".\332A\004name\202\323\344\223\002!\022\037/v1/{name=networks/*/adUnits/*}\022\232\001\n" + + "\013ListAdUnits\022+.google.ads.admanager.v1.ListAdUnitsRe" + + "quest\032,.google.ads.admanager.v1.ListAdUn" + + "itsResponse\"0\332A\006parent\202\323\344\223\002!\022\037/v1/{parent=networks/*}/adUnits\022\252\001\n" + + "\017ListAdUnitSizes\022/.google.ads.admanager.v1.ListAdUnitSi" + + "zesRequest\0320.google.ads.admanager.v1.Lis" + + "tAdUnitSizesResponse\"4\332A\006parent\202\323\344\223\002%\022#/v1/{parent=networks/*}/adUnitSizes\022\240\001\n" + + "\014CreateAdUnit\022,.google.ads.admanager.v1.Cr" + + "eateAdUnitRequest\032\037.google.ads.admanager" + + ".v1.AdUnit\"A\332A\016parent,ad_unit\202\323\344\223\002*\"\037/v1" + + "/{parent=networks/*}/adUnits:\007ad_unit\022\255\001\n" + + "\014UpdateAdUnit\022,.google.ads.admanager.v1" + + ".UpdateAdUnitRequest\032\037.google.ads.admana" + + "ger.v1.AdUnit\"N\332A\023ad_unit,update_mask\202\323\344" + + "\223\00222\'/v1/{ad_unit.name=networks/*/adUnits/*}:\007ad_unit\022\307\001\n" + + "\022BatchCreateAdUnits\0222.google.ads.admanager.v1.BatchCreateAdUnit" + + "sRequest\0323.google.ads.admanager.v1.Batch" + + "CreateAdUnitsResponse\"H\332A\017parent,request" + + "s\202\323\344\223\0020\"+/v1/{parent=networks/*}/adUnits:batchCreate:\001*\022\307\001\n" + + "\022BatchUpdateAdUnits\0222.google.ads.admanager.v1.BatchUpdateAdUn" + + "itsRequest\0323.google.ads.admanager.v1.Bat" + + "chUpdateAdUnitsResponse\"H\332A\017parent,reque" + + "sts\202\323\344\223\0020\"+/v1/{parent=networks/*}/adUnits:batchUpdate:\001*\022\314\001\n" + + "\024BatchActivateAdUnits\0224.google.ads.admanager.v1.BatchActiva" + + "teAdUnitsRequest\0325.google.ads.admanager." + + "v1.BatchActivateAdUnitsResponse\"G\332A\014pare" + + "nt,names\202\323\344\223\0022\"-/v1/{parent=networks/*}/adUnits:batchActivate:\001*\022\324\001\n" + + "\026BatchDeactivateAdUnits\0226.google.ads.admanager.v1.Ba" + + "tchDeactivateAdUnitsRequest\0327.google.ads.admanager.v1.BatchDeactivateAdUnitsResp" + + "onse\"I\332A\014parent,names\202\323\344\223\0024\"//v1/{parent" + + "=networks/*}/adUnits:batchDeactivate:\001*\022\310\001\n" + + "\023BatchArchiveAdUnits\0223.google.ads.admanager.v1.BatchArchiveAdUnitsRequest\0324.g" + + "oogle.ads.admanager.v1.BatchArchiveAdUni" + + "tsResponse\"F\332A\014parent,names\202\323\344\223\0021\",/v1/{" + + "parent=networks/*}/adUnits:batchArchive:" + + "\001*\032G\312A\030admanager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\306\001\n" + + "\033com.google.ads.admanager.v1B\022AdUnitServi" + + "ceProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" + + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -116,6 +233,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }); internal_static_google_ads_admanager_v1_GetAdUnitRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -141,8 +259,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AdUnits", "NextPageToken", "TotalSize", }); - internal_static_google_ads_admanager_v1_ListAdUnitSizesRequest_descriptor = + internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor = getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateAdUnitRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor, + new java.lang.String[] { + "Parent", "AdUnit", + }); + internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor, + new java.lang.String[] { + "AdUnit", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor, + new java.lang.String[] { + "AdUnits", + }); + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor, + new java.lang.String[] { + "AdUnits", + }); + internal_static_google_ads_admanager_v1_ListAdUnitSizesRequest_descriptor = + getDescriptor().getMessageTypes().get(9); internal_static_google_ads_admanager_v1_ListAdUnitSizesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListAdUnitSizesRequest_descriptor, @@ -150,13 +316,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", }); internal_static_google_ads_admanager_v1_ListAdUnitSizesResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(10); internal_static_google_ads_admanager_v1_ListAdUnitSizesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListAdUnitSizesResponse_descriptor, new java.lang.String[] { "AdUnitSizes", "NextPageToken", "TotalSize", }); + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -172,6 +380,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequest.java new file mode 100644 index 000000000000..7278e9e4fcab --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *

+ * Request object for `BatchActivateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateAdUnitsRequest} + */ +public final class BatchActivateAdUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateAdUnitsRequest) + BatchActivateAdUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateAdUnitsRequest.newBuilder() to construct. + private BatchActivateAdUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateAdUnitsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateAdUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.ads.admanager.v1.BatchActivateAdUnitsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest other = + (com.google.ads.admanager.v1.BatchActivateAdUnitsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest 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.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest 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.ads.admanager.v1.BatchActivateAdUnitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest 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.ads.admanager.v1.BatchActivateAdUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest 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.ads.admanager.v1.BatchActivateAdUnitsRequest 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 object for `BatchActivateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateAdUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateAdUnitsRequest) + com.google.ads.admanager.v1.BatchActivateAdUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsRequest build() { + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsRequest buildPartial() { + com.google.ads.admanager.v1.BatchActivateAdUnitsRequest result = + new com.google.ads.admanager.v1.BatchActivateAdUnitsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchActivateAdUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateAdUnitsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateAdUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateAdUnitsRequest other) { + if (other == com.google.ads.admanager.v1.BatchActivateAdUnitsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to activate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + 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.ads.admanager.v1.BatchActivateAdUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateAdUnitsRequest) + private static final com.google.ads.admanager.v1.BatchActivateAdUnitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateAdUnitsRequest(); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateAdUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..87774ee3e945 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateAdUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateAdUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to activate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponse.java new file mode 100644 index 000000000000..bb67c1dadebd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchActivateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateAdUnitsResponse} + */ +public final class BatchActivateAdUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateAdUnitsResponse) + BatchActivateAdUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateAdUnitsResponse.newBuilder() to construct. + private BatchActivateAdUnitsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateAdUnitsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateAdUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.BatchActivateAdUnitsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse other = + (com.google.ads.admanager.v1.BatchActivateAdUnitsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse 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.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse 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.ads.admanager.v1.BatchActivateAdUnitsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse 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.ads.admanager.v1.BatchActivateAdUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse 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.ads.admanager.v1.BatchActivateAdUnitsResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchActivateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateAdUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateAdUnitsResponse) + com.google.ads.admanager.v1.BatchActivateAdUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsResponse build() { + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsResponse buildPartial() { + com.google.ads.admanager.v1.BatchActivateAdUnitsResponse result = + new com.google.ads.admanager.v1.BatchActivateAdUnitsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateAdUnitsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchActivateAdUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchActivateAdUnitsResponse other) { + if (other == com.google.ads.admanager.v1.BatchActivateAdUnitsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.BatchActivateAdUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateAdUnitsResponse) + private static final com.google.ads.admanager.v1.BatchActivateAdUnitsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateAdUnitsResponse(); + } + + public static com.google.ads.admanager.v1.BatchActivateAdUnitsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateAdUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateAdUnitsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..7b98df7f212c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateAdUnitsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateAdUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateAdUnitsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequest.java new file mode 100644 index 000000000000..f18f405b8896 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequest.java @@ -0,0 +1,1004 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchActivateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest} + */ +public final class BatchActivateCustomTargetingKeysRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) + BatchActivateCustomTargetingKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateCustomTargetingKeysRequest.newBuilder() to construct. + private BatchActivateCustomTargetingKeysRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateCustomTargetingKeysRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateCustomTargetingKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest other = + (com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + 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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest 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 object for `BatchActivateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest build() { + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest buildPartial() { + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest result = + new com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest other) { + if (other + == com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to activate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + 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.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) + private static final com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest(); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateCustomTargetingKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequestOrBuilder.java new file mode 100644 index 000000000000..27c225041024 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateCustomTargetingKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to activate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponse.java new file mode 100644 index 000000000000..f103074c3db1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponse.java @@ -0,0 +1,447 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchActivateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse} + */ +public final class BatchActivateCustomTargetingKeysResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) + BatchActivateCustomTargetingKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchActivateCustomTargetingKeysResponse.newBuilder() to construct. + private BatchActivateCustomTargetingKeysResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchActivateCustomTargetingKeysResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchActivateCustomTargetingKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse other = + (com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + 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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchActivateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse build() { + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse buildPartial() { + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse result = + new com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse other) { + if (other + == com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) + private static final com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse(); + } + + public static com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchActivateCustomTargetingKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponseOrBuilder.java new file mode 100644 index 000000000000..bef49b82fa5f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchActivateCustomTargetingKeysResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchActivateCustomTargetingKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequest.java new file mode 100644 index 000000000000..f02d2e21ac8c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchArchiveAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchArchiveAdUnitsRequest} + */ +public final class BatchArchiveAdUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchArchiveAdUnitsRequest) + BatchArchiveAdUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchArchiveAdUnitsRequest.newBuilder() to construct. + private BatchArchiveAdUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchArchiveAdUnitsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchArchiveAdUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.ads.admanager.v1.BatchArchiveAdUnitsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest other = + (com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest 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.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest 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.ads.admanager.v1.BatchArchiveAdUnitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest 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.ads.admanager.v1.BatchArchiveAdUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest 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.ads.admanager.v1.BatchArchiveAdUnitsRequest 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 object for `BatchArchiveAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchArchiveAdUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchArchiveAdUnitsRequest) + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest build() { + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest buildPartial() { + com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest result = + new com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest other) { + if (other == com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to archive.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + 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.ads.admanager.v1.BatchArchiveAdUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchArchiveAdUnitsRequest) + private static final com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest(); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchArchiveAdUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..29bd7981f20d --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchArchiveAdUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchArchiveAdUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to archive.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponse.java new file mode 100644 index 000000000000..130de82cbfe5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponse.java @@ -0,0 +1,435 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchArchiveAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchArchiveAdUnitsResponse} + */ +public final class BatchArchiveAdUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchArchiveAdUnitsResponse) + BatchArchiveAdUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchArchiveAdUnitsResponse.newBuilder() to construct. + private BatchArchiveAdUnitsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchArchiveAdUnitsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchArchiveAdUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.BatchArchiveAdUnitsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse other = + (com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse 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.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse 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.ads.admanager.v1.BatchArchiveAdUnitsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse 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.ads.admanager.v1.BatchArchiveAdUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse 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.ads.admanager.v1.BatchArchiveAdUnitsResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchArchiveAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchArchiveAdUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchArchiveAdUnitsResponse) + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchArchiveAdUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse build() { + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse buildPartial() { + com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse result = + new com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse other) { + if (other == com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.BatchArchiveAdUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchArchiveAdUnitsResponse) + private static final com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse(); + } + + public static com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchArchiveAdUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..4d617ac4b946 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchArchiveAdUnitsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchArchiveAdUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchArchiveAdUnitsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequest.java new file mode 100644 index 000000000000..42c1177b0010 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequest.java @@ -0,0 +1,1258 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchCreateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateAdUnitsRequest} + */ +public final class BatchCreateAdUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateAdUnitsRequest) + BatchCreateAdUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateAdUnitsRequest.newBuilder() to construct. + private BatchCreateAdUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAdUnitsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAdUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchCreateAdUnitsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest other = + (com.google.ads.admanager.v1.BatchCreateAdUnitsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest 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.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest 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.ads.admanager.v1.BatchCreateAdUnitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest 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.ads.admanager.v1.BatchCreateAdUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest 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.ads.admanager.v1.BatchCreateAdUnitsRequest 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 object for `BatchCreateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateAdUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateAdUnitsRequest) + com.google.ads.admanager.v1.BatchCreateAdUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsRequest build() { + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest result = + new com.google.ads.admanager.v1.BatchCreateAdUnitsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateAdUnitsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateAdUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateAdUnitsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateAdUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateAdUnitsRequest other) { + if (other == com.google.ads.admanager.v1.BatchCreateAdUnitsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.CreateAdUnitRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateAdUnitRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateAdUnitRequest, + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder, + com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateAdUnitRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.CreateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.CreateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateAdUnitRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateAdUnitRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CreateAdUnitRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateAdUnitRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CreateAdUnitRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateAdUnitRequest, + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder, + com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateAdUnitRequest, + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder, + com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.ads.admanager.v1.BatchCreateAdUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateAdUnitsRequest) + private static final com.google.ads.admanager.v1.BatchCreateAdUnitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateAdUnitsRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAdUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..5831708fc196 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateAdUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateAdUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateAdUnitRequest getRequests(int index); + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponse.java new file mode 100644 index 000000000000..af5192c91bf5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponse.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchCreateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateAdUnitsResponse} + */ +public final class BatchCreateAdUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateAdUnitsResponse) + BatchCreateAdUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateAdUnitsResponse.newBuilder() to construct. + private BatchCreateAdUnitsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAdUnitsResponse() { + adUnits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAdUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.Builder.class); + } + + public static final int AD_UNITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adUnits_; + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public java.util.List getAdUnitsList() { + return adUnits_; + } + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public java.util.List + getAdUnitsOrBuilderList() { + return adUnits_; + } + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public int getAdUnitsCount() { + return adUnits_.size(); + } + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnit getAdUnits(int index) { + return adUnits_.get(index); + } + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index) { + return adUnits_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < adUnits_.size(); i++) { + output.writeMessage(1, adUnits_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < adUnits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adUnits_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchCreateAdUnitsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse other = + (com.google.ads.admanager.v1.BatchCreateAdUnitsResponse) obj; + + if (!getAdUnitsList().equals(other.getAdUnitsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAdUnitsCount() > 0) { + hash = (37 * hash) + AD_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getAdUnitsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse 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.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse 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.ads.admanager.v1.BatchCreateAdUnitsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse 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.ads.admanager.v1.BatchCreateAdUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse 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.ads.admanager.v1.BatchCreateAdUnitsResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchCreateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateAdUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateAdUnitsResponse) + com.google.ads.admanager.v1.BatchCreateAdUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adUnitsBuilder_ == null) { + adUnits_ = java.util.Collections.emptyList(); + } else { + adUnits_ = null; + adUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateAdUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsResponse build() { + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse result = + new com.google.ads.admanager.v1.BatchCreateAdUnitsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateAdUnitsResponse result) { + if (adUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adUnits_ = java.util.Collections.unmodifiableList(adUnits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adUnits_ = adUnits_; + } else { + result.adUnits_ = adUnitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchCreateAdUnitsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateAdUnitsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateAdUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchCreateAdUnitsResponse other) { + if (other == com.google.ads.admanager.v1.BatchCreateAdUnitsResponse.getDefaultInstance()) + return this; + if (adUnitsBuilder_ == null) { + if (!other.adUnits_.isEmpty()) { + if (adUnits_.isEmpty()) { + adUnits_ = other.adUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdUnitsIsMutable(); + adUnits_.addAll(other.adUnits_); + } + onChanged(); + } + } else { + if (!other.adUnits_.isEmpty()) { + if (adUnitsBuilder_.isEmpty()) { + adUnitsBuilder_.dispose(); + adUnitsBuilder_ = null; + adUnits_ = other.adUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + adUnitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdUnitsFieldBuilder() + : null; + } else { + adUnitsBuilder_.addAllMessages(other.adUnits_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.admanager.v1.AdUnit m = + input.readMessage( + com.google.ads.admanager.v1.AdUnit.parser(), extensionRegistry); + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(m); + } else { + adUnitsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List adUnits_ = + java.util.Collections.emptyList(); + + private void ensureAdUnitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adUnits_ = new java.util.ArrayList(adUnits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + adUnitsBuilder_; + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List getAdUnitsList() { + if (adUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(adUnits_); + } else { + return adUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public int getAdUnitsCount() { + if (adUnitsBuilder_ == null) { + return adUnits_.size(); + } else { + return adUnitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit getAdUnits(int index) { + if (adUnitsBuilder_ == null) { + return adUnits_.get(index); + } else { + return adUnitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder setAdUnits(int index, com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.set(index, value); + onChanged(); + } else { + adUnitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder setAdUnits( + int index, com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.add(value); + onChanged(); + } else { + adUnitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(int index, com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.add(index, value); + onChanged(); + } else { + adUnitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits( + int index, com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAllAdUnits( + java.lang.Iterable values) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adUnits_); + onChanged(); + } else { + adUnitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder clearAdUnits() { + if (adUnitsBuilder_ == null) { + adUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adUnitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder removeAdUnits(int index) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.remove(index); + onChanged(); + } else { + adUnitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder getAdUnitsBuilder(int index) { + return getAdUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index) { + if (adUnitsBuilder_ == null) { + return adUnits_.get(index); + } else { + return adUnitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List + getAdUnitsOrBuilderList() { + if (adUnitsBuilder_ != null) { + return adUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adUnits_); + } + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder addAdUnitsBuilder() { + return getAdUnitsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdUnit.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder addAdUnitsBuilder(int index) { + return getAdUnitsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdUnit.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdUnit` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List getAdUnitsBuilderList() { + return getAdUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + getAdUnitsFieldBuilder() { + if (adUnitsBuilder_ == null) { + adUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder>( + adUnits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adUnits_ = null; + } + return adUnitsBuilder_; + } + + @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.ads.admanager.v1.BatchCreateAdUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateAdUnitsResponse) + private static final com.google.ads.admanager.v1.BatchCreateAdUnitsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateAdUnitsResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateAdUnitsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAdUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateAdUnitsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..7658977f341c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateAdUnitsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateAdUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateAdUnitsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + java.util.List getAdUnitsList(); + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + com.google.ads.admanager.v1.AdUnit getAdUnits(int index); + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + int getAdUnitsCount(); + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + java.util.List getAdUnitsOrBuilderList(); + + /** + * + * + *
+   * The `AdUnit` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequest.java new file mode 100644 index 000000000000..453d8ac4d41f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchCreateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest} + */ +public final class BatchCreateCustomTargetingKeysRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) + BatchCreateCustomTargetingKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateCustomTargetingKeysRequest.newBuilder() to construct. + private BatchCreateCustomTargetingKeysRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateCustomTargetingKeysRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateCustomTargetingKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest other = + (com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + 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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest 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 object for `BatchCreateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest build() { + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest buildPartial() { + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest result = + new com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest other) { + if (other + == com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest m = + input.readMessage( + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be created.
+     * Format: `networks/{network_code}`
+     * The parent field in the CreateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to create.
+     * A maximum of 100 objects can be created in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) + private static final com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest(); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateCustomTargetingKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequestOrBuilder.java new file mode 100644 index 000000000000..b72b839ed63f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateCustomTargetingKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be created.
+   * Format: `networks/{network_code}`
+   * The parent field in the CreateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getRequests(int index); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to create.
+   * A maximum of 100 objects can be created in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CreateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponse.java new file mode 100644 index 000000000000..5bb0c7f6b368 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponse.java @@ -0,0 +1,989 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchCreateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse} + */ +public final class BatchCreateCustomTargetingKeysResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) + BatchCreateCustomTargetingKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchCreateCustomTargetingKeysResponse.newBuilder() to construct. + private BatchCreateCustomTargetingKeysResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateCustomTargetingKeysResponse() { + customTargetingKeys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateCustomTargetingKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse.Builder.class); + } + + public static final int CUSTOM_TARGETING_KEYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customTargetingKeys_; + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public java.util.List + getCustomTargetingKeysList() { + return customTargetingKeys_; + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public java.util.List + getCustomTargetingKeysOrBuilderList() { + return customTargetingKeys_; + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public int getCustomTargetingKeysCount() { + return customTargetingKeys_.size(); + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index) { + return customTargetingKeys_.get(index); + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index) { + return customTargetingKeys_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customTargetingKeys_.size(); i++) { + output.writeMessage(1, customTargetingKeys_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customTargetingKeys_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customTargetingKeys_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse other = + (com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) obj; + + if (!getCustomTargetingKeysList().equals(other.getCustomTargetingKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomTargetingKeysCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGETING_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + 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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchCreateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customTargetingKeysBuilder_ == null) { + customTargetingKeys_ = java.util.Collections.emptyList(); + } else { + customTargetingKeys_ = null; + customTargetingKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse build() { + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse buildPartial() { + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse result = + new com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse result) { + if (customTargetingKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customTargetingKeys_ = java.util.Collections.unmodifiableList(customTargetingKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customTargetingKeys_ = customTargetingKeys_; + } else { + result.customTargetingKeys_ = customTargetingKeysBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse other) { + if (other + == com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + .getDefaultInstance()) return this; + if (customTargetingKeysBuilder_ == null) { + if (!other.customTargetingKeys_.isEmpty()) { + if (customTargetingKeys_.isEmpty()) { + customTargetingKeys_ = other.customTargetingKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.addAll(other.customTargetingKeys_); + } + onChanged(); + } + } else { + if (!other.customTargetingKeys_.isEmpty()) { + if (customTargetingKeysBuilder_.isEmpty()) { + customTargetingKeysBuilder_.dispose(); + customTargetingKeysBuilder_ = null; + customTargetingKeys_ = other.customTargetingKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + customTargetingKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetingKeysFieldBuilder() + : null; + } else { + customTargetingKeysBuilder_.addAllMessages(other.customTargetingKeys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.admanager.v1.CustomTargetingKey m = + input.readMessage( + com.google.ads.admanager.v1.CustomTargetingKey.parser(), extensionRegistry); + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(m); + } else { + customTargetingKeysBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customTargetingKeys_ = + java.util.Collections.emptyList(); + + private void ensureCustomTargetingKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customTargetingKeys_ = + new java.util.ArrayList( + customTargetingKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + customTargetingKeysBuilder_; + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysList() { + if (customTargetingKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetingKeys_); + } else { + return customTargetingKeysBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public int getCustomTargetingKeysCount() { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.size(); + } else { + return customTargetingKeysBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index) { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.get(index); + } else { + return customTargetingKeysBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder setCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.set(index, value); + onChanged(); + } else { + customTargetingKeysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder setCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(value); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(index, value); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addAllCustomTargetingKeys( + java.lang.Iterable values) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetingKeys_); + onChanged(); + } else { + customTargetingKeysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder clearCustomTargetingKeys() { + if (customTargetingKeysBuilder_ == null) { + customTargetingKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customTargetingKeysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder removeCustomTargetingKeys(int index) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.remove(index); + onChanged(); + } else { + customTargetingKeysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder getCustomTargetingKeysBuilder( + int index) { + return getCustomTargetingKeysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index) { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.get(index); + } else { + return customTargetingKeysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysOrBuilderList() { + if (customTargetingKeysBuilder_ != null) { + return customTargetingKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetingKeys_); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder addCustomTargetingKeysBuilder() { + return getCustomTargetingKeysFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder addCustomTargetingKeysBuilder( + int index) { + return getCustomTargetingKeysFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects created.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysBuilderList() { + return getCustomTargetingKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + getCustomTargetingKeysFieldBuilder() { + if (customTargetingKeysBuilder_ == null) { + customTargetingKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder>( + customTargetingKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customTargetingKeys_ = null; + } + return customTargetingKeysBuilder_; + } + + @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.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) + private static final com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse(); + } + + public static com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateCustomTargetingKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponseOrBuilder.java new file mode 100644 index 000000000000..ebeabe37f05c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchCreateCustomTargetingKeysResponseOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchCreateCustomTargetingKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + java.util.List getCustomTargetingKeysList(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index); + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + int getCustomTargetingKeysCount(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + java.util.List + getCustomTargetingKeysOrBuilderList(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects created.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequest.java new file mode 100644 index 000000000000..1a8706450140 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequest.java @@ -0,0 +1,978 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchDeactivateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateAdUnitsRequest} + */ +public final class BatchDeactivateAdUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) + BatchDeactivateAdUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateAdUnitsRequest.newBuilder() to construct. + private BatchDeactivateAdUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateAdUnitsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateAdUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.ads.admanager.v1.BatchDeactivateAdUnitsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest other = + (com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest 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.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest 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.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest 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.ads.admanager.v1.BatchDeactivateAdUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest 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.ads.admanager.v1.BatchDeactivateAdUnitsRequest 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 object for `BatchDeactivateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateAdUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest build() { + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest result = + new com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `AdUnit`s to deactivate.
+     * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + 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.ads.admanager.v1.BatchDeactivateAdUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) + private static final com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateAdUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..e178096d8ae5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsRequestOrBuilder.java @@ -0,0 +1,122 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateAdUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateAdUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the `AdUnit`s to deactivate.
+   * Format: `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponse.java new file mode 100644 index 000000000000..57e7b454e4fd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponse.java @@ -0,0 +1,436 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchDeactivateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateAdUnitsResponse} + */ +public final class BatchDeactivateAdUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) + BatchDeactivateAdUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateAdUnitsResponse.newBuilder() to construct. + private BatchDeactivateAdUnitsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateAdUnitsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateAdUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.BatchDeactivateAdUnitsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse other = + (com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse 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.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse 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.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse 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.ads.admanager.v1.BatchDeactivateAdUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse 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.ads.admanager.v1.BatchDeactivateAdUnitsResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchDeactivateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateAdUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateAdUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse build() { + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse result = + new com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse other) { + if (other == com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.BatchDeactivateAdUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) + private static final com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateAdUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..e382d65272fe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateAdUnitsResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateAdUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateAdUnitsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequest.java new file mode 100644 index 000000000000..943ac21de030 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequest.java @@ -0,0 +1,1006 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request message for `BatchDeactivateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest} + */ +public final class BatchDeactivateCustomTargetingKeysRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) + BatchDeactivateCustomTargetingKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateCustomTargetingKeysRequest.newBuilder() to construct. + private BatchDeactivateCustomTargetingKeysRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateCustomTargetingKeysRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateCustomTargetingKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + size += getUnknownFields().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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest other = + (com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest 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 `BatchDeactivateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest build() { + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest result = + new com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+     * Format:
+     * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) + private static final com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateCustomTargetingKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequestOrBuilder.java new file mode 100644 index 000000000000..d70cd1d73dd4 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateCustomTargetingKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the `CustomTargetingKey`s to deactivate.
+   * Format:
+   * `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}`
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponse.java new file mode 100644 index 000000000000..47694333798a --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponse.java @@ -0,0 +1,450 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchDeactivateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse} + */ +public final class BatchDeactivateCustomTargetingKeysResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) + BatchDeactivateCustomTargetingKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchDeactivateCustomTargetingKeysResponse.newBuilder() to construct. + private BatchDeactivateCustomTargetingKeysResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeactivateCustomTargetingKeysResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeactivateCustomTargetingKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse other = + (com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchDeactivateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse build() { + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse buildPartial() { + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse result = + new com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse other) { + if (other + == com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) + private static final com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse(); + } + + public static com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeactivateCustomTargetingKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponseOrBuilder.java new file mode 100644 index 000000000000..62c976b4158b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchDeactivateCustomTargetingKeysResponseOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchDeactivateCustomTargetingKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequest.java new file mode 100644 index 000000000000..360f61441099 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequest.java @@ -0,0 +1,1258 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchUpdateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateAdUnitsRequest} + */ +public final class BatchUpdateAdUnitsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateAdUnitsRequest) + BatchUpdateAdUnitsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateAdUnitsRequest.newBuilder() to construct. + private BatchUpdateAdUnitsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAdUnitsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAdUnitsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder getRequestsOrBuilder(int index) { + return requests_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchUpdateAdUnitsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest other = + (com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest 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.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest 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.ads.admanager.v1.BatchUpdateAdUnitsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest 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.ads.admanager.v1.BatchUpdateAdUnitsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest 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.ads.admanager.v1.BatchUpdateAdUnitsRequest 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 object for `BatchUpdateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateAdUnitsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateAdUnitsRequest) + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.class, + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest build() { + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest result = + new com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest other) { + if (other == com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.UpdateAdUnitRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateAdUnitRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnits` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `AdUnits` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateAdUnitRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateAdUnitRequest, + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder, + com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateAdUnitRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests(int index, com.google.ads.admanager.v1.UpdateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(int index, com.google.ads.admanager.v1.UpdateAdUnitRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder getRequestsBuilder(int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.UpdateAdUnitRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder addRequestsBuilder(int index) { + return getRequestsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.UpdateAdUnitRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `AdUnit` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateAdUnitRequest, + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder, + com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateAdUnitRequest, + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder, + com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.ads.admanager.v1.BatchUpdateAdUnitsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateAdUnitsRequest) + private static final com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAdUnitsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequestOrBuilder.java new file mode 100644 index 000000000000..de0f4d564632 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsRequestOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateAdUnitsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateAdUnitsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where `AdUnits` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateAdUnitRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateAdUnitRequest getRequests(int index); + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. The `AdUnit` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateAdUnitRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder getRequestsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponse.java new file mode 100644 index 000000000000..f13e49da5905 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponse.java @@ -0,0 +1,960 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchUpdateAdUnits` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateAdUnitsResponse} + */ +public final class BatchUpdateAdUnitsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateAdUnitsResponse) + BatchUpdateAdUnitsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateAdUnitsResponse.newBuilder() to construct. + private BatchUpdateAdUnitsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAdUnitsResponse() { + adUnits_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAdUnitsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.Builder.class); + } + + public static final int AD_UNITS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adUnits_; + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public java.util.List getAdUnitsList() { + return adUnits_; + } + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public java.util.List + getAdUnitsOrBuilderList() { + return adUnits_; + } + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public int getAdUnitsCount() { + return adUnits_.size(); + } + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnit getAdUnits(int index) { + return adUnits_.get(index); + } + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index) { + return adUnits_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < adUnits_.size(); i++) { + output.writeMessage(1, adUnits_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < adUnits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adUnits_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchUpdateAdUnitsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse other = + (com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse) obj; + + if (!getAdUnitsList().equals(other.getAdUnitsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAdUnitsCount() > 0) { + hash = (37 * hash) + AD_UNITS_FIELD_NUMBER; + hash = (53 * hash) + getAdUnitsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse 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.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse 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.ads.admanager.v1.BatchUpdateAdUnitsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse 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.ads.admanager.v1.BatchUpdateAdUnitsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse 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.ads.admanager.v1.BatchUpdateAdUnitsResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchUpdateAdUnits` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateAdUnitsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateAdUnitsResponse) + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.class, + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adUnitsBuilder_ == null) { + adUnits_ = java.util.Collections.emptyList(); + } else { + adUnits_ = null; + adUnitsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateAdUnitsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse build() { + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse result = + new com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse result) { + if (adUnitsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adUnits_ = java.util.Collections.unmodifiableList(adUnits_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adUnits_ = adUnits_; + } else { + result.adUnits_ = adUnitsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse other) { + if (other == com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse.getDefaultInstance()) + return this; + if (adUnitsBuilder_ == null) { + if (!other.adUnits_.isEmpty()) { + if (adUnits_.isEmpty()) { + adUnits_ = other.adUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdUnitsIsMutable(); + adUnits_.addAll(other.adUnits_); + } + onChanged(); + } + } else { + if (!other.adUnits_.isEmpty()) { + if (adUnitsBuilder_.isEmpty()) { + adUnitsBuilder_.dispose(); + adUnitsBuilder_ = null; + adUnits_ = other.adUnits_; + bitField0_ = (bitField0_ & ~0x00000001); + adUnitsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdUnitsFieldBuilder() + : null; + } else { + adUnitsBuilder_.addAllMessages(other.adUnits_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.admanager.v1.AdUnit m = + input.readMessage( + com.google.ads.admanager.v1.AdUnit.parser(), extensionRegistry); + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(m); + } else { + adUnitsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List adUnits_ = + java.util.Collections.emptyList(); + + private void ensureAdUnitsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adUnits_ = new java.util.ArrayList(adUnits_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + adUnitsBuilder_; + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List getAdUnitsList() { + if (adUnitsBuilder_ == null) { + return java.util.Collections.unmodifiableList(adUnits_); + } else { + return adUnitsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public int getAdUnitsCount() { + if (adUnitsBuilder_ == null) { + return adUnits_.size(); + } else { + return adUnitsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit getAdUnits(int index) { + if (adUnitsBuilder_ == null) { + return adUnits_.get(index); + } else { + return adUnitsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder setAdUnits(int index, com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.set(index, value); + onChanged(); + } else { + adUnitsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder setAdUnits( + int index, com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.set(index, builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.add(value); + onChanged(); + } else { + adUnitsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(int index, com.google.ads.admanager.v1.AdUnit value) { + if (adUnitsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdUnitsIsMutable(); + adUnits_.add(index, value); + onChanged(); + } else { + adUnitsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits(com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAdUnits( + int index, com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.add(index, builderForValue.build()); + onChanged(); + } else { + adUnitsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder addAllAdUnits( + java.lang.Iterable values) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adUnits_); + onChanged(); + } else { + adUnitsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder clearAdUnits() { + if (adUnitsBuilder_ == null) { + adUnits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adUnitsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public Builder removeAdUnits(int index) { + if (adUnitsBuilder_ == null) { + ensureAdUnitsIsMutable(); + adUnits_.remove(index); + onChanged(); + } else { + adUnitsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder getAdUnitsBuilder(int index) { + return getAdUnitsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index) { + if (adUnitsBuilder_ == null) { + return adUnits_.get(index); + } else { + return adUnitsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List + getAdUnitsOrBuilderList() { + if (adUnitsBuilder_ != null) { + return adUnitsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adUnits_); + } + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder addAdUnitsBuilder() { + return getAdUnitsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.AdUnit.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public com.google.ads.admanager.v1.AdUnit.Builder addAdUnitsBuilder(int index) { + return getAdUnitsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.AdUnit.getDefaultInstance()); + } + + /** + * + * + *
+     * The `AdUnit` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + public java.util.List getAdUnitsBuilderList() { + return getAdUnitsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + getAdUnitsFieldBuilder() { + if (adUnitsBuilder_ == null) { + adUnitsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder>( + adUnits_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adUnits_ = null; + } + return adUnitsBuilder_; + } + + @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.ads.admanager.v1.BatchUpdateAdUnitsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateAdUnitsResponse) + private static final com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAdUnitsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponseOrBuilder.java new file mode 100644 index 000000000000..68a933511e36 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateAdUnitsResponseOrBuilder.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateAdUnitsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateAdUnitsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + java.util.List getAdUnitsList(); + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + com.google.ads.admanager.v1.AdUnit getAdUnits(int index); + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + int getAdUnitsCount(); + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + java.util.List getAdUnitsOrBuilderList(); + + /** + * + * + *
+   * The `AdUnit` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.AdUnit ad_units = 1; + */ + com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitsOrBuilder(int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequest.java new file mode 100644 index 000000000000..f14a9728d413 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequest.java @@ -0,0 +1,1286 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `BatchUpdateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest} + */ +public final class BatchUpdateCustomTargetingKeysRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) + BatchUpdateCustomTargetingKeysRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateCustomTargetingKeysRequest.newBuilder() to construct. + private BatchUpdateCustomTargetingKeysRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateCustomTargetingKeysRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateCustomTargetingKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getRequests(int index) { + return requests_.get(index); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest other = + (com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest 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 object for `BatchUpdateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.class, + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest build() { + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest buildPartial() { + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest result = + new com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) { + return mergeFrom((com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest other) { + if (other + == com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest m = + input.readMessage( + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKeys` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where `CustomTargetingKeys` will be updated.
+     * Format: `networks/{network_code}`
+     * The parent field in the UpdateCustomTargetingKeyRequest must match this
+     * field.
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List requests_ = + java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests(com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.getDefaultInstance()); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` objects to update.
+     * A maximum of 100 objects can be updated in a batch.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @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.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) + private static final com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest(); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateCustomTargetingKeysRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequestOrBuilder.java new file mode 100644 index 000000000000..271d73a9e020 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysRequestOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateCustomTargetingKeysRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where `CustomTargetingKeys` will be updated.
+   * Format: `networks/{network_code}`
+   * The parent field in the UpdateCustomTargetingKeyRequest must match this
+   * field.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getRequests(int index); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` objects to update.
+   * A maximum of 100 objects can be updated in a batch.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.UpdateCustomTargetingKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponse.java new file mode 100644 index 000000000000..9847c824ac1e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponse.java @@ -0,0 +1,989 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `BatchUpdateCustomTargetingKeys` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse} + */ +public final class BatchUpdateCustomTargetingKeysResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) + BatchUpdateCustomTargetingKeysResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use BatchUpdateCustomTargetingKeysResponse.newBuilder() to construct. + private BatchUpdateCustomTargetingKeysResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateCustomTargetingKeysResponse() { + customTargetingKeys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateCustomTargetingKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse.Builder.class); + } + + public static final int CUSTOM_TARGETING_KEYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customTargetingKeys_; + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public java.util.List + getCustomTargetingKeysList() { + return customTargetingKeys_; + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public java.util.List + getCustomTargetingKeysOrBuilderList() { + return customTargetingKeys_; + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public int getCustomTargetingKeysCount() { + return customTargetingKeys_.size(); + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index) { + return customTargetingKeys_.get(index); + } + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index) { + return customTargetingKeys_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customTargetingKeys_.size(); i++) { + output.writeMessage(1, customTargetingKeys_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customTargetingKeys_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customTargetingKeys_.get(i)); + } + size += getUnknownFields().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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse other = + (com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) obj; + + if (!getCustomTargetingKeysList().equals(other.getCustomTargetingKeysList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getCustomTargetingKeysCount() > 0) { + hash = (37 * hash) + CUSTOM_TARGETING_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse 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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse 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; + } + + /** + * + * + *
+   * Response object for `BatchUpdateCustomTargetingKeys` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse.class, + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse.Builder.class); + } + + // Construct using + // com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customTargetingKeysBuilder_ == null) { + customTargetingKeys_ = java.util.Collections.emptyList(); + } else { + customTargetingKeys_ = null; + customTargetingKeysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse build() { + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse buildPartial() { + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse result = + new com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse result) { + if (customTargetingKeysBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customTargetingKeys_ = java.util.Collections.unmodifiableList(customTargetingKeys_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customTargetingKeys_ = customTargetingKeys_; + } else { + result.customTargetingKeys_ = customTargetingKeysBuilder_.build(); + } + } + + private void buildPartial0( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) { + return mergeFrom( + (com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse other) { + if (other + == com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + .getDefaultInstance()) return this; + if (customTargetingKeysBuilder_ == null) { + if (!other.customTargetingKeys_.isEmpty()) { + if (customTargetingKeys_.isEmpty()) { + customTargetingKeys_ = other.customTargetingKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.addAll(other.customTargetingKeys_); + } + onChanged(); + } + } else { + if (!other.customTargetingKeys_.isEmpty()) { + if (customTargetingKeysBuilder_.isEmpty()) { + customTargetingKeysBuilder_.dispose(); + customTargetingKeysBuilder_ = null; + customTargetingKeys_ = other.customTargetingKeys_; + bitField0_ = (bitField0_ & ~0x00000001); + customTargetingKeysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomTargetingKeysFieldBuilder() + : null; + } else { + customTargetingKeysBuilder_.addAllMessages(other.customTargetingKeys_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.admanager.v1.CustomTargetingKey m = + input.readMessage( + com.google.ads.admanager.v1.CustomTargetingKey.parser(), extensionRegistry); + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(m); + } else { + customTargetingKeysBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customTargetingKeys_ = + java.util.Collections.emptyList(); + + private void ensureCustomTargetingKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customTargetingKeys_ = + new java.util.ArrayList( + customTargetingKeys_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + customTargetingKeysBuilder_; + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysList() { + if (customTargetingKeysBuilder_ == null) { + return java.util.Collections.unmodifiableList(customTargetingKeys_); + } else { + return customTargetingKeysBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public int getCustomTargetingKeysCount() { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.size(); + } else { + return customTargetingKeysBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index) { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.get(index); + } else { + return customTargetingKeysBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder setCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.set(index, value); + onChanged(); + } else { + customTargetingKeysBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder setCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.set(index, builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(value); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(index, value); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addCustomTargetingKeys( + int index, com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.add(index, builderForValue.build()); + onChanged(); + } else { + customTargetingKeysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder addAllCustomTargetingKeys( + java.lang.Iterable values) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customTargetingKeys_); + onChanged(); + } else { + customTargetingKeysBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder clearCustomTargetingKeys() { + if (customTargetingKeysBuilder_ == null) { + customTargetingKeys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customTargetingKeysBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public Builder removeCustomTargetingKeys(int index) { + if (customTargetingKeysBuilder_ == null) { + ensureCustomTargetingKeysIsMutable(); + customTargetingKeys_.remove(index); + onChanged(); + } else { + customTargetingKeysBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder getCustomTargetingKeysBuilder( + int index) { + return getCustomTargetingKeysFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index) { + if (customTargetingKeysBuilder_ == null) { + return customTargetingKeys_.get(index); + } else { + return customTargetingKeysBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysOrBuilderList() { + if (customTargetingKeysBuilder_ != null) { + return customTargetingKeysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customTargetingKeys_); + } + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder addCustomTargetingKeysBuilder() { + return getCustomTargetingKeysFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder addCustomTargetingKeysBuilder( + int index) { + return getCustomTargetingKeysFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()); + } + + /** + * + * + *
+     * The `CustomTargetingKey` objects updated.
+     * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + public java.util.List + getCustomTargetingKeysBuilderList() { + return getCustomTargetingKeysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + getCustomTargetingKeysFieldBuilder() { + if (customTargetingKeysBuilder_ == null) { + customTargetingKeysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder>( + customTargetingKeys_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customTargetingKeys_ = null; + } + return customTargetingKeysBuilder_; + } + + @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.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) + private static final com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse(); + } + + public static com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateCustomTargetingKeysResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponseOrBuilder.java new file mode 100644 index 000000000000..29d91edf893b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/BatchUpdateCustomTargetingKeysResponseOrBuilder.java @@ -0,0 +1,83 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface BatchUpdateCustomTargetingKeysResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + java.util.List getCustomTargetingKeysList(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKeys(int index); + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + int getCustomTargetingKeysCount(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + java.util.List + getCustomTargetingKeysOrBuilderList(); + + /** + * + * + *
+   * The `CustomTargetingKey` objects updated.
+   * 
+ * + * repeated .google.ads.admanager.v1.CustomTargetingKey custom_targeting_keys = 1; + */ + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeysOrBuilder( + int index); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequest.java new file mode 100644 index 000000000000..2325557bad5f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `CreateAdUnit` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateAdUnitRequest} + */ +public final class CreateAdUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateAdUnitRequest) + CreateAdUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateAdUnitRequest.newBuilder() to construct. + private CreateAdUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAdUnitRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAdUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_CreateAdUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateAdUnitRequest.class, + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this `AdUnit` will be created.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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 `AdUnit` will be created.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int AD_UNIT_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.AdUnit adUnit_; + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + @java.lang.Override + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnit getAdUnit() { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder() { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAdUnit()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdUnit()); + } + size += getUnknownFields().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.ads.admanager.v1.CreateAdUnitRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateAdUnitRequest other = + (com.google.ads.admanager.v1.CreateAdUnitRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAdUnit() != other.hasAdUnit()) return false; + if (hasAdUnit()) { + if (!getAdUnit().equals(other.getAdUnit())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAdUnit()) { + hash = (37 * hash) + AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getAdUnit().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest 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.ads.admanager.v1.CreateAdUnitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest 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.ads.admanager.v1.CreateAdUnitRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest 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.ads.admanager.v1.CreateAdUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest 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.ads.admanager.v1.CreateAdUnitRequest 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 object for `CreateAdUnit` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateAdUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateAdUnitRequest) + com.google.ads.admanager.v1.CreateAdUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_CreateAdUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateAdUnitRequest.class, + com.google.ads.admanager.v1.CreateAdUnitRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateAdUnitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAdUnitFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + adUnit_ = null; + if (adUnitBuilder_ != null) { + adUnitBuilder_.dispose(); + adUnitBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_CreateAdUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateAdUnitRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequest build() { + com.google.ads.admanager.v1.CreateAdUnitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequest buildPartial() { + com.google.ads.admanager.v1.CreateAdUnitRequest result = + new com.google.ads.admanager.v1.CreateAdUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateAdUnitRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adUnit_ = adUnitBuilder_ == null ? adUnit_ : adUnitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateAdUnitRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateAdUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateAdUnitRequest other) { + if (other == com.google.ads.admanager.v1.CreateAdUnitRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAdUnit()) { + mergeAdUnit(other.getAdUnit()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAdUnitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this `AdUnit` will be created.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnit` will be created.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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 `AdUnit` will be created.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this `AdUnit` will be created.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this `AdUnit` will be created.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.AdUnit adUnit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + adUnitBuilder_; + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + public com.google.ads.admanager.v1.AdUnit getAdUnit() { + if (adUnitBuilder_ == null) { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } else { + return adUnitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdUnit(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adUnit_ = value; + } else { + adUnitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdUnit(com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitBuilder_ == null) { + adUnit_ = builderForValue.build(); + } else { + adUnitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAdUnit(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && adUnit_ != null + && adUnit_ != com.google.ads.admanager.v1.AdUnit.getDefaultInstance()) { + getAdUnitBuilder().mergeFrom(value); + } else { + adUnit_ = value; + } + } else { + adUnitBuilder_.mergeFrom(value); + } + if (adUnit_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdUnit() { + bitField0_ = (bitField0_ & ~0x00000002); + adUnit_ = null; + if (adUnitBuilder_ != null) { + adUnitBuilder_.dispose(); + adUnitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdUnit.Builder getAdUnitBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdUnitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder() { + if (adUnitBuilder_ != null) { + return adUnitBuilder_.getMessageOrBuilder(); + } else { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + } + + /** + * + * + *
+     * Required. The `AdUnit` to create.
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + getAdUnitFieldBuilder() { + if (adUnitBuilder_ == null) { + adUnitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder>( + getAdUnit(), getParentForChildren(), isClean()); + adUnit_ = null; + } + return adUnitBuilder_; + } + + @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.ads.admanager.v1.CreateAdUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateAdUnitRequest) + private static final com.google.ads.admanager.v1.CreateAdUnitRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateAdUnitRequest(); + } + + public static com.google.ads.admanager.v1.CreateAdUnitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAdUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateAdUnitRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequestOrBuilder.java new file mode 100644 index 000000000000..885cf1d3fa8b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateAdUnitRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateAdUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateAdUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this `AdUnit` will be created.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this `AdUnit` will be created.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + boolean hasAdUnit(); + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + com.google.ads.admanager.v1.AdUnit getAdUnit(); + + /** + * + * + *
+   * Required. The `AdUnit` to create.
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequest.java new file mode 100644 index 000000000000..c559e497fea6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequest.java @@ -0,0 +1,979 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `CreateCustomTargetingKey` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateCustomTargetingKeyRequest} + */ +public final class CreateCustomTargetingKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.CreateCustomTargetingKeyRequest) + CreateCustomTargetingKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CreateCustomTargetingKeyRequest.newBuilder() to construct. + private CreateCustomTargetingKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomTargetingKeyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomTargetingKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.class, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where this `CustomTargetingKey` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKey` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER = 2; + private com.google.ads.admanager.v1.CustomTargetingKey customTargetingKey_; + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey() { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeyOrBuilder() { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCustomTargetingKey()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomTargetingKey()); + } + size += getUnknownFields().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.ads.admanager.v1.CreateCustomTargetingKeyRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest other = + (com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomTargetingKey() != other.hasCustomTargetingKey()) return false; + if (hasCustomTargetingKey()) { + if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomTargetingKey()) { + hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest 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.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest 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.ads.admanager.v1.CreateCustomTargetingKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest 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.ads.admanager.v1.CreateCustomTargetingKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest 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.ads.admanager.v1.CreateCustomTargetingKeyRequest 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 object for `CreateCustomTargetingKey` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.CreateCustomTargetingKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.CreateCustomTargetingKeyRequest) + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.class, + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomTargetingKeyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customTargetingKey_ = null; + if (customTargetingKeyBuilder_ != null) { + customTargetingKeyBuilder_.dispose(); + customTargetingKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest build() { + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest buildPartial() { + com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest result = + new com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customTargetingKey_ = + customTargetingKeyBuilder_ == null + ? customTargetingKey_ + : customTargetingKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest) { + return mergeFrom((com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest other) { + if (other == com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomTargetingKey()) { + mergeCustomTargetingKey(other.getCustomTargetingKey()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getCustomTargetingKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where this `CustomTargetingKey` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKey` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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 `CustomTargetingKey` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this `CustomTargetingKey` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where this `CustomTargetingKey` will be
+     * created. Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.ads.admanager.v1.CustomTargetingKey customTargetingKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + customTargetingKeyBuilder_; + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey() { + if (customTargetingKeyBuilder_ == null) { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } else { + return customTargetingKeyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetingKey(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTargetingKey_ = value; + } else { + customTargetingKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetingKey( + com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeyBuilder_ == null) { + customTargetingKey_ = builderForValue.build(); + } else { + customTargetingKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomTargetingKey(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customTargetingKey_ != null + && customTargetingKey_ + != com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()) { + getCustomTargetingKeyBuilder().mergeFrom(value); + } else { + customTargetingKey_ = value; + } + } else { + customTargetingKeyBuilder_.mergeFrom(value); + } + if (customTargetingKey_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomTargetingKey() { + bitField0_ = (bitField0_ & ~0x00000002); + customTargetingKey_ = null; + if (customTargetingKeyBuilder_ != null) { + customTargetingKeyBuilder_.dispose(); + customTargetingKeyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder getCustomTargetingKeyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomTargetingKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder + getCustomTargetingKeyOrBuilder() { + if (customTargetingKeyBuilder_ != null) { + return customTargetingKeyBuilder_.getMessageOrBuilder(); + } else { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to create.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + getCustomTargetingKeyFieldBuilder() { + if (customTargetingKeyBuilder_ == null) { + customTargetingKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder>( + getCustomTargetingKey(), getParentForChildren(), isClean()); + customTargetingKey_ = null; + } + return customTargetingKeyBuilder_; + } + + @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.ads.admanager.v1.CreateCustomTargetingKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.CreateCustomTargetingKeyRequest) + private static final com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest(); + } + + public static com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomTargetingKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequestOrBuilder.java new file mode 100644 index 000000000000..b7ef382ec119 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CreateCustomTargetingKeyRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface CreateCustomTargetingKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.CreateCustomTargetingKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this `CustomTargetingKey` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where this `CustomTargetingKey` will be
+   * created. Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + boolean hasCustomTargetingKey(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to create.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeyOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java index 24de01092545..7337c6cdb01c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/CustomTargetingKeyServiceProto.java @@ -40,6 +40,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_ads_admanager_v1_ListCustomTargetingKeysResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_ads_admanager_v1_ListCustomTargetingKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -54,15 +94,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "er.v1\032;google/ads/admanager/v1/custom_ta" + "rgeting_key_messages.proto\032\034google/api/a" + "nnotations.proto\032\027google/api/client.prot" - + "o\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"a\n" + + "o\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\032" + + " google/protobuf/field_mask.proto\"a\n" + "\034GetCustomTargetingKeyRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" + "+admanager.googleapis.com/CustomTargetingKey\"\312\001\n" + "\036ListCustomTargetingKeysRequest\0228\n" + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + " admanager.googleapis.com/Network\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" - + "\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" @@ -71,21 +111,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025custom_targeting_keys\030\001" + " \003(\0132+.google.ads.admanager.v1.CustomTargetingKey\022\027\n" + "\017next_page_token\030\002 \001(\t\022\022\n\n" - + "total_size\030\003 \001(\0052\353\003\n" + + "total_size\030\003 \001(\005\"\253\001\n" + + "\037CreateCustomTargetingKeyRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022N\n" + + "\024custom_targeting_key\030\002 \001(\013" + + "2+.google.ads.admanager.v1.CustomTargetingKeyB\003\340A\002\"\262\001\n" + + "%BatchCreateCustomTargetingKeysRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022O\n" + + "\010requests\030\002" + + " \003(\01328.google.ads.admanager.v1.CreateCustomTargetingKeyRequestB\003\340A\002\"t\n" + + "&BatchCreateCustomTargetingKeysResponse\022J\n" + + "\025custom_targeting_keys\030\001" + + " \003(\0132+.google.ads.admanager.v1.CustomTargetingKey\"\247\001\n" + + "\037UpdateCustomTargetingKeyRequest\022N\n" + + "\024custom_targeting_key\030\001" + + " \001(\0132+.google.ads.admanager.v1.CustomTargetingKeyB\003\340A\002\0224\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\262\001\n" + + "%BatchUpdateCustomTargetingKeysRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022O\n" + + "\010requests\030\002 \003(\01328." + + "google.ads.admanager.v1.UpdateCustomTargetingKeyRequestB\003\340A\002\"t\n" + + "&BatchUpdateCustomTargetingKeysResponse\022J\n" + + "\025custom_targeting_keys\030\001" + + " \003(\0132+.google.ads.admanager.v1.CustomTargetingKey\"\247\001\n" + + "\'BatchActivateCustomTargetingKeysRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022B\n" + + "\005names\030\002 \003(\tB3\340A\002\372A-\n" + + "+admanager.googleapis.com/CustomTargetingKey\"*\n" + + "(BatchActivateCustomTargetingKeysResponse\"\251\001\n" + + ")BatchDeactivateCustomTargetingKeysRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022B\n" + + "\005names\030\002 \003(\tB3\340A\002\372A-\n" + + "+admanager.googleapis.com/CustomTargetingKey\",\n" + + "*BatchDeactivateCustomTargetingKeysResponse2\332\017\n" + "\031CustomTargetingKeyService\022\267\001\n" - + "\025GetCustomTargetingKey\0225.google.ads.admanage" - + "r.v1.GetCustomTargetingKeyRequest\032+.google.ads.admanager.v1.CustomTargetingKey\":" - + "\332A\004name\202\323\344\223\002-\022+/v1/{name=networks/*/customTargetingKeys/*}\022\312\001\n" - + "\027ListCustomTargetingKeys\0227.google.ads.admanager.v1.ListCus" - + "tomTargetingKeysRequest\0328.google.ads.admanager.v1.ListCustomTargetingKeysRespons" - + "e\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=networks" - + "/*}/customTargetingKeys\032G\312A\030admanager.go" - + "ogleapis.com\322A)https://www.googleapis.com/auth/admanagerB\322\001\n" - + "\033com.google.ads.admanager.v1B\036CustomTargetingKeyServiceProto" - + "P\001Z@google.golang.org/genproto/googleapi" - + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" - + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" - + "\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\025GetCustomTargetingKey\0225.google.ads.admanager.v1.GetCustomTargetingKeyReques" + + "t\032+.google.ads.admanager.v1.CustomTarget" + + "ingKey\":\332A\004name\202\323\344\223\002-\022+/v1/{name=networks/*/customTargetingKeys/*}\022\312\001\n" + + "\027ListCustomTargetingKeys\0227.google.ads.admanager.v1" + + ".ListCustomTargetingKeysRequest\0328.google.ads.admanager.v1.ListCustomTargetingKey" + + "sResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1/{parent=networks/*}/customTargetingKeys\022\352\001\n" + + "\030CreateCustomTargetingKey\0228.google.ads.admana" + + "ger.v1.CreateCustomTargetingKeyRequest\032+.google.ads.admanager.v1.CustomTargeting" + + "Key\"g\332A\033parent,custom_targeting_key\202\323\344\223\002" + + "C\"+/v1/{parent=networks/*}/customTargetingKeys:\024custom_targeting_key\022\367\001\n" + + "\036BatchCreateCustomTargetingKeys\022>.google.ads.adm" + + "anager.v1.BatchCreateCustomTargetingKeysRequest\032?.google.ads.admanager.v1.BatchC" + + "reateCustomTargetingKeysResponse\"T\332A\017par" + + "ent,requests\202\323\344\223\002<\"7/v1/{parent=networks" + + "/*}/customTargetingKeys:batchCreate:\001*\022\205\002\n" + + "\030UpdateCustomTargetingKey\0228.google.ads.admanager.v1.UpdateCustomTargetingKeyRe" + + "quest\032+.google.ads.admanager.v1.CustomTargetingKey\"\201\001\332A" + + " custom_targeting_key,update_mask\202\323\344\223\002X2@/v1/{custom_targeting_ke" + + "y.name=networks/*/customTargetingKeys/*}:\024custom_targeting_key\022\367\001\n" + + "\036BatchUpdateCustomTargetingKeys\022>.google.ads.admanager" + + ".v1.BatchUpdateCustomTargetingKeysRequest\032?.google.ads.admanager.v1.BatchUpdateC" + + "ustomTargetingKeysResponse\"T\332A\017parent,re" + + "quests\202\323\344\223\002<\"7/v1/{parent=networks/*}/customTargetingKeys:batchUpdate:\001*\022\374\001\n" + + " BatchActivateCustomTargetingKeys\022@.google.a" + + "ds.admanager.v1.BatchActivateCustomTargetingKeysRequest\032A.google.ads.admanager.v" + + "1.BatchActivateCustomTargetingKeysRespon" + + "se\"S\332A\014parent,names\202\323\344\223\002>\"9/v1/{parent=n" + + "etworks/*}/customTargetingKeys:batchActivate:\001*\022\204\002\n" + + "\"BatchDeactivateCustomTargetingKeys\022B.google.ads.admanager.v1.BatchDe" + + "activateCustomTargetingKeysRequest\032C.google.ads.admanager.v1.BatchDeactivateCust" + + "omTargetingKeysResponse\"U\332A\014parent,names" + + "\202\323\344\223\002@\";/v1/{parent=networks/*}/customTa" + + "rgetingKeys:batchDeactivate:\001*\032G\312A\030adman" + + "ager.googleapis.com\322A)https://www.googleapis.com/auth/admanagerB\322\001\n" + + "\033com.google.ads.admanager.v1B\036CustomTargetingKeyServi" + + "ceProtoP\001Z@google.golang.org/genproto/go" + + "ogleapis/ads/admanager/v1;admanager\252\002\027Go" + + "ogle.Ads.AdManager.V1\312\002\027Google\\Ads\\AdMan" + + "ager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -96,6 +200,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(), com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), }); internal_static_google_ads_admanager_v1_GetCustomTargetingKeyRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -121,6 +226,82 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "CustomTargetingKeys", "NextPageToken", "TotalSize", }); + internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_CreateCustomTargetingKeyRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomTargetingKey", + }); + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchCreateCustomTargetingKeysResponse_descriptor, + new java.lang.String[] { + "CustomTargetingKeys", + }); + internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor, + new java.lang.String[] { + "CustomTargetingKey", "UpdateMask", + }); + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchUpdateCustomTargetingKeysResponse_descriptor, + new java.lang.String[] { + "CustomTargetingKeys", + }); + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchActivateCustomTargetingKeysResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_BatchDeactivateCustomTargetingKeysResponse_descriptor, + new java.lang.String[] {}); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); @@ -136,6 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java index efcac56f027b..c4f75744e9f0 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequest.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The resource name of the CmsMetadataKey.
+   * Required. The resource name of the CmsMetadataValue.
    * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    * 
* @@ -100,7 +100,7 @@ public java.lang.String getName() { * * *
-   * Required. The resource name of the CmsMetadataKey.
+   * Required. The resource name of the CmsMetadataValue.
    * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    * 
* @@ -473,7 +473,7 @@ public Builder mergeFrom( * * *
-     * Required. The resource name of the CmsMetadataKey.
+     * Required. The resource name of the CmsMetadataValue.
      * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
      * 
* @@ -499,7 +499,7 @@ public java.lang.String getName() { * * *
-     * Required. The resource name of the CmsMetadataKey.
+     * Required. The resource name of the CmsMetadataValue.
      * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
      * 
* @@ -525,7 +525,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The resource name of the CmsMetadataKey.
+     * Required. The resource name of the CmsMetadataValue.
      * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
      * 
* @@ -550,7 +550,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The resource name of the CmsMetadataKey.
+     * Required. The resource name of the CmsMetadataValue.
      * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
      * 
* @@ -571,7 +571,7 @@ public Builder clearName() { * * *
-     * Required. The resource name of the CmsMetadataKey.
+     * Required. The resource name of the CmsMetadataValue.
      * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
      * 
* diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java index 755409398549..3bf6cefe22fd 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetCmsMetadataValueRequestOrBuilder.java @@ -28,7 +28,7 @@ public interface GetCmsMetadataValueRequestOrBuilder * * *
-   * Required. The resource name of the CmsMetadataKey.
+   * Required. The resource name of the CmsMetadataValue.
    * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    * 
* @@ -44,7 +44,7 @@ public interface GetCmsMetadataValueRequestOrBuilder * * *
-   * Required. The resource name of the CmsMetadataKey.
+   * Required. The resource name of the CmsMetadataValue.
    * Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}`
    * 
* diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequest.java new file mode 100644 index 000000000000..9b6d5daefbf6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequest.java @@ -0,0 +1,654 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `GetLineItem` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetLineItemRequest} + */ +public final class GetLineItemRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GetLineItemRequest) + GetLineItemRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GetLineItemRequest.newBuilder() to construct. + private GetLineItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetLineItemRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetLineItemRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_GetLineItemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetLineItemRequest.class, + com.google.ads.admanager.v1.GetLineItemRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the LineItem.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the LineItem.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += getUnknownFields().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.ads.admanager.v1.GetLineItemRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GetLineItemRequest other = + (com.google.ads.admanager.v1.GetLineItemRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.GetLineItemRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest 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.ads.admanager.v1.GetLineItemRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest 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.ads.admanager.v1.GetLineItemRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest 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.ads.admanager.v1.GetLineItemRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest 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.ads.admanager.v1.GetLineItemRequest 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 object for `GetLineItem` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GetLineItemRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GetLineItemRequest) + com.google.ads.admanager.v1.GetLineItemRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_GetLineItemRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GetLineItemRequest.class, + com.google.ads.admanager.v1.GetLineItemRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GetLineItemRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetLineItemRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GetLineItemRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetLineItemRequest build() { + com.google.ads.admanager.v1.GetLineItemRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetLineItemRequest buildPartial() { + com.google.ads.admanager.v1.GetLineItemRequest result = + new com.google.ads.admanager.v1.GetLineItemRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.GetLineItemRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GetLineItemRequest) { + return mergeFrom((com.google.ads.admanager.v1.GetLineItemRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GetLineItemRequest other) { + if (other == com.google.ads.admanager.v1.GetLineItemRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the LineItem.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the LineItem.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the LineItem.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the LineItem.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the LineItem.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + 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.ads.admanager.v1.GetLineItemRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GetLineItemRequest) + private static final com.google.ads.admanager.v1.GetLineItemRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GetLineItemRequest(); + } + + public static com.google.ads.admanager.v1.GetLineItemRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetLineItemRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GetLineItemRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequestOrBuilder.java new file mode 100644 index 000000000000..b849d153a852 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GetLineItemRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GetLineItemRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GetLineItemRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the LineItem.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The resource name of the LineItem.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Goal.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Goal.java new file mode 100644 index 000000000000..1207761b0c9f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Goal.java @@ -0,0 +1,1075 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Defines the criteria a [LineItem][google.ads.admanager.v1.LineItem] needs to
+ * satisfy to meet its delivery goal.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.Goal} + */ +public final class Goal extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.Goal) + GoalOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Goal.newBuilder() to construct. + private Goal(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Goal() { + goalType_ = 0; + unitType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Goal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalProto + .internal_static_google_ads_admanager_v1_Goal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalProto + .internal_static_google_ads_admanager_v1_Goal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Goal.class, com.google.ads.admanager.v1.Goal.Builder.class); + } + + private int bitField0_; + public static final int GOAL_TYPE_FIELD_NUMBER = 1; + private int goalType_ = 0; + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return Whether the goalType field is set. + */ + @java.lang.Override + public boolean hasGoalType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The enum numeric value on the wire for goalType. + */ + @java.lang.Override + public int getGoalTypeValue() { + return goalType_; + } + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The goalType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum.GoalType getGoalType() { + com.google.ads.admanager.v1.GoalTypeEnum.GoalType result = + com.google.ads.admanager.v1.GoalTypeEnum.GoalType.forNumber(goalType_); + return result == null ? com.google.ads.admanager.v1.GoalTypeEnum.GoalType.UNRECOGNIZED : result; + } + + public static final int UNIT_TYPE_FIELD_NUMBER = 2; + private int unitType_ = 0; + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return Whether the unitType field is set. + */ + @java.lang.Override + public boolean hasUnitType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The enum numeric value on the wire for unitType. + */ + @java.lang.Override + public int getUnitTypeValue() { + return unitType_; + } + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The unitType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum.UnitType getUnitType() { + com.google.ads.admanager.v1.UnitTypeEnum.UnitType result = + com.google.ads.admanager.v1.UnitTypeEnum.UnitType.forNumber(unitType_); + return result == null ? com.google.ads.admanager.v1.UnitTypeEnum.UnitType.UNRECOGNIZED : result; + } + + public static final int UNITS_FIELD_NUMBER = 3; + private long units_ = 0L; + + /** + * + * + *
+   * If this is a primary goal, it represents the number or percentage of
+   * impressions or clicks that will be reserved. If the line item is of type
+   * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+   * it represents the percentage of available impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+   * or
+   * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+   * it represents the number of remaining impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+   * or
+   * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+   * it represents the percentage of remaining impressions reserved. <p>If this
+   * is an impression cap goal, it represents the number of impressions or
+   * conversions that the line item will stop serving at if reached. For valid
+   * line item types, see [LineItem.impressions_cap][].
+   * 
+ * + * optional int64 units = 3; + * + * @return Whether the units field is set. + */ + @java.lang.Override + public boolean hasUnits() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * If this is a primary goal, it represents the number or percentage of
+   * impressions or clicks that will be reserved. If the line item is of type
+   * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+   * it represents the percentage of available impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+   * or
+   * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+   * it represents the number of remaining impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+   * or
+   * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+   * it represents the percentage of remaining impressions reserved. <p>If this
+   * is an impression cap goal, it represents the number of impressions or
+   * conversions that the line item will stop serving at if reached. For valid
+   * line item types, see [LineItem.impressions_cap][].
+   * 
+ * + * optional int64 units = 3; + * + * @return The units. + */ + @java.lang.Override + public long getUnits() { + return units_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(1, goalType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, unitType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeInt64(3, units_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, goalType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unitType_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, units_); + } + size += getUnknownFields().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.ads.admanager.v1.Goal)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.Goal other = (com.google.ads.admanager.v1.Goal) obj; + + if (hasGoalType() != other.hasGoalType()) return false; + if (hasGoalType()) { + if (goalType_ != other.goalType_) return false; + } + if (hasUnitType() != other.hasUnitType()) return false; + if (hasUnitType()) { + if (unitType_ != other.unitType_) return false; + } + if (hasUnits() != other.hasUnits()) return false; + if (hasUnits()) { + if (getUnits() != other.getUnits()) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGoalType()) { + hash = (37 * hash) + GOAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + goalType_; + } + if (hasUnitType()) { + hash = (37 * hash) + UNIT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + unitType_; + } + if (hasUnits()) { + hash = (37 * hash) + UNITS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUnits()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.Goal parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Goal parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Goal parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Goal 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.ads.admanager.v1.Goal parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.Goal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.Goal parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Goal 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.ads.admanager.v1.Goal parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Goal 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.ads.admanager.v1.Goal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.Goal 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.ads.admanager.v1.Goal 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; + } + + /** + * + * + *
+   * Defines the criteria a [LineItem][google.ads.admanager.v1.LineItem] needs to
+   * satisfy to meet its delivery goal.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.Goal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.Goal) + com.google.ads.admanager.v1.GoalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalProto + .internal_static_google_ads_admanager_v1_Goal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalProto + .internal_static_google_ads_admanager_v1_Goal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.Goal.class, + com.google.ads.admanager.v1.Goal.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.Goal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + goalType_ = 0; + unitType_ = 0; + units_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GoalProto + .internal_static_google_ads_admanager_v1_Goal_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Goal getDefaultInstanceForType() { + return com.google.ads.admanager.v1.Goal.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.Goal build() { + com.google.ads.admanager.v1.Goal result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Goal buildPartial() { + com.google.ads.admanager.v1.Goal result = new com.google.ads.admanager.v1.Goal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.Goal result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.goalType_ = goalType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unitType_ = unitType_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.units_ = units_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.Goal) { + return mergeFrom((com.google.ads.admanager.v1.Goal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.Goal other) { + if (other == com.google.ads.admanager.v1.Goal.getDefaultInstance()) return this; + if (other.hasGoalType()) { + setGoalType(other.getGoalType()); + } + if (other.hasUnitType()) { + setUnitType(other.getUnitType()); + } + if (other.hasUnits()) { + setUnits(other.getUnits()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + goalType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + unitType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + units_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int goalType_ = 0; + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return Whether the goalType field is set. + */ + @java.lang.Override + public boolean hasGoalType() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The enum numeric value on the wire for goalType. + */ + @java.lang.Override + public int getGoalTypeValue() { + return goalType_; + } + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @param value The enum numeric value on the wire for goalType to set. + * @return This builder for chaining. + */ + public Builder setGoalTypeValue(int value) { + goalType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The goalType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum.GoalType getGoalType() { + com.google.ads.admanager.v1.GoalTypeEnum.GoalType result = + com.google.ads.admanager.v1.GoalTypeEnum.GoalType.forNumber(goalType_); + return result == null + ? com.google.ads.admanager.v1.GoalTypeEnum.GoalType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @param value The goalType to set. + * @return This builder for chaining. + */ + public Builder setGoalType(com.google.ads.admanager.v1.GoalTypeEnum.GoalType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + goalType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the goal for the LineItem. It defines the period over which the
+     * goal should be reached.
+     * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearGoalType() { + bitField0_ = (bitField0_ & ~0x00000001); + goalType_ = 0; + onChanged(); + return this; + } + + private int unitType_ = 0; + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return Whether the unitType field is set. + */ + @java.lang.Override + public boolean hasUnitType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The enum numeric value on the wire for unitType. + */ + @java.lang.Override + public int getUnitTypeValue() { + return unitType_; + } + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @param value The enum numeric value on the wire for unitType to set. + * @return This builder for chaining. + */ + public Builder setUnitTypeValue(int value) { + unitType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The unitType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum.UnitType getUnitType() { + com.google.ads.admanager.v1.UnitTypeEnum.UnitType result = + com.google.ads.admanager.v1.UnitTypeEnum.UnitType.forNumber(unitType_); + return result == null + ? com.google.ads.admanager.v1.UnitTypeEnum.UnitType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @param value The unitType to set. + * @return This builder for chaining. + */ + public Builder setUnitType(com.google.ads.admanager.v1.UnitTypeEnum.UnitType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + unitType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * The type of the goal unit for the LineItem.
+     * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return This builder for chaining. + */ + public Builder clearUnitType() { + bitField0_ = (bitField0_ & ~0x00000002); + unitType_ = 0; + onChanged(); + return this; + } + + private long units_; + + /** + * + * + *
+     * If this is a primary goal, it represents the number or percentage of
+     * impressions or clicks that will be reserved. If the line item is of type
+     * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+     * it represents the percentage of available impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * or
+     * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+     * it represents the number of remaining impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * or
+     * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+     * it represents the percentage of remaining impressions reserved. <p>If this
+     * is an impression cap goal, it represents the number of impressions or
+     * conversions that the line item will stop serving at if reached. For valid
+     * line item types, see [LineItem.impressions_cap][].
+     * 
+ * + * optional int64 units = 3; + * + * @return Whether the units field is set. + */ + @java.lang.Override + public boolean hasUnits() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * If this is a primary goal, it represents the number or percentage of
+     * impressions or clicks that will be reserved. If the line item is of type
+     * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+     * it represents the percentage of available impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * or
+     * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+     * it represents the number of remaining impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * or
+     * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+     * it represents the percentage of remaining impressions reserved. <p>If this
+     * is an impression cap goal, it represents the number of impressions or
+     * conversions that the line item will stop serving at if reached. For valid
+     * line item types, see [LineItem.impressions_cap][].
+     * 
+ * + * optional int64 units = 3; + * + * @return The units. + */ + @java.lang.Override + public long getUnits() { + return units_; + } + + /** + * + * + *
+     * If this is a primary goal, it represents the number or percentage of
+     * impressions or clicks that will be reserved. If the line item is of type
+     * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+     * it represents the percentage of available impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * or
+     * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+     * it represents the number of remaining impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * or
+     * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+     * it represents the percentage of remaining impressions reserved. <p>If this
+     * is an impression cap goal, it represents the number of impressions or
+     * conversions that the line item will stop serving at if reached. For valid
+     * line item types, see [LineItem.impressions_cap][].
+     * 
+ * + * optional int64 units = 3; + * + * @param value The units to set. + * @return This builder for chaining. + */ + public Builder setUnits(long value) { + + units_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * If this is a primary goal, it represents the number or percentage of
+     * impressions or clicks that will be reserved. If the line item is of type
+     * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+     * it represents the percentage of available impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * or
+     * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+     * it represents the number of remaining impressions reserved. If the line
+     * item is of type
+     * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * or
+     * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+     * it represents the percentage of remaining impressions reserved. <p>If this
+     * is an impression cap goal, it represents the number of impressions or
+     * conversions that the line item will stop serving at if reached. For valid
+     * line item types, see [LineItem.impressions_cap][].
+     * 
+ * + * optional int64 units = 3; + * + * @return This builder for chaining. + */ + public Builder clearUnits() { + bitField0_ = (bitField0_ & ~0x00000004); + units_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.Goal) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.Goal) + private static final com.google.ads.admanager.v1.Goal DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.Goal(); + } + + public static com.google.ads.admanager.v1.Goal getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Goal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.Goal getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalEnumsProto.java new file mode 100644 index 000000000000..2c5d3dd4b811 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalEnumsProto.java @@ -0,0 +1,90 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class GoalEnumsProto { + private GoalEnumsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GoalTypeEnum_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_UnitTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "(google/ads/admanager/v1/goal_enums.proto\022\027google.ads.admanager.v1\"X\n" + + "\014GoalTypeEnum\"H\n" + + "\010GoalType\022\031\n" + + "\025GOAL_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004NONE\020\001\022\014\n" + + "\010LIFETIME\020\002\022\t\n" + + "\005DAILY\020\003\"\350\001\n" + + "\014UnitTypeEnum\"\327\001\n" + + "\010UnitType\022\031\n" + + "\025UNIT_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013IMPRESSIONS\020\001\022\n\n" + + "\006CLICKS\020\002\022!\n" + + "\035CLICK_THROUGH_CPA_CONVERSIONS\020\003\022 \n" + + "\034VIEW_THROUGH_CPA_CONVERSIONS\020\004\022\031\n" + + "\025TOTAL_CPA_CONVERSIONS\020\005\022\030\n" + + "\024VIEWABLE_IMPRESSIONS\020\006\022\031\n" + + "\025IN_TARGET_IMPRESSIONS\020\007B\302\001\n" + + "\033com.google.ads.admanager.v1B\016GoalEnumsProto" + + "P\001Z@google.golang.org/genproto/googleapi" + + "s/ads/admanager/v1;admanager\252\002\027Google.Ad" + + "s.AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1" + + "\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GoalTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor, + new java.lang.String[] {}); + internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_UnitTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalOrBuilder.java new file mode 100644 index 000000000000..43221e853f03 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GoalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.Goal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return Whether the goalType field is set. + */ + boolean hasGoalType(); + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The enum numeric value on the wire for goalType. + */ + int getGoalTypeValue(); + + /** + * + * + *
+   * The type of the goal for the LineItem. It defines the period over which the
+   * goal should be reached.
+   * 
+ * + * optional .google.ads.admanager.v1.GoalTypeEnum.GoalType goal_type = 1; + * + * @return The goalType. + */ + com.google.ads.admanager.v1.GoalTypeEnum.GoalType getGoalType(); + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return Whether the unitType field is set. + */ + boolean hasUnitType(); + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The enum numeric value on the wire for unitType. + */ + int getUnitTypeValue(); + + /** + * + * + *
+   * The type of the goal unit for the LineItem.
+   * 
+ * + * optional .google.ads.admanager.v1.UnitTypeEnum.UnitType unit_type = 2; + * + * @return The unitType. + */ + com.google.ads.admanager.v1.UnitTypeEnum.UnitType getUnitType(); + + /** + * + * + *
+   * If this is a primary goal, it represents the number or percentage of
+   * impressions or clicks that will be reserved. If the line item is of type
+   * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+   * it represents the percentage of available impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+   * or
+   * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+   * it represents the number of remaining impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+   * or
+   * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+   * it represents the percentage of remaining impressions reserved. <p>If this
+   * is an impression cap goal, it represents the number of impressions or
+   * conversions that the line item will stop serving at if reached. For valid
+   * line item types, see [LineItem.impressions_cap][].
+   * 
+ * + * optional int64 units = 3; + * + * @return Whether the units field is set. + */ + boolean hasUnits(); + + /** + * + * + *
+   * If this is a primary goal, it represents the number or percentage of
+   * impressions or clicks that will be reserved. If the line item is of type
+   * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP],
+   * it represents the percentage of available impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+   * or
+   * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY],
+   * it represents the number of remaining impressions reserved. If the line
+   * item is of type
+   * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+   * or
+   * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE],
+   * it represents the percentage of remaining impressions reserved. <p>If this
+   * is an impression cap goal, it represents the number of impressions or
+   * conversions that the line item will stop serving at if reached. For valid
+   * line item types, see [LineItem.impressions_cap][].
+   * 
+ * + * optional int64 units = 3; + * + * @return The units. + */ + long getUnits(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalProto.java new file mode 100644 index 000000000000..e7112371c92f --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class GoalProto { + private GoalProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_Goal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_Goal_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "\"google/ads/admanager/v1/goal.proto\022\027go" + + "ogle.ads.admanager.v1\032(google/ads/admanager/v1/goal_enums.proto\"\320\001\n" + + "\004Goal\022F\n" + + "\tgoal_type\030\001" + + " \001(\0162..google.ads.admanager.v1.GoalTypeEnum.GoalTypeH\000\210\001\001\022F\n" + + "\tunit_type\030\002 " + + "\001(\0162..google.ads.admanager.v1.UnitTypeEnum.UnitTypeH\001\210\001\001\022\022\n" + + "\005units\030\003 \001(\003H\002\210\001\001B\014\n\n" + + "_goal_typeB\014\n\n" + + "_unit_typeB\010\n" + + "\006_unitsB\275\001\n" + + "\033com.google.ads.admanager.v1B\tGoalProtoP\001Z" + + "@google.golang.org/genproto/googleapis/a" + + "ds/admanager/v1;admanager\252\002\027Google.Ads.A" + + "dManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032" + + "Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.GoalEnumsProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_Goal_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_Goal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_Goal_descriptor, + new java.lang.String[] { + "GoalType", "UnitType", "Units", + }); + com.google.ads.admanager.v1.GoalEnumsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnum.java new file mode 100644 index 000000000000..846eece38503 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnum.java @@ -0,0 +1,672 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [GoalType][google.ads.admanager.v1.GoalTypeEnum.GoalType].
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GoalTypeEnum} + */ +public final class GoalTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.GoalTypeEnum) + GoalTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GoalTypeEnum.newBuilder() to construct. + private GoalTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoalTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoalTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_GoalTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GoalTypeEnum.class, + com.google.ads.admanager.v1.GoalTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Specifies the type of the goal for a LineItem.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.GoalTypeEnum.GoalType} + */ + public enum GoalType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * GOAL_TYPE_UNSPECIFIED = 0; + */ + GOAL_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * No goal is specified for the number of ads delivered.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING]
+     * 
+ * + * NONE = 1; + */ + NONE(1), + /** + * + * + *
+     * There is a goal on the number of ads delivered for this line item during
+     * its entire lifetime.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]
+     * * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.ADMOB][]
+     * * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING]
+     * 
+ * + * LIFETIME = 2; + */ + LIFETIME(2), + /** + * + * + *
+     * There is a daily goal on the number of ads delivered for this line item.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP]
+     * * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE]
+     * * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.ADMOB][]
+     * * [LineItemTypeEnum.LineItemType.BUMPER][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BUMPER]
+     * 
+ * + * DAILY = 3; + */ + DAILY(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * GOAL_TYPE_UNSPECIFIED = 0; + */ + public static final int GOAL_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * No goal is specified for the number of ads delivered.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING]
+     * 
+ * + * NONE = 1; + */ + public static final int NONE_VALUE = 1; + + /** + * + * + *
+     * There is a goal on the number of ads delivered for this line item during
+     * its entire lifetime.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]
+     * * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.ADMOB][]
+     * * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING]
+     * 
+ * + * LIFETIME = 2; + */ + public static final int LIFETIME_VALUE = 2; + + /** + * + * + *
+     * There is a daily goal on the number of ads delivered for this line item.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP]
+     * * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE]
+     * * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE]
+     * * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE]
+     * * [LineItemTypeEnum.LineItemType.ADMOB][]
+     * * [LineItemTypeEnum.LineItemType.BUMPER][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BUMPER]
+     * 
+ * + * DAILY = 3; + */ + public static final int DAILY_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 GoalType 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 GoalType forNumber(int value) { + switch (value) { + case 0: + return GOAL_TYPE_UNSPECIFIED; + case 1: + return NONE; + case 2: + return LIFETIME; + case 3: + return DAILY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GoalType findValueByNumber(int number) { + return GoalType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final GoalType[] VALUES = values(); + + public static GoalType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GoalType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.GoalTypeEnum.GoalType) + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.GoalTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.GoalTypeEnum other = (com.google.ads.admanager.v1.GoalTypeEnum) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.GoalTypeEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum 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.ads.admanager.v1.GoalTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum 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.ads.admanager.v1.GoalTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum 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.ads.admanager.v1.GoalTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum 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.ads.admanager.v1.GoalTypeEnum 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; + } + + /** + * + * + *
+   * Wrapper message for
+   * [GoalType][google.ads.admanager.v1.GoalTypeEnum.GoalType].
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.GoalTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.GoalTypeEnum) + com.google.ads.admanager.v1.GoalTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_GoalTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.GoalTypeEnum.class, + com.google.ads.admanager.v1.GoalTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.GoalTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_GoalTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.GoalTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum build() { + com.google.ads.admanager.v1.GoalTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum buildPartial() { + com.google.ads.admanager.v1.GoalTypeEnum result = + new com.google.ads.admanager.v1.GoalTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.GoalTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.GoalTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.GoalTypeEnum other) { + if (other == com.google.ads.admanager.v1.GoalTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.GoalTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.GoalTypeEnum) + private static final com.google.ads.admanager.v1.GoalTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.GoalTypeEnum(); + } + + public static com.google.ads.admanager.v1.GoalTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoalTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.GoalTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnumOrBuilder.java new file mode 100644 index 000000000000..2f8eef3da2ef --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/GoalTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface GoalTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.GoalTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItem.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItem.java new file mode 100644 index 000000000000..674b75563ad9 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItem.java @@ -0,0 +1,3439 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * A LineItem contains information about how specific ad creatives are intended
+ * to serve to your website or app along with pricing and other delivery
+ * details.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LineItem} + */ +public final class LineItem extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.LineItem) + LineItemOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LineItem.newBuilder() to construct. + private LineItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LineItem() { + name_ = ""; + order_ = ""; + displayName_ = ""; + lineItemType_ = 0; + customFieldValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LineItem(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemMessagesProto + .internal_static_google_ads_admanager_v1_LineItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemMessagesProto + .internal_static_google_ads_admanager_v1_LineItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LineItem.class, + com.google.ads.admanager.v1.LineItem.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The resource name of the `LineItem`.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. The resource name of the `LineItem`.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object order_ = ""; + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the order field is set. + */ + @java.lang.Override + public boolean hasOrder() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + @java.lang.Override + public java.lang.String getOrder() { + java.lang.Object ref = order_; + 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(); + order_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp endTime_; + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int LINE_ITEM_TYPE_FIELD_NUMBER = 17; + private int lineItemType_ = 0; + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lineItemType field is set. + */ + @java.lang.Override + public boolean hasLineItemType() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for lineItemType. + */ + @java.lang.Override + public int getLineItemTypeValue() { + return lineItemType_; + } + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lineItemType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType getLineItemType() { + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType result = + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType.forNumber(lineItemType_); + return result == null + ? com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType.UNRECOGNIZED + : result; + } + + public static final int RATE_FIELD_NUMBER = 20; + private com.google.type.Money rate_; + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the rate field is set. + */ + @java.lang.Override + public boolean hasRate() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rate. + */ + @java.lang.Override + public com.google.type.Money getRate() { + return rate_ == null ? com.google.type.Money.getDefaultInstance() : rate_; + } + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getRateOrBuilder() { + return rate_ == null ? com.google.type.Money.getDefaultInstance() : rate_; + } + + public static final int BUDGET_FIELD_NUMBER = 35; + private com.google.type.Money budget_; + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the budget field is set. + */ + @java.lang.Override + public boolean hasBudget() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The budget. + */ + @java.lang.Override + public com.google.type.Money getBudget() { + return budget_ == null ? com.google.type.Money.getDefaultInstance() : budget_; + } + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.type.MoneyOrBuilder getBudgetOrBuilder() { + return budget_ == null ? com.google.type.Money.getDefaultInstance() : budget_; + } + + public static final int CUSTOM_FIELD_VALUES_FIELD_NUMBER = 59; + + @SuppressWarnings("serial") + private java.util.List customFieldValues_; + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCustomFieldValuesList() { + return customFieldValues_; + } + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomFieldValuesOrBuilderList() { + return customFieldValues_; + } + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomFieldValuesCount() { + return customFieldValues_.size(); + } + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldValue getCustomFieldValues(int index) { + return customFieldValues_.get(index); + } + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomFieldValueOrBuilder getCustomFieldValuesOrBuilder( + int index) { + return customFieldValues_.get(index); + } + + public static final int GOAL_FIELD_NUMBER = 76; + private com.google.ads.admanager.v1.Goal goal_; + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goal field is set. + */ + @java.lang.Override + public boolean hasGoal() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goal. + */ + @java.lang.Override + public com.google.ads.admanager.v1.Goal getGoal() { + return goal_ == null ? com.google.ads.admanager.v1.Goal.getDefaultInstance() : goal_; + } + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.GoalOrBuilder getGoalOrBuilder() { + return goal_ == null ? com.google.ads.admanager.v1.Goal.getDefaultInstance() : goal_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, order_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(6, getStartTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(7, getEndTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(17, lineItemType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(20, getRate()); + } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(35, getBudget()); + } + for (int i = 0; i < customFieldValues_.size(); i++) { + output.writeMessage(59, customFieldValues_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(76, getGoal()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, order_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getStartTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getEndTime()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(17, lineItemType_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getRate()); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(35, getBudget()); + } + for (int i = 0; i < customFieldValues_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(59, customFieldValues_.get(i)); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(76, getGoal()); + } + size += getUnknownFields().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.ads.admanager.v1.LineItem)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.LineItem other = (com.google.ads.admanager.v1.LineItem) obj; + + if (!getName().equals(other.getName())) return false; + if (hasOrder() != other.hasOrder()) return false; + if (hasOrder()) { + if (!getOrder().equals(other.getOrder())) return false; + } + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasLineItemType() != other.hasLineItemType()) return false; + if (hasLineItemType()) { + if (lineItemType_ != other.lineItemType_) return false; + } + if (hasRate() != other.hasRate()) return false; + if (hasRate()) { + if (!getRate().equals(other.getRate())) return false; + } + if (hasBudget() != other.hasBudget()) return false; + if (hasBudget()) { + if (!getBudget().equals(other.getBudget())) return false; + } + if (!getCustomFieldValuesList().equals(other.getCustomFieldValuesList())) return false; + if (hasGoal() != other.hasGoal()) return false; + if (hasGoal()) { + if (!getGoal().equals(other.getGoal())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasOrder()) { + hash = (37 * hash) + ORDER_FIELD_NUMBER; + hash = (53 * hash) + getOrder().hashCode(); + } + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasLineItemType()) { + hash = (37 * hash) + LINE_ITEM_TYPE_FIELD_NUMBER; + hash = (53 * hash) + lineItemType_; + } + if (hasRate()) { + hash = (37 * hash) + RATE_FIELD_NUMBER; + hash = (53 * hash) + getRate().hashCode(); + } + if (hasBudget()) { + hash = (37 * hash) + BUDGET_FIELD_NUMBER; + hash = (53 * hash) + getBudget().hashCode(); + } + if (getCustomFieldValuesCount() > 0) { + hash = (37 * hash) + CUSTOM_FIELD_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getCustomFieldValuesList().hashCode(); + } + if (hasGoal()) { + hash = (37 * hash) + GOAL_FIELD_NUMBER; + hash = (53 * hash) + getGoal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.LineItem parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItem parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LineItem parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItem 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.ads.admanager.v1.LineItem parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItem parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LineItem parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItem 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.ads.admanager.v1.LineItem parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItem 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.ads.admanager.v1.LineItem parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItem 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.ads.admanager.v1.LineItem 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 LineItem contains information about how specific ad creatives are intended
+   * to serve to your website or app along with pricing and other delivery
+   * details.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LineItem} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.LineItem) + com.google.ads.admanager.v1.LineItemOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemMessagesProto + .internal_static_google_ads_admanager_v1_LineItem_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemMessagesProto + .internal_static_google_ads_admanager_v1_LineItem_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LineItem.class, + com.google.ads.admanager.v1.LineItem.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.LineItem.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + getRateFieldBuilder(); + getBudgetFieldBuilder(); + getCustomFieldValuesFieldBuilder(); + getGoalFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + order_ = ""; + displayName_ = ""; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + lineItemType_ = 0; + rate_ = null; + if (rateBuilder_ != null) { + rateBuilder_.dispose(); + rateBuilder_ = null; + } + budget_ = null; + if (budgetBuilder_ != null) { + budgetBuilder_.dispose(); + budgetBuilder_ = null; + } + if (customFieldValuesBuilder_ == null) { + customFieldValues_ = java.util.Collections.emptyList(); + } else { + customFieldValues_ = null; + customFieldValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + goal_ = null; + if (goalBuilder_ != null) { + goalBuilder_.dispose(); + goalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LineItemMessagesProto + .internal_static_google_ads_admanager_v1_LineItem_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItem getDefaultInstanceForType() { + return com.google.ads.admanager.v1.LineItem.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItem build() { + com.google.ads.admanager.v1.LineItem result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItem buildPartial() { + com.google.ads.admanager.v1.LineItem result = new com.google.ads.admanager.v1.LineItem(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.ads.admanager.v1.LineItem result) { + if (customFieldValuesBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + customFieldValues_ = java.util.Collections.unmodifiableList(customFieldValues_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.customFieldValues_ = customFieldValues_; + } else { + result.customFieldValues_ = customFieldValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.LineItem result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.order_ = order_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.lineItemType_ = lineItemType_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rate_ = rateBuilder_ == null ? rate_ : rateBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.budget_ = budgetBuilder_ == null ? budget_ : budgetBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.goal_ = goalBuilder_ == null ? goal_ : goalBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.LineItem) { + return mergeFrom((com.google.ads.admanager.v1.LineItem) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.LineItem other) { + if (other == com.google.ads.admanager.v1.LineItem.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOrder()) { + order_ = other.order_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasDisplayName()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasLineItemType()) { + setLineItemType(other.getLineItemType()); + } + if (other.hasRate()) { + mergeRate(other.getRate()); + } + if (other.hasBudget()) { + mergeBudget(other.getBudget()); + } + if (customFieldValuesBuilder_ == null) { + if (!other.customFieldValues_.isEmpty()) { + if (customFieldValues_.isEmpty()) { + customFieldValues_ = other.customFieldValues_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.addAll(other.customFieldValues_); + } + onChanged(); + } + } else { + if (!other.customFieldValues_.isEmpty()) { + if (customFieldValuesBuilder_.isEmpty()) { + customFieldValuesBuilder_.dispose(); + customFieldValuesBuilder_ = null; + customFieldValues_ = other.customFieldValues_; + bitField0_ = (bitField0_ & ~0x00000100); + customFieldValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomFieldValuesFieldBuilder() + : null; + } else { + customFieldValuesBuilder_.addAllMessages(other.customFieldValues_); + } + } + } + if (other.hasGoal()) { + mergeGoal(other.getGoal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + order_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 50: + { + input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 50 + case 58: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 136: + { + lineItemType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 136 + case 162: + { + input.readMessage(getRateFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 162 + case 282: + { + input.readMessage(getBudgetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 282 + case 474: + { + com.google.ads.admanager.v1.CustomFieldValue m = + input.readMessage( + com.google.ads.admanager.v1.CustomFieldValue.parser(), extensionRegistry); + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.add(m); + } else { + customFieldValuesBuilder_.addMessage(m); + } + break; + } // case 474 + case 610: + { + input.readMessage(getGoalFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 610 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The resource name of the `LineItem`.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the `LineItem`.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. The resource name of the `LineItem`.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the `LineItem`.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The resource name of the `LineItem`.
+     * Format: `networks/{network_code}/lineItems/{line_item_id}`
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object order_ = ""; + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the order field is set. + */ + public boolean hasOrder() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + public java.lang.String getOrder() { + java.lang.Object ref = order_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + order_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + public com.google.protobuf.ByteString getOrderBytes() { + java.lang.Object ref = order_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + order_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The order to set. + * @return This builder for chaining. + */ + public Builder setOrder(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + order_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearOrder() { + order_ = getDefaultInstance().getOrder(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The ID of the Order to which the LineItem belongs. This
+     * attribute is required. Format: `networks/{network_code}/orders/{order}`
+     * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for order to set. + * @return This builder for chaining. + */ + public Builder setOrderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + order_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the line item. This attribute is required and has a
+     * maximum length of 255 characters.
+     * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && startTime_ != null + && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000008); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + + /** + * + * + *
+     * Required. The date and time on which the LineItem is enabled to begin
+     * serving. This attribute is required and must be in the future.
+     * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000010); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + + /** + * + * + *
+     * Output only. The timestamp when the LineItem will stop serving. This
+     * attribute is read-only and includes auto extension days.
+     * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private int lineItemType_ = 0; + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lineItemType field is set. + */ + @java.lang.Override + public boolean hasLineItemType() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for lineItemType. + */ + @java.lang.Override + public int getLineItemTypeValue() { + return lineItemType_; + } + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for lineItemType to set. + * @return This builder for chaining. + */ + public Builder setLineItemTypeValue(int value) { + lineItemType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lineItemType. + */ + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType getLineItemType() { + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType result = + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType.forNumber(lineItemType_); + return result == null + ? com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The lineItemType to set. + * @return This builder for chaining. + */ + public Builder setLineItemType( + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + lineItemType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Indicates the line item type of a LineItem. This attribute is
+     * required. The line item type determines the default priority of the line
+     * item. More information can be found at
+     * https://support.google.com/admanager/answer/177279.
+     * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLineItemType() { + bitField0_ = (bitField0_ & ~0x00000020); + lineItemType_ = 0; + onChanged(); + return this; + } + + private com.google.type.Money rate_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + rateBuilder_; + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the rate field is set. + */ + public boolean hasRate() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rate. + */ + public com.google.type.Money getRate() { + if (rateBuilder_ == null) { + return rate_ == null ? com.google.type.Money.getDefaultInstance() : rate_; + } else { + return rateBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setRate(com.google.type.Money value) { + if (rateBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rate_ = value; + } else { + rateBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder setRate(com.google.type.Money.Builder builderForValue) { + if (rateBuilder_ == null) { + rate_ = builderForValue.build(); + } else { + rateBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeRate(com.google.type.Money value) { + if (rateBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && rate_ != null + && rate_ != com.google.type.Money.getDefaultInstance()) { + getRateBuilder().mergeFrom(value); + } else { + rate_ = value; + } + } else { + rateBuilder_.mergeFrom(value); + } + if (rate_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearRate() { + bitField0_ = (bitField0_ & ~0x00000040); + rate_ = null; + if (rateBuilder_ != null) { + rateBuilder_.dispose(); + rateBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.Money.Builder getRateBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getRateFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + public com.google.type.MoneyOrBuilder getRateOrBuilder() { + if (rateBuilder_ != null) { + return rateBuilder_.getMessageOrBuilder(); + } else { + return rate_ == null ? com.google.type.Money.getDefaultInstance() : rate_; + } + } + + /** + * + * + *
+     * Required. The amount of money to spend per impression or click.
+     * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getRateFieldBuilder() { + if (rateBuilder_ == null) { + rateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getRate(), getParentForChildren(), isClean()); + rate_ = null; + } + return rateBuilder_; + } + + private com.google.type.Money budget_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + budgetBuilder_; + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the budget field is set. + */ + public boolean hasBudget() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The budget. + */ + public com.google.type.Money getBudget() { + if (budgetBuilder_ == null) { + return budget_ == null ? com.google.type.Money.getDefaultInstance() : budget_; + } else { + return budgetBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBudget(com.google.type.Money value) { + if (budgetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + budget_ = value; + } else { + budgetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setBudget(com.google.type.Money.Builder builderForValue) { + if (budgetBuilder_ == null) { + budget_ = builderForValue.build(); + } else { + budgetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeBudget(com.google.type.Money value) { + if (budgetBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && budget_ != null + && budget_ != com.google.type.Money.getDefaultInstance()) { + getBudgetBuilder().mergeFrom(value); + } else { + budget_ = value; + } + } else { + budgetBuilder_.mergeFrom(value); + } + if (budget_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearBudget() { + bitField0_ = (bitField0_ & ~0x00000080); + budget_ = null; + if (budgetBuilder_ != null) { + budgetBuilder_.dispose(); + budgetBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.Money.Builder getBudgetBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getBudgetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.type.MoneyOrBuilder getBudgetOrBuilder() { + if (budgetBuilder_ != null) { + return budgetBuilder_.getMessageOrBuilder(); + } else { + return budget_ == null ? com.google.type.Money.getDefaultInstance() : budget_; + } + } + + /** + * + * + *
+     * Output only. The amount of money allocated to the LineItem. This attribute
+     * is readonly and is populated by Google. The currency code is readonly.
+     * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder> + getBudgetFieldBuilder() { + if (budgetBuilder_ == null) { + budgetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.type.Money, + com.google.type.Money.Builder, + com.google.type.MoneyOrBuilder>(getBudget(), getParentForChildren(), isClean()); + budget_ = null; + } + return budgetBuilder_; + } + + private java.util.List customFieldValues_ = + java.util.Collections.emptyList(); + + private void ensureCustomFieldValuesIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + customFieldValues_ = + new java.util.ArrayList( + customFieldValues_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomFieldValue, + com.google.ads.admanager.v1.CustomFieldValue.Builder, + com.google.ads.admanager.v1.CustomFieldValueOrBuilder> + customFieldValuesBuilder_; + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCustomFieldValuesList() { + if (customFieldValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customFieldValues_); + } else { + return customFieldValuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomFieldValuesCount() { + if (customFieldValuesBuilder_ == null) { + return customFieldValues_.size(); + } else { + return customFieldValuesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomFieldValue getCustomFieldValues(int index) { + if (customFieldValuesBuilder_ == null) { + return customFieldValues_.get(index); + } else { + return customFieldValuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFieldValues( + int index, com.google.ads.admanager.v1.CustomFieldValue value) { + if (customFieldValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldValuesIsMutable(); + customFieldValues_.set(index, value); + onChanged(); + } else { + customFieldValuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomFieldValues( + int index, com.google.ads.admanager.v1.CustomFieldValue.Builder builderForValue) { + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.set(index, builderForValue.build()); + onChanged(); + } else { + customFieldValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomFieldValues(com.google.ads.admanager.v1.CustomFieldValue value) { + if (customFieldValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldValuesIsMutable(); + customFieldValues_.add(value); + onChanged(); + } else { + customFieldValuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomFieldValues( + int index, com.google.ads.admanager.v1.CustomFieldValue value) { + if (customFieldValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomFieldValuesIsMutable(); + customFieldValues_.add(index, value); + onChanged(); + } else { + customFieldValuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomFieldValues( + com.google.ads.admanager.v1.CustomFieldValue.Builder builderForValue) { + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.add(builderForValue.build()); + onChanged(); + } else { + customFieldValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomFieldValues( + int index, com.google.ads.admanager.v1.CustomFieldValue.Builder builderForValue) { + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.add(index, builderForValue.build()); + onChanged(); + } else { + customFieldValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomFieldValues( + java.lang.Iterable values) { + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customFieldValues_); + onChanged(); + } else { + customFieldValuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomFieldValues() { + if (customFieldValuesBuilder_ == null) { + customFieldValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + customFieldValuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomFieldValues(int index) { + if (customFieldValuesBuilder_ == null) { + ensureCustomFieldValuesIsMutable(); + customFieldValues_.remove(index); + onChanged(); + } else { + customFieldValuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomFieldValue.Builder getCustomFieldValuesBuilder( + int index) { + return getCustomFieldValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomFieldValueOrBuilder getCustomFieldValuesOrBuilder( + int index) { + if (customFieldValuesBuilder_ == null) { + return customFieldValues_.get(index); + } else { + return customFieldValuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomFieldValuesOrBuilderList() { + if (customFieldValuesBuilder_ != null) { + return customFieldValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customFieldValues_); + } + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomFieldValue.Builder addCustomFieldValuesBuilder() { + return getCustomFieldValuesFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.CustomFieldValue.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.CustomFieldValue.Builder addCustomFieldValuesBuilder( + int index) { + return getCustomFieldValuesFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.CustomFieldValue.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The values of the custom fields associated with this line item.
+     * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomFieldValuesBuilderList() { + return getCustomFieldValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomFieldValue, + com.google.ads.admanager.v1.CustomFieldValue.Builder, + com.google.ads.admanager.v1.CustomFieldValueOrBuilder> + getCustomFieldValuesFieldBuilder() { + if (customFieldValuesBuilder_ == null) { + customFieldValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.CustomFieldValue, + com.google.ads.admanager.v1.CustomFieldValue.Builder, + com.google.ads.admanager.v1.CustomFieldValueOrBuilder>( + customFieldValues_, + ((bitField0_ & 0x00000100) != 0), + getParentForChildren(), + isClean()); + customFieldValues_ = null; + } + return customFieldValuesBuilder_; + } + + private com.google.ads.admanager.v1.Goal goal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Goal, + com.google.ads.admanager.v1.Goal.Builder, + com.google.ads.admanager.v1.GoalOrBuilder> + goalBuilder_; + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goal field is set. + */ + public boolean hasGoal() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goal. + */ + public com.google.ads.admanager.v1.Goal getGoal() { + if (goalBuilder_ == null) { + return goal_ == null ? com.google.ads.admanager.v1.Goal.getDefaultInstance() : goal_; + } else { + return goalBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoal(com.google.ads.admanager.v1.Goal value) { + if (goalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + goal_ = value; + } else { + goalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoal(com.google.ads.admanager.v1.Goal.Builder builderForValue) { + if (goalBuilder_ == null) { + goal_ = builderForValue.build(); + } else { + goalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoal(com.google.ads.admanager.v1.Goal value) { + if (goalBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && goal_ != null + && goal_ != com.google.ads.admanager.v1.Goal.getDefaultInstance()) { + getGoalBuilder().mergeFrom(value); + } else { + goal_ = value; + } + } else { + goalBuilder_.mergeFrom(value); + } + if (goal_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoal() { + bitField0_ = (bitField0_ & ~0x00000200); + goal_ = null; + if (goalBuilder_ != null) { + goalBuilder_.dispose(); + goalBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.Goal.Builder getGoalBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return getGoalFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.ads.admanager.v1.GoalOrBuilder getGoalOrBuilder() { + if (goalBuilder_ != null) { + return goalBuilder_.getMessageOrBuilder(); + } else { + return goal_ == null ? com.google.ads.admanager.v1.Goal.getDefaultInstance() : goal_; + } + } + + /** + * + * + *
+     * Optional. The primary goal that this LineItem is associated with, which is
+     * used in its pacing and budgeting.
+     * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Goal, + com.google.ads.admanager.v1.Goal.Builder, + com.google.ads.admanager.v1.GoalOrBuilder> + getGoalFieldBuilder() { + if (goalBuilder_ == null) { + goalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.Goal, + com.google.ads.admanager.v1.Goal.Builder, + com.google.ads.admanager.v1.GoalOrBuilder>( + getGoal(), getParentForChildren(), isClean()); + goal_ = null; + } + return goalBuilder_; + } + + @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.ads.admanager.v1.LineItem) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.LineItem) + private static final com.google.ads.admanager.v1.LineItem DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.LineItem(); + } + + public static com.google.ads.admanager.v1.LineItem getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LineItem parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItem getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemEnumsProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemEnumsProto.java new file mode 100644 index 000000000000..64dd1153ec06 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemEnumsProto.java @@ -0,0 +1,80 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class LineItemEnumsProto { + private LineItemEnumsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_LineItemTypeEnum_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "-google/ads/admanager/v1/line_item_enums.proto\022\027google.ads.admanager.v1\"\202\002\n" + + "\020LineItemTypeEnum\"\355\001\n" + + "\014LineItemType\022\036\n" + + "\032LINE_ITEM_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013SPONSORSHIP\020\014\022\014\n" + + "\010STANDARD\020\r" + + "\022\013\n" + + "\007NETWORK\020\t\022\010\n" + + "\004BULK\020\004\022\022\n" + + "\016PRICE_PRIORITY\020\013\022\t\n" + + "\005HOUSE\020\007\022\022\n" + + "\016CLICK_TRACKING\020\006\022\013\n" + + "\007ADSENSE\020\002\022\017\n" + + "\013AD_EXCHANGE\020\003\022\n\n" + + "\006BUMPER\020\005\022\022\n" + + "\016PREFERRED_DEAL\020\n" + + "\022\026\n" + + "\022AUDIENCE_EXTENSION\020\016B\306\001\n" + + "\033com.google.ads.admanager.v1B\022LineItemEnumsProtoP\001Z@google.gola" + + "ng.org/genproto/googleapis/ads/admanager" + + "/v1;admanager\252\002\027Google.Ads.AdManager.V1\312" + + "\002\027Google\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_LineItemTypeEnum_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor, + new java.lang.String[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemMessagesProto.java new file mode 100644 index 000000000000..afacbb3adf81 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemMessagesProto.java @@ -0,0 +1,124 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class LineItemMessagesProto { + private LineItemMessagesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_LineItem_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_LineItem_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n0google/ads/admanager/v1/line_item_mess" + + "ages.proto\022\027google.ads.admanager.v1\0320goo" + + "gle/ads/admanager/v1/custom_field_value." + + "proto\032\"google/ads/admanager/v1/goal.prot" + + "o\032-google/ads/admanager/v1/line_item_enu" + + "ms.proto\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\032\027google/type/money" + + ".proto\"\366\005\n\010LineItem\022\021\n\004name\030\001 \001(\tB\003\340A\010\022:" + + "\n\005order\030\002 \001(\tB&\340A\003\372A \n\036admanager.googlea" + + "pis.com/OrderH\000\210\001\001\022\036\n\014display_name\030\003 \001(\t" + + "B\003\340A\002H\001\210\001\001\0228\n\nstart_time\030\006 \001(\0132\032.google." + + "protobuf.TimestampB\003\340A\002H\002\210\001\001\0226\n\010end_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003H" + + "\003\210\001\001\022X\n\016line_item_type\030\021 \001(\01626.google.ad" + + "s.admanager.v1.LineItemTypeEnum.LineItem" + + "TypeB\003\340A\002H\004\210\001\001\022*\n\004rate\030\024 \001(\0132\022.google.ty" + + "pe.MoneyB\003\340A\002H\005\210\001\001\022,\n\006budget\030# \001(\0132\022.goo" + + "gle.type.MoneyB\003\340A\003H\006\210\001\001\022K\n\023custom_field" + + "_values\030; \003(\0132).google.ads.admanager.v1." + + "CustomFieldValueB\003\340A\001\0225\n\004goal\030L \001(\0132\035.go" + + "ogle.ads.admanager.v1.GoalB\003\340A\001H\007\210\001\001:j\352A" + + "g\n!admanager.googleapis.com/LineItem\022-ne" + + "tworks/{network_code}/lineItems/{line_it" + + "em}*\tlineItems2\010lineItemB\010\n\006_orderB\017\n\r_d" + + "isplay_nameB\r\n\013_start_timeB\013\n\t_end_timeB" + + "\021\n\017_line_item_typeB\007\n\005_rateB\t\n\007_budgetB\007" + + "\n\005_goalB\311\001\n\033com.google.ads.admanager.v1B" + + "\025LineItemMessagesProtoP\001Z@google.golang." + + "org/genproto/googleapis/ads/admanager/v1" + + ";admanager\252\002\027Google.Ads.AdManager.V1\312\002\027G" + + "oogle\\Ads\\AdManager\\V1\352\002\032Google::Ads::Ad" + + "Manager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.CustomFieldValueProto.getDescriptor(), + com.google.ads.admanager.v1.GoalProto.getDescriptor(), + com.google.ads.admanager.v1.LineItemEnumsProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.MoneyProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_LineItem_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_LineItem_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_LineItem_descriptor, + new java.lang.String[] { + "Name", + "Order", + "DisplayName", + "StartTime", + "EndTime", + "LineItemType", + "Rate", + "Budget", + "CustomFieldValues", + "Goal", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.CustomFieldValueProto.getDescriptor(); + com.google.ads.admanager.v1.GoalProto.getDescriptor(); + com.google.ads.admanager.v1.LineItemEnumsProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.MoneyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java new file mode 100644 index 000000000000..f70eda502589 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemName.java @@ -0,0 +1,192 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class LineItemName implements ResourceName { + private static final PathTemplate NETWORK_CODE_LINE_ITEM = + PathTemplate.createWithoutUrlEncoding("networks/{network_code}/lineItems/{line_item}"); + private volatile Map fieldValuesMap; + private final String networkCode; + private final String lineItem; + + @Deprecated + protected LineItemName() { + networkCode = null; + lineItem = null; + } + + private LineItemName(Builder builder) { + networkCode = Preconditions.checkNotNull(builder.getNetworkCode()); + lineItem = Preconditions.checkNotNull(builder.getLineItem()); + } + + public String getNetworkCode() { + return networkCode; + } + + public String getLineItem() { + return lineItem; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LineItemName of(String networkCode, String lineItem) { + return newBuilder().setNetworkCode(networkCode).setLineItem(lineItem).build(); + } + + public static String format(String networkCode, String lineItem) { + return newBuilder().setNetworkCode(networkCode).setLineItem(lineItem).build().toString(); + } + + public static LineItemName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + NETWORK_CODE_LINE_ITEM.validatedMatch( + formattedString, "LineItemName.parse: formattedString not in valid format"); + return of(matchMap.get("network_code"), matchMap.get("line_item")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (LineItemName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return NETWORK_CODE_LINE_ITEM.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (networkCode != null) { + fieldMapBuilder.put("network_code", networkCode); + } + if (lineItem != null) { + fieldMapBuilder.put("line_item", lineItem); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return NETWORK_CODE_LINE_ITEM.instantiate("network_code", networkCode, "line_item", lineItem); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LineItemName that = ((LineItemName) o); + return Objects.equals(this.networkCode, that.networkCode) + && Objects.equals(this.lineItem, that.lineItem); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(networkCode); + h *= 1000003; + h ^= Objects.hashCode(lineItem); + return h; + } + + /** Builder for networks/{network_code}/lineItems/{line_item}. */ + public static class Builder { + private String networkCode; + private String lineItem; + + protected Builder() {} + + public String getNetworkCode() { + return networkCode; + } + + public String getLineItem() { + return lineItem; + } + + public Builder setNetworkCode(String networkCode) { + this.networkCode = networkCode; + return this; + } + + public Builder setLineItem(String lineItem) { + this.lineItem = lineItem; + return this; + } + + private Builder(LineItemName lineItemName) { + this.networkCode = lineItemName.networkCode; + this.lineItem = lineItemName.lineItem; + } + + public LineItemName build() { + return new LineItemName(this); + } + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemOrBuilder.java new file mode 100644 index 000000000000..672d788f3335 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemOrBuilder.java @@ -0,0 +1,482 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_messages.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface LineItemOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.LineItem) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The resource name of the `LineItem`.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The resource name of the `LineItem`.
+   * Format: `networks/{network_code}/lineItems/{line_item_id}`
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the order field is set. + */ + boolean hasOrder(); + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The order. + */ + java.lang.String getOrder(); + + /** + * + * + *
+   * Output only. The ID of the Order to which the LineItem belongs. This
+   * attribute is required. Format: `networks/{network_code}/orders/{order}`
+   * 
+ * + * + * optional string order = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for order. + */ + com.google.protobuf.ByteString getOrderBytes(); + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Required. The name of the line item. This attribute is required and has a
+   * maximum length of 255 characters.
+   * 
+ * + * optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Required. The date and time on which the LineItem is enabled to begin
+   * serving. This attribute is required and must be in the future.
+   * 
+ * + * + * optional .google.protobuf.Timestamp start_time = 6 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + + /** + * + * + *
+   * Output only. The timestamp when the LineItem will stop serving. This
+   * attribute is read-only and includes auto extension days.
+   * 
+ * + * + * optional .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the lineItemType field is set. + */ + boolean hasLineItemType(); + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for lineItemType. + */ + int getLineItemTypeValue(); + + /** + * + * + *
+   * Required. Indicates the line item type of a LineItem. This attribute is
+   * required. The line item type determines the default priority of the line
+   * item. More information can be found at
+   * https://support.google.com/admanager/answer/177279.
+   * 
+ * + * + * optional .google.ads.admanager.v1.LineItemTypeEnum.LineItemType line_item_type = 17 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The lineItemType. + */ + com.google.ads.admanager.v1.LineItemTypeEnum.LineItemType getLineItemType(); + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the rate field is set. + */ + boolean hasRate(); + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rate. + */ + com.google.type.Money getRate(); + + /** + * + * + *
+   * Required. The amount of money to spend per impression or click.
+   * 
+ * + * optional .google.type.Money rate = 20 [(.google.api.field_behavior) = REQUIRED]; + */ + com.google.type.MoneyOrBuilder getRateOrBuilder(); + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the budget field is set. + */ + boolean hasBudget(); + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The budget. + */ + com.google.type.Money getBudget(); + + /** + * + * + *
+   * Output only. The amount of money allocated to the LineItem. This attribute
+   * is readonly and is populated by Google. The currency code is readonly.
+   * 
+ * + * optional .google.type.Money budget = 35 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.type.MoneyOrBuilder getBudgetOrBuilder(); + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomFieldValuesList(); + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomFieldValue getCustomFieldValues(int index); + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomFieldValuesCount(); + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomFieldValuesOrBuilderList(); + + /** + * + * + *
+   * Optional. The values of the custom fields associated with this line item.
+   * 
+ * + * + * repeated .google.ads.admanager.v1.CustomFieldValue custom_field_values = 59 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.CustomFieldValueOrBuilder getCustomFieldValuesOrBuilder(int index); + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the goal field is set. + */ + boolean hasGoal(); + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The goal. + */ + com.google.ads.admanager.v1.Goal getGoal(); + + /** + * + * + *
+   * Optional. The primary goal that this LineItem is associated with, which is
+   * used in its pacing and budgeting.
+   * 
+ * + * + * optional .google.ads.admanager.v1.Goal goal = 76 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.ads.admanager.v1.GoalOrBuilder getGoalOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemServiceProto.java new file mode 100644 index 000000000000..7c3e959bdfc3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemServiceProto.java @@ -0,0 +1,140 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public final class LineItemServiceProto { + private LineItemServiceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_GetLineItemRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListLineItemsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_ads_admanager_v1_ListLineItemsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/google/ads/admanager/v1/line_item_serv" + + "ice.proto\022\027google.ads.admanager.v1\0320goog" + + "le/ads/admanager/v1/line_item_messages.p" + + "roto\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\"M\n" + + "\022GetLineItemRequest\0227\n" + + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + + "!admanager.googleapis.com/LineItem\"\300\001\n" + + "\024ListLineItemsRequest\0228\n" + + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\006 \001(\005B\003\340A\001\"{\n" + + "\025ListLineItemsResponse\0225\n\n" + + "line_items\030\001 \003(\0132!.google.ads.admanager.v1.LineItem\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\221\003\n" + + "\017LineItemService\022\217\001\n" + + "\013GetLineItem\022+.google.ads.admanager.v1.GetLineItemRequest\032" + + "!.google.ads.admanager.v1.LineItem\"0\332A\004n" + + "ame\202\323\344\223\002#\022!/v1/{name=networks/*/lineItems/*}\022\242\001\n\r" + + "ListLineItems\022-.google.ads.admanager.v1.ListLineItemsRequest\032..google.a" + + "ds.admanager.v1.ListLineItemsResponse\"2\332" + + "A\006parent\202\323\344\223\002#\022!/v1/{parent=networks/*}/" + + "lineItems\032G\312A\030admanager.googleapis.com\322A" + + ")https://www.googleapis.com/auth/admanagerB\310\001\n" + + "\033com.google.ads.admanager.v1B\024LineItemServiceProtoP\001Z@google.golang.org/ge" + + "nproto/googleapis/ads/admanager/v1;adman" + + "ager\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\" + + "Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.ads.admanager.v1.LineItemMessagesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_ads_admanager_v1_GetLineItemRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_GetLineItemRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_ads_admanager_v1_ListLineItemsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "Skip", + }); + internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_ads_admanager_v1_ListLineItemsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor, + new java.lang.String[] { + "LineItems", "NextPageToken", "TotalSize", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.ads.admanager.v1.LineItemMessagesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnum.java new file mode 100644 index 000000000000..0b88eebfa1b8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnum.java @@ -0,0 +1,853 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [LineItemType][google.ads.admanager.v1.LineItemTypeEnum.LineItemType].
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LineItemTypeEnum} + */ +public final class LineItemTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.LineItemTypeEnum) + LineItemTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use LineItemTypeEnum.newBuilder() to construct. + private LineItemTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LineItemTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LineItemTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemEnumsProto + .internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemEnumsProto + .internal_static_google_ads_admanager_v1_LineItemTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LineItemTypeEnum.class, + com.google.ads.admanager.v1.LineItemTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Indicates the priority of a LineItem, determined by the way in which
+   * impressions are reserved to be served for it.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.LineItemTypeEnum.LineItemType} + */ + public enum LineItemType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified value.
+     * 
+ * + * LINE_ITEM_TYPE_UNSPECIFIED = 0; + */ + LINE_ITEM_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The type of LineItem for which a percentage of all the impressions that
+     * are being sold are reserved.
+     * 
+ * + * SPONSORSHIP = 12; + */ + SPONSORSHIP(12), + /** + * + * + *
+     * The type of LineItem for which a fixed quantity of impressions or
+     * clicks are reserved.
+     * 
+ * + * STANDARD = 13; + */ + STANDARD(13), + /** + * + * + *
+     * The type of LineItem most commonly used to fill a site's unsold
+     * inventory if not contractually obligated to deliver a requested number
+     * of impressions. Uses daily percentage of unsold impressions or clicks.
+     * 
+ * + * NETWORK = 9; + */ + NETWORK(9), + /** + * + * + *
+     * The type of LineItem for which a fixed quantity of impressions or
+     * clicks will be delivered at a priority lower than the STANDARD type.
+     * 
+ * + * BULK = 4; + */ + BULK(4), + /** + * + * + *
+     * The type of LineItem most commonly used to fill a site's unsold
+     * inventory if not contractually obligated to deliver a requested number
+     * of impressions. Uses fixed quantity percentage of unsold impressions or
+     * clicks.
+     * 
+ * + * PRICE_PRIORITY = 11; + */ + PRICE_PRIORITY(11), + /** + * + * + *
+     * The type of LineItem typically used for ads that promote products and
+     * services chosen by the publisher.
+     * 
+ * + * HOUSE = 7; + */ + HOUSE(7), + /** + * + * + *
+     * The type of LineItem used for ads that track ads being served
+     * externally of Ad Manager.
+     * 
+ * + * CLICK_TRACKING = 6; + */ + CLICK_TRACKING(6), + /** + * + * + *
+     * Targets the LineItem to specific inventory available to AdSense buyers.
+     * 
+ * + * ADSENSE = 2; + */ + ADSENSE(2), + /** + * + * + *
+     * Targets the LineItem to specific inventory available to Authorized Buyers
+     * and the Open Auction.
+     * 
+ * + * AD_EXCHANGE = 3; + */ + AD_EXCHANGE(3), + /** + * + * + *
+     * Represents a non-monetizable video LineItem that targets one or more
+     * bumper positions, which are short house video messages used by
+     * publishers to separate content from ad breaks.
+     * 
+ * + * BUMPER = 5; + */ + BUMPER(5), + /** + * + * + *
+     * The type of LineItem for which there are no impressions reserved, and
+     * will serve for a second price bid.
+     * 
+ * + * PREFERRED_DEAL = 10; + */ + PREFERRED_DEAL(10), + /** + * + * + *
+     * The type of LineItem used for configuring audience extension campaigns.
+     * 
+ * + * AUDIENCE_EXTENSION = 14; + */ + AUDIENCE_EXTENSION(14), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified value.
+     * 
+ * + * LINE_ITEM_TYPE_UNSPECIFIED = 0; + */ + public static final int LINE_ITEM_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The type of LineItem for which a percentage of all the impressions that
+     * are being sold are reserved.
+     * 
+ * + * SPONSORSHIP = 12; + */ + public static final int SPONSORSHIP_VALUE = 12; + + /** + * + * + *
+     * The type of LineItem for which a fixed quantity of impressions or
+     * clicks are reserved.
+     * 
+ * + * STANDARD = 13; + */ + public static final int STANDARD_VALUE = 13; + + /** + * + * + *
+     * The type of LineItem most commonly used to fill a site's unsold
+     * inventory if not contractually obligated to deliver a requested number
+     * of impressions. Uses daily percentage of unsold impressions or clicks.
+     * 
+ * + * NETWORK = 9; + */ + public static final int NETWORK_VALUE = 9; + + /** + * + * + *
+     * The type of LineItem for which a fixed quantity of impressions or
+     * clicks will be delivered at a priority lower than the STANDARD type.
+     * 
+ * + * BULK = 4; + */ + public static final int BULK_VALUE = 4; + + /** + * + * + *
+     * The type of LineItem most commonly used to fill a site's unsold
+     * inventory if not contractually obligated to deliver a requested number
+     * of impressions. Uses fixed quantity percentage of unsold impressions or
+     * clicks.
+     * 
+ * + * PRICE_PRIORITY = 11; + */ + public static final int PRICE_PRIORITY_VALUE = 11; + + /** + * + * + *
+     * The type of LineItem typically used for ads that promote products and
+     * services chosen by the publisher.
+     * 
+ * + * HOUSE = 7; + */ + public static final int HOUSE_VALUE = 7; + + /** + * + * + *
+     * The type of LineItem used for ads that track ads being served
+     * externally of Ad Manager.
+     * 
+ * + * CLICK_TRACKING = 6; + */ + public static final int CLICK_TRACKING_VALUE = 6; + + /** + * + * + *
+     * Targets the LineItem to specific inventory available to AdSense buyers.
+     * 
+ * + * ADSENSE = 2; + */ + public static final int ADSENSE_VALUE = 2; + + /** + * + * + *
+     * Targets the LineItem to specific inventory available to Authorized Buyers
+     * and the Open Auction.
+     * 
+ * + * AD_EXCHANGE = 3; + */ + public static final int AD_EXCHANGE_VALUE = 3; + + /** + * + * + *
+     * Represents a non-monetizable video LineItem that targets one or more
+     * bumper positions, which are short house video messages used by
+     * publishers to separate content from ad breaks.
+     * 
+ * + * BUMPER = 5; + */ + public static final int BUMPER_VALUE = 5; + + /** + * + * + *
+     * The type of LineItem for which there are no impressions reserved, and
+     * will serve for a second price bid.
+     * 
+ * + * PREFERRED_DEAL = 10; + */ + public static final int PREFERRED_DEAL_VALUE = 10; + + /** + * + * + *
+     * The type of LineItem used for configuring audience extension campaigns.
+     * 
+ * + * AUDIENCE_EXTENSION = 14; + */ + public static final int AUDIENCE_EXTENSION_VALUE = 14; + + 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 LineItemType 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 LineItemType forNumber(int value) { + switch (value) { + case 0: + return LINE_ITEM_TYPE_UNSPECIFIED; + case 12: + return SPONSORSHIP; + case 13: + return STANDARD; + case 9: + return NETWORK; + case 4: + return BULK; + case 11: + return PRICE_PRIORITY; + case 7: + return HOUSE; + case 6: + return CLICK_TRACKING; + case 2: + return ADSENSE; + case 3: + return AD_EXCHANGE; + case 5: + return BUMPER; + case 10: + return PREFERRED_DEAL; + case 14: + return AUDIENCE_EXTENSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LineItemType findValueByNumber(int number) { + return LineItemType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final LineItemType[] VALUES = values(); + + public static LineItemType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LineItemType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.LineItemTypeEnum.LineItemType) + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.LineItemTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.LineItemTypeEnum other = + (com.google.ads.admanager.v1.LineItemTypeEnum) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum 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.ads.admanager.v1.LineItemTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum 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.ads.admanager.v1.LineItemTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum 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.ads.admanager.v1.LineItemTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum 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.ads.admanager.v1.LineItemTypeEnum 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; + } + + /** + * + * + *
+   * Wrapper message for
+   * [LineItemType][google.ads.admanager.v1.LineItemTypeEnum.LineItemType].
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.LineItemTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.LineItemTypeEnum) + com.google.ads.admanager.v1.LineItemTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemEnumsProto + .internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemEnumsProto + .internal_static_google_ads_admanager_v1_LineItemTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.LineItemTypeEnum.class, + com.google.ads.admanager.v1.LineItemTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.LineItemTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LineItemEnumsProto + .internal_static_google_ads_admanager_v1_LineItemTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.LineItemTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum build() { + com.google.ads.admanager.v1.LineItemTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum buildPartial() { + com.google.ads.admanager.v1.LineItemTypeEnum result = + new com.google.ads.admanager.v1.LineItemTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.LineItemTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.LineItemTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.LineItemTypeEnum other) { + if (other == com.google.ads.admanager.v1.LineItemTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.LineItemTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.LineItemTypeEnum) + private static final com.google.ads.admanager.v1.LineItemTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.LineItemTypeEnum(); + } + + public static com.google.ads.admanager.v1.LineItemTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LineItemTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.LineItemTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnumOrBuilder.java new file mode 100644 index 000000000000..a4c19326ae95 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/LineItemTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface LineItemTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.LineItemTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequest.java new file mode 100644 index 000000000000..3bb1049b6cfd --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequest.java @@ -0,0 +1,1484 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `ListLineItems` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListLineItemsRequest} + */ +public final class ListLineItemsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListLineItemsRequest) + ListLineItemsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListLineItemsRequest.newBuilder() to construct. + private ListLineItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLineItemsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLineItemsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListLineItemsRequest.class, + com.google.ads.admanager.v1.ListLineItemsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent, which owns this collection of LineItems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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, which owns this collection of LineItems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of `LineItems` to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `LineItems` will
+   * be returned. The maximum value is 1000; values greater than 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListLineItems` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListLineItems` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListLineItems` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListLineItems` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 6; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, orderBy_); + } + if (skip_ != 0) { + output.writeInt32(6, skip_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, orderBy_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, skip_); + } + size += getUnknownFields().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.ads.admanager.v1.ListLineItemsRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListLineItemsRequest other = + (com.google.ads.admanager.v1.ListLineItemsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getSkip() != other.getSkip()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest 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.ads.admanager.v1.ListLineItemsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest 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.ads.admanager.v1.ListLineItemsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest 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.ads.admanager.v1.ListLineItemsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest 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.ads.admanager.v1.ListLineItemsRequest 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 object for `ListLineItems` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListLineItemsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListLineItemsRequest) + com.google.ads.admanager.v1.ListLineItemsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListLineItemsRequest.class, + com.google.ads.admanager.v1.ListLineItemsRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListLineItemsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + skip_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListLineItemsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsRequest build() { + com.google.ads.admanager.v1.ListLineItemsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsRequest buildPartial() { + com.google.ads.admanager.v1.ListLineItemsRequest result = + new com.google.ads.admanager.v1.ListLineItemsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.ListLineItemsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.skip_ = skip_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListLineItemsRequest) { + return mergeFrom((com.google.ads.admanager.v1.ListLineItemsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListLineItemsRequest other) { + if (other == com.google.ads.admanager.v1.ListLineItemsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent, which owns this collection of LineItems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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, which owns this collection of LineItems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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, which owns this collection of LineItems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent, which owns this collection of LineItems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent, which owns this collection of LineItems.
+     * Format: `networks/{network_code}`
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of `LineItems` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `LineItems` will
+     * be returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of `LineItems` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `LineItems` will
+     * be returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of `LineItems` to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `LineItems` will
+     * be returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListLineItems` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListLineItems` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListLineItems` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListLineItems` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListLineItems` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListLineItems` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListLineItems` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListLineItems` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListLineItems` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListLineItems` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to filter the response.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Expression to specify sorting order.
+     * See syntax details at
+     * https://developers.google.com/ad-manager/api/beta/filters#order
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000020); + skip_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListLineItemsRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListLineItemsRequest) + private static final com.google.ads.admanager.v1.ListLineItemsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListLineItemsRequest(); + } + + public static com.google.ads.admanager.v1.ListLineItemsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLineItemsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequestOrBuilder.java new file mode 100644 index 000000000000..0a3588be6713 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsRequestOrBuilder.java @@ -0,0 +1,181 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListLineItemsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListLineItemsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent, which owns this collection of LineItems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent, which owns this collection of LineItems.
+   * Format: `networks/{network_code}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of `LineItems` to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `LineItems` will
+   * be returned. The maximum value is 1000; values greater than 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListLineItems` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListLineItems` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListLineItems` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListLineItems` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Expression to filter the response.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Expression to specify sorting order.
+   * See syntax details at
+   * https://developers.google.com/ad-manager/api/beta/filters#order
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponse.java new file mode 100644 index 000000000000..d5c186df19e1 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponse.java @@ -0,0 +1,1294 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Response object for `ListLineItemsRequest` containing matching `LineItem`
+ * objects.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListLineItemsResponse} + */ +public final class ListLineItemsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.ListLineItemsResponse) + ListLineItemsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ListLineItemsResponse.newBuilder() to construct. + private ListLineItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListLineItemsResponse() { + lineItems_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListLineItemsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListLineItemsResponse.class, + com.google.ads.admanager.v1.ListLineItemsResponse.Builder.class); + } + + public static final int LINE_ITEMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List lineItems_; + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + @java.lang.Override + public java.util.List getLineItemsList() { + return lineItems_; + } + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + @java.lang.Override + public java.util.List + getLineItemsOrBuilderList() { + return lineItems_; + } + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + @java.lang.Override + public int getLineItemsCount() { + return lineItems_.size(); + } + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.LineItem getLineItems(int index) { + return lineItems_.get(index); + } + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + @java.lang.Override + public com.google.ads.admanager.v1.LineItemOrBuilder getLineItemsOrBuilder(int index) { + return lineItems_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `LineItem` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` won't be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < lineItems_.size(); i++) { + output.writeMessage(1, lineItems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < lineItems_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, lineItems_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } + size += getUnknownFields().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.ads.admanager.v1.ListLineItemsResponse)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.ListLineItemsResponse other = + (com.google.ads.admanager.v1.ListLineItemsResponse) obj; + + if (!getLineItemsList().equals(other.getLineItemsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getLineItemsCount() > 0) { + hash = (37 * hash) + LINE_ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getLineItemsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse 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.ads.admanager.v1.ListLineItemsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse 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.ads.admanager.v1.ListLineItemsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse 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.ads.admanager.v1.ListLineItemsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse 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.ads.admanager.v1.ListLineItemsResponse 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; + } + + /** + * + * + *
+   * Response object for `ListLineItemsRequest` containing matching `LineItem`
+   * objects.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.ListLineItemsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.ListLineItemsResponse) + com.google.ads.admanager.v1.ListLineItemsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.ListLineItemsResponse.class, + com.google.ads.admanager.v1.ListLineItemsResponse.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.ListLineItemsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (lineItemsBuilder_ == null) { + lineItems_ = java.util.Collections.emptyList(); + } else { + lineItems_ = null; + lineItemsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.LineItemServiceProto + .internal_static_google_ads_admanager_v1_ListLineItemsResponse_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsResponse getDefaultInstanceForType() { + return com.google.ads.admanager.v1.ListLineItemsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsResponse build() { + com.google.ads.admanager.v1.ListLineItemsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsResponse buildPartial() { + com.google.ads.admanager.v1.ListLineItemsResponse result = + new com.google.ads.admanager.v1.ListLineItemsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.ads.admanager.v1.ListLineItemsResponse result) { + if (lineItemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + lineItems_ = java.util.Collections.unmodifiableList(lineItems_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.lineItems_ = lineItems_; + } else { + result.lineItems_ = lineItemsBuilder_.build(); + } + } + + private void buildPartial0(com.google.ads.admanager.v1.ListLineItemsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.ListLineItemsResponse) { + return mergeFrom((com.google.ads.admanager.v1.ListLineItemsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.ListLineItemsResponse other) { + if (other == com.google.ads.admanager.v1.ListLineItemsResponse.getDefaultInstance()) + return this; + if (lineItemsBuilder_ == null) { + if (!other.lineItems_.isEmpty()) { + if (lineItems_.isEmpty()) { + lineItems_ = other.lineItems_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLineItemsIsMutable(); + lineItems_.addAll(other.lineItems_); + } + onChanged(); + } + } else { + if (!other.lineItems_.isEmpty()) { + if (lineItemsBuilder_.isEmpty()) { + lineItemsBuilder_.dispose(); + lineItemsBuilder_ = null; + lineItems_ = other.lineItems_; + bitField0_ = (bitField0_ & ~0x00000001); + lineItemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getLineItemsFieldBuilder() + : null; + } else { + lineItemsBuilder_.addAllMessages(other.lineItems_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.ads.admanager.v1.LineItem m = + input.readMessage( + com.google.ads.admanager.v1.LineItem.parser(), extensionRegistry); + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(m); + } else { + lineItemsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List lineItems_ = + java.util.Collections.emptyList(); + + private void ensureLineItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + lineItems_ = new java.util.ArrayList(lineItems_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.LineItem, + com.google.ads.admanager.v1.LineItem.Builder, + com.google.ads.admanager.v1.LineItemOrBuilder> + lineItemsBuilder_; + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public java.util.List getLineItemsList() { + if (lineItemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(lineItems_); + } else { + return lineItemsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public int getLineItemsCount() { + if (lineItemsBuilder_ == null) { + return lineItems_.size(); + } else { + return lineItemsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public com.google.ads.admanager.v1.LineItem getLineItems(int index) { + if (lineItemsBuilder_ == null) { + return lineItems_.get(index); + } else { + return lineItemsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder setLineItems(int index, com.google.ads.admanager.v1.LineItem value) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.set(index, value); + onChanged(); + } else { + lineItemsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder setLineItems( + int index, com.google.ads.admanager.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.set(index, builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder addLineItems(com.google.ads.admanager.v1.LineItem value) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.add(value); + onChanged(); + } else { + lineItemsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder addLineItems(int index, com.google.ads.admanager.v1.LineItem value) { + if (lineItemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLineItemsIsMutable(); + lineItems_.add(index, value); + onChanged(); + } else { + lineItemsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder addLineItems(com.google.ads.admanager.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder addLineItems( + int index, com.google.ads.admanager.v1.LineItem.Builder builderForValue) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.add(index, builderForValue.build()); + onChanged(); + } else { + lineItemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder addAllLineItems( + java.lang.Iterable values) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, lineItems_); + onChanged(); + } else { + lineItemsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder clearLineItems() { + if (lineItemsBuilder_ == null) { + lineItems_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + lineItemsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public Builder removeLineItems(int index) { + if (lineItemsBuilder_ == null) { + ensureLineItemsIsMutable(); + lineItems_.remove(index); + onChanged(); + } else { + lineItemsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public com.google.ads.admanager.v1.LineItem.Builder getLineItemsBuilder(int index) { + return getLineItemsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public com.google.ads.admanager.v1.LineItemOrBuilder getLineItemsOrBuilder(int index) { + if (lineItemsBuilder_ == null) { + return lineItems_.get(index); + } else { + return lineItemsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public java.util.List + getLineItemsOrBuilderList() { + if (lineItemsBuilder_ != null) { + return lineItemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(lineItems_); + } + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public com.google.ads.admanager.v1.LineItem.Builder addLineItemsBuilder() { + return getLineItemsFieldBuilder() + .addBuilder(com.google.ads.admanager.v1.LineItem.getDefaultInstance()); + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public com.google.ads.admanager.v1.LineItem.Builder addLineItemsBuilder(int index) { + return getLineItemsFieldBuilder() + .addBuilder(index, com.google.ads.admanager.v1.LineItem.getDefaultInstance()); + } + + /** + * + * + *
+     * The `LineItem` objects from the specified network.
+     * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + public java.util.List getLineItemsBuilderList() { + return getLineItemsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.LineItem, + com.google.ads.admanager.v1.LineItem.Builder, + com.google.ads.admanager.v1.LineItemOrBuilder> + getLineItemsFieldBuilder() { + if (lineItemsBuilder_ == null) { + lineItemsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.ads.admanager.v1.LineItem, + com.google.ads.admanager.v1.LineItem.Builder, + com.google.ads.admanager.v1.LineItemOrBuilder>( + lineItems_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + lineItems_ = null; + } + return lineItemsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `LineItem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `LineItem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `LineItem` objects.
+     * If a filter was included in the request, this reflects the total number
+     * after the filtering is applied.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.ads.admanager.v1.ListLineItemsResponse) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.ListLineItemsResponse) + private static final com.google.ads.admanager.v1.ListLineItemsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.ListLineItemsResponse(); + } + + public static com.google.ads.admanager.v1.ListLineItemsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListLineItemsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.ListLineItemsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponseOrBuilder.java new file mode 100644 index 000000000000..d373591b01a6 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListLineItemsResponseOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2025 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/ads/admanager/v1/line_item_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface ListLineItemsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListLineItemsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + java.util.List getLineItemsList(); + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + com.google.ads.admanager.v1.LineItem getLineItems(int index); + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + int getLineItemsCount(); + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + java.util.List + getLineItemsOrBuilderList(); + + /** + * + * + *
+   * The `LineItem` objects from the specified network.
+   * 
+ * + * repeated .google.ads.admanager.v1.LineItem line_items = 1; + */ + com.google.ads.admanager.v1.LineItemOrBuilder getLineItemsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `LineItem` objects.
+   * If a filter was included in the request, this reflects the total number
+   * after the filtering is applied.
+   *
+   * `total_size` won't be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequest.java index 1350ccf292fa..1fb94df59e52 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequest.java @@ -39,7 +39,9 @@ private ListNetworksRequest(com.google.protobuf.GeneratedMessageV3.Builder bu super(builder); } - private ListNetworksRequest() {} + private ListNetworksRequest() { + pageToken_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -62,6 +64,108 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.ListNetworksRequest.Builder.class); } + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. The maximum number of `Network`s to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `Network`s will be
+   * returned. The maximum value is 1000; values greater than 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListNetworks` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListNetworks` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKIP_FIELD_NUMBER = 5; + private int skip_ = 0; + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -76,6 +180,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + if (skip_ != 0) { + output.writeInt32(5, skip_); + } getUnknownFields().writeTo(output); } @@ -85,6 +198,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + if (skip_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, skip_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -101,6 +223,9 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.ListNetworksRequest other = (com.google.ads.admanager.v1.ListNetworksRequest) obj; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getSkip() != other.getSkip()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -112,6 +237,12 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SKIP_FIELD_NUMBER; + hash = (53 * hash) + getSkip(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -251,6 +382,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { @java.lang.Override public Builder clear() { super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + skip_ = 0; return this; } @@ -278,10 +413,26 @@ public com.google.ads.admanager.v1.ListNetworksRequest build() { public com.google.ads.admanager.v1.ListNetworksRequest buildPartial() { com.google.ads.admanager.v1.ListNetworksRequest result = new com.google.ads.admanager.v1.ListNetworksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } + private void buildPartial0(com.google.ads.admanager.v1.ListNetworksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.skip_ = skip_; + } + } + @java.lang.Override public Builder clone() { return super.clone(); @@ -328,6 +479,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.ads.admanager.v1.ListNetworksRequest other) { if (other == com.google.ads.admanager.v1.ListNetworksRequest.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getSkip() != 0) { + setSkip(other.getSkip()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -354,6 +516,24 @@ public Builder mergeFrom( case 0: done = true; break; + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 40: + { + skip_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -371,6 +551,260 @@ public Builder mergeFrom( return this; } + private int bitField0_; + + private int pageSize_; + + /** + * + * + *
+     * Optional. The maximum number of `Network`s to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `Network`s will be
+     * returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. The maximum number of `Network`s to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `Network`s will be
+     * returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The maximum number of `Network`s to return. The service may
+     * return fewer than this value. If unspecified, at most 50 `Network`s will be
+     * returned. The maximum value is 1000; values greater than 1000 will be
+     * coerced to 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListNetworks` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListNetworks` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListNetworks` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListNetworks` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListNetworks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListNetworks` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int skip_; + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + @java.lang.Override + public int getSkip() { + return skip_; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The skip to set. + * @return This builder for chaining. + */ + public Builder setSkip(int value) { + + skip_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Number of individual resources to skip while paginating.
+     * 
+ * + * int32 skip = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSkip() { + bitField0_ = (bitField0_ & ~0x00000004); + skip_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequestOrBuilder.java index 8d80c9035d31..007d3cca445f 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksRequestOrBuilder.java @@ -22,4 +22,68 @@ public interface ListNetworksRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.ListNetworksRequest) - com.google.protobuf.MessageOrBuilder {} + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The maximum number of `Network`s to return. The service may
+   * return fewer than this value. If unspecified, at most 50 `Network`s will be
+   * returned. The maximum value is 1000; values greater than 1000 will be
+   * coerced to 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListNetworks` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListNetworks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListNetworks` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Number of individual resources to skip while paginating.
+   * 
+ * + * int32 skip = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The skip. + */ + int getSkip(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponse.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponse.java index 1a2d707507bd..ba86c18b5d1d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponse.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponse.java @@ -41,6 +41,7 @@ private ListNetworksResponse(com.google.protobuf.GeneratedMessageV3.Builder b private ListNetworksResponse() { networks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; } @java.lang.Override @@ -140,6 +141,88 @@ public com.google.ads.admanager.v1.NetworkOrBuilder getNetworksOrBuilder(int ind return networks_.get(index); } + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + + /** + * + * + *
+   * Total number of `Network`s.
+   *
+   * `total_size` won't be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -157,6 +240,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < networks_.size(); i++) { output.writeMessage(1, networks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeInt32(3, totalSize_); + } getUnknownFields().writeTo(output); } @@ -169,6 +258,12 @@ public int getSerializedSize() { for (int i = 0; i < networks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, networks_.get(i)); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -186,6 +281,8 @@ public boolean equals(final java.lang.Object obj) { (com.google.ads.admanager.v1.ListNetworksResponse) obj; if (!getNetworksList().equals(other.getNetworksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -201,6 +298,10 @@ public int hashCode() { hash = (37 * hash) + NETWORKS_FIELD_NUMBER; hash = (53 * hash) + getNetworksList().hashCode(); } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -348,6 +449,8 @@ public Builder clear() { networksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; return this; } @@ -398,6 +501,12 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.ads.admanager.v1.ListNetworksResponse result) { int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } } @java.lang.Override @@ -473,6 +582,14 @@ public Builder mergeFrom(com.google.ads.admanager.v1.ListNetworksResponse other) } } } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -512,6 +629,18 @@ public Builder mergeFrom( } break; } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -896,6 +1025,202 @@ public java.util.List getNetworksBu return networksBuilder_; } + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int totalSize_; + + /** + * + * + *
+     * Total number of `Network`s.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + /** + * + * + *
+     * Total number of `Network`s.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Total number of `Network`s.
+     *
+     * `total_size` won't be calculated in the response unless it has been
+     * included in a response field mask. The response field mask can be provided
+     * to the method by using the URL parameter `$fields` or `fields`, or by using
+     * the HTTP/gRPC header `X-Goog-FieldMask`.
+     *
+     * For more information, see
+     * https://developers.google.com/ad-manager/api/beta/field-masks
+     * 
+ * + * int32 total_size = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponseOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponseOrBuilder.java index 8a15387521de..01901162b84e 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponseOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ListNetworksResponseOrBuilder.java @@ -78,4 +78,53 @@ public interface ListNetworksResponseOrBuilder * repeated .google.ads.admanager.v1.Network networks = 1; */ com.google.ads.admanager.v1.NetworkOrBuilder getNetworksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Total number of `Network`s.
+   *
+   * `total_size` won't be calculated in the response unless it has been
+   * included in a response field mask. The response field mask can be provided
+   * to the method by using the URL parameter `$fields` or `fields`, or by using
+   * the HTTP/gRPC header `X-Goog-FieldMask`.
+   *
+   * For more information, see
+   * https://developers.google.com/ad-manager/api/beta/field-masks
+   * 
+ * + * int32 total_size = 3; + * + * @return The totalSize. + */ + int getTotalSize(); } diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java index 3d19440ac7e1..351adbb7a643 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Network.java @@ -71,6 +71,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.ads.admanager.v1.Network.Builder.class); } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -138,7 +139,23 @@ public com.google.protobuf.ByteString getNameBytes() { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + @java.lang.Override + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Display name for Network.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -162,7 +179,7 @@ public java.lang.String getDisplayName() { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -191,7 +208,23 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkCode field is set. + */ + @java.lang.Override + public boolean hasNetworkCode() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Network Code.
+   * 
+ * + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkCode. */ @@ -215,7 +248,7 @@ public java.lang.String getNetworkCode() { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for networkCode. */ @@ -244,7 +277,23 @@ public com.google.protobuf.ByteString getNetworkCodeBytes() { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the propertyCode field is set. + */ + @java.lang.Override + public boolean hasPropertyCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Property code.
+   * 
+ * + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The propertyCode. */ @@ -268,7 +317,7 @@ public java.lang.String getPropertyCode() { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for propertyCode. */ @@ -298,7 +347,24 @@ public com.google.protobuf.ByteString getPropertyCodeBytes() { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeZone field is set. + */ + @java.lang.Override + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Time zone associated with the delivery of orders and
+   * reporting.
+   * 
+ * + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The timeZone. */ @@ -323,7 +389,7 @@ public java.lang.String getTimeZone() { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for timeZone. */ @@ -352,7 +418,23 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + @java.lang.Override + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Primary currency code, in ISO-4217 format.
+   * 
+ * + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -376,7 +458,7 @@ public java.lang.String getCurrencyCode() { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -484,7 +566,27 @@ public com.google.protobuf.ByteString getSecondaryCurrencyCodesBytes(int index) * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the effectiveRootAdUnit field is set. + */ + @java.lang.Override + public boolean hasEffectiveRootAdUnit() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+   * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
+   * descendant Ad Units can be added.
+   * Format: networks/{network_code}/adUnits/{ad_unit}
+   * 
+ * + * + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The effectiveRootAdUnit. @@ -512,7 +614,7 @@ public java.lang.String getEffectiveRootAdUnit() { * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for effectiveRootAdUnit. @@ -540,7 +642,23 @@ public com.google.protobuf.ByteString getEffectiveRootAdUnitBytes() { * Output only. Whether this is a test network. * * - * bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the testNetwork field is set. + */ + @java.lang.Override + public boolean hasTestNetwork() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Output only. Whether this is a test network.
+   * 
+ * + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The testNetwork. */ @@ -559,7 +677,23 @@ public boolean getTestNetwork() { * Output only. Network ID. * * - * int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkId field is set. + */ + @java.lang.Override + public boolean hasNetworkId() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. Network ID.
+   * 
+ * + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkId. */ @@ -585,32 +719,32 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkCode_)) { + if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, networkCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, propertyCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, timeZone_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, currencyCode_); } for (int i = 0; i < secondaryCurrencyCodes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString( output, 7, secondaryCurrencyCodes_.getRaw(i)); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveRootAdUnit_)) { + if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, effectiveRootAdUnit_); } - if (testNetwork_ != false) { + if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(10, testNetwork_); } - if (networkId_ != 0L) { + if (((bitField0_ & 0x00000080) != 0)) { output.writeInt64(11, networkId_); } getUnknownFields().writeTo(output); @@ -625,19 +759,19 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(networkCode_)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, networkCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(propertyCode_)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, propertyCode_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, timeZone_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, currencyCode_); } { @@ -648,13 +782,13 @@ public int getSerializedSize() { size += dataSize; size += 1 * getSecondaryCurrencyCodesList().size(); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(effectiveRootAdUnit_)) { + if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, effectiveRootAdUnit_); } - if (testNetwork_ != false) { + if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, testNetwork_); } - if (networkId_ != 0L) { + if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, networkId_); } size += getUnknownFields().getSerializedSize(); @@ -673,16 +807,40 @@ public boolean equals(final java.lang.Object obj) { com.google.ads.admanager.v1.Network other = (com.google.ads.admanager.v1.Network) obj; if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getNetworkCode().equals(other.getNetworkCode())) return false; - if (!getPropertyCode().equals(other.getPropertyCode())) return false; - if (!getTimeZone().equals(other.getTimeZone())) return false; - if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (hasDisplayName() != other.hasDisplayName()) return false; + if (hasDisplayName()) { + if (!getDisplayName().equals(other.getDisplayName())) return false; + } + if (hasNetworkCode() != other.hasNetworkCode()) return false; + if (hasNetworkCode()) { + if (!getNetworkCode().equals(other.getNetworkCode())) return false; + } + if (hasPropertyCode() != other.hasPropertyCode()) return false; + if (hasPropertyCode()) { + if (!getPropertyCode().equals(other.getPropertyCode())) return false; + } + if (hasTimeZone() != other.hasTimeZone()) return false; + if (hasTimeZone()) { + if (!getTimeZone().equals(other.getTimeZone())) return false; + } + if (hasCurrencyCode() != other.hasCurrencyCode()) return false; + if (hasCurrencyCode()) { + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + } if (!getSecondaryCurrencyCodesList().equals(other.getSecondaryCurrencyCodesList())) return false; - if (!getEffectiveRootAdUnit().equals(other.getEffectiveRootAdUnit())) return false; - if (getTestNetwork() != other.getTestNetwork()) return false; - if (getNetworkId() != other.getNetworkId()) return false; + if (hasEffectiveRootAdUnit() != other.hasEffectiveRootAdUnit()) return false; + if (hasEffectiveRootAdUnit()) { + if (!getEffectiveRootAdUnit().equals(other.getEffectiveRootAdUnit())) return false; + } + if (hasTestNetwork() != other.hasTestNetwork()) return false; + if (hasTestNetwork()) { + if (getTestNetwork() != other.getTestNetwork()) return false; + } + if (hasNetworkId() != other.hasNetworkId()) return false; + if (hasNetworkId()) { + if (getNetworkId() != other.getNetworkId()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -696,26 +854,42 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + NETWORK_CODE_FIELD_NUMBER; - hash = (53 * hash) + getNetworkCode().hashCode(); - hash = (37 * hash) + PROPERTY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getPropertyCode().hashCode(); - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); + if (hasDisplayName()) { + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + } + if (hasNetworkCode()) { + hash = (37 * hash) + NETWORK_CODE_FIELD_NUMBER; + hash = (53 * hash) + getNetworkCode().hashCode(); + } + if (hasPropertyCode()) { + hash = (37 * hash) + PROPERTY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getPropertyCode().hashCode(); + } + if (hasTimeZone()) { + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + } + if (hasCurrencyCode()) { + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + } if (getSecondaryCurrencyCodesCount() > 0) { hash = (37 * hash) + SECONDARY_CURRENCY_CODES_FIELD_NUMBER; hash = (53 * hash) + getSecondaryCurrencyCodesList().hashCode(); } - hash = (37 * hash) + EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER; - hash = (53 * hash) + getEffectiveRootAdUnit().hashCode(); - hash = (37 * hash) + TEST_NETWORK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTestNetwork()); - hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNetworkId()); + if (hasEffectiveRootAdUnit()) { + hash = (37 * hash) + EFFECTIVE_ROOT_AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getEffectiveRootAdUnit().hashCode(); + } + if (hasTestNetwork()) { + hash = (37 * hash) + TEST_NETWORK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTestNetwork()); + } + if (hasNetworkId()) { + hash = (37 * hash) + NETWORK_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getNetworkId()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -903,20 +1077,26 @@ private void buildPartial0(com.google.ads.admanager.v1.Network result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; } + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000002) != 0)) { result.displayName_ = displayName_; + to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000004) != 0)) { result.networkCode_ = networkCode_; + to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { result.propertyCode_ = propertyCode_; + to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.timeZone_ = timeZone_; + to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.currencyCode_ = currencyCode_; + to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { secondaryCurrencyCodes_.makeImmutable(); @@ -924,13 +1104,17 @@ private void buildPartial0(com.google.ads.admanager.v1.Network result) { } if (((from_bitField0_ & 0x00000080) != 0)) { result.effectiveRootAdUnit_ = effectiveRootAdUnit_; + to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { result.testNetwork_ = testNetwork_; + to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000200) != 0)) { result.networkId_ = networkId_; + to_bitField0_ |= 0x00000080; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -983,27 +1167,27 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Network other) { bitField0_ |= 0x00000001; onChanged(); } - if (!other.getDisplayName().isEmpty()) { + if (other.hasDisplayName()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } - if (!other.getNetworkCode().isEmpty()) { + if (other.hasNetworkCode()) { networkCode_ = other.networkCode_; bitField0_ |= 0x00000004; onChanged(); } - if (!other.getPropertyCode().isEmpty()) { + if (other.hasPropertyCode()) { propertyCode_ = other.propertyCode_; bitField0_ |= 0x00000008; onChanged(); } - if (!other.getTimeZone().isEmpty()) { + if (other.hasTimeZone()) { timeZone_ = other.timeZone_; bitField0_ |= 0x00000010; onChanged(); } - if (!other.getCurrencyCode().isEmpty()) { + if (other.hasCurrencyCode()) { currencyCode_ = other.currencyCode_; bitField0_ |= 0x00000020; onChanged(); @@ -1018,15 +1202,15 @@ public Builder mergeFrom(com.google.ads.admanager.v1.Network other) { } onChanged(); } - if (!other.getEffectiveRootAdUnit().isEmpty()) { + if (other.hasEffectiveRootAdUnit()) { effectiveRootAdUnit_ = other.effectiveRootAdUnit_; bitField0_ |= 0x00000080; onChanged(); } - if (other.getTestNetwork() != false) { + if (other.hasTestNetwork()) { setTestNetwork(other.getTestNetwork()); } - if (other.getNetworkId() != 0L) { + if (other.hasNetworkId()) { setNetworkId(other.getNetworkId()); } this.mergeUnknownFields(other.getUnknownFields()); @@ -1260,7 +1444,22 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + public boolean hasDisplayName() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Display name for Network.
+     * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -1283,7 +1482,7 @@ public java.lang.String getDisplayName() { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -1306,7 +1505,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The displayName to set. * @return This builder for chaining. @@ -1328,7 +1527,7 @@ public Builder setDisplayName(java.lang.String value) { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1346,7 +1545,7 @@ public Builder clearDisplayName() { * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for displayName to set. * @return This builder for chaining. @@ -1371,7 +1570,22 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkCode field is set. + */ + public boolean hasNetworkCode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. Network Code.
+     * 
+ * + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkCode. */ @@ -1394,7 +1608,7 @@ public java.lang.String getNetworkCode() { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for networkCode. */ @@ -1417,7 +1631,7 @@ public com.google.protobuf.ByteString getNetworkCodeBytes() { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The networkCode to set. * @return This builder for chaining. @@ -1439,7 +1653,7 @@ public Builder setNetworkCode(java.lang.String value) { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1457,7 +1671,7 @@ public Builder clearNetworkCode() { * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for networkCode to set. * @return This builder for chaining. @@ -1482,7 +1696,22 @@ public Builder setNetworkCodeBytes(com.google.protobuf.ByteString value) { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the propertyCode field is set. + */ + public boolean hasPropertyCode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. Property code.
+     * 
+ * + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The propertyCode. */ @@ -1505,7 +1734,7 @@ public java.lang.String getPropertyCode() { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for propertyCode. */ @@ -1528,7 +1757,7 @@ public com.google.protobuf.ByteString getPropertyCodeBytes() { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The propertyCode to set. * @return This builder for chaining. @@ -1550,7 +1779,7 @@ public Builder setPropertyCode(java.lang.String value) { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1568,7 +1797,7 @@ public Builder clearPropertyCode() { * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for propertyCode to set. * @return This builder for chaining. @@ -1594,7 +1823,23 @@ public Builder setPropertyCodeBytes(com.google.protobuf.ByteString value) { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeZone field is set. + */ + public boolean hasTimeZone() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. Time zone associated with the delivery of orders and
+     * reporting.
+     * 
+ * + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The timeZone. */ @@ -1618,7 +1863,7 @@ public java.lang.String getTimeZone() { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for timeZone. */ @@ -1642,7 +1887,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The timeZone to set. * @return This builder for chaining. @@ -1665,7 +1910,7 @@ public Builder setTimeZone(java.lang.String value) { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1684,7 +1929,7 @@ public Builder clearTimeZone() { * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for timeZone to set. * @return This builder for chaining. @@ -1709,7 +1954,22 @@ public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + public boolean hasCurrencyCode() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Primary currency code, in ISO-4217 format.
+     * 
+ * + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -1732,7 +1992,7 @@ public java.lang.String getCurrencyCode() { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -1755,7 +2015,7 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The currencyCode to set. * @return This builder for chaining. @@ -1777,7 +2037,7 @@ public Builder setCurrencyCode(java.lang.String value) { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1795,7 +2055,7 @@ public Builder clearCurrencyCode() { * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for currencyCode to set. * @return This builder for chaining. @@ -2025,7 +2285,26 @@ public Builder addSecondaryCurrencyCodesBytes(com.google.protobuf.ByteString val * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the effectiveRootAdUnit field is set. + */ + public boolean hasEffectiveRootAdUnit() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
+     * descendant Ad Units can be added.
+     * Format: networks/{network_code}/adUnits/{ad_unit}
+     * 
+ * + * + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The effectiveRootAdUnit. @@ -2052,7 +2331,7 @@ public java.lang.String getEffectiveRootAdUnit() { * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for effectiveRootAdUnit. @@ -2079,7 +2358,7 @@ public com.google.protobuf.ByteString getEffectiveRootAdUnitBytes() { * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The effectiveRootAdUnit to set. @@ -2105,7 +2384,7 @@ public Builder setEffectiveRootAdUnit(java.lang.String value) { * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -2127,7 +2406,7 @@ public Builder clearEffectiveRootAdUnit() { * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @param value The bytes for effectiveRootAdUnit to set. @@ -2153,7 +2432,23 @@ public Builder setEffectiveRootAdUnitBytes(com.google.protobuf.ByteString value) * Output only. Whether this is a test network. * * - * bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the testNetwork field is set. + */ + @java.lang.Override + public boolean hasTestNetwork() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
+     * Output only. Whether this is a test network.
+     * 
+ * + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The testNetwork. */ @@ -2169,7 +2464,7 @@ public boolean getTestNetwork() { * Output only. Whether this is a test network. * * - * bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The testNetwork to set. * @return This builder for chaining. @@ -2189,7 +2484,7 @@ public Builder setTestNetwork(boolean value) { * Output only. Whether this is a test network. * * - * bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -2209,7 +2504,23 @@ public Builder clearTestNetwork() { * Output only. Network ID. * * - * int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkId field is set. + */ + @java.lang.Override + public boolean hasNetworkId() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Network ID.
+     * 
+ * + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkId. */ @@ -2225,7 +2536,7 @@ public long getNetworkId() { * Output only. Network ID. * * - * int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The networkId to set. * @return This builder for chaining. @@ -2245,7 +2556,7 @@ public Builder setNetworkId(long value) { * Output only. Network ID. * * - * int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java index f3a5708b36e3..21d474f365f5 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkMessagesProto.java @@ -44,28 +44,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + ".google/ads/admanager/v1/network_messag" + "es.proto\022\027google.ads.admanager.v1\032\037googl" - + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\231\003\n" + + "e/api/field_behavior.proto\032\031google/api/resource.proto\"\320\004\n" + "\007Network\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\001\022\031\n" - + "\014network_code\030\003 \001(\tB\003\340A\003\022\032\n\r" - + "property_code\030\004 \001(\tB\003\340A\003\022\026\n" - + "\ttime_zone\030\005 \001(\tB\003\340A\003\022\032\n\r" - + "currency_code\030\006 \001(\tB\003\340A\003\022%\n" - + "\030secondary_currency_codes\030\007 \003(\tB\003\340A\001\022G\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\014display_name\030\002 \001(\tB\003\340A\001H\000\210\001\001\022\036\n" + + "\014network_code\030\003 \001(\tB\003\340A\003H\001\210\001\001\022\037\n\r" + + "property_code\030\004 \001(\tB\003\340A\003H\002\210\001\001\022\033\n" + + "\ttime_zone\030\005 \001(\tB\003\340A\003H\003\210\001\001\022\037\n\r" + + "currency_code\030\006 \001(\tB\003\340A\003H\004\210\001\001\022%\n" + + "\030secondary_currency_codes\030\007 \003(\tB\003\340A\001\022L\n" + "\026effective_root_ad_unit\030\010 \001(\tB\'\340A\003\372A!\n" - + "\037admanager.googleapis.com/AdUnit\022\031\n" + + "\037admanager.googleapis.com/AdUnitH\005\210\001\001\022\036\n" + "\014test_network\030\n" - + " \001(\010B\003\340A\003\022\027\n" - + "\n" - + "network_id\030\013 \001(\003B\003\340A\003:Q\352AN\n" + + " \001(\010B\003\340A\003H\006\210\001\001\022\034\n\n" + + "network_id\030\013 \001(\003B\003\340A\003H\007\210\001\001:Q\352AN\n" + " admanager.g" - + "oogleapis.com/Network\022\027networks/{network_code}*\010networks2\007networkB\310\001\n" - + "\033com.google.ads.admanager.v1B\024NetworkMessagesProtoP" - + "\001Z@google.golang.org/genproto/googleapis" - + "/ads/admanager/v1;admanager\252\002\027Google.Ads" - + ".AdManager.V1\312\002\027Google\\Ads\\AdManager\\V1\352" - + "\002\032Google::Ads::AdManager::V1b\006proto3" + + "oogleapis.com/Network\022\027networks/{network_code}*\010networks2\007networkB\017\n\r" + + "_display_nameB\017\n\r" + + "_network_codeB\020\n" + + "\016_property_codeB\014\n" + + "\n" + + "_time_zoneB\020\n" + + "\016_currency_codeB\031\n" + + "\027_effective_root_ad_unitB\017\n\r" + + "_test_networkB\r\n" + + "\013_network_idB\310\001\n" + + "\033com.google.ads.admanager.v1B\024NetworkMessagesProtoP\001Z@google.golang." + + "org/genproto/googleapis/ads/admanager/v1" + + ";admanager\252\002\027Google.Ads.AdManager.V1\312\002\027G" + + "oogle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java index 0117e79a25a9..0c02d08ecd48 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkOrBuilder.java @@ -59,7 +59,20 @@ public interface NetworkOrBuilder * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the displayName field is set. + */ + boolean hasDisplayName(); + + /** + * + * + *
+   * Optional. Display name for Network.
+   * 
+ * + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The displayName. */ @@ -72,7 +85,7 @@ public interface NetworkOrBuilder * Optional. Display name for Network. * * - * string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; + * optional string display_name = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for displayName. */ @@ -85,7 +98,20 @@ public interface NetworkOrBuilder * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkCode field is set. + */ + boolean hasNetworkCode(); + + /** + * + * + *
+   * Output only. Network Code.
+   * 
+ * + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkCode. */ @@ -98,7 +124,7 @@ public interface NetworkOrBuilder * Output only. Network Code. * * - * string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string network_code = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for networkCode. */ @@ -111,7 +137,20 @@ public interface NetworkOrBuilder * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the propertyCode field is set. + */ + boolean hasPropertyCode(); + + /** + * + * + *
+   * Output only. Property code.
+   * 
+ * + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The propertyCode. */ @@ -124,7 +163,7 @@ public interface NetworkOrBuilder * Output only. Property code. * * - * string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string property_code = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for propertyCode. */ @@ -138,7 +177,21 @@ public interface NetworkOrBuilder * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the timeZone field is set. + */ + boolean hasTimeZone(); + + /** + * + * + *
+   * Output only. Time zone associated with the delivery of orders and
+   * reporting.
+   * 
+ * + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The timeZone. */ @@ -152,7 +205,7 @@ public interface NetworkOrBuilder * reporting. * * - * string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string time_zone = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for timeZone. */ @@ -165,7 +218,20 @@ public interface NetworkOrBuilder * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the currencyCode field is set. + */ + boolean hasCurrencyCode(); + + /** + * + * + *
+   * Output only. Primary currency code, in ISO-4217 format.
+   * 
+ * + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The currencyCode. */ @@ -178,7 +244,7 @@ public interface NetworkOrBuilder * Output only. Primary currency code, in ISO-4217 format. * * - * string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional string currency_code = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for currencyCode. */ @@ -256,7 +322,24 @@ public interface NetworkOrBuilder * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the effectiveRootAdUnit field is set. + */ + boolean hasEffectiveRootAdUnit(); + + /** + * + * + *
+   * Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which
+   * descendant Ad Units can be added.
+   * Format: networks/{network_code}/adUnits/{ad_unit}
+   * 
+ * + * + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The effectiveRootAdUnit. @@ -273,7 +356,7 @@ public interface NetworkOrBuilder * * * - * string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * optional string effective_root_ad_unit = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } * * * @return The bytes for effectiveRootAdUnit. @@ -287,7 +370,20 @@ public interface NetworkOrBuilder * Output only. Whether this is a test network. * * - * bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the testNetwork field is set. + */ + boolean hasTestNetwork(); + + /** + * + * + *
+   * Output only. Whether this is a test network.
+   * 
+ * + * optional bool test_network = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The testNetwork. */ @@ -300,7 +396,20 @@ public interface NetworkOrBuilder * Output only. Network ID. * * - * int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the networkId field is set. + */ + boolean hasNetworkId(); + + /** + * + * + *
+   * Output only. Network ID.
+   * 
+ * + * optional int64 network_id = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The networkId. */ diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java index 53c120014d4e..d38230d38edf 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/NetworkServiceProto.java @@ -49,31 +49,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n-google/ads/admanager/v1/network_servic" + "\n" + + "-google/ads/admanager/v1/network_servic" + "e.proto\022\027google.ads.admanager.v1\032.google" + "/ads/admanager/v1/network_messages.proto" + "\032\034google/api/annotations.proto\032\027google/a" - + "pi/client.proto\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\"K\n\021G" - + "etNetworkRequest\0226\n\004name\030\001 \001(\tB(\340A\002\372A\"\n " - + "admanager.googleapis.com/Network\"\025\n\023List" - + "NetworksRequest\"J\n\024ListNetworksResponse\022" - + "2\n\010networks\030\001 \003(\0132 .google.ads.admanager" - + ".v1.Network2\340\002\n\016NetworkService\022\200\001\n\nGetNe" - + "twork\022*.google.ads.admanager.v1.GetNetwo" - + "rkRequest\032 .google.ads.admanager.v1.Netw" - + "ork\"$\332A\004name\202\323\344\223\002\027\022\025/v1/{name=networks/*" - + "}\022\201\001\n\014ListNetworks\022,.google.ads.admanage" - + "r.v1.ListNetworksRequest\032-.google.ads.ad" - + "manager.v1.ListNetworksResponse\"\024\202\323\344\223\002\016\022" - + "\014/v1/networks\032G\312A\030admanager.googleapis.c" - + "om\322A)https://www.googleapis.com/auth/adm" - + "anagerB\307\001\n\033com.google.ads.admanager.v1B\023" - + "NetworkServiceProtoP\001Z@google.golang.org" - + "/genproto/googleapis/ads/admanager/v1;ad" - + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" - + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdMan" - + "ager::V1b\006proto3" + + "pi/client.proto\032\037google/api/field_behavior.proto\032\031google/api/resource.proto\"K\n" + + "\021GetNetworkRequest\0226\n" + + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" + + " admanager.googleapis.com/Network\"Y\n" + + "\023ListNetworksRequest\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\022\021\n" + + "\004skip\030\005 \001(\005B\003\340A\001\"w\n" + + "\024ListNetworksResponse\0222\n" + + "\010networks\030\001 \003(\0132 .google.ads.admanager.v1.Network\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\022\n\n" + + "total_size\030\003 \001(\0052\340\002\n" + + "\016NetworkService\022\200\001\n\n" + + "GetNetwork\022*.google.ads.admanager.v1.GetNetworkRequest\032" + + " .google.ads.admanager.v1.Network\"$\332A\004name\202\323\344\223\002\027\022\025/v1/{name=networks/*}\022\201\001\n" + + "\014ListNetworks\022,.google.ads.admanager.v1.Li" + + "stNetworksRequest\032-.google.ads.admanager" + + ".v1.ListNetworksResponse\"\024\202\323\344\223\002\016\022\014/v1/ne" + + "tworks\032G\312A\030admanager.googleapis.com\322A)ht" + + "tps://www.googleapis.com/auth/admanagerB\307\001\n" + + "\033com.google.ads.admanager.v1B\023NetworkServiceProtoP\001Z@google.golang.org/genpro" + + "to/googleapis/ads/admanager/v1;admanager" + + "\252\002\027Google.Ads.AdManager.V1\312\002\027Google\\Ads\\" + + "AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -98,14 +102,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { internal_static_google_ads_admanager_v1_ListNetworksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListNetworksRequest_descriptor, - new java.lang.String[] {}); + new java.lang.String[] { + "PageSize", "PageToken", "Skip", + }); internal_static_google_ads_admanager_v1_ListNetworksResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_google_ads_admanager_v1_ListNetworksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_ads_admanager_v1_ListNetworksResponse_descriptor, new java.lang.String[] { - "Networks", + "Networks", "NextPageToken", "TotalSize", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java index a7baec6734d8..f0fdbe6b6e5c 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Order.java @@ -370,12 +370,13 @@ public com.google.protobuf.ByteString getTraffickerBytes() { * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return A list containing the advertiserContacts. @@ -388,12 +389,13 @@ public com.google.protobuf.ProtocolStringList getAdvertiserContactsList() { * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return The count of advertiserContacts. @@ -406,12 +408,13 @@ public int getAdvertiserContactsCount() { * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the element to return. @@ -425,12 +428,13 @@ public java.lang.String getAdvertiserContacts(int index) { * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the value to return. @@ -3987,12 +3991,13 @@ private void ensureAdvertiserContactsIsMutable() { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return A list containing the advertiserContacts. @@ -4006,12 +4011,13 @@ public com.google.protobuf.ProtocolStringList getAdvertiserContactsList() { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return The count of advertiserContacts. @@ -4024,12 +4030,13 @@ public int getAdvertiserContactsCount() { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the element to return. @@ -4043,12 +4050,13 @@ public java.lang.String getAdvertiserContacts(int index) { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the value to return. @@ -4062,12 +4070,13 @@ public com.google.protobuf.ByteString getAdvertiserContactsBytes(int index) { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index to set the value at. @@ -4089,12 +4098,13 @@ public Builder setAdvertiserContacts(int index, java.lang.String value) { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param value The advertiserContacts to add. @@ -4115,12 +4125,13 @@ public Builder addAdvertiserContacts(java.lang.String value) { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param values The advertiserContacts to add. @@ -4138,12 +4149,13 @@ public Builder addAllAdvertiserContacts(java.lang.Iterable val * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return This builder for chaining. @@ -4160,12 +4172,13 @@ public Builder clearAdvertiserContacts() { * * *
-     * Optional. The resource names of Contacts from the advertiser of this Order.
-     * Format: "networks/{network_code}/contacts/{contact_id}"
+     * Optional. Unordered list. The resource names of Contacts from the
+     * advertiser of this Order. Format:
+     * "networks/{network_code}/contacts/{contact_id}"
      * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param value The bytes of the advertiserContacts to add. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java index fb0cc7aac4af..86e29c746597 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderMessagesProto.java @@ -47,15 +47,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ads/admanager/v1/applied_label.proto\0320google/ads/admanager/v1/custom_field_value" + ".proto\032)google/ads/admanager/v1/order_en" + "ums.proto\032\037google/api/field_behavior.pro" - + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\226\017\n" + + "to\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\231\017\n" + "\005Order\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\032\n" + "\010order_id\030\004 \001(\003B\003\340A\003H\000\210\001\001\022\036\n" + "\014display_name\030\002 \001(\tB\003\340A\002H\001\210\001\001\022\036\n" + "\014programmatic\030\003 \001(\010B\003\340A\001H\002\210\001\001\022>\n\n" + "trafficker\030\027 \001(\tB%\340A\002\372A\037\n" - + "\035admanager.googleapis.com/UserH\003\210\001\001\022E\n" - + "\023advertiser_contacts\030\005 \003(\tB(\340A\001\372A\"\n" + + "\035admanager.googleapis.com/UserH\003\210\001\001\022H\n" + + "\023advertiser_contacts\030\005 \003(\tB+\340A\001\340A\006\372A\"\n" + " admanager.googleapis.com/Contact\022A\n\n" + "advertiser\030\006 \001(\tB(\340A\002\372A\"\n" + " admanager.googleapis.com/CompanyH\004\210\001\001\022A\n" @@ -86,8 +86,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003H\016\210\001\001\022\027\n" + "\005notes\030\021 \001(\tB\003\340A\001H\017\210\001\001\022\033\n" + "\tpo_number\030\022 \001(\tB\003\340A\001H\020\210\001\001\022N\n" - + "\006status\030\024 \001(" - + "\01624.google.ads.admanager.v1.OrderStatusEnum.OrderStatusB\003\340A\003H\021\210\001\001\022?\n" + + "\006status\030\024" + + " \001(\01624.google.ads.admanager.v1.OrderStatusEnum.OrderStatusB\003\340A\003H\021\210\001\001\022?\n" + "\013salesperson\030\025 \001(\tB%\340A\001\372A\037\n" + "\035admanager.googleapis.com/UserH\022\210\001\001\022G\n" + "\025secondary_salespeople\030\026 \003(\tB(\340A\001\340A\006\372A\037\n" @@ -100,12 +100,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132%.google.ads.admanager.v1.AppliedLabelB\003\340A\003\022K\n" + "\023custom_field_values\030&" + " \003(\0132).google.ads.admanager.v1.CustomFieldValueB\003\340A\001:Z\352AW\n" - + "\036admanager.goog" - + "leapis.com/Order\022&networks/{network_code}/orders/{order}*\006orders2\005orderB\013\n" + + "\036admanager.g" + + "oogleapis.com/Order\022&networks/{network_code}/orders/{order}*\006orders2\005orderB\013\n" + "\t_order_idB\017\n\r" + "_display_nameB\017\n\r" - + "_programmaticB\r" - + "\n" + + "_programmaticB\r\n" + "\013_traffickerB\r\n" + "\013_advertiserB\t\n" + "\007_agencyB\n\n" @@ -122,10 +121,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_po_numberB\t\n" + "\007_statusB\016\n" + "\014_salespersonB\306\001\n" - + "\033com.google.ads.admanager.v1B\022OrderMessagesProtoP\001Z@google.golang.org" - + "/genproto/googleapis/ads/admanager/v1;ad" - + "manager\252\002\027Google.Ads.AdManager.V1\312\002\027Goog" - + "le\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\022OrderMessagesProtoP\001Z@google.golang." + + "org/genproto/googleapis/ads/admanager/v1" + + ";admanager\252\002\027Google.Ads.AdManager.V1\312\002\027G" + + "oogle\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java index e2305ac5e6eb..cbc59d37339b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/OrderOrBuilder.java @@ -198,12 +198,13 @@ public interface OrderOrBuilder * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return A list containing the advertiserContacts. @@ -214,12 +215,13 @@ public interface OrderOrBuilder * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @return The count of advertiserContacts. @@ -230,12 +232,13 @@ public interface OrderOrBuilder * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the element to return. @@ -247,12 +250,13 @@ public interface OrderOrBuilder * * *
-   * Optional. The resource names of Contacts from the advertiser of this Order.
-   * Format: "networks/{network_code}/contacts/{contact_id}"
+   * Optional. Unordered list. The resource names of Contacts from the
+   * advertiser of this Order. Format:
+   * "networks/{network_code}/contacts/{contact_id}"
    * 
* * - * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * repeated string advertiser_contacts = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = UNORDERED_LIST, (.google.api.resource_reference) = { ... } * * * @param index The index of the value to return. diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java index b375f7517e9e..a783bb123510 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/Report.java @@ -104,15 +104,27 @@ public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { * *
      * Reports with saved visibility will appear in the Ad Manager UI by
-     * default.
+     * default. Alias for VISIBLE and will be replaced in the future.
      * 
* - * SAVED = 2; + * SAVED = 2 [deprecated = true]; */ + @java.lang.Deprecated SAVED(2), UNRECOGNIZED(-1), ; + /** + * + * + *
+     * Reports with this visibility will appear in the Ad Manager UI.
+     * 
+ * + * VISIBLE = 2; + */ + public static final Visibility VISIBLE = SAVED; + /** * * @@ -142,12 +154,23 @@ public enum Visibility implements com.google.protobuf.ProtocolMessageEnum { * *
      * Reports with saved visibility will appear in the Ad Manager UI by
-     * default.
+     * default. Alias for VISIBLE and will be replaced in the future.
+     * 
+ * + * SAVED = 2 [deprecated = true]; + */ + @java.lang.Deprecated public static final int SAVED_VALUE = 2; + + /** + * + * + *
+     * Reports with this visibility will appear in the Ad Manager UI.
      * 
* - * SAVED = 2; + * VISIBLE = 2; */ - public static final int SAVED_VALUE = 2; + public static final int VISIBLE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -211,7 +234,13 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor return com.google.ads.admanager.v1.Report.getDescriptor().getEnumTypes().get(0); } - private static final Visibility[] VALUES = values(); + private static final Visibility[] VALUES = getStaticValuesArray(); + + private static Visibility[] getStaticValuesArray() { + return new Visibility[] { + HIDDEN, DRAFT, SAVED, VISIBLE, + }; + } public static Visibility valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java index f77187cae8ee..cf3f33c73720 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinition.java @@ -127,6 +127,26 @@ public enum ReportType implements com.google.protobuf.ProtocolMessageEnum { * PRIVACY_AND_MESSAGING = 6; */ PRIVACY_AND_MESSAGING(6), + /** + * + * + *
+     * Gross revenue.
+     * 
+ * + * REVENUE_VERIFICATION = 7; + */ + REVENUE_VERIFICATION(7), + /** + * + * + *
+     * Partner finance.
+     * 
+ * + * PARTNER_FINANCE = 8; + */ + PARTNER_FINANCE(8), /** * * @@ -184,6 +204,28 @@ public enum ReportType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRIVACY_AND_MESSAGING_VALUE = 6; + /** + * + * + *
+     * Gross revenue.
+     * 
+ * + * REVENUE_VERIFICATION = 7; + */ + public static final int REVENUE_VERIFICATION_VALUE = 7; + + /** + * + * + *
+     * Partner finance.
+     * 
+ * + * PARTNER_FINANCE = 8; + */ + public static final int PARTNER_FINANCE_VALUE = 8; + /** * * @@ -227,6 +269,10 @@ public static ReportType forNumber(int value) { return REACH; case 6: return PRIVACY_AND_MESSAGING; + case 7: + return REVENUE_VERIFICATION; + case 8: + return PARTNER_FINANCE; case 13: return AD_SPEED; default: @@ -363,7 +409,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Advertiser credit status locallized name
+     * Advertiser credit status localized name
      *
      *
      *
@@ -531,7 +577,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Advertiser status locallized name
+     * Advertiser status localized name
      *
      *
      *
@@ -569,7 +615,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Advertiser type locallized name
+     * Advertiser type localized name
      *
      *
      *
@@ -614,7 +660,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Ad Exchange product value" in the Ad Manager UI (when
      * showing API fields).
      *
-     * Compatible with the following report types: `HISTORICAL`
+     * Compatible with the following report types: `HISTORICAL`,
+     * `REVENUE_VERIFICATION`
      *
      * Data format: `ENUM`
      * 
@@ -633,7 +680,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Ad Exchange product" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
@@ -717,6 +765,24 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * AD_LOCATION_NAME = 391; */ AD_LOCATION_NAME(22, 391), + /** + * + * + *
+     * Multi-size inventory in an ad request.
+     *
+     *
+     *
+     * Corresponds to "Ad request sizes" in the Ad Manager UI.
+     *
+     * Compatible with the following report types:
+     *
+     * Data format: `STRING_LIST`
+     * 
+ * + * AD_REQUEST_SIZES = 541; + */ + AD_REQUEST_SIZES(23, 541), /** * * @@ -734,7 +800,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_TECHNOLOGY_PROVIDER_DOMAIN = 620; */ - AD_TECHNOLOGY_PROVIDER_DOMAIN(23, 620), + AD_TECHNOLOGY_PROVIDER_DOMAIN(24, 620), /** * * @@ -752,7 +818,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_TECHNOLOGY_PROVIDER_ID = 621; */ - AD_TECHNOLOGY_PROVIDER_ID(24, 621), + AD_TECHNOLOGY_PROVIDER_ID(25, 621), /** * * @@ -770,7 +836,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_TECHNOLOGY_PROVIDER_NAME = 622; */ - AD_TECHNOLOGY_PROVIDER_NAME(25, 622), + AD_TECHNOLOGY_PROVIDER_NAME(26, 622), /** * * @@ -789,7 +855,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_TYPE = 497; */ - AD_TYPE(26, 497), + AD_TYPE(27, 497), /** * * @@ -807,7 +873,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_TYPE_NAME = 498; */ - AD_TYPE_NAME(27, 498), + AD_TYPE_NAME(28, 498), /** * * @@ -826,7 +892,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE = 64; */ - AD_UNIT_CODE(28, 64), + AD_UNIT_CODE(29, 64), /** * * @@ -845,7 +911,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_1 = 65; */ - AD_UNIT_CODE_LEVEL_1(29, 65), + AD_UNIT_CODE_LEVEL_1(30, 65), /** * * @@ -864,7 +930,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_10 = 74; */ - AD_UNIT_CODE_LEVEL_10(30, 74), + AD_UNIT_CODE_LEVEL_10(31, 74), /** * * @@ -883,7 +949,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_11 = 75; */ - AD_UNIT_CODE_LEVEL_11(31, 75), + AD_UNIT_CODE_LEVEL_11(32, 75), /** * * @@ -902,7 +968,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_12 = 76; */ - AD_UNIT_CODE_LEVEL_12(32, 76), + AD_UNIT_CODE_LEVEL_12(33, 76), /** * * @@ -921,7 +987,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_13 = 77; */ - AD_UNIT_CODE_LEVEL_13(33, 77), + AD_UNIT_CODE_LEVEL_13(34, 77), /** * * @@ -940,7 +1006,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_14 = 78; */ - AD_UNIT_CODE_LEVEL_14(34, 78), + AD_UNIT_CODE_LEVEL_14(35, 78), /** * * @@ -959,7 +1025,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_15 = 79; */ - AD_UNIT_CODE_LEVEL_15(35, 79), + AD_UNIT_CODE_LEVEL_15(36, 79), /** * * @@ -978,7 +1044,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_16 = 80; */ - AD_UNIT_CODE_LEVEL_16(36, 80), + AD_UNIT_CODE_LEVEL_16(37, 80), /** * * @@ -997,7 +1063,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_2 = 66; */ - AD_UNIT_CODE_LEVEL_2(37, 66), + AD_UNIT_CODE_LEVEL_2(38, 66), /** * * @@ -1016,7 +1082,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_3 = 67; */ - AD_UNIT_CODE_LEVEL_3(38, 67), + AD_UNIT_CODE_LEVEL_3(39, 67), /** * * @@ -1035,7 +1101,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_4 = 68; */ - AD_UNIT_CODE_LEVEL_4(39, 68), + AD_UNIT_CODE_LEVEL_4(40, 68), /** * * @@ -1054,7 +1120,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_5 = 69; */ - AD_UNIT_CODE_LEVEL_5(40, 69), + AD_UNIT_CODE_LEVEL_5(41, 69), /** * * @@ -1073,7 +1139,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_6 = 70; */ - AD_UNIT_CODE_LEVEL_6(41, 70), + AD_UNIT_CODE_LEVEL_6(42, 70), /** * * @@ -1092,7 +1158,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_7 = 71; */ - AD_UNIT_CODE_LEVEL_7(42, 71), + AD_UNIT_CODE_LEVEL_7(43, 71), /** * * @@ -1111,7 +1177,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_8 = 72; */ - AD_UNIT_CODE_LEVEL_8(43, 72), + AD_UNIT_CODE_LEVEL_8(44, 72), /** * * @@ -1130,7 +1196,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_CODE_LEVEL_9 = 73; */ - AD_UNIT_CODE_LEVEL_9(44, 73), + AD_UNIT_CODE_LEVEL_9(45, 73), /** * * @@ -1149,7 +1215,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID = 25; */ - AD_UNIT_ID(45, 25), + AD_UNIT_ID(46, 25), /** * * @@ -1169,7 +1235,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_ALL_LEVEL = 27; */ - AD_UNIT_ID_ALL_LEVEL(46, 27), + AD_UNIT_ID_ALL_LEVEL(47, 27), /** * * @@ -1187,7 +1253,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_1 = 30; */ - AD_UNIT_ID_LEVEL_1(47, 30), + AD_UNIT_ID_LEVEL_1(48, 30), /** * * @@ -1205,7 +1271,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_10 = 48; */ - AD_UNIT_ID_LEVEL_10(48, 48), + AD_UNIT_ID_LEVEL_10(49, 48), /** * * @@ -1223,7 +1289,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_11 = 50; */ - AD_UNIT_ID_LEVEL_11(49, 50), + AD_UNIT_ID_LEVEL_11(50, 50), /** * * @@ -1241,7 +1307,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_12 = 52; */ - AD_UNIT_ID_LEVEL_12(50, 52), + AD_UNIT_ID_LEVEL_12(51, 52), /** * * @@ -1260,7 +1326,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_13 = 54; */ - AD_UNIT_ID_LEVEL_13(51, 54), + AD_UNIT_ID_LEVEL_13(52, 54), /** * * @@ -1279,7 +1345,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_14 = 56; */ - AD_UNIT_ID_LEVEL_14(52, 56), + AD_UNIT_ID_LEVEL_14(53, 56), /** * * @@ -1297,7 +1363,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_15 = 58; */ - AD_UNIT_ID_LEVEL_15(53, 58), + AD_UNIT_ID_LEVEL_15(54, 58), /** * * @@ -1315,7 +1381,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_16 = 60; */ - AD_UNIT_ID_LEVEL_16(54, 60), + AD_UNIT_ID_LEVEL_16(55, 60), /** * * @@ -1333,7 +1399,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_2 = 32; */ - AD_UNIT_ID_LEVEL_2(55, 32), + AD_UNIT_ID_LEVEL_2(56, 32), /** * * @@ -1351,7 +1417,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_3 = 34; */ - AD_UNIT_ID_LEVEL_3(56, 34), + AD_UNIT_ID_LEVEL_3(57, 34), /** * * @@ -1369,7 +1435,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_4 = 36; */ - AD_UNIT_ID_LEVEL_4(57, 36), + AD_UNIT_ID_LEVEL_4(58, 36), /** * * @@ -1387,7 +1453,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_5 = 38; */ - AD_UNIT_ID_LEVEL_5(58, 38), + AD_UNIT_ID_LEVEL_5(59, 38), /** * * @@ -1405,7 +1471,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_6 = 40; */ - AD_UNIT_ID_LEVEL_6(59, 40), + AD_UNIT_ID_LEVEL_6(60, 40), /** * * @@ -1423,7 +1489,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_7 = 42; */ - AD_UNIT_ID_LEVEL_7(60, 42), + AD_UNIT_ID_LEVEL_7(61, 42), /** * * @@ -1441,7 +1507,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_8 = 44; */ - AD_UNIT_ID_LEVEL_8(61, 44), + AD_UNIT_ID_LEVEL_8(62, 44), /** * * @@ -1459,7 +1525,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_LEVEL_9 = 46; */ - AD_UNIT_ID_LEVEL_9(62, 46), + AD_UNIT_ID_LEVEL_9(63, 46), /** * * @@ -1477,7 +1543,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_ID_TOP_LEVEL = 142; */ - AD_UNIT_ID_TOP_LEVEL(63, 142), + AD_UNIT_ID_TOP_LEVEL(64, 142), /** * * @@ -1496,7 +1562,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME = 26; */ - AD_UNIT_NAME(64, 26), + AD_UNIT_NAME(65, 26), /** * * @@ -1516,7 +1582,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_ALL_LEVEL = 29; */ - AD_UNIT_NAME_ALL_LEVEL(65, 29), + AD_UNIT_NAME_ALL_LEVEL(66, 29), /** * * @@ -1534,7 +1600,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_1 = 31; */ - AD_UNIT_NAME_LEVEL_1(66, 31), + AD_UNIT_NAME_LEVEL_1(67, 31), /** * * @@ -1552,7 +1618,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_10 = 49; */ - AD_UNIT_NAME_LEVEL_10(67, 49), + AD_UNIT_NAME_LEVEL_10(68, 49), /** * * @@ -1571,7 +1637,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_11 = 51; */ - AD_UNIT_NAME_LEVEL_11(68, 51), + AD_UNIT_NAME_LEVEL_11(69, 51), /** * * @@ -1589,7 +1655,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_12 = 53; */ - AD_UNIT_NAME_LEVEL_12(69, 53), + AD_UNIT_NAME_LEVEL_12(70, 53), /** * * @@ -1608,7 +1674,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_13 = 55; */ - AD_UNIT_NAME_LEVEL_13(70, 55), + AD_UNIT_NAME_LEVEL_13(71, 55), /** * * @@ -1627,7 +1693,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_14 = 57; */ - AD_UNIT_NAME_LEVEL_14(71, 57), + AD_UNIT_NAME_LEVEL_14(72, 57), /** * * @@ -1646,7 +1712,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_15 = 59; */ - AD_UNIT_NAME_LEVEL_15(72, 59), + AD_UNIT_NAME_LEVEL_15(73, 59), /** * * @@ -1665,7 +1731,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_16 = 61; */ - AD_UNIT_NAME_LEVEL_16(73, 61), + AD_UNIT_NAME_LEVEL_16(74, 61), /** * * @@ -1683,7 +1749,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_2 = 33; */ - AD_UNIT_NAME_LEVEL_2(74, 33), + AD_UNIT_NAME_LEVEL_2(75, 33), /** * * @@ -1701,7 +1767,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_3 = 35; */ - AD_UNIT_NAME_LEVEL_3(75, 35), + AD_UNIT_NAME_LEVEL_3(76, 35), /** * * @@ -1719,7 +1785,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_4 = 37; */ - AD_UNIT_NAME_LEVEL_4(76, 37), + AD_UNIT_NAME_LEVEL_4(77, 37), /** * * @@ -1737,7 +1803,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_5 = 39; */ - AD_UNIT_NAME_LEVEL_5(77, 39), + AD_UNIT_NAME_LEVEL_5(78, 39), /** * * @@ -1755,7 +1821,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_6 = 41; */ - AD_UNIT_NAME_LEVEL_6(78, 41), + AD_UNIT_NAME_LEVEL_6(79, 41), /** * * @@ -1773,7 +1839,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_7 = 43; */ - AD_UNIT_NAME_LEVEL_7(79, 43), + AD_UNIT_NAME_LEVEL_7(80, 43), /** * * @@ -1791,7 +1857,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_8 = 45; */ - AD_UNIT_NAME_LEVEL_8(80, 45), + AD_UNIT_NAME_LEVEL_8(81, 45), /** * * @@ -1809,7 +1875,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_LEVEL_9 = 47; */ - AD_UNIT_NAME_LEVEL_9(81, 47), + AD_UNIT_NAME_LEVEL_9(82, 47), /** * * @@ -1827,7 +1893,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_NAME_TOP_LEVEL = 143; */ - AD_UNIT_NAME_TOP_LEVEL(82, 143), + AD_UNIT_NAME_TOP_LEVEL(83, 143), /** * * @@ -1846,7 +1912,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_REWARD_AMOUNT = 63; */ - AD_UNIT_REWARD_AMOUNT(83, 63), + AD_UNIT_REWARD_AMOUNT(84, 63), /** * * @@ -1865,7 +1931,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_REWARD_TYPE = 62; */ - AD_UNIT_REWARD_TYPE(84, 62), + AD_UNIT_REWARD_TYPE(85, 62), /** * * @@ -1884,7 +1950,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_STATUS = 206; */ - AD_UNIT_STATUS(85, 206), + AD_UNIT_STATUS(86, 206), /** * * @@ -1902,7 +1968,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_STATUS_NAME = 207; */ - AD_UNIT_STATUS_NAME(86, 207), + AD_UNIT_STATUS_NAME(87, 207), /** * * @@ -1920,7 +1986,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_1_ID = 565; */ - AGENCY_LEVEL_1_ID(87, 565), + AGENCY_LEVEL_1_ID(88, 565), /** * * @@ -1938,7 +2004,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_1_NAME = 566; */ - AGENCY_LEVEL_1_NAME(88, 566), + AGENCY_LEVEL_1_NAME(89, 566), /** * * @@ -1956,7 +2022,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_2_ID = 567; */ - AGENCY_LEVEL_2_ID(89, 567), + AGENCY_LEVEL_2_ID(90, 567), /** * * @@ -1974,7 +2040,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_2_NAME = 568; */ - AGENCY_LEVEL_2_NAME(90, 568), + AGENCY_LEVEL_2_NAME(91, 568), /** * * @@ -1992,7 +2058,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_3_ID = 569; */ - AGENCY_LEVEL_3_ID(91, 569), + AGENCY_LEVEL_3_ID(92, 569), /** * * @@ -2010,7 +2076,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGENCY_LEVEL_3_NAME = 570; */ - AGENCY_LEVEL_3_NAME(92, 570), + AGENCY_LEVEL_3_NAME(93, 570), /** * * @@ -2029,7 +2095,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGE_BRACKET = 508; */ - AGE_BRACKET(93, 508), + AGE_BRACKET(94, 508), /** * * @@ -2048,7 +2114,43 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AGE_BRACKET_NAME = 582; */ - AGE_BRACKET_NAME(94, 582), + AGE_BRACKET_NAME(95, 582), + /** + * + * + *
+     * Property ID in Google Analytics
+     *
+     *
+     *
+     * Corresponds to "Analytics property ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * ANALYTICS_PROPERTY_ID = 733; + */ + ANALYTICS_PROPERTY_ID(96, 733), + /** + * + * + *
+     * Property name in Google Analytics
+     *
+     *
+     *
+     * Corresponds to "Analytics property" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * ANALYTICS_PROPERTY_NAME = 767; + */ + ANALYTICS_PROPERTY_NAME(97, 767), /** * * @@ -2067,7 +2169,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS = 442; */ - APP_TRACKING_TRANSPARENCY_CONSENT_STATUS(95, 442), + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS(98, 442), /** * * @@ -2086,7 +2188,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME = 443; */ - APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME(96, 443), + APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME(99, 443), /** * * @@ -2104,7 +2206,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * APP_VERSION = 392; */ - APP_VERSION(97, 392), + APP_VERSION(100, 392), /** * * @@ -2122,7 +2224,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUCTION_PACKAGE_DEAL = 579; */ - AUCTION_PACKAGE_DEAL(98, 579), + AUCTION_PACKAGE_DEAL(101, 579), /** * * @@ -2140,7 +2242,79 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUCTION_PACKAGE_DEAL_ID = 571; */ - AUCTION_PACKAGE_DEAL_ID(99, 571), + AUCTION_PACKAGE_DEAL_ID(102, 571), + /** + * + * + *
+     * Name of billable audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (billable)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_BILLABLE = 594; + */ + AUDIENCE_SEGMENT_BILLABLE(103, 594), + /** + * + * + *
+     * ID of the data provider for the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment data provider ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * AUDIENCE_SEGMENT_DATA_PROVIDER_ID = 613; + */ + AUDIENCE_SEGMENT_DATA_PROVIDER_ID(104, 613), + /** + * + * + *
+     * Name of the data provider for the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment data provider" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 614; + */ + AUDIENCE_SEGMENT_DATA_PROVIDER_NAME(105, 614), + /** + * + * + *
+     * ID of billable audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment ID (billable)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * AUDIENCE_SEGMENT_ID_BILLABLE = 595; + */ + AUDIENCE_SEGMENT_ID_BILLABLE(106, 595), /** * * @@ -2159,7 +2333,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUDIENCE_SEGMENT_ID_TARGETED = 584; */ - AUDIENCE_SEGMENT_ID_TARGETED(100, 584), + AUDIENCE_SEGMENT_ID_TARGETED(107, 584), /** * * @@ -2178,7 +2352,271 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUDIENCE_SEGMENT_TARGETED = 585; */ - AUDIENCE_SEGMENT_TARGETED(101, 585), + AUDIENCE_SEGMENT_TARGETED(108, 585), + /** + * + * + *
+     * Number of AdID identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) AdID size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE = 605; + */ + AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE(109, 605), + /** + * + * + *
+     * Number of Amazon Fire identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Amazon Fire size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE = 606; + */ + AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE(110, 606), + /** + * + * + *
+     * Number of Android TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Android TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE = 607; + */ + AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE(111, 607), + /** + * + * + *
+     * Number of Apple TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Apple TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE = 608; + */ + AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE(112, 608), + /** + * + * + *
+     * Number of IDFA identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) IDFA size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE = 609; + */ + AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE(113, 609), + /** + * + * + *
+     * Number of mobile web identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) mobile web size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE = 610; + */ + AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE(114, 610), + /** + * + * + *
+     * Number of PlayStation identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) PlayStation size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE = 611; + */ + AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE(115, 611), + /** + * + * + *
+     * Number of PPID identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) PPID size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE = 612; + */ + AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE(116, 612), + /** + * + * + *
+     * Number of Roku identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Roku size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE = 615; + */ + AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE(117, 615), + /** + * + * + *
+     * Number of Samsung TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Samsung TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE = 616; + */ + AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE(118, 616), + /** + * + * + *
+     * Number of identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) size" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_SIZE = 618; + */ + AUDIENCE_SEGMENT_TARGETED_SIZE(119, 618), + /** + * + * + *
+     * Status of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) status value" in the Ad
+     * Manager UI (when showing API fields).
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `ENUM`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_STATUS = 628; + */ + AUDIENCE_SEGMENT_TARGETED_STATUS(120, 628), + /** + * + * + *
+     * Name of the status of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) status" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_STATUS_NAME = 617; + */ + AUDIENCE_SEGMENT_TARGETED_STATUS_NAME(121, 617), + /** + * + * + *
+     * Number of Xbox identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Xbox size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE = 619; + */ + AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE(122, 619), /** * * @@ -2197,7 +2635,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUTO_REFRESHED_TRAFFIC = 421; */ - AUTO_REFRESHED_TRAFFIC(102, 421), + AUTO_REFRESHED_TRAFFIC(123, 421), /** * * @@ -2215,7 +2653,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * AUTO_REFRESHED_TRAFFIC_NAME = 422; */ - AUTO_REFRESHED_TRAFFIC_NAME(103, 422), + AUTO_REFRESHED_TRAFFIC_NAME(124, 422), /** * * @@ -2226,14 +2664,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Bidder encrypted ID" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
* * BIDDER_ENCRYPTED_ID = 493; */ - BIDDER_ENCRYPTED_ID(104, 493), + BIDDER_ENCRYPTED_ID(125, 493), /** * * @@ -2244,14 +2683,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Bidder" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` * * * BIDDER_NAME = 494; */ - BIDDER_NAME(105, 494), + BIDDER_NAME(126, 494), /** * * @@ -2269,7 +2709,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BID_RANGE = 679; */ - BID_RANGE(106, 679), + BID_RANGE(127, 679), /** * * @@ -2288,7 +2728,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BID_REJECTION_REASON = 599; */ - BID_REJECTION_REASON(107, 599), + BID_REJECTION_REASON(128, 599), /** * * @@ -2306,7 +2746,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BID_REJECTION_REASON_NAME = 600; */ - BID_REJECTION_REASON_NAME(108, 600), + BID_REJECTION_REASON_NAME(129, 600), /** * * @@ -2326,7 +2766,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BRANDING_TYPE = 383; */ - BRANDING_TYPE(109, 383), + BRANDING_TYPE(130, 383), /** * * @@ -2345,7 +2785,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BRANDING_TYPE_NAME = 384; */ - BRANDING_TYPE_NAME(110, 384), + BRANDING_TYPE_NAME(131, 384), /** * * @@ -2364,7 +2804,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BROWSER_CATEGORY = 119; */ - BROWSER_CATEGORY(111, 119), + BROWSER_CATEGORY(132, 119), /** * * @@ -2382,7 +2822,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BROWSER_CATEGORY_NAME = 120; */ - BROWSER_CATEGORY_NAME(112, 120), + BROWSER_CATEGORY_NAME(133, 120), /** * * @@ -2400,7 +2840,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BROWSER_ID = 235; */ - BROWSER_ID(113, 235), + BROWSER_ID(134, 235), /** * * @@ -2418,7 +2858,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BROWSER_NAME = 236; */ - BROWSER_NAME(114, 236), + BROWSER_NAME(135, 236), /** * * @@ -2436,7 +2876,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BUYER_NETWORK_ID = 448; */ - BUYER_NETWORK_ID(115, 448), + BUYER_NETWORK_ID(136, 448), /** * * @@ -2454,7 +2894,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * BUYER_NETWORK_NAME = 449; */ - BUYER_NETWORK_NAME(116, 449), + BUYER_NETWORK_NAME(137, 449), /** * * @@ -2473,7 +2913,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CALLOUT_STATUS_CATEGORY = 588; */ - CALLOUT_STATUS_CATEGORY(117, 588), + CALLOUT_STATUS_CATEGORY(138, 588), /** * * @@ -2491,7 +2931,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CALLOUT_STATUS_CATEGORY_NAME = 589; */ - CALLOUT_STATUS_CATEGORY_NAME(118, 589), + CALLOUT_STATUS_CATEGORY_NAME(139, 589), /** * * @@ -2509,7 +2949,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CARRIER_ID = 369; */ - CARRIER_ID(119, 369), + CARRIER_ID(140, 369), /** * * @@ -2527,7 +2967,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CARRIER_NAME = 368; */ - CARRIER_NAME(120, 368), + CARRIER_NAME(141, 368), /** * * @@ -2545,7 +2985,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CHANNEL = 501; */ - CHANNEL(121, 501), + CHANNEL(142, 501), /** * * @@ -2563,7 +3003,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CHILD_NETWORK_CODE = 542; */ - CHILD_NETWORK_CODE(122, 542), + CHILD_NETWORK_CODE(143, 542), /** * * @@ -2581,7 +3021,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CHILD_NETWORK_ID = 544; */ - CHILD_NETWORK_ID(123, 544), + CHILD_NETWORK_ID(144, 544), /** * * @@ -2599,7 +3039,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CHILD_PARTNER_NAME = 543; */ - CHILD_PARTNER_NAME(124, 543), + CHILD_PARTNER_NAME(145, 543), /** * * @@ -2617,7 +3057,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CITY_ID = 459; */ - CITY_ID(125, 459), + CITY_ID(146, 459), /** * * @@ -2635,7 +3075,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CITY_NAME = 452; */ - CITY_NAME(126, 452), + CITY_NAME(147, 452), /** * * @@ -2654,7 +3094,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CLASSIFIED_ADVERTISER_ID = 133; */ - CLASSIFIED_ADVERTISER_ID(127, 133), + CLASSIFIED_ADVERTISER_ID(148, 133), /** * * @@ -2673,7 +3113,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CLASSIFIED_ADVERTISER_NAME = 134; */ - CLASSIFIED_ADVERTISER_NAME(128, 134), + CLASSIFIED_ADVERTISER_NAME(149, 134), /** * * @@ -2691,7 +3131,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CLASSIFIED_BRAND_ID = 243; */ - CLASSIFIED_BRAND_ID(129, 243), + CLASSIFIED_BRAND_ID(150, 243), /** * * @@ -2709,7 +3149,79 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CLASSIFIED_BRAND_NAME = 244; */ - CLASSIFIED_BRAND_NAME(130, 244), + CLASSIFIED_BRAND_NAME(151, 244), + /** + * + * + *
+     * ID of the video content bundle served.
+     *
+     *
+     *
+     * Corresponds to "Content bundle ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * CONTENT_BUNDLE_ID = 460; + */ + CONTENT_BUNDLE_ID(152, 460), + /** + * + * + *
+     * Name of the video content bundle served.
+     *
+     *
+     *
+     * Corresponds to "Content bundle" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * CONTENT_BUNDLE_NAME = 461; + */ + CONTENT_BUNDLE_NAME(153, 461), + /** + * + * + *
+     * ID of the video content metadata namespace served.
+     *
+     *
+     *
+     * Corresponds to "CMS metadata key ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * CONTENT_CMS_METADATA_KV_NAMESPACE_ID = 462; + */ + CONTENT_CMS_METADATA_KV_NAMESPACE_ID(154, 462), + /** + * + * + *
+     * Name of the video content metadata namespace served.
+     *
+     *
+     *
+     * Corresponds to "CMS metadata key" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * CONTENT_CMS_METADATA_KV_NAMESPACE_NAME = 463; + */ + CONTENT_CMS_METADATA_KV_NAMESPACE_NAME(155, 463), /** * * @@ -2727,7 +3239,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_CMS_NAME = 643; */ - CONTENT_CMS_NAME(131, 643), + CONTENT_CMS_NAME(156, 643), /** * * @@ -2746,7 +3258,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_CMS_VIDEO_ID = 644; */ - CONTENT_CMS_VIDEO_ID(132, 644), + CONTENT_CMS_VIDEO_ID(157, 644), /** * * @@ -2764,7 +3276,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_ID = 246; */ - CONTENT_ID(133, 246), + CONTENT_ID(158, 246), /** * * @@ -2783,7 +3295,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_MAPPING_PRESENCE = 731; */ - CONTENT_MAPPING_PRESENCE(134, 731), + CONTENT_MAPPING_PRESENCE(159, 731), /** * * @@ -2801,7 +3313,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_MAPPING_PRESENCE_NAME = 732; */ - CONTENT_MAPPING_PRESENCE_NAME(135, 732), + CONTENT_MAPPING_PRESENCE_NAME(160, 732), /** * * @@ -2819,7 +3331,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTENT_NAME = 247; */ - CONTENT_NAME(136, 247), + CONTENT_NAME(161, 247), /** * * @@ -2838,7 +3350,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTINENT = 469; */ - CONTINENT(137, 469), + CONTINENT(162, 469), /** * * @@ -2856,7 +3368,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CONTINENT_NAME = 470; */ - CONTINENT_NAME(138, 470), + CONTINENT_NAME(163, 470), /** * * @@ -2875,7 +3387,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * COUNTRY_CODE = 466; */ - COUNTRY_CODE(139, 466), + COUNTRY_CODE(164, 466), /** * * @@ -2894,7 +3406,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * COUNTRY_ID = 11; */ - COUNTRY_ID(140, 11), + COUNTRY_ID(165, 11), /** * * @@ -2913,7 +3425,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * COUNTRY_NAME = 12; */ - COUNTRY_NAME(141, 12), + COUNTRY_NAME(166, 12), /** * * @@ -2932,7 +3444,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_BILLING_TYPE = 366; */ - CREATIVE_BILLING_TYPE(142, 366), + CREATIVE_BILLING_TYPE(167, 366), /** * * @@ -2950,7 +3462,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_BILLING_TYPE_NAME = 367; */ - CREATIVE_BILLING_TYPE_NAME(143, 367), + CREATIVE_BILLING_TYPE_NAME(168, 367), /** * * @@ -2968,7 +3480,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_CLICK_THROUGH_URL = 174; */ - CREATIVE_CLICK_THROUGH_URL(144, 174), + CREATIVE_CLICK_THROUGH_URL(169, 174), /** * * @@ -2986,7 +3498,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_ID = 138; */ - CREATIVE_ID(145, 138), + CREATIVE_ID(170, 138), /** * * @@ -3004,7 +3516,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_NAME = 139; */ - CREATIVE_NAME(146, 139), + CREATIVE_NAME(171, 139), /** * * @@ -3023,7 +3535,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_POLICIES_FILTERING = 711; */ - CREATIVE_POLICIES_FILTERING(147, 711), + CREATIVE_POLICIES_FILTERING(172, 711), /** * * @@ -3041,12 +3553,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_POLICIES_FILTERING_NAME = 712; */ - CREATIVE_POLICIES_FILTERING_NAME(148, 712), + CREATIVE_POLICIES_FILTERING_NAME(173, 712), /** * * *
-     * Creative Protections filtering (Publisher Blocks Enforcement).
+     * Creative Protections filtering.
      *
      *
      *
@@ -3060,7 +3572,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_PROTECTIONS_FILTERING = 704;
      */
-    CREATIVE_PROTECTIONS_FILTERING(149, 704),
+    CREATIVE_PROTECTIONS_FILTERING(174, 704),
     /**
      *
      *
@@ -3078,7 +3590,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_PROTECTIONS_FILTERING_NAME = 705;
      */
-    CREATIVE_PROTECTIONS_FILTERING_NAME(150, 705),
+    CREATIVE_PROTECTIONS_FILTERING_NAME(175, 705),
     /**
      *
      *
@@ -3098,7 +3610,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_SET_ROLE_TYPE = 686;
      */
-    CREATIVE_SET_ROLE_TYPE(151, 686),
+    CREATIVE_SET_ROLE_TYPE(176, 686),
     /**
      *
      *
@@ -3117,7 +3629,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_SET_ROLE_TYPE_NAME = 687;
      */
-    CREATIVE_SET_ROLE_TYPE_NAME(152, 687),
+    CREATIVE_SET_ROLE_TYPE_NAME(177, 687),
     /**
      *
      *
@@ -3136,12 +3648,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_TECHNOLOGY = 148;
      */
-    CREATIVE_TECHNOLOGY(153, 148),
+    CREATIVE_TECHNOLOGY(178, 148),
     /**
      *
      *
      * 
-     * Creative technology locallized name
+     * Creative technology localized name
      *
      *
      *
@@ -3154,7 +3666,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_TECHNOLOGY_NAME = 149;
      */
-    CREATIVE_TECHNOLOGY_NAME(154, 149),
+    CREATIVE_TECHNOLOGY_NAME(179, 149),
     /**
      *
      *
@@ -3172,7 +3684,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_THIRD_PARTY_VENDOR = 361;
      */
-    CREATIVE_THIRD_PARTY_VENDOR(155, 361),
+    CREATIVE_THIRD_PARTY_VENDOR(180, 361),
     /**
      *
      *
@@ -3191,7 +3703,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_TYPE = 344;
      */
-    CREATIVE_TYPE(156, 344),
+    CREATIVE_TYPE(181, 344),
     /**
      *
      *
@@ -3209,7 +3721,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_TYPE_NAME = 345;
      */
-    CREATIVE_TYPE_NAME(157, 345),
+    CREATIVE_TYPE_NAME(182, 345),
     /**
      *
      *
@@ -3227,7 +3739,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_VENDOR_ID = 706;
      */
-    CREATIVE_VENDOR_ID(158, 706),
+    CREATIVE_VENDOR_ID(183, 706),
     /**
      *
      *
@@ -3245,7 +3757,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_VENDOR_NAME = 707;
      */
-    CREATIVE_VENDOR_NAME(159, 707),
+    CREATIVE_VENDOR_NAME(184, 707),
     /**
      *
      *
@@ -3265,7 +3777,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_VIDEO_REDIRECT_THIRD_PARTY = 562;
      */
-    CREATIVE_VIDEO_REDIRECT_THIRD_PARTY(160, 562),
+    CREATIVE_VIDEO_REDIRECT_THIRD_PARTY(185, 562),
     /**
      *
      *
@@ -3283,7 +3795,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CURATOR_ID = 572;
      */
-    CURATOR_ID(161, 572),
+    CURATOR_ID(186, 572),
     /**
      *
      *
@@ -3301,7 +3813,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CURATOR_NAME = 573;
      */
-    CURATOR_NAME(162, 573),
+    CURATOR_NAME(187, 573),
     /**
      *
      *
@@ -3319,7 +3831,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_EVENT_ID = 737;
      */
-    CUSTOM_EVENT_ID(163, 737),
+    CUSTOM_EVENT_ID(188, 737),
     /**
      *
      *
@@ -3337,7 +3849,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_EVENT_NAME = 735;
      */
-    CUSTOM_EVENT_NAME(164, 735),
+    CUSTOM_EVENT_NAME(189, 735),
     /**
      *
      *
@@ -3356,7 +3868,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_EVENT_TYPE = 736;
      */
-    CUSTOM_EVENT_TYPE(165, 736),
+    CUSTOM_EVENT_TYPE(190, 736),
     /**
      *
      *
@@ -3374,7 +3886,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_EVENT_TYPE_NAME = 738;
      */
-    CUSTOM_EVENT_TYPE_NAME(166, 738),
+    CUSTOM_EVENT_TYPE_NAME(191, 738),
     /**
      *
      *
@@ -3393,7 +3905,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_SPOT_ID = 423;
      */
-    CUSTOM_SPOT_ID(167, 423),
+    CUSTOM_SPOT_ID(192, 423),
     /**
      *
      *
@@ -3412,7 +3924,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_SPOT_NAME = 424;
      */
-    CUSTOM_SPOT_NAME(168, 424),
+    CUSTOM_SPOT_NAME(193, 424),
     /**
      *
      *
@@ -3424,14 +3936,14 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Date" in the Ad Manager UI.
      *
      * Compatible with the following report types: `HISTORICAL`, `REACH`,
-     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
+     * `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `AD_SPEED`
      *
      * Data format: `DATE`
      * 
* * DATE = 3; */ - DATE(169, 3), + DATE(194, 3), /** * * @@ -3451,7 +3963,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DAY_OF_WEEK = 4; */ - DAY_OF_WEEK(170, 4), + DAY_OF_WEEK(195, 4), /** * * @@ -3469,7 +3981,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEAL_BUYER_ID = 240; */ - DEAL_BUYER_ID(171, 240), + DEAL_BUYER_ID(196, 240), /** * * @@ -3487,7 +3999,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEAL_BUYER_NAME = 241; */ - DEAL_BUYER_NAME(172, 241), + DEAL_BUYER_NAME(197, 241), /** * * @@ -3505,7 +4017,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEAL_ID = 436; */ - DEAL_ID(173, 436), + DEAL_ID(198, 436), /** * * @@ -3523,7 +4035,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEAL_NAME = 437; */ - DEAL_NAME(174, 437), + DEAL_NAME(199, 437), /** * * @@ -3542,7 +4054,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DELIVERED_SECURE_SIGNAL_ID = 309; */ - DELIVERED_SECURE_SIGNAL_ID(175, 309), + DELIVERED_SECURE_SIGNAL_ID(200, 309), /** * * @@ -3561,7 +4073,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DELIVERED_SECURE_SIGNAL_NAME = 310; */ - DELIVERED_SECURE_SIGNAL_NAME(176, 310), + DELIVERED_SECURE_SIGNAL_NAME(201, 310), /** * * @@ -3574,14 +4086,14 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * API fields). * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `AD_SPEED` + * `REVENUE_VERIFICATION`, `AD_SPEED` * * Data format: `ENUM` *
* * DEMAND_CHANNEL = 9; */ - DEMAND_CHANNEL(177, 9), + DEMAND_CHANNEL(202, 9), /** * * @@ -3593,14 +4105,14 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Demand channel" in the Ad Manager UI. * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `AD_SPEED` + * `REVENUE_VERIFICATION`, `AD_SPEED` * * Data format: `STRING` * * * DEMAND_CHANNEL_NAME = 10; */ - DEMAND_CHANNEL_NAME(178, 10), + DEMAND_CHANNEL_NAME(203, 10), /** * * @@ -3619,7 +4131,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEMAND_SOURCE = 592; */ - DEMAND_SOURCE(179, 592), + DEMAND_SOURCE(204, 592), /** * * @@ -3637,7 +4149,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEMAND_SOURCE_NAME = 593; */ - DEMAND_SOURCE_NAME(180, 593), + DEMAND_SOURCE_NAME(205, 593), /** * * @@ -3656,7 +4168,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEMAND_SUBCHANNEL = 22; */ - DEMAND_SUBCHANNEL(181, 22), + DEMAND_SUBCHANNEL(206, 22), /** * * @@ -3674,7 +4186,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEMAND_SUBCHANNEL_NAME = 23; */ - DEMAND_SUBCHANNEL_NAME(182, 23), + DEMAND_SUBCHANNEL_NAME(207, 23), /** * * @@ -3693,7 +4205,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE = 226; */ - DEVICE(183, 226), + DEVICE(208, 226), /** * * @@ -3713,7 +4225,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_CATEGORY = 15; */ - DEVICE_CATEGORY(184, 15), + DEVICE_CATEGORY(209, 15), /** * * @@ -3733,7 +4245,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_CATEGORY_NAME = 16; */ - DEVICE_CATEGORY_NAME(185, 16), + DEVICE_CATEGORY_NAME(210, 16), /** * * @@ -3752,7 +4264,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_MANUFACTURER_ID = 525; */ - DEVICE_MANUFACTURER_ID(186, 525), + DEVICE_MANUFACTURER_ID(211, 525), /** * * @@ -3770,7 +4282,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_MANUFACTURER_NAME = 526; */ - DEVICE_MANUFACTURER_NAME(187, 526), + DEVICE_MANUFACTURER_NAME(212, 526), /** * * @@ -3789,7 +4301,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_MODEL_ID = 527; */ - DEVICE_MODEL_ID(188, 527), + DEVICE_MODEL_ID(213, 527), /** * * @@ -3807,7 +4319,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DEVICE_MODEL_NAME = 528; */ - DEVICE_MODEL_NAME(189, 528), + DEVICE_MODEL_NAME(214, 528), /** * * @@ -3823,9 +4335,10 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Data format: `STRING` * * - * DEVICE_NAME = 225; + * DEVICE_NAME = 225 [deprecated = true]; */ - DEVICE_NAME(190, 225), + @java.lang.Deprecated + DEVICE_NAME(215, 225), /** * * @@ -3843,7 +4356,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DSP_SEAT_ID = 564; */ - DSP_SEAT_ID(191, 564), + DSP_SEAT_ID(216, 564), /** * * @@ -3863,7 +4376,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DYNAMIC_ALLOCATION_TYPE = 502; */ - DYNAMIC_ALLOCATION_TYPE(192, 502), + DYNAMIC_ALLOCATION_TYPE(217, 502), /** * * @@ -3881,7 +4394,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * DYNAMIC_ALLOCATION_TYPE_NAME = 503; */ - DYNAMIC_ALLOCATION_TYPE_NAME(193, 503), + DYNAMIC_ALLOCATION_TYPE_NAME(218, 503), /** * * @@ -3900,7 +4413,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ESP_DELIVERY = 623; */ - ESP_DELIVERY(194, 623), + ESP_DELIVERY(219, 623), /** * * @@ -3918,7 +4431,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ESP_DELIVERY_NAME = 624; */ - ESP_DELIVERY_NAME(195, 624), + ESP_DELIVERY_NAME(220, 624), /** * * @@ -3937,7 +4450,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ESP_PRESENCE = 625; */ - ESP_PRESENCE(196, 625), + ESP_PRESENCE(221, 625), /** * * @@ -3955,7 +4468,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ESP_PRESENCE_NAME = 626; */ - ESP_PRESENCE_NAME(197, 626), + ESP_PRESENCE_NAME(222, 626), /** * * @@ -3973,7 +4486,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * EXCHANGE_BIDDING_DEAL_ID = 715; */ - EXCHANGE_BIDDING_DEAL_ID(198, 715), + EXCHANGE_BIDDING_DEAL_ID(223, 715), /** * * @@ -3992,7 +4505,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * EXCHANGE_BIDDING_DEAL_TYPE = 714; */ - EXCHANGE_BIDDING_DEAL_TYPE(199, 714), + EXCHANGE_BIDDING_DEAL_TYPE(224, 714), /** * * @@ -4010,7 +4523,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * EXCHANGE_BIDDING_DEAL_TYPE_NAME = 723; */ - EXCHANGE_BIDDING_DEAL_TYPE_NAME(200, 723), + EXCHANGE_BIDDING_DEAL_TYPE_NAME(225, 723), /** * * @@ -4028,7 +4541,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * EXCHANGE_THIRD_PARTY_COMPANY_ID = 185; */ - EXCHANGE_THIRD_PARTY_COMPANY_ID(201, 185), + EXCHANGE_THIRD_PARTY_COMPANY_ID(226, 185), /** * * @@ -4046,7 +4559,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * EXCHANGE_THIRD_PARTY_COMPANY_NAME = 186; */ - EXCHANGE_THIRD_PARTY_COMPANY_NAME(202, 186), + EXCHANGE_THIRD_PARTY_COMPANY_NAME(227, 186), /** * * @@ -4064,7 +4577,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * FIRST_LOOK_PRICING_RULE_ID = 248; */ - FIRST_LOOK_PRICING_RULE_ID(203, 248), + FIRST_LOOK_PRICING_RULE_ID(228, 248), /** * * @@ -4082,7 +4595,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * FIRST_LOOK_PRICING_RULE_NAME = 249; */ - FIRST_LOOK_PRICING_RULE_NAME(204, 249), + FIRST_LOOK_PRICING_RULE_NAME(229, 249), /** * * @@ -4102,7 +4615,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * FIRST_PARTY_ID_STATUS = 404; */ - FIRST_PARTY_ID_STATUS(205, 404), + FIRST_PARTY_ID_STATUS(230, 404), /** * * @@ -4121,7 +4634,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * FIRST_PARTY_ID_STATUS_NAME = 405; */ - FIRST_PARTY_ID_STATUS_NAME(206, 405), + FIRST_PARTY_ID_STATUS_NAME(231, 405), /** * * @@ -4140,7 +4653,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * GENDER = 509; */ - GENDER(207, 509), + GENDER(232, 509), /** * * @@ -4159,7 +4672,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * GENDER_NAME = 583; */ - GENDER_NAME(208, 583), + GENDER_NAME(233, 583), /** * * @@ -4177,7 +4690,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_STREAM_ID = 519; */ - GOOGLE_ANALYTICS_STREAM_ID(209, 519), + GOOGLE_ANALYTICS_STREAM_ID(234, 519), /** * * @@ -4196,7 +4709,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_STREAM_NAME = 520; */ - GOOGLE_ANALYTICS_STREAM_NAME(210, 520), + GOOGLE_ANALYTICS_STREAM_NAME(235, 520), /** * * @@ -4215,7 +4728,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * HBT_YIELD_PARTNER_ID = 659; */ - HBT_YIELD_PARTNER_ID(211, 659), + HBT_YIELD_PARTNER_ID(236, 659), /** * * @@ -4234,7 +4747,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * HBT_YIELD_PARTNER_NAME = 660; */ - HBT_YIELD_PARTNER_NAME(212, 660), + HBT_YIELD_PARTNER_NAME(237, 660), /** * * @@ -4253,7 +4766,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * HEADER_BIDDER_INTEGRATION_TYPE = 718; */ - HEADER_BIDDER_INTEGRATION_TYPE(213, 718), + HEADER_BIDDER_INTEGRATION_TYPE(238, 718), /** * * @@ -4271,7 +4784,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * HEADER_BIDDER_INTEGRATION_TYPE_NAME = 719; */ - HEADER_BIDDER_INTEGRATION_TYPE_NAME(214, 719), + HEADER_BIDDER_INTEGRATION_TYPE_NAME(239, 719), /** * * @@ -4289,7 +4802,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * HOUR = 100; */ - HOUR(215, 100), + HOUR(240, 100), /** * * @@ -4308,7 +4821,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IMPRESSION_COUNTING_METHOD = 577; */ - IMPRESSION_COUNTING_METHOD(216, 577), + IMPRESSION_COUNTING_METHOD(241, 577), /** * * @@ -4326,7 +4839,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IMPRESSION_COUNTING_METHOD_NAME = 578; */ - IMPRESSION_COUNTING_METHOD_NAME(217, 578), + IMPRESSION_COUNTING_METHOD_NAME(242, 578), /** * * @@ -4345,7 +4858,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INTERACTION_TYPE = 223; */ - INTERACTION_TYPE(218, 223), + INTERACTION_TYPE(243, 223), /** * * @@ -4363,7 +4876,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INTERACTION_TYPE_NAME = 224; */ - INTERACTION_TYPE_NAME(219, 224), + INTERACTION_TYPE_NAME(244, 224), /** * * @@ -4381,7 +4894,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INTEREST = 510; */ - INTEREST(220, 510), + INTEREST(245, 510), /** * * @@ -4401,7 +4914,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_FORMAT = 17; */ - INVENTORY_FORMAT(221, 17), + INVENTORY_FORMAT(246, 17), /** * * @@ -4420,7 +4933,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_FORMAT_NAME = 18; */ - INVENTORY_FORMAT_NAME(222, 18), + INVENTORY_FORMAT_NAME(247, 18), /** * * @@ -4438,7 +4951,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_ASSIGNMENT_ID = 648; */ - INVENTORY_SHARE_ASSIGNMENT_ID(223, 648), + INVENTORY_SHARE_ASSIGNMENT_ID(248, 648), /** * * @@ -4456,7 +4969,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_ASSIGNMENT_NAME = 649; */ - INVENTORY_SHARE_ASSIGNMENT_NAME(224, 649), + INVENTORY_SHARE_ASSIGNMENT_NAME(249, 649), /** * * @@ -4475,7 +4988,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_OUTCOME = 603; */ - INVENTORY_SHARE_OUTCOME(225, 603), + INVENTORY_SHARE_OUTCOME(250, 603), /** * * @@ -4493,7 +5006,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_OUTCOME_NAME = 604; */ - INVENTORY_SHARE_OUTCOME_NAME(226, 604), + INVENTORY_SHARE_OUTCOME_NAME(251, 604), /** * * @@ -4512,7 +5025,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_PARTNER_AD_SERVER = 652; */ - INVENTORY_SHARE_PARTNER_AD_SERVER(227, 652), + INVENTORY_SHARE_PARTNER_AD_SERVER(252, 652), /** * * @@ -4530,7 +5043,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_PARTNER_AD_SERVER_NAME = 653; */ - INVENTORY_SHARE_PARTNER_AD_SERVER_NAME(228, 653), + INVENTORY_SHARE_PARTNER_AD_SERVER_NAME(253, 653), /** * * @@ -4548,7 +5061,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_TARGET_SHARE_PERCENT = 654; */ - INVENTORY_SHARE_TARGET_SHARE_PERCENT(229, 654), + INVENTORY_SHARE_TARGET_SHARE_PERCENT(254, 654), /** * * @@ -4567,7 +5080,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_TYPE = 650; */ - INVENTORY_SHARE_TYPE(230, 650), + INVENTORY_SHARE_TYPE(255, 650), /** * * @@ -4585,7 +5098,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_TYPE_NAME = 651; */ - INVENTORY_SHARE_TYPE_NAME(231, 651), + INVENTORY_SHARE_TYPE_NAME(256, 651), /** * * @@ -4605,7 +5118,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_TYPE = 19; */ - INVENTORY_TYPE(232, 19), + INVENTORY_TYPE(257, 19), /** * * @@ -4624,7 +5137,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_TYPE_NAME = 20; */ - INVENTORY_TYPE_NAME(233, 20), + INVENTORY_TYPE_NAME(258, 20), /** * * @@ -4642,7 +5155,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IS_ADX_DIRECT = 382; */ - IS_ADX_DIRECT(234, 382), + IS_ADX_DIRECT(259, 382), /** * * @@ -4660,7 +5173,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IS_CURATION_TARGETED = 574; */ - IS_CURATION_TARGETED(235, 574), + IS_CURATION_TARGETED(260, 574), /** * * @@ -4678,7 +5191,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IS_DROPPED = 464; */ - IS_DROPPED(236, 464), + IS_DROPPED(261, 464), /** * * @@ -4696,7 +5209,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * IS_FIRST_LOOK_DEAL = 401; */ - IS_FIRST_LOOK_DEAL(237, 401), + IS_FIRST_LOOK_DEAL(262, 401), /** * * @@ -4714,7 +5227,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * KEY_VALUES_ID = 214; */ - KEY_VALUES_ID(238, 214), + KEY_VALUES_ID(263, 214), /** * * @@ -4732,7 +5245,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * KEY_VALUES_NAME = 215; */ - KEY_VALUES_NAME(239, 215), + KEY_VALUES_NAME(264, 215), + /** + * + * + *
+     * The custom criteria key-values specified in ad requests.
+     *
+     *
+     *
+     * Corresponds to "Key-values" in the Ad Manager UI.
+     *
+     * Compatible with the following report types:
+     *
+     * Data format: `STRING_LIST`
+     * 
+ * + * KEY_VALUES_SET = 713; + */ + KEY_VALUES_SET(265, 713), /** * * @@ -4750,7 +5281,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * LINE_ITEM_AGENCY = 663; */ - LINE_ITEM_AGENCY(240, 663), + LINE_ITEM_AGENCY(266, 663), /** * * @@ -4768,12 +5299,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * LINE_ITEM_ARCHIVED = 188; */ - LINE_ITEM_ARCHIVED(241, 188), + LINE_ITEM_ARCHIVED(267, 188), /** * * *
-     * Line item comanion delivery option ENUM value.
+     * Line item companion delivery option ENUM value.
      *
      *
      *
@@ -4787,12 +5318,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COMPANION_DELIVERY_OPTION = 204;
      */
-    LINE_ITEM_COMPANION_DELIVERY_OPTION(242, 204),
+    LINE_ITEM_COMPANION_DELIVERY_OPTION(268, 204),
     /**
      *
      *
      * 
-     * Localized line item comanion delivery option name.
+     * Localized line item companion delivery option name.
      *
      *
      *
@@ -4806,7 +5337,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME = 205;
      */
-    LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME(243, 205),
+    LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME(269, 205),
     /**
      *
      *
@@ -4826,7 +5357,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COMPUTED_STATUS = 250;
      */
-    LINE_ITEM_COMPUTED_STATUS(244, 250),
+    LINE_ITEM_COMPUTED_STATUS(270, 250),
     /**
      *
      *
@@ -4845,7 +5376,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COMPUTED_STATUS_NAME = 251;
      */
-    LINE_ITEM_COMPUTED_STATUS_NAME(245, 251),
+    LINE_ITEM_COMPUTED_STATUS_NAME(271, 251),
     /**
      *
      *
@@ -4863,7 +5394,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CONTRACTED_QUANTITY = 92;
      */
-    LINE_ITEM_CONTRACTED_QUANTITY(246, 92),
+    LINE_ITEM_CONTRACTED_QUANTITY(272, 92),
     /**
      *
      *
@@ -4882,7 +5413,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COST_PER_UNIT = 85;
      */
-    LINE_ITEM_COST_PER_UNIT(247, 85),
+    LINE_ITEM_COST_PER_UNIT(273, 85),
     /**
      *
      *
@@ -4902,7 +5433,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COST_TYPE = 212;
      */
-    LINE_ITEM_COST_TYPE(248, 212),
+    LINE_ITEM_COST_TYPE(274, 212),
     /**
      *
      *
@@ -4921,7 +5452,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_COST_TYPE_NAME = 213;
      */
-    LINE_ITEM_COST_TYPE_NAME(249, 213),
+    LINE_ITEM_COST_TYPE_NAME(275, 213),
     /**
      *
      *
@@ -4939,7 +5470,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CREATIVE_END_DATE = 176;
      */
-    LINE_ITEM_CREATIVE_END_DATE(250, 176),
+    LINE_ITEM_CREATIVE_END_DATE(276, 176),
     /**
      *
      *
@@ -4958,7 +5489,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CREATIVE_ROTATION_TYPE = 189;
      */
-    LINE_ITEM_CREATIVE_ROTATION_TYPE(251, 189),
+    LINE_ITEM_CREATIVE_ROTATION_TYPE(277, 189),
     /**
      *
      *
@@ -4976,7 +5507,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME = 190;
      */
-    LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME(252, 190),
+    LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME(278, 190),
     /**
      *
      *
@@ -4994,7 +5525,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CREATIVE_START_DATE = 175;
      */
-    LINE_ITEM_CREATIVE_START_DATE(253, 175),
+    LINE_ITEM_CREATIVE_START_DATE(279, 175),
     /**
      *
      *
@@ -5013,7 +5544,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CURRENCY_CODE = 180;
      */
-    LINE_ITEM_CURRENCY_CODE(254, 180),
+    LINE_ITEM_CURRENCY_CODE(280, 180),
     /**
      *
      *
@@ -5031,7 +5562,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_DELIVERY_INDICATOR = 87;
      */
-    LINE_ITEM_DELIVERY_INDICATOR(255, 87),
+    LINE_ITEM_DELIVERY_INDICATOR(281, 87),
     /**
      *
      *
@@ -5051,7 +5582,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_DELIVERY_RATE_TYPE = 191;
      */
-    LINE_ITEM_DELIVERY_RATE_TYPE(256, 191),
+    LINE_ITEM_DELIVERY_RATE_TYPE(282, 191),
     /**
      *
      *
@@ -5070,7 +5601,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_DELIVERY_RATE_TYPE_NAME = 192;
      */
-    LINE_ITEM_DELIVERY_RATE_TYPE_NAME(257, 192),
+    LINE_ITEM_DELIVERY_RATE_TYPE_NAME(283, 192),
     /**
      *
      *
@@ -5089,7 +5620,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_DISCOUNT_ABSOLUTE = 195;
      */
-    LINE_ITEM_DISCOUNT_ABSOLUTE(258, 195),
+    LINE_ITEM_DISCOUNT_ABSOLUTE(284, 195),
     /**
      *
      *
@@ -5107,7 +5638,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_DISCOUNT_PERCENTAGE = 196;
      */
-    LINE_ITEM_DISCOUNT_PERCENTAGE(259, 196),
+    LINE_ITEM_DISCOUNT_PERCENTAGE(285, 196),
     /**
      *
      *
@@ -5126,7 +5657,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_END_DATE = 81;
      */
-    LINE_ITEM_END_DATE(260, 81),
+    LINE_ITEM_END_DATE(286, 81),
     /**
      *
      *
@@ -5145,7 +5676,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_END_DATE_TIME = 83;
      */
-    LINE_ITEM_END_DATE_TIME(261, 83),
+    LINE_ITEM_END_DATE_TIME(287, 83),
     /**
      *
      *
@@ -5164,7 +5695,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_ENVIRONMENT_TYPE = 201;
      */
-    LINE_ITEM_ENVIRONMENT_TYPE(262, 201),
+    LINE_ITEM_ENVIRONMENT_TYPE(288, 201),
     /**
      *
      *
@@ -5182,7 +5713,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_ENVIRONMENT_TYPE_NAME = 202;
      */
-    LINE_ITEM_ENVIRONMENT_TYPE_NAME(263, 202),
+    LINE_ITEM_ENVIRONMENT_TYPE_NAME(289, 202),
     /**
      *
      *
@@ -5200,7 +5731,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_EXTERNAL_DEAL_ID = 97;
      */
-    LINE_ITEM_EXTERNAL_DEAL_ID(264, 97),
+    LINE_ITEM_EXTERNAL_DEAL_ID(290, 97),
     /**
      *
      *
@@ -5218,7 +5749,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_EXTERNAL_ID = 86;
      */
-    LINE_ITEM_EXTERNAL_ID(265, 86),
+    LINE_ITEM_EXTERNAL_ID(291, 86),
     /**
      *
      *
@@ -5236,7 +5767,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_FREQUENCY_CAP = 256;
      */
-    LINE_ITEM_FREQUENCY_CAP(266, 256),
+    LINE_ITEM_FREQUENCY_CAP(292, 256),
     /**
      *
      *
@@ -5255,7 +5786,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_ID = 1;
      */
-    LINE_ITEM_ID(267, 1),
+    LINE_ITEM_ID(293, 1),
     /**
      *
      *
@@ -5273,7 +5804,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LABELS = 667;
      */
-    LINE_ITEM_LABELS(268, 667),
+    LINE_ITEM_LABELS(294, 667),
     /**
      *
      *
@@ -5291,7 +5822,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LABEL_IDS = 665;
      */
-    LINE_ITEM_LABEL_IDS(269, 665),
+    LINE_ITEM_LABEL_IDS(295, 665),
     /**
      *
      *
@@ -5309,7 +5840,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LAST_MODIFIED_BY_APP = 181;
      */
-    LINE_ITEM_LAST_MODIFIED_BY_APP(270, 181),
+    LINE_ITEM_LAST_MODIFIED_BY_APP(296, 181),
     /**
      *
      *
@@ -5328,7 +5859,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LIFETIME_CLICKS = 95;
      */
-    LINE_ITEM_LIFETIME_CLICKS(271, 95),
+    LINE_ITEM_LIFETIME_CLICKS(297, 95),
     /**
      *
      *
@@ -5348,7 +5879,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LIFETIME_IMPRESSIONS = 94;
      */
-    LINE_ITEM_LIFETIME_IMPRESSIONS(272, 94),
+    LINE_ITEM_LIFETIME_IMPRESSIONS(298, 94),
     /**
      *
      *
@@ -5369,7 +5900,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS = 96;
      */
-    LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS(273, 96),
+    LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS(299, 96),
     /**
      *
      *
@@ -5389,7 +5920,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_MAKEGOOD = 89;
      */
-    LINE_ITEM_MAKEGOOD(274, 89),
+    LINE_ITEM_MAKEGOOD(300, 89),
     /**
      *
      *
@@ -5408,7 +5939,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_NAME = 2;
      */
-    LINE_ITEM_NAME(275, 2),
+    LINE_ITEM_NAME(301, 2),
     /**
      *
      *
@@ -5427,12 +5958,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98;
      */
-    LINE_ITEM_NON_CPD_BOOKED_REVENUE(276, 98),
+    LINE_ITEM_NON_CPD_BOOKED_REVENUE(302, 98),
     /**
      *
      *
      * 
-     * Whether a Line item is eligible for opitimization.
+     * Whether a Line item is eligible for optimization.
      *
      *
      *
@@ -5445,7 +5976,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_OPTIMIZABLE = 90;
      */
-    LINE_ITEM_OPTIMIZABLE(277, 90),
+    LINE_ITEM_OPTIMIZABLE(303, 90),
     /**
      *
      *
@@ -5464,7 +5995,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PO_NUMBER = 669;
      */
-    LINE_ITEM_PO_NUMBER(278, 669),
+    LINE_ITEM_PO_NUMBER(304, 669),
     /**
      *
      *
@@ -5483,7 +6014,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_TYPE = 210;
      */
-    LINE_ITEM_PRIMARY_GOAL_TYPE(279, 210),
+    LINE_ITEM_PRIMARY_GOAL_TYPE(305, 210),
     /**
      *
      *
@@ -5501,7 +6032,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_TYPE_NAME = 211;
      */
-    LINE_ITEM_PRIMARY_GOAL_TYPE_NAME(280, 211),
+    LINE_ITEM_PRIMARY_GOAL_TYPE_NAME(306, 211),
     /**
      *
      *
@@ -5526,7 +6057,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE = 93;
      */
-    LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE(281, 93),
+    LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE(307, 93),
     /**
      *
      *
@@ -5550,7 +6081,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE = 396;
      */
-    LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE(282, 396),
+    LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE(308, 396),
     /**
      *
      *
@@ -5569,7 +6100,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE = 208;
      */
-    LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE(283, 208),
+    LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE(309, 208),
     /**
      *
      *
@@ -5587,7 +6118,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME = 209;
      */
-    LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME(284, 209),
+    LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME(310, 209),
     /**
      *
      *
@@ -5608,7 +6139,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_PRIORITY = 24;
      */
-    LINE_ITEM_PRIORITY(285, 24),
+    LINE_ITEM_PRIORITY(311, 24),
     /**
      *
      *
@@ -5628,7 +6159,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_RESERVATION_STATUS = 304;
      */
-    LINE_ITEM_RESERVATION_STATUS(286, 304),
+    LINE_ITEM_RESERVATION_STATUS(312, 304),
     /**
      *
      *
@@ -5647,7 +6178,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_RESERVATION_STATUS_NAME = 305;
      */
-    LINE_ITEM_RESERVATION_STATUS_NAME(287, 305),
+    LINE_ITEM_RESERVATION_STATUS_NAME(313, 305),
     /**
      *
      *
@@ -5665,7 +6196,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_SALESPERSON = 671;
      */
-    LINE_ITEM_SALESPERSON(288, 671),
+    LINE_ITEM_SALESPERSON(314, 671),
     /**
      *
      *
@@ -5683,7 +6214,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_SECONDARY_SALESPEOPLE = 673;
      */
-    LINE_ITEM_SECONDARY_SALESPEOPLE(289, 673),
+    LINE_ITEM_SECONDARY_SALESPEOPLE(315, 673),
     /**
      *
      *
@@ -5701,7 +6232,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_SECONDARY_TRAFFICKERS = 675;
      */
-    LINE_ITEM_SECONDARY_TRAFFICKERS(290, 675),
+    LINE_ITEM_SECONDARY_TRAFFICKERS(316, 675),
     /**
      *
      *
@@ -5720,7 +6251,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_START_DATE = 82;
      */
-    LINE_ITEM_START_DATE(291, 82),
+    LINE_ITEM_START_DATE(317, 82),
     /**
      *
      *
@@ -5739,7 +6270,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_START_DATE_TIME = 84;
      */
-    LINE_ITEM_START_DATE_TIME(292, 84),
+    LINE_ITEM_START_DATE_TIME(318, 84),
     /**
      *
      *
@@ -5757,7 +6288,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_TRAFFICKER = 677;
      */
-    LINE_ITEM_TRAFFICKER(293, 677),
+    LINE_ITEM_TRAFFICKER(319, 677),
     /**
      *
      *
@@ -5777,7 +6308,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_TYPE = 193;
      */
-    LINE_ITEM_TYPE(294, 193),
+    LINE_ITEM_TYPE(320, 193),
     /**
      *
      *
@@ -5796,7 +6327,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_TYPE_NAME = 194;
      */
-    LINE_ITEM_TYPE_NAME(295, 194),
+    LINE_ITEM_TYPE_NAME(321, 194),
     /**
      *
      *
@@ -5816,7 +6347,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_UNLIMITED_END = 187;
      */
-    LINE_ITEM_UNLIMITED_END(296, 187),
+    LINE_ITEM_UNLIMITED_END(322, 187),
     /**
      *
      *
@@ -5835,7 +6366,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_VALUE_COST_PER_UNIT = 88;
      */
-    LINE_ITEM_VALUE_COST_PER_UNIT(297, 88),
+    LINE_ITEM_VALUE_COST_PER_UNIT(323, 88),
     /**
      *
      *
@@ -5853,7 +6384,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_WEB_PROPERTY_CODE = 179;
      */
-    LINE_ITEM_WEB_PROPERTY_CODE(298, 179),
+    LINE_ITEM_WEB_PROPERTY_CODE(324, 179),
     /**
      *
      *
@@ -5872,7 +6403,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MASTER_COMPANION_CREATIVE_ID = 140;
      */
-    MASTER_COMPANION_CREATIVE_ID(299, 140),
+    MASTER_COMPANION_CREATIVE_ID(325, 140),
     /**
      *
      *
@@ -5891,7 +6422,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MASTER_COMPANION_CREATIVE_NAME = 141;
      */
-    MASTER_COMPANION_CREATIVE_NAME(300, 141),
+    MASTER_COMPANION_CREATIVE_NAME(326, 141),
     /**
      *
      *
@@ -5910,7 +6441,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MEDIATION_TYPE = 701;
      */
-    MEDIATION_TYPE(301, 701),
+    MEDIATION_TYPE(327, 701),
     /**
      *
      *
@@ -5928,7 +6459,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MEDIATION_TYPE_NAME = 754;
      */
-    MEDIATION_TYPE_NAME(302, 754),
+    MEDIATION_TYPE_NAME(328, 754),
     /**
      *
      *
@@ -5947,7 +6478,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MEDIATION_YIELD_PARTNER_ID = 661;
      */
-    MEDIATION_YIELD_PARTNER_ID(303, 661),
+    MEDIATION_YIELD_PARTNER_ID(329, 661),
     /**
      *
      *
@@ -5965,7 +6496,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MEDIATION_YIELD_PARTNER_NAME = 662;
      */
-    MEDIATION_YIELD_PARTNER_NAME(304, 662),
+    MEDIATION_YIELD_PARTNER_NAME(330, 662),
     /**
      *
      *
@@ -5983,7 +6514,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * METRO_ID = 453;
      */
-    METRO_ID(305, 453),
+    METRO_ID(331, 453),
     /**
      *
      *
@@ -6001,7 +6532,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * METRO_NAME = 454;
      */
-    METRO_NAME(306, 454),
+    METRO_NAME(332, 454),
     /**
      *
      *
@@ -6020,7 +6551,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_FREE = 128;
      */
-    MOBILE_APP_FREE(307, 128),
+    MOBILE_APP_FREE(333, 128),
     /**
      *
      *
@@ -6039,7 +6570,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_ICON_URL = 129;
      */
-    MOBILE_APP_ICON_URL(308, 129),
+    MOBILE_APP_ICON_URL(334, 129),
     /**
      *
      *
@@ -6058,7 +6589,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_ID = 123;
      */
-    MOBILE_APP_ID(309, 123),
+    MOBILE_APP_ID(335, 123),
     /**
      *
      *
@@ -6077,7 +6608,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_NAME = 127;
      */
-    MOBILE_APP_NAME(310, 127),
+    MOBILE_APP_NAME(336, 127),
     /**
      *
      *
@@ -6096,7 +6627,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_OWNERSHIP_STATUS = 311;
      */
-    MOBILE_APP_OWNERSHIP_STATUS(311, 311),
+    MOBILE_APP_OWNERSHIP_STATUS(337, 311),
     /**
      *
      *
@@ -6114,7 +6645,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_OWNERSHIP_STATUS_NAME = 312;
      */
-    MOBILE_APP_OWNERSHIP_STATUS_NAME(312, 312),
+    MOBILE_APP_OWNERSHIP_STATUS_NAME(338, 312),
     /**
      *
      *
@@ -6133,7 +6664,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_STORE = 125;
      */
-    MOBILE_APP_STORE(313, 125),
+    MOBILE_APP_STORE(339, 125),
     /**
      *
      *
@@ -6151,7 +6682,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_APP_STORE_NAME = 245;
      */
-    MOBILE_APP_STORE_NAME(314, 245),
+    MOBILE_APP_STORE_NAME(340, 245),
     /**
      *
      *
@@ -6177,7 +6708,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_INVENTORY_TYPE = 99;
      */
-    MOBILE_INVENTORY_TYPE(315, 99),
+    MOBILE_INVENTORY_TYPE(341, 99),
     /**
      *
      *
@@ -6198,7 +6729,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * MOBILE_INVENTORY_TYPE_NAME = 21;
      */
-    MOBILE_INVENTORY_TYPE_NAME(316, 21),
+    MOBILE_INVENTORY_TYPE_NAME(342, 21),
     /**
      *
      *
@@ -6210,14 +6741,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing
      * API fields).
      *
-     * Compatible with the following report types: `HISTORICAL`
+     * Compatible with the following report types: `HISTORICAL`,
+     * `REVENUE_VERIFICATION`
      *
      * Data format: `ENUM`
      * 
* * MOBILE_RENDERING_SDK = 646; */ - MOBILE_RENDERING_SDK(317, 646), + MOBILE_RENDERING_SDK(343, 646), /** * * @@ -6228,14 +6760,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Rendering SDK" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
* * MOBILE_RENDERING_SDK_NAME = 647; */ - MOBILE_RENDERING_SDK_NAME(318, 647), + MOBILE_RENDERING_SDK_NAME(344, 647), /** * * @@ -6253,7 +6786,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * MOBILE_SDK_MAJOR_VERSION = 692; */ - MOBILE_SDK_MAJOR_VERSION(319, 692), + MOBILE_SDK_MAJOR_VERSION(345, 692), /** * * @@ -6271,7 +6804,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * MOBILE_SDK_MINOR_VERSION = 693; */ - MOBILE_SDK_MINOR_VERSION(320, 693), + MOBILE_SDK_MINOR_VERSION(346, 693), /** * * @@ -6289,7 +6822,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * MOBILE_SDK_VERSION_NAME = 130; */ - MOBILE_SDK_VERSION_NAME(321, 130), + MOBILE_SDK_VERSION_NAME(347, 130), /** * * @@ -6301,14 +6834,14 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Month and year" in the Ad Manager UI. * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `PRIVACY_AND_MESSAGING` + * `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `PARTNER_FINANCE` * * Data format: `INTEGER` *
* * MONTH_YEAR = 6; */ - MONTH_YEAR(322, 6), + MONTH_YEAR(348, 6), /** * * @@ -6326,7 +6859,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NATIVE_AD_FORMAT_ID = 255; */ - NATIVE_AD_FORMAT_ID(323, 255), + NATIVE_AD_FORMAT_ID(349, 255), /** * * @@ -6344,7 +6877,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NATIVE_AD_FORMAT_NAME = 254; */ - NATIVE_AD_FORMAT_NAME(324, 254), + NATIVE_AD_FORMAT_NAME(350, 254), /** * * @@ -6362,7 +6895,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NATIVE_STYLE_ID = 253; */ - NATIVE_STYLE_ID(325, 253), + NATIVE_STYLE_ID(351, 253), /** * * @@ -6380,7 +6913,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NATIVE_STYLE_NAME = 252; */ - NATIVE_STYLE_NAME(326, 252), + NATIVE_STYLE_NAME(352, 252), /** * * @@ -6399,7 +6932,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NO_FILL_REASON_CATEGORY = 586; */ - NO_FILL_REASON_CATEGORY(327, 586), + NO_FILL_REASON_CATEGORY(353, 586), /** * * @@ -6417,7 +6950,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * NO_FILL_REASON_CATEGORY_NAME = 587; */ - NO_FILL_REASON_CATEGORY_NAME(328, 587), + NO_FILL_REASON_CATEGORY_NAME(354, 587), /** * * @@ -6436,7 +6969,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPERATING_SYSTEM_CATEGORY = 117; */ - OPERATING_SYSTEM_CATEGORY(329, 117), + OPERATING_SYSTEM_CATEGORY(355, 117), /** * * @@ -6454,7 +6987,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPERATING_SYSTEM_CATEGORY_NAME = 118; */ - OPERATING_SYSTEM_CATEGORY_NAME(330, 118), + OPERATING_SYSTEM_CATEGORY_NAME(356, 118), /** * * @@ -6472,7 +7005,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPERATING_SYSTEM_VERSION_ID = 238; */ - OPERATING_SYSTEM_VERSION_ID(331, 238), + OPERATING_SYSTEM_VERSION_ID(357, 238), /** * * @@ -6490,7 +7023,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPERATING_SYSTEM_VERSION_NAME = 237; */ - OPERATING_SYSTEM_VERSION_NAME(332, 237), + OPERATING_SYSTEM_VERSION_NAME(358, 237), /** * * @@ -6509,7 +7042,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPTIMIZATION_TYPE = 639; */ - OPTIMIZATION_TYPE(333, 639), + OPTIMIZATION_TYPE(359, 639), /** * * @@ -6527,7 +7060,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * OPTIMIZATION_TYPE_NAME = 640; */ - OPTIMIZATION_TYPE_NAME(334, 640), + OPTIMIZATION_TYPE_NAME(360, 640), /** * * @@ -6545,7 +7078,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_AGENCY = 150; */ - ORDER_AGENCY(335, 150), + ORDER_AGENCY(361, 150), /** * * @@ -6563,7 +7096,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_AGENCY_ID = 151; */ - ORDER_AGENCY_ID(336, 151), + ORDER_AGENCY_ID(362, 151), /** * * @@ -6581,7 +7114,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_BOOKED_CPC = 152; */ - ORDER_BOOKED_CPC(337, 152), + ORDER_BOOKED_CPC(363, 152), /** * * @@ -6599,7 +7132,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_BOOKED_CPM = 153; */ - ORDER_BOOKED_CPM(338, 153), + ORDER_BOOKED_CPM(364, 153), /** * * @@ -6618,7 +7151,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_DELIVERY_STATUS = 231; */ - ORDER_DELIVERY_STATUS(339, 231), + ORDER_DELIVERY_STATUS(365, 231), /** * * @@ -6636,7 +7169,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_DELIVERY_STATUS_NAME = 239; */ - ORDER_DELIVERY_STATUS_NAME(340, 239), + ORDER_DELIVERY_STATUS_NAME(366, 239), /** * * @@ -6655,7 +7188,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_END_DATE = 154; */ - ORDER_END_DATE(341, 154), + ORDER_END_DATE(367, 154), /** * * @@ -6674,7 +7207,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_END_DATE_TIME = 155; */ - ORDER_END_DATE_TIME(342, 155), + ORDER_END_DATE_TIME(368, 155), /** * * @@ -6692,7 +7225,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_EXTERNAL_ID = 156; */ - ORDER_EXTERNAL_ID(343, 156), + ORDER_EXTERNAL_ID(369, 156), /** * * @@ -6711,7 +7244,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_ID = 7; */ - ORDER_ID(344, 7), + ORDER_ID(370, 7), /** * * @@ -6729,7 +7262,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_LABELS = 170; */ - ORDER_LABELS(345, 170), + ORDER_LABELS(371, 170), /** * * @@ -6747,7 +7280,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_LABEL_IDS = 171; */ - ORDER_LABEL_IDS(346, 171), + ORDER_LABEL_IDS(372, 171), /** * * @@ -6766,7 +7299,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_LIFETIME_CLICKS = 158; */ - ORDER_LIFETIME_CLICKS(347, 158), + ORDER_LIFETIME_CLICKS(373, 158), /** * * @@ -6785,7 +7318,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_LIFETIME_IMPRESSIONS = 159; */ - ORDER_LIFETIME_IMPRESSIONS(348, 159), + ORDER_LIFETIME_IMPRESSIONS(374, 159), /** * * @@ -6804,7 +7337,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_NAME = 8; */ - ORDER_NAME(349, 8), + ORDER_NAME(375, 8), /** * * @@ -6823,7 +7356,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_PO_NUMBER = 160; */ - ORDER_PO_NUMBER(350, 160), + ORDER_PO_NUMBER(376, 160), /** * * @@ -6841,7 +7374,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_PROGRAMMATIC = 157; */ - ORDER_PROGRAMMATIC(351, 157), + ORDER_PROGRAMMATIC(377, 157), /** * * @@ -6859,7 +7392,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SALESPERSON = 161; */ - ORDER_SALESPERSON(352, 161), + ORDER_SALESPERSON(378, 161), /** * * @@ -6877,7 +7410,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SALESPERSON_ID = 629; */ - ORDER_SALESPERSON_ID(353, 629), + ORDER_SALESPERSON_ID(379, 629), /** * * @@ -6895,7 +7428,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SECONDARY_SALESPEOPLE = 164; */ - ORDER_SECONDARY_SALESPEOPLE(354, 164), + ORDER_SECONDARY_SALESPEOPLE(380, 164), /** * * @@ -6913,7 +7446,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SECONDARY_SALESPEOPLE_ID = 165; */ - ORDER_SECONDARY_SALESPEOPLE_ID(355, 165), + ORDER_SECONDARY_SALESPEOPLE_ID(381, 165), /** * * @@ -6931,7 +7464,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SECONDARY_TRAFFICKERS = 166; */ - ORDER_SECONDARY_TRAFFICKERS(356, 166), + ORDER_SECONDARY_TRAFFICKERS(382, 166), /** * * @@ -6949,7 +7482,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_SECONDARY_TRAFFICKERS_ID = 167; */ - ORDER_SECONDARY_TRAFFICKERS_ID(357, 167), + ORDER_SECONDARY_TRAFFICKERS_ID(383, 167), /** * * @@ -6968,7 +7501,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_START_DATE = 168; */ - ORDER_START_DATE(358, 168), + ORDER_START_DATE(384, 168), /** * * @@ -6987,7 +7520,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_START_DATE_TIME = 169; */ - ORDER_START_DATE_TIME(359, 169), + ORDER_START_DATE_TIME(385, 169), /** * * @@ -7005,7 +7538,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_TRAFFICKER = 162; */ - ORDER_TRAFFICKER(360, 162), + ORDER_TRAFFICKER(386, 162), /** * * @@ -7023,7 +7556,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_TRAFFICKER_ID = 163; */ - ORDER_TRAFFICKER_ID(361, 163), + ORDER_TRAFFICKER_ID(387, 163), /** * * @@ -7043,7 +7576,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * ORDER_UNLIMITED_END = 203; */ - ORDER_UNLIMITED_END(362, 203), + ORDER_UNLIMITED_END(388, 203), /** * * @@ -7062,7 +7595,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PAGE_PATH = 511; */ - PAGE_PATH(363, 511), + PAGE_PATH(389, 511), /** * * @@ -7081,7 +7614,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PAGE_TITLE_AND_SCREEN_CLASS = 512; */ - PAGE_TITLE_AND_SCREEN_CLASS(364, 512), + PAGE_TITLE_AND_SCREEN_CLASS(390, 512), /** * * @@ -7099,7 +7632,83 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PAGE_TITLE_AND_SCREEN_NAME = 513; */ - PAGE_TITLE_AND_SCREEN_NAME(365, 513), + PAGE_TITLE_AND_SCREEN_NAME(391, 513), + /** + * + * + *
+     * The ID of a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management assignment ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_ASSIGNMENT_ID = 657; + */ + PARTNER_MANAGEMENT_ASSIGNMENT_ID(392, 657), + /** + * + * + *
+     * The name of a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management assignment" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `STRING`
+     * 
+ * + * PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 658; + */ + PARTNER_MANAGEMENT_ASSIGNMENT_NAME(393, 658), + /** + * + * + *
+     * The ID of a partner in a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_ID = 655; + */ + PARTNER_MANAGEMENT_PARTNER_ID(394, 655), + /** + * + * + *
+     * The name of a partner in a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `STRING`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_NAME = 656; + */ + PARTNER_MANAGEMENT_PARTNER_NAME(395, 656), /** * * @@ -7117,7 +7726,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_ID = 113; */ - PLACEMENT_ID(366, 113), + PLACEMENT_ID(396, 113), /** * * @@ -7135,7 +7744,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_ID_ALL = 144; */ - PLACEMENT_ID_ALL(367, 144), + PLACEMENT_ID_ALL(397, 144), /** * * @@ -7153,7 +7762,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_NAME = 114; */ - PLACEMENT_NAME(368, 114), + PLACEMENT_NAME(398, 114), /** * * @@ -7171,7 +7780,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_NAME_ALL = 145; */ - PLACEMENT_NAME_ALL(369, 145), + PLACEMENT_NAME_ALL(399, 145), /** * * @@ -7190,7 +7799,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_STATUS = 362; */ - PLACEMENT_STATUS(370, 362), + PLACEMENT_STATUS(400, 362), /** * * @@ -7208,7 +7817,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_STATUS_NAME = 364; */ - PLACEMENT_STATUS_NAME(371, 364), + PLACEMENT_STATUS_NAME(401, 364), /** * * @@ -7227,7 +7836,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PLACEMENT_STATUS_NAME_ALL = 365; */ - PLACEMENT_STATUS_NAME_ALL(372, 365), + PLACEMENT_STATUS_NAME_ALL(402, 365), /** * * @@ -7245,7 +7854,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * POSTAL_CODE_ID = 455; */ - POSTAL_CODE_ID(373, 455), + POSTAL_CODE_ID(403, 455), /** * * @@ -7263,7 +7872,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * POSTAL_CODE_NAME = 456; */ - POSTAL_CODE_NAME(374, 456), + POSTAL_CODE_NAME(404, 456), /** * * @@ -7283,7 +7892,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PPID_STATUS = 406; */ - PPID_STATUS(375, 406), + PPID_STATUS(405, 406), /** * * @@ -7302,7 +7911,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PPID_STATUS_NAME = 407; */ - PPID_STATUS_NAME(376, 407), + PPID_STATUS_NAME(406, 407), /** * * @@ -7321,7 +7930,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PREDICTED_VIEWABILITY_BUCKET = 633; */ - PREDICTED_VIEWABILITY_BUCKET(377, 633), + PREDICTED_VIEWABILITY_BUCKET(407, 633), /** * * @@ -7339,7 +7948,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PREDICTED_VIEWABILITY_BUCKET_NAME = 634; */ - PREDICTED_VIEWABILITY_BUCKET_NAME(378, 634), + PREDICTED_VIEWABILITY_BUCKET_NAME(408, 634), /** * * @@ -7357,7 +7966,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PRESENTED_SECURE_SIGNAL_ID = 495; */ - PRESENTED_SECURE_SIGNAL_ID(379, 495), + PRESENTED_SECURE_SIGNAL_ID(409, 495), /** * * @@ -7375,7 +7984,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PRESENTED_SECURE_SIGNAL_NAME = 496; */ - PRESENTED_SECURE_SIGNAL_NAME(380, 496), + PRESENTED_SECURE_SIGNAL_NAME(410, 496), /** * * @@ -7394,7 +8003,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PRIMARY_PERSONALIZATION_ID_TYPE = 408; */ - PRIMARY_PERSONALIZATION_ID_TYPE(381, 408), + PRIMARY_PERSONALIZATION_ID_TYPE(411, 408), /** * * @@ -7412,7 +8021,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PRIMARY_PERSONALIZATION_ID_TYPE_NAME = 409; */ - PRIMARY_PERSONALIZATION_ID_TYPE_NAME(382, 409), + PRIMARY_PERSONALIZATION_ID_TYPE_NAME(412, 409), /** * * @@ -7425,14 +8034,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Programmatic channel value" in the Ad Manager UI (when * showing API fields). * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `ENUM` * * * PROGRAMMATIC_CHANNEL = 13; */ - PROGRAMMATIC_CHANNEL(385, 13), + PROGRAMMATIC_CHANNEL(415, 13), /** * * @@ -7444,14 +8054,15 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Programmatic channel" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL`, `REACH` + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` * * * PROGRAMMATIC_CHANNEL_NAME = 14; */ - PROGRAMMATIC_CHANNEL_NAME(386, 14), + PROGRAMMATIC_CHANNEL_NAME(416, 14), /** * * @@ -7470,7 +8081,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE = 410; */ - PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE(387, 410), + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE(417, 410), /** * * @@ -7489,7 +8100,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS = 546; */ - PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS(388, 546), + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS(418, 546), /** * * @@ -7508,7 +8119,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME = 412; */ - PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME(389, 412), + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME(419, 412), /** * * @@ -7527,7 +8138,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER = 413; */ - PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER(390, 413), + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER(420, 413), /** * * @@ -7546,7 +8157,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE = 414; */ - PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE(391, 414), + PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE(421, 414), /** * * @@ -7565,7 +8176,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE = 425; */ - PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE(392, 425), + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE(422, 425), /** * * @@ -7584,7 +8195,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS = 545; */ - PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS(393, 545), + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS(423, 545), /** * * @@ -7603,7 +8214,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME = 427; */ - PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME(394, 427), + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME(424, 427), /** * * @@ -7622,7 +8233,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER = 428; */ - PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER(395, 428), + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER(425, 428), /** * * @@ -7641,7 +8252,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE = 429; */ - PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE(396, 429), + PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE(426, 429), /** * * @@ -7660,7 +8271,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE = 415; */ - PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE(397, 415), + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE(427, 415), /** * * @@ -7679,7 +8290,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID = 416; */ - PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID(398, 416), + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID(428, 416), /** * * @@ -7698,7 +8309,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME = 417; */ - PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME(399, 417), + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME(429, 417), /** * * @@ -7717,7 +8328,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER = 418; */ - PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER(400, 418), + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER(430, 418), /** * * @@ -7736,7 +8347,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE = 419; */ - PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE(401, 419), + PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE(431, 419), /** * * @@ -7755,7 +8366,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID = 136; */ - PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID(402, 136), + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID(432, 136), /** * * @@ -7774,7 +8385,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME = 137; */ - PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME(403, 137), + PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME(433, 137), /** * * @@ -7794,7 +8405,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REGION_ID = 457; */ - REGION_ID(404, 457), + REGION_ID(434, 457), /** * * @@ -7814,7 +8425,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REGION_NAME = 458; */ - REGION_NAME(405, 458), + REGION_NAME(435, 458), /** * * @@ -7833,7 +8444,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REJECTION_CLASS_CATEGORY = 590; */ - REJECTION_CLASS_CATEGORY(406, 590), + REJECTION_CLASS_CATEGORY(436, 590), /** * * @@ -7851,7 +8462,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REJECTION_CLASS_CATEGORY_NAME = 591; */ - REJECTION_CLASS_CATEGORY_NAME(407, 591), + REJECTION_CLASS_CATEGORY_NAME(437, 591), /** * * @@ -7870,7 +8481,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * RENDERED_CREATIVE_SIZE = 343; */ - RENDERED_CREATIVE_SIZE(408, 343), + RENDERED_CREATIVE_SIZE(438, 343), /** * * @@ -7888,7 +8499,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REQUESTED_AD_SIZES = 352; */ - REQUESTED_AD_SIZES(409, 352), + REQUESTED_AD_SIZES(439, 352), /** * * @@ -7907,12 +8518,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * REQUEST_TYPE = 146; */ - REQUEST_TYPE(410, 146), + REQUEST_TYPE(440, 146), /** * * *
-     * Request type locallized name
+     * Request type localized name
      *
      *
      *
@@ -7925,7 +8536,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * REQUEST_TYPE_NAME = 147;
      */
-    REQUEST_TYPE_NAME(411, 147),
+    REQUEST_TYPE_NAME(441, 147),
+    /**
+     *
+     *
+     * 
+     * Revenue Verification bidder-provided ID.
+     *
+     *
+     *
+     * Corresponds to "Revenue verification ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * REVENUE_VERIFICATION_ID = 645; + */ + REVENUE_VERIFICATION_ID(442, 645), /** * * @@ -7943,7 +8572,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * SERVER_SIDE_UNWRAPPING_ELIGIBLE = 597; */ - SERVER_SIDE_UNWRAPPING_ELIGIBLE(412, 597), + SERVER_SIDE_UNWRAPPING_ELIGIBLE(443, 597), /** * * @@ -7962,7 +8591,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * SERVING_RESTRICTION = 631; */ - SERVING_RESTRICTION(413, 631), + SERVING_RESTRICTION(444, 631), /** * * @@ -7980,7 +8609,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * SERVING_RESTRICTION_NAME = 632; */ - SERVING_RESTRICTION_NAME(414, 632), + SERVING_RESTRICTION_NAME(445, 632), /** * * @@ -7999,7 +8628,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * SITE = 387; */ - SITE(415, 387), + SITE(446, 387), /** * * @@ -8019,7 +8648,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TARGETING_ID = 232; */ - TARGETING_ID(416, 232), + TARGETING_ID(447, 232), /** * * @@ -8038,7 +8667,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TARGETING_NAME = 233; */ - TARGETING_NAME(417, 233), + TARGETING_NAME(448, 233), /** * * @@ -8057,7 +8686,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TARGETING_TYPE = 385; */ - TARGETING_TYPE(418, 385), + TARGETING_TYPE(449, 385), /** * * @@ -8075,7 +8704,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TARGETING_TYPE_NAME = 386; */ - TARGETING_TYPE_NAME(419, 386), + TARGETING_TYPE_NAME(450, 386), /** * * @@ -8095,7 +8724,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * THIRD_PARTY_ID_STATUS = 402; */ - THIRD_PARTY_ID_STATUS(420, 402), + THIRD_PARTY_ID_STATUS(451, 402), /** * * @@ -8114,7 +8743,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * THIRD_PARTY_ID_STATUS_NAME = 403; */ - THIRD_PARTY_ID_STATUS_NAME(421, 403), + THIRD_PARTY_ID_STATUS_NAME(452, 403), /** * * @@ -8133,7 +8762,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TOPICS_STATUS = 504; */ - TOPICS_STATUS(422, 504), + TOPICS_STATUS(453, 504), /** * * @@ -8151,7 +8780,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TOPICS_STATUS_NAME = 505; */ - TOPICS_STATUS_NAME(423, 505), + TOPICS_STATUS_NAME(454, 505), /** * * @@ -8170,7 +8799,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TOP_PRIVATE_DOMAIN = 444; */ - TOP_PRIVATE_DOMAIN(424, 444), + TOP_PRIVATE_DOMAIN(455, 444), /** * * @@ -8189,7 +8818,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TRAFFIC_SOURCE = 388; */ - TRAFFIC_SOURCE(425, 388), + TRAFFIC_SOURCE(456, 388), /** * * @@ -8207,7 +8836,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * TRAFFIC_SOURCE_NAME = 389; */ - TRAFFIC_SOURCE_NAME(426, 389), + TRAFFIC_SOURCE_NAME(457, 389), /** * * @@ -8225,7 +8854,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * UNIFIED_PRICING_RULE_ID = 393; */ - UNIFIED_PRICING_RULE_ID(427, 393), + UNIFIED_PRICING_RULE_ID(458, 393), /** * * @@ -8243,7 +8872,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * UNIFIED_PRICING_RULE_NAME = 394; */ - UNIFIED_PRICING_RULE_NAME(428, 394), + UNIFIED_PRICING_RULE_NAME(459, 394), /** * * @@ -8261,7 +8890,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * URL = 506; */ - URL(429, 506), + URL(460, 506), /** * * @@ -8279,7 +8908,44 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * URL_ID = 507; */ - URL_ID(430, 507), + URL_ID(461, 507), + /** + * + * + *
+     * The choice made in a user message.
+     *
+     *
+     *
+     * Corresponds to "User choice value" in the Ad Manager UI (when showing API
+     * fields).
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `ENUM`
+     * 
+ * + * USER_MESSAGES_CHOICE = 702; + */ + USER_MESSAGES_CHOICE(462, 702), + /** + * + * + *
+     * Localized name of the choice made in a user message.
+     *
+     *
+     *
+     * Corresponds to "User choice" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `STRING`
+     * 
+ * + * USER_MESSAGES_CHOICE_NAME = 703; + */ + USER_MESSAGES_CHOICE_NAME(463, 703), /** * * @@ -8298,7 +8964,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_ENTITLEMENT_SOURCE = 635; */ - USER_MESSAGES_ENTITLEMENT_SOURCE(431, 635), + USER_MESSAGES_ENTITLEMENT_SOURCE(464, 635), /** * * @@ -8316,7 +8982,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_ENTITLEMENT_SOURCE_NAME = 636; */ - USER_MESSAGES_ENTITLEMENT_SOURCE_NAME(432, 636), + USER_MESSAGES_ENTITLEMENT_SOURCE_NAME(465, 636), /** * * @@ -8335,7 +9001,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID = 637; */ - USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID(433, 637), + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID(466, 637), /** * * @@ -8353,7 +9019,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME = 638; */ - USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME(434, 638), + USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME(467, 638), /** * * @@ -8372,7 +9038,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VAST_VERSION = 554; */ - VAST_VERSION(435, 554), + VAST_VERSION(468, 554), /** * * @@ -8391,7 +9057,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VAST_VERSION_NAME = 555; */ - VAST_VERSION_NAME(436, 555), + VAST_VERSION_NAME(469, 555), /** * * @@ -8410,7 +9076,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_BREAK_TYPE = 556; */ - VIDEO_AD_BREAK_TYPE(437, 556), + VIDEO_AD_BREAK_TYPE(470, 556), /** * * @@ -8428,7 +9094,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_BREAK_TYPE_NAME = 557; */ - VIDEO_AD_BREAK_TYPE_NAME(438, 557), + VIDEO_AD_BREAK_TYPE_NAME(471, 557), /** * * @@ -8446,7 +9112,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_DURATION = 450; */ - VIDEO_AD_DURATION(439, 450), + VIDEO_AD_DURATION(472, 450), /** * * @@ -8465,7 +9131,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_FORMATS_RULE = 561; */ - VIDEO_AD_FORMATS_RULE(440, 561), + VIDEO_AD_FORMATS_RULE(473, 561), /** * * @@ -8484,7 +9150,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_FORMATS_RULE_ID = 560; */ - VIDEO_AD_FORMATS_RULE_ID(441, 560), + VIDEO_AD_FORMATS_RULE_ID(474, 560), /** * * @@ -8503,7 +9169,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_REQUEST_DURATION = 558; */ - VIDEO_AD_REQUEST_DURATION(442, 558), + VIDEO_AD_REQUEST_DURATION(475, 558), /** * * @@ -8521,7 +9187,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME = 751; */ - VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME(443, 751), + VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME(476, 751), /** * * @@ -8539,7 +9205,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_REQUEST_DURATION_NAME = 559; */ - VIDEO_AD_REQUEST_DURATION_NAME(444, 559), + VIDEO_AD_REQUEST_DURATION_NAME(477, 559), /** * * @@ -8558,7 +9224,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_REQUEST_SOURCE = 438; */ - VIDEO_AD_REQUEST_SOURCE(445, 438), + VIDEO_AD_REQUEST_SOURCE(478, 438), /** * * @@ -8576,7 +9242,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_REQUEST_SOURCE_NAME = 439; */ - VIDEO_AD_REQUEST_SOURCE_NAME(446, 439), + VIDEO_AD_REQUEST_SOURCE_NAME(479, 439), /** * * @@ -8595,7 +9261,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_TYPE = 432; */ - VIDEO_AD_TYPE(447, 432), + VIDEO_AD_TYPE(480, 432), /** * * @@ -8613,7 +9279,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_AD_TYPE_NAME = 433; */ - VIDEO_AD_TYPE_NAME(448, 433), + VIDEO_AD_TYPE_NAME(481, 433), /** * * @@ -8632,7 +9298,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_CONTINUOUS_PLAY_TYPE = 721; */ - VIDEO_CONTINUOUS_PLAY_TYPE(449, 721), + VIDEO_CONTINUOUS_PLAY_TYPE(482, 721), /** * * @@ -8650,7 +9316,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_CONTINUOUS_PLAY_TYPE_NAME = 722; */ - VIDEO_CONTINUOUS_PLAY_TYPE_NAME(450, 722), + VIDEO_CONTINUOUS_PLAY_TYPE_NAME(483, 722), /** * * @@ -8668,7 +9334,116 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_FALLBACK_POSITION = 530; */ - VIDEO_FALLBACK_POSITION(451, 530), + VIDEO_FALLBACK_POSITION(484, 530), + /** + * + * + *
+     * The duration of the ad break in seconds for a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Ad break duration (seconds)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION = 547; + */ + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION(485, 547), + /** + * + * + *
+     * The ID of the ad break in a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ad break ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID = 548; + */ + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID(486, 548), + /** + * + * + *
+     * The name of the ad break in a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ad break" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME = 549; + */ + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME(487, 549), + /** + * + * + *
+     * The time of the ad break in a live stream event in the format of
+     *  YYYY-MM-DD HH:MM:SS+Timezone.
+     *
+     *
+     *
+     * Corresponds to "Ad break time" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `TIMESTAMP`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME = 550; + */ + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME(488, 550), + /** + * + * + *
+     * The ID of the live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_ID = 551; + */ + VIDEO_LIVE_STREAM_EVENT_ID(489, 551), + /** + * + * + *
+     * The name of the live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_NAME = 552; + */ + VIDEO_LIVE_STREAM_EVENT_NAME(490, 552), /** * * @@ -8687,7 +9462,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_MEASUREMENT_SOURCE = 601; */ - VIDEO_MEASUREMENT_SOURCE(452, 601), + VIDEO_MEASUREMENT_SOURCE(491, 601), /** * * @@ -8705,7 +9480,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_MEASUREMENT_SOURCE_NAME = 602; */ - VIDEO_MEASUREMENT_SOURCE_NAME(453, 602), + VIDEO_MEASUREMENT_SOURCE_NAME(492, 602), /** * * @@ -8724,7 +9499,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_PLCMT = 172; */ - VIDEO_PLCMT(454, 172), + VIDEO_PLCMT(493, 172), /** * * @@ -8742,7 +9517,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_PLCMT_NAME = 173; */ - VIDEO_PLCMT_NAME(455, 173), + VIDEO_PLCMT_NAME(494, 173), /** * * @@ -8760,7 +9535,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_POSITION_IN_POD = 538; */ - VIDEO_POSITION_IN_POD(456, 538), + VIDEO_POSITION_IN_POD(495, 538), /** * * @@ -8779,7 +9554,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_POSITION_OF_POD = 539; */ - VIDEO_POSITION_OF_POD(457, 539), + VIDEO_POSITION_OF_POD(496, 539), /** * * @@ -8798,7 +9573,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_SDK_VERSION = 440; */ - VIDEO_SDK_VERSION(458, 440), + VIDEO_SDK_VERSION(497, 440), /** * * @@ -8816,7 +9591,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_SDK_VERSION_NAME = 441; */ - VIDEO_SDK_VERSION_NAME(459, 441), + VIDEO_SDK_VERSION_NAME(498, 441), /** * * @@ -8835,7 +9610,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_STITCHER_TYPE = 752; */ - VIDEO_STITCHER_TYPE(460, 752), + VIDEO_STITCHER_TYPE(499, 752), /** * * @@ -8853,7 +9628,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_STITCHER_TYPE_NAME = 753; */ - VIDEO_STITCHER_TYPE_NAME(461, 753), + VIDEO_STITCHER_TYPE_NAME(500, 753), + /** + * + * + *
+     * Web property code
+     *
+     *
+     *
+     * Corresponds to "Web property code" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * WEB_PROPERTY_CODE = 730; + */ + WEB_PROPERTY_CODE(501, 730), /** * * @@ -8872,7 +9665,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * WEEK = 5; */ - WEEK(462, 5), + WEEK(502, 5), /** * * @@ -8890,7 +9683,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_BUYER_NAME = 184; */ - YIELD_GROUP_BUYER_NAME(463, 184), + YIELD_GROUP_BUYER_NAME(503, 184), /** * * @@ -8908,7 +9701,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_BUYER_TAG_NAME = 627; */ - YIELD_GROUP_BUYER_TAG_NAME(464, 627), + YIELD_GROUP_BUYER_TAG_NAME(504, 627), /** * * @@ -8927,7 +9720,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_ID = 182; */ - YIELD_GROUP_ID(465, 182), + YIELD_GROUP_ID(505, 182), /** * * @@ -8946,7 +9739,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_NAME = 183; */ - YIELD_GROUP_NAME(466, 183), + YIELD_GROUP_NAME(506, 183), /** * * @@ -8965,7 +9758,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YOUTUBE_AD_DURATION_BUCKET = 430; */ - YOUTUBE_AD_DURATION_BUCKET(467, 430), + YOUTUBE_AD_DURATION_BUCKET(507, 430), /** * * @@ -8983,7 +9776,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YOUTUBE_AD_DURATION_BUCKET_NAME = 431; */ - YOUTUBE_AD_DURATION_BUCKET_NAME(468, 431), + YOUTUBE_AD_DURATION_BUCKET_NAME(508, 431), /** * * @@ -9002,12 +9795,12 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * YOUTUBE_AD_TYPE = 399; */ - YOUTUBE_AD_TYPE(469, 399), + YOUTUBE_AD_TYPE(509, 399), /** * * *
-     * YouTube instream Ad Type locallized name.
+     * YouTube instream Ad Type localized name.
      *
      *
      *
@@ -9020,7 +9813,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * YOUTUBE_AD_TYPE_NAME = 400;
      */
-    YOUTUBE_AD_TYPE_NAME(470, 400),
+    YOUTUBE_AD_TYPE_NAME(510, 400),
     /**
      *
      *
@@ -9031,7 +9824,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 10000;
      */
-    LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(471, 10000),
+    LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(511, 10000),
     /**
      *
      *
@@ -9042,7 +9835,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 10001;
      */
-    LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(472, 10001),
+    LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(512, 10001),
     /**
      *
      *
@@ -9053,7 +9846,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 10002;
      */
-    LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(473, 10002),
+    LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(513, 10002),
     /**
      *
      *
@@ -9064,7 +9857,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 10003;
      */
-    LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(474, 10003),
+    LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(514, 10003),
     /**
      *
      *
@@ -9075,7 +9868,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 10004;
      */
-    LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(475, 10004),
+    LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(515, 10004),
     /**
      *
      *
@@ -9086,7 +9879,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 10005;
      */
-    LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(476, 10005),
+    LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(516, 10005),
     /**
      *
      *
@@ -9097,7 +9890,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 10006;
      */
-    LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(477, 10006),
+    LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(517, 10006),
     /**
      *
      *
@@ -9108,7 +9901,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 10007;
      */
-    LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(478, 10007),
+    LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(518, 10007),
     /**
      *
      *
@@ -9119,7 +9912,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 10008;
      */
-    LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(479, 10008),
+    LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(519, 10008),
     /**
      *
      *
@@ -9130,7 +9923,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 10009;
      */
-    LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(480, 10009),
+    LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(520, 10009),
     /**
      *
      *
@@ -9141,7 +9934,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 10010;
      */
-    LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(481, 10010),
+    LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(521, 10010),
     /**
      *
      *
@@ -9152,7 +9945,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 10011;
      */
-    LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(482, 10011),
+    LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(522, 10011),
     /**
      *
      *
@@ -9163,7 +9956,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 10012;
      */
-    LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(483, 10012),
+    LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(523, 10012),
     /**
      *
      *
@@ -9174,7 +9967,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 10013;
      */
-    LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(484, 10013),
+    LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(524, 10013),
     /**
      *
      *
@@ -9185,7 +9978,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 10014;
      */
-    LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(485, 10014),
+    LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(525, 10014),
     /**
      *
      *
@@ -9198,7 +9991,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_0_VALUE = 11000;
      */
-    LINE_ITEM_CUSTOM_FIELD_0_VALUE(486, 11000),
+    LINE_ITEM_CUSTOM_FIELD_0_VALUE(526, 11000),
     /**
      *
      *
@@ -9211,7 +10004,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_1_VALUE = 11001;
      */
-    LINE_ITEM_CUSTOM_FIELD_1_VALUE(487, 11001),
+    LINE_ITEM_CUSTOM_FIELD_1_VALUE(527, 11001),
     /**
      *
      *
@@ -9224,7 +10017,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_2_VALUE = 11002;
      */
-    LINE_ITEM_CUSTOM_FIELD_2_VALUE(488, 11002),
+    LINE_ITEM_CUSTOM_FIELD_2_VALUE(528, 11002),
     /**
      *
      *
@@ -9237,7 +10030,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_3_VALUE = 11003;
      */
-    LINE_ITEM_CUSTOM_FIELD_3_VALUE(489, 11003),
+    LINE_ITEM_CUSTOM_FIELD_3_VALUE(529, 11003),
     /**
      *
      *
@@ -9250,7 +10043,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_4_VALUE = 11004;
      */
-    LINE_ITEM_CUSTOM_FIELD_4_VALUE(490, 11004),
+    LINE_ITEM_CUSTOM_FIELD_4_VALUE(530, 11004),
     /**
      *
      *
@@ -9263,7 +10056,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_5_VALUE = 11005;
      */
-    LINE_ITEM_CUSTOM_FIELD_5_VALUE(491, 11005),
+    LINE_ITEM_CUSTOM_FIELD_5_VALUE(531, 11005),
     /**
      *
      *
@@ -9276,7 +10069,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_6_VALUE = 11006;
      */
-    LINE_ITEM_CUSTOM_FIELD_6_VALUE(492, 11006),
+    LINE_ITEM_CUSTOM_FIELD_6_VALUE(532, 11006),
     /**
      *
      *
@@ -9289,7 +10082,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_7_VALUE = 11007;
      */
-    LINE_ITEM_CUSTOM_FIELD_7_VALUE(493, 11007),
+    LINE_ITEM_CUSTOM_FIELD_7_VALUE(533, 11007),
     /**
      *
      *
@@ -9302,7 +10095,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_8_VALUE = 11008;
      */
-    LINE_ITEM_CUSTOM_FIELD_8_VALUE(494, 11008),
+    LINE_ITEM_CUSTOM_FIELD_8_VALUE(534, 11008),
     /**
      *
      *
@@ -9315,7 +10108,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_9_VALUE = 11009;
      */
-    LINE_ITEM_CUSTOM_FIELD_9_VALUE(495, 11009),
+    LINE_ITEM_CUSTOM_FIELD_9_VALUE(535, 11009),
     /**
      *
      *
@@ -9328,7 +10121,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_10_VALUE = 11010;
      */
-    LINE_ITEM_CUSTOM_FIELD_10_VALUE(496, 11010),
+    LINE_ITEM_CUSTOM_FIELD_10_VALUE(536, 11010),
     /**
      *
      *
@@ -9341,7 +10134,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_11_VALUE = 11011;
      */
-    LINE_ITEM_CUSTOM_FIELD_11_VALUE(497, 11011),
+    LINE_ITEM_CUSTOM_FIELD_11_VALUE(537, 11011),
     /**
      *
      *
@@ -9354,7 +10147,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_12_VALUE = 11012;
      */
-    LINE_ITEM_CUSTOM_FIELD_12_VALUE(498, 11012),
+    LINE_ITEM_CUSTOM_FIELD_12_VALUE(538, 11012),
     /**
      *
      *
@@ -9367,7 +10160,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_13_VALUE = 11013;
      */
-    LINE_ITEM_CUSTOM_FIELD_13_VALUE(499, 11013),
+    LINE_ITEM_CUSTOM_FIELD_13_VALUE(539, 11013),
     /**
      *
      *
@@ -9380,7 +10173,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * LINE_ITEM_CUSTOM_FIELD_14_VALUE = 11014;
      */
-    LINE_ITEM_CUSTOM_FIELD_14_VALUE(500, 11014),
+    LINE_ITEM_CUSTOM_FIELD_14_VALUE(540, 11014),
     /**
      *
      *
@@ -9391,7 +10184,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_0_OPTION_ID = 12000;
      */
-    ORDER_CUSTOM_FIELD_0_OPTION_ID(501, 12000),
+    ORDER_CUSTOM_FIELD_0_OPTION_ID(541, 12000),
     /**
      *
      *
@@ -9402,7 +10195,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_1_OPTION_ID = 12001;
      */
-    ORDER_CUSTOM_FIELD_1_OPTION_ID(502, 12001),
+    ORDER_CUSTOM_FIELD_1_OPTION_ID(542, 12001),
     /**
      *
      *
@@ -9413,7 +10206,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_2_OPTION_ID = 12002;
      */
-    ORDER_CUSTOM_FIELD_2_OPTION_ID(503, 12002),
+    ORDER_CUSTOM_FIELD_2_OPTION_ID(543, 12002),
     /**
      *
      *
@@ -9424,7 +10217,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_3_OPTION_ID = 12003;
      */
-    ORDER_CUSTOM_FIELD_3_OPTION_ID(504, 12003),
+    ORDER_CUSTOM_FIELD_3_OPTION_ID(544, 12003),
     /**
      *
      *
@@ -9435,7 +10228,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_4_OPTION_ID = 12004;
      */
-    ORDER_CUSTOM_FIELD_4_OPTION_ID(505, 12004),
+    ORDER_CUSTOM_FIELD_4_OPTION_ID(545, 12004),
     /**
      *
      *
@@ -9446,7 +10239,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_5_OPTION_ID = 12005;
      */
-    ORDER_CUSTOM_FIELD_5_OPTION_ID(506, 12005),
+    ORDER_CUSTOM_FIELD_5_OPTION_ID(546, 12005),
     /**
      *
      *
@@ -9457,7 +10250,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_6_OPTION_ID = 12006;
      */
-    ORDER_CUSTOM_FIELD_6_OPTION_ID(507, 12006),
+    ORDER_CUSTOM_FIELD_6_OPTION_ID(547, 12006),
     /**
      *
      *
@@ -9468,7 +10261,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_7_OPTION_ID = 12007;
      */
-    ORDER_CUSTOM_FIELD_7_OPTION_ID(508, 12007),
+    ORDER_CUSTOM_FIELD_7_OPTION_ID(548, 12007),
     /**
      *
      *
@@ -9479,7 +10272,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_8_OPTION_ID = 12008;
      */
-    ORDER_CUSTOM_FIELD_8_OPTION_ID(509, 12008),
+    ORDER_CUSTOM_FIELD_8_OPTION_ID(549, 12008),
     /**
      *
      *
@@ -9490,7 +10283,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_9_OPTION_ID = 12009;
      */
-    ORDER_CUSTOM_FIELD_9_OPTION_ID(510, 12009),
+    ORDER_CUSTOM_FIELD_9_OPTION_ID(550, 12009),
     /**
      *
      *
@@ -9501,7 +10294,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_10_OPTION_ID = 12010;
      */
-    ORDER_CUSTOM_FIELD_10_OPTION_ID(511, 12010),
+    ORDER_CUSTOM_FIELD_10_OPTION_ID(551, 12010),
     /**
      *
      *
@@ -9512,7 +10305,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_11_OPTION_ID = 12011;
      */
-    ORDER_CUSTOM_FIELD_11_OPTION_ID(512, 12011),
+    ORDER_CUSTOM_FIELD_11_OPTION_ID(552, 12011),
     /**
      *
      *
@@ -9523,7 +10316,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_12_OPTION_ID = 12012;
      */
-    ORDER_CUSTOM_FIELD_12_OPTION_ID(513, 12012),
+    ORDER_CUSTOM_FIELD_12_OPTION_ID(553, 12012),
     /**
      *
      *
@@ -9534,7 +10327,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_13_OPTION_ID = 12013;
      */
-    ORDER_CUSTOM_FIELD_13_OPTION_ID(514, 12013),
+    ORDER_CUSTOM_FIELD_13_OPTION_ID(554, 12013),
     /**
      *
      *
@@ -9545,7 +10338,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_14_OPTION_ID = 12014;
      */
-    ORDER_CUSTOM_FIELD_14_OPTION_ID(515, 12014),
+    ORDER_CUSTOM_FIELD_14_OPTION_ID(555, 12014),
     /**
      *
      *
@@ -9558,7 +10351,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_0_VALUE = 13000;
      */
-    ORDER_CUSTOM_FIELD_0_VALUE(516, 13000),
+    ORDER_CUSTOM_FIELD_0_VALUE(556, 13000),
     /**
      *
      *
@@ -9571,7 +10364,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_1_VALUE = 13001;
      */
-    ORDER_CUSTOM_FIELD_1_VALUE(517, 13001),
+    ORDER_CUSTOM_FIELD_1_VALUE(557, 13001),
     /**
      *
      *
@@ -9584,7 +10377,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_2_VALUE = 13002;
      */
-    ORDER_CUSTOM_FIELD_2_VALUE(518, 13002),
+    ORDER_CUSTOM_FIELD_2_VALUE(558, 13002),
     /**
      *
      *
@@ -9597,7 +10390,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_3_VALUE = 13003;
      */
-    ORDER_CUSTOM_FIELD_3_VALUE(519, 13003),
+    ORDER_CUSTOM_FIELD_3_VALUE(559, 13003),
     /**
      *
      *
@@ -9610,7 +10403,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_4_VALUE = 13004;
      */
-    ORDER_CUSTOM_FIELD_4_VALUE(520, 13004),
+    ORDER_CUSTOM_FIELD_4_VALUE(560, 13004),
     /**
      *
      *
@@ -9623,7 +10416,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_5_VALUE = 13005;
      */
-    ORDER_CUSTOM_FIELD_5_VALUE(521, 13005),
+    ORDER_CUSTOM_FIELD_5_VALUE(561, 13005),
     /**
      *
      *
@@ -9636,7 +10429,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_6_VALUE = 13006;
      */
-    ORDER_CUSTOM_FIELD_6_VALUE(522, 13006),
+    ORDER_CUSTOM_FIELD_6_VALUE(562, 13006),
     /**
      *
      *
@@ -9649,7 +10442,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_7_VALUE = 13007;
      */
-    ORDER_CUSTOM_FIELD_7_VALUE(523, 13007),
+    ORDER_CUSTOM_FIELD_7_VALUE(563, 13007),
     /**
      *
      *
@@ -9662,7 +10455,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_8_VALUE = 13008;
      */
-    ORDER_CUSTOM_FIELD_8_VALUE(524, 13008),
+    ORDER_CUSTOM_FIELD_8_VALUE(564, 13008),
     /**
      *
      *
@@ -9675,7 +10468,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_9_VALUE = 13009;
      */
-    ORDER_CUSTOM_FIELD_9_VALUE(525, 13009),
+    ORDER_CUSTOM_FIELD_9_VALUE(565, 13009),
     /**
      *
      *
@@ -9688,7 +10481,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_10_VALUE = 13010;
      */
-    ORDER_CUSTOM_FIELD_10_VALUE(526, 13010),
+    ORDER_CUSTOM_FIELD_10_VALUE(566, 13010),
     /**
      *
      *
@@ -9701,7 +10494,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_11_VALUE = 13011;
      */
-    ORDER_CUSTOM_FIELD_11_VALUE(527, 13011),
+    ORDER_CUSTOM_FIELD_11_VALUE(567, 13011),
     /**
      *
      *
@@ -9714,7 +10507,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_12_VALUE = 13012;
      */
-    ORDER_CUSTOM_FIELD_12_VALUE(528, 13012),
+    ORDER_CUSTOM_FIELD_12_VALUE(568, 13012),
     /**
      *
      *
@@ -9727,7 +10520,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_13_VALUE = 13013;
      */
-    ORDER_CUSTOM_FIELD_13_VALUE(529, 13013),
+    ORDER_CUSTOM_FIELD_13_VALUE(569, 13013),
     /**
      *
      *
@@ -9740,7 +10533,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * ORDER_CUSTOM_FIELD_14_VALUE = 13014;
      */
-    ORDER_CUSTOM_FIELD_14_VALUE(530, 13014),
+    ORDER_CUSTOM_FIELD_14_VALUE(570, 13014),
     /**
      *
      *
@@ -9751,7 +10544,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 14000;
      */
-    CREATIVE_CUSTOM_FIELD_0_OPTION_ID(531, 14000),
+    CREATIVE_CUSTOM_FIELD_0_OPTION_ID(571, 14000),
     /**
      *
      *
@@ -9762,7 +10555,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 14001;
      */
-    CREATIVE_CUSTOM_FIELD_1_OPTION_ID(532, 14001),
+    CREATIVE_CUSTOM_FIELD_1_OPTION_ID(572, 14001),
     /**
      *
      *
@@ -9773,7 +10566,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 14002;
      */
-    CREATIVE_CUSTOM_FIELD_2_OPTION_ID(533, 14002),
+    CREATIVE_CUSTOM_FIELD_2_OPTION_ID(573, 14002),
     /**
      *
      *
@@ -9784,7 +10577,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 14003;
      */
-    CREATIVE_CUSTOM_FIELD_3_OPTION_ID(534, 14003),
+    CREATIVE_CUSTOM_FIELD_3_OPTION_ID(574, 14003),
     /**
      *
      *
@@ -9795,7 +10588,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 14004;
      */
-    CREATIVE_CUSTOM_FIELD_4_OPTION_ID(535, 14004),
+    CREATIVE_CUSTOM_FIELD_4_OPTION_ID(575, 14004),
     /**
      *
      *
@@ -9806,7 +10599,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 14005;
      */
-    CREATIVE_CUSTOM_FIELD_5_OPTION_ID(536, 14005),
+    CREATIVE_CUSTOM_FIELD_5_OPTION_ID(576, 14005),
     /**
      *
      *
@@ -9817,7 +10610,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 14006;
      */
-    CREATIVE_CUSTOM_FIELD_6_OPTION_ID(537, 14006),
+    CREATIVE_CUSTOM_FIELD_6_OPTION_ID(577, 14006),
     /**
      *
      *
@@ -9828,7 +10621,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 14007;
      */
-    CREATIVE_CUSTOM_FIELD_7_OPTION_ID(538, 14007),
+    CREATIVE_CUSTOM_FIELD_7_OPTION_ID(578, 14007),
     /**
      *
      *
@@ -9839,7 +10632,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 14008;
      */
-    CREATIVE_CUSTOM_FIELD_8_OPTION_ID(539, 14008),
+    CREATIVE_CUSTOM_FIELD_8_OPTION_ID(579, 14008),
     /**
      *
      *
@@ -9850,7 +10643,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 14009;
      */
-    CREATIVE_CUSTOM_FIELD_9_OPTION_ID(540, 14009),
+    CREATIVE_CUSTOM_FIELD_9_OPTION_ID(580, 14009),
     /**
      *
      *
@@ -9861,7 +10654,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 14010;
      */
-    CREATIVE_CUSTOM_FIELD_10_OPTION_ID(541, 14010),
+    CREATIVE_CUSTOM_FIELD_10_OPTION_ID(581, 14010),
     /**
      *
      *
@@ -9872,7 +10665,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 14011;
      */
-    CREATIVE_CUSTOM_FIELD_11_OPTION_ID(542, 14011),
+    CREATIVE_CUSTOM_FIELD_11_OPTION_ID(582, 14011),
     /**
      *
      *
@@ -9883,7 +10676,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 14012;
      */
-    CREATIVE_CUSTOM_FIELD_12_OPTION_ID(543, 14012),
+    CREATIVE_CUSTOM_FIELD_12_OPTION_ID(583, 14012),
     /**
      *
      *
@@ -9894,7 +10687,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 14013;
      */
-    CREATIVE_CUSTOM_FIELD_13_OPTION_ID(544, 14013),
+    CREATIVE_CUSTOM_FIELD_13_OPTION_ID(584, 14013),
     /**
      *
      *
@@ -9905,7 +10698,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 14014;
      */
-    CREATIVE_CUSTOM_FIELD_14_OPTION_ID(545, 14014),
+    CREATIVE_CUSTOM_FIELD_14_OPTION_ID(585, 14014),
     /**
      *
      *
@@ -9918,7 +10711,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_0_VALUE = 15000;
      */
-    CREATIVE_CUSTOM_FIELD_0_VALUE(546, 15000),
+    CREATIVE_CUSTOM_FIELD_0_VALUE(586, 15000),
     /**
      *
      *
@@ -9931,7 +10724,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_1_VALUE = 15001;
      */
-    CREATIVE_CUSTOM_FIELD_1_VALUE(547, 15001),
+    CREATIVE_CUSTOM_FIELD_1_VALUE(587, 15001),
     /**
      *
      *
@@ -9944,7 +10737,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_2_VALUE = 15002;
      */
-    CREATIVE_CUSTOM_FIELD_2_VALUE(548, 15002),
+    CREATIVE_CUSTOM_FIELD_2_VALUE(588, 15002),
     /**
      *
      *
@@ -9957,7 +10750,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_3_VALUE = 15003;
      */
-    CREATIVE_CUSTOM_FIELD_3_VALUE(549, 15003),
+    CREATIVE_CUSTOM_FIELD_3_VALUE(589, 15003),
     /**
      *
      *
@@ -9970,7 +10763,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_4_VALUE = 15004;
      */
-    CREATIVE_CUSTOM_FIELD_4_VALUE(550, 15004),
+    CREATIVE_CUSTOM_FIELD_4_VALUE(590, 15004),
     /**
      *
      *
@@ -9983,7 +10776,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_5_VALUE = 15005;
      */
-    CREATIVE_CUSTOM_FIELD_5_VALUE(551, 15005),
+    CREATIVE_CUSTOM_FIELD_5_VALUE(591, 15005),
     /**
      *
      *
@@ -9996,7 +10789,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_6_VALUE = 15006;
      */
-    CREATIVE_CUSTOM_FIELD_6_VALUE(552, 15006),
+    CREATIVE_CUSTOM_FIELD_6_VALUE(592, 15006),
     /**
      *
      *
@@ -10009,7 +10802,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_7_VALUE = 15007;
      */
-    CREATIVE_CUSTOM_FIELD_7_VALUE(553, 15007),
+    CREATIVE_CUSTOM_FIELD_7_VALUE(593, 15007),
     /**
      *
      *
@@ -10022,7 +10815,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_8_VALUE = 15008;
      */
-    CREATIVE_CUSTOM_FIELD_8_VALUE(554, 15008),
+    CREATIVE_CUSTOM_FIELD_8_VALUE(594, 15008),
     /**
      *
      *
@@ -10035,7 +10828,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_9_VALUE = 15009;
      */
-    CREATIVE_CUSTOM_FIELD_9_VALUE(555, 15009),
+    CREATIVE_CUSTOM_FIELD_9_VALUE(595, 15009),
     /**
      *
      *
@@ -10048,7 +10841,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_10_VALUE = 15010;
      */
-    CREATIVE_CUSTOM_FIELD_10_VALUE(556, 15010),
+    CREATIVE_CUSTOM_FIELD_10_VALUE(596, 15010),
     /**
      *
      *
@@ -10061,7 +10854,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_11_VALUE = 15011;
      */
-    CREATIVE_CUSTOM_FIELD_11_VALUE(557, 15011),
+    CREATIVE_CUSTOM_FIELD_11_VALUE(597, 15011),
     /**
      *
      *
@@ -10074,7 +10867,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_12_VALUE = 15012;
      */
-    CREATIVE_CUSTOM_FIELD_12_VALUE(558, 15012),
+    CREATIVE_CUSTOM_FIELD_12_VALUE(598, 15012),
     /**
      *
      *
@@ -10087,7 +10880,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_13_VALUE = 15013;
      */
-    CREATIVE_CUSTOM_FIELD_13_VALUE(559, 15013),
+    CREATIVE_CUSTOM_FIELD_13_VALUE(599, 15013),
     /**
      *
      *
@@ -10100,7 +10893,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CREATIVE_CUSTOM_FIELD_14_VALUE = 15014;
      */
-    CREATIVE_CUSTOM_FIELD_14_VALUE(560, 15014),
+    CREATIVE_CUSTOM_FIELD_14_VALUE(600, 15014),
     /**
      *
      *
@@ -10111,7 +10904,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID = 16000;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(561, 16000),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID(601, 16000),
     /**
      *
      *
@@ -10122,7 +10915,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID = 16001;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(562, 16001),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID(602, 16001),
     /**
      *
      *
@@ -10133,7 +10926,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID = 16002;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(563, 16002),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID(603, 16002),
     /**
      *
      *
@@ -10144,7 +10937,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID = 16003;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(564, 16003),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID(604, 16003),
     /**
      *
      *
@@ -10155,7 +10948,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID = 16004;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(565, 16004),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID(605, 16004),
     /**
      *
      *
@@ -10166,7 +10959,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID = 16005;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(566, 16005),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID(606, 16005),
     /**
      *
      *
@@ -10177,7 +10970,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID = 16006;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(567, 16006),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID(607, 16006),
     /**
      *
      *
@@ -10188,7 +10981,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID = 16007;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(568, 16007),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID(608, 16007),
     /**
      *
      *
@@ -10199,7 +10992,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID = 16008;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(569, 16008),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID(609, 16008),
     /**
      *
      *
@@ -10210,7 +11003,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID = 16009;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(570, 16009),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID(610, 16009),
     /**
      *
      *
@@ -10221,7 +11014,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID = 16010;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(571, 16010),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID(611, 16010),
     /**
      *
      *
@@ -10232,7 +11025,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID = 16011;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(572, 16011),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID(612, 16011),
     /**
      *
      *
@@ -10243,7 +11036,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID = 16012;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(573, 16012),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID(613, 16012),
     /**
      *
      *
@@ -10254,7 +11047,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID = 16013;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(574, 16013),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID(614, 16013),
     /**
      *
      *
@@ -10265,7 +11058,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID = 16014;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(575, 16014),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID(615, 16014),
     /**
      *
      *
@@ -10278,7 +11071,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE = 17000;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE(576, 17000),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_0_VALUE(616, 17000),
     /**
      *
      *
@@ -10291,7 +11084,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE = 17001;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE(577, 17001),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_1_VALUE(617, 17001),
     /**
      *
      *
@@ -10304,7 +11097,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE = 17002;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE(578, 17002),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_2_VALUE(618, 17002),
     /**
      *
      *
@@ -10317,7 +11110,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE = 17003;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE(579, 17003),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_3_VALUE(619, 17003),
     /**
      *
      *
@@ -10330,7 +11123,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE = 17004;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE(580, 17004),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_4_VALUE(620, 17004),
     /**
      *
      *
@@ -10343,7 +11136,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE = 17005;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE(581, 17005),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_5_VALUE(621, 17005),
     /**
      *
      *
@@ -10356,7 +11149,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE = 17006;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE(582, 17006),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_6_VALUE(622, 17006),
     /**
      *
      *
@@ -10369,7 +11162,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE = 17007;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE(583, 17007),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_7_VALUE(623, 17007),
     /**
      *
      *
@@ -10382,7 +11175,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE = 17008;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE(584, 17008),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_8_VALUE(624, 17008),
     /**
      *
      *
@@ -10395,7 +11188,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE = 17009;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE(585, 17009),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_9_VALUE(625, 17009),
     /**
      *
      *
@@ -10408,7 +11201,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE = 17010;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE(586, 17010),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_10_VALUE(626, 17010),
     /**
      *
      *
@@ -10421,7 +11214,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE = 17011;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE(587, 17011),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_11_VALUE(627, 17011),
     /**
      *
      *
@@ -10434,7 +11227,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE = 17012;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE(588, 17012),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_12_VALUE(628, 17012),
     /**
      *
      *
@@ -10447,7 +11240,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE = 17013;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE(589, 17013),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_13_VALUE(629, 17013),
     /**
      *
      *
@@ -10460,7 +11253,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE = 17014;
      */
-    BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE(590, 17014),
+    BACKFILL_LINE_ITEM_CUSTOM_FIELD_14_VALUE(630, 17014),
     /**
      *
      *
@@ -10471,7 +11264,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID = 18000;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID(591, 18000),
+    BACKFILL_ORDER_CUSTOM_FIELD_0_OPTION_ID(631, 18000),
     /**
      *
      *
@@ -10482,7 +11275,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID = 18001;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID(592, 18001),
+    BACKFILL_ORDER_CUSTOM_FIELD_1_OPTION_ID(632, 18001),
     /**
      *
      *
@@ -10493,7 +11286,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID = 18002;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID(593, 18002),
+    BACKFILL_ORDER_CUSTOM_FIELD_2_OPTION_ID(633, 18002),
     /**
      *
      *
@@ -10504,7 +11297,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID = 18003;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID(594, 18003),
+    BACKFILL_ORDER_CUSTOM_FIELD_3_OPTION_ID(634, 18003),
     /**
      *
      *
@@ -10515,7 +11308,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID = 18004;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID(595, 18004),
+    BACKFILL_ORDER_CUSTOM_FIELD_4_OPTION_ID(635, 18004),
     /**
      *
      *
@@ -10526,7 +11319,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID = 18005;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID(596, 18005),
+    BACKFILL_ORDER_CUSTOM_FIELD_5_OPTION_ID(636, 18005),
     /**
      *
      *
@@ -10537,7 +11330,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID = 18006;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID(597, 18006),
+    BACKFILL_ORDER_CUSTOM_FIELD_6_OPTION_ID(637, 18006),
     /**
      *
      *
@@ -10548,7 +11341,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID = 18007;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID(598, 18007),
+    BACKFILL_ORDER_CUSTOM_FIELD_7_OPTION_ID(638, 18007),
     /**
      *
      *
@@ -10559,7 +11352,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID = 18008;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID(599, 18008),
+    BACKFILL_ORDER_CUSTOM_FIELD_8_OPTION_ID(639, 18008),
     /**
      *
      *
@@ -10570,7 +11363,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID = 18009;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID(600, 18009),
+    BACKFILL_ORDER_CUSTOM_FIELD_9_OPTION_ID(640, 18009),
     /**
      *
      *
@@ -10581,7 +11374,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID = 18010;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID(601, 18010),
+    BACKFILL_ORDER_CUSTOM_FIELD_10_OPTION_ID(641, 18010),
     /**
      *
      *
@@ -10592,7 +11385,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID = 18011;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID(602, 18011),
+    BACKFILL_ORDER_CUSTOM_FIELD_11_OPTION_ID(642, 18011),
     /**
      *
      *
@@ -10603,7 +11396,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID = 18012;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID(603, 18012),
+    BACKFILL_ORDER_CUSTOM_FIELD_12_OPTION_ID(643, 18012),
     /**
      *
      *
@@ -10614,7 +11407,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID = 18013;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID(604, 18013),
+    BACKFILL_ORDER_CUSTOM_FIELD_13_OPTION_ID(644, 18013),
     /**
      *
      *
@@ -10625,7 +11418,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID = 18014;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID(605, 18014),
+    BACKFILL_ORDER_CUSTOM_FIELD_14_OPTION_ID(645, 18014),
     /**
      *
      *
@@ -10639,7 +11432,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE = 19000;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE(606, 19000),
+    BACKFILL_ORDER_CUSTOM_FIELD_0_VALUE(646, 19000),
     /**
      *
      *
@@ -10652,7 +11445,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE = 19001;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE(607, 19001),
+    BACKFILL_ORDER_CUSTOM_FIELD_1_VALUE(647, 19001),
     /**
      *
      *
@@ -10665,7 +11458,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE = 19002;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE(608, 19002),
+    BACKFILL_ORDER_CUSTOM_FIELD_2_VALUE(648, 19002),
     /**
      *
      *
@@ -10678,7 +11471,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE = 19003;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE(609, 19003),
+    BACKFILL_ORDER_CUSTOM_FIELD_3_VALUE(649, 19003),
     /**
      *
      *
@@ -10691,7 +11484,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE = 19004;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE(610, 19004),
+    BACKFILL_ORDER_CUSTOM_FIELD_4_VALUE(650, 19004),
     /**
      *
      *
@@ -10704,7 +11497,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE = 19005;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE(611, 19005),
+    BACKFILL_ORDER_CUSTOM_FIELD_5_VALUE(651, 19005),
     /**
      *
      *
@@ -10717,7 +11510,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE = 19006;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE(612, 19006),
+    BACKFILL_ORDER_CUSTOM_FIELD_6_VALUE(652, 19006),
     /**
      *
      *
@@ -10730,7 +11523,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE = 19007;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE(613, 19007),
+    BACKFILL_ORDER_CUSTOM_FIELD_7_VALUE(653, 19007),
     /**
      *
      *
@@ -10743,7 +11536,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE = 19008;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE(614, 19008),
+    BACKFILL_ORDER_CUSTOM_FIELD_8_VALUE(654, 19008),
     /**
      *
      *
@@ -10756,7 +11549,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE = 19009;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE(615, 19009),
+    BACKFILL_ORDER_CUSTOM_FIELD_9_VALUE(655, 19009),
     /**
      *
      *
@@ -10769,7 +11562,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE = 19010;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE(616, 19010),
+    BACKFILL_ORDER_CUSTOM_FIELD_10_VALUE(656, 19010),
     /**
      *
      *
@@ -10782,7 +11575,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE = 19011;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE(617, 19011),
+    BACKFILL_ORDER_CUSTOM_FIELD_11_VALUE(657, 19011),
     /**
      *
      *
@@ -10795,7 +11588,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE = 19012;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE(618, 19012),
+    BACKFILL_ORDER_CUSTOM_FIELD_12_VALUE(658, 19012),
     /**
      *
      *
@@ -10808,7 +11601,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE = 19013;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE(619, 19013),
+    BACKFILL_ORDER_CUSTOM_FIELD_13_VALUE(659, 19013),
     /**
      *
      *
@@ -10821,7 +11614,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE = 19014;
      */
-    BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE(620, 19014),
+    BACKFILL_ORDER_CUSTOM_FIELD_14_VALUE(660, 19014),
     /**
      *
      *
@@ -10832,7 +11625,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID = 20000;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID(621, 20000),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_0_OPTION_ID(661, 20000),
     /**
      *
      *
@@ -10843,7 +11636,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID = 20001;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID(622, 20001),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_1_OPTION_ID(662, 20001),
     /**
      *
      *
@@ -10854,7 +11647,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID = 20002;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID(623, 20002),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_2_OPTION_ID(663, 20002),
     /**
      *
      *
@@ -10865,7 +11658,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID = 20003;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID(624, 20003),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_3_OPTION_ID(664, 20003),
     /**
      *
      *
@@ -10876,7 +11669,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID = 20004;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID(625, 20004),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_4_OPTION_ID(665, 20004),
     /**
      *
      *
@@ -10887,7 +11680,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID = 20005;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID(626, 20005),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_5_OPTION_ID(666, 20005),
     /**
      *
      *
@@ -10898,7 +11691,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID = 20006;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID(627, 20006),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_6_OPTION_ID(667, 20006),
     /**
      *
      *
@@ -10909,7 +11702,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID = 20007;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID(628, 20007),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_7_OPTION_ID(668, 20007),
     /**
      *
      *
@@ -10920,7 +11713,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID = 20008;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID(629, 20008),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_8_OPTION_ID(669, 20008),
     /**
      *
      *
@@ -10931,7 +11724,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID = 20009;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID(630, 20009),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_9_OPTION_ID(670, 20009),
     /**
      *
      *
@@ -10942,7 +11735,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID = 20010;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID(631, 20010),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_10_OPTION_ID(671, 20010),
     /**
      *
      *
@@ -10953,7 +11746,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID = 20011;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID(632, 20011),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_11_OPTION_ID(672, 20011),
     /**
      *
      *
@@ -10964,7 +11757,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID = 20012;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID(633, 20012),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_12_OPTION_ID(673, 20012),
     /**
      *
      *
@@ -10975,7 +11768,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID = 20013;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID(634, 20013),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_13_OPTION_ID(674, 20013),
     /**
      *
      *
@@ -10986,7 +11779,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID = 20014;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID(635, 20014),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_14_OPTION_ID(675, 20014),
     /**
      *
      *
@@ -11000,7 +11793,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE = 21000;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE(636, 21000),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_0_VALUE(676, 21000),
     /**
      *
      *
@@ -11013,7 +11806,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE = 21001;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE(637, 21001),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_1_VALUE(677, 21001),
     /**
      *
      *
@@ -11026,7 +11819,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE = 21002;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE(638, 21002),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_2_VALUE(678, 21002),
     /**
      *
      *
@@ -11039,7 +11832,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE = 21003;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE(639, 21003),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_3_VALUE(679, 21003),
     /**
      *
      *
@@ -11052,7 +11845,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE = 21004;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE(640, 21004),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_4_VALUE(680, 21004),
     /**
      *
      *
@@ -11065,7 +11858,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE = 21005;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE(641, 21005),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_5_VALUE(681, 21005),
     /**
      *
      *
@@ -11078,7 +11871,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE = 21006;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE(642, 21006),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_6_VALUE(682, 21006),
     /**
      *
      *
@@ -11091,7 +11884,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE = 21007;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE(643, 21007),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_7_VALUE(683, 21007),
     /**
      *
      *
@@ -11104,7 +11897,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE = 21008;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE(644, 21008),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_8_VALUE(684, 21008),
     /**
      *
      *
@@ -11117,7 +11910,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE = 21009;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE(645, 21009),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_9_VALUE(685, 21009),
     /**
      *
      *
@@ -11130,7 +11923,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE = 21010;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE(646, 21010),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_10_VALUE(686, 21010),
     /**
      *
      *
@@ -11143,7 +11936,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE = 21011;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE(647, 21011),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_11_VALUE(687, 21011),
     /**
      *
      *
@@ -11156,7 +11949,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE = 21012;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE(648, 21012),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_12_VALUE(688, 21012),
     /**
      *
      *
@@ -11169,7 +11962,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE = 21013;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE(649, 21013),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_13_VALUE(689, 21013),
     /**
      *
      *
@@ -11182,7 +11975,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE = 21014;
      */
-    BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE(650, 21014),
+    BACKFILL_CREATIVE_CUSTOM_FIELD_14_VALUE(690, 21014),
     /**
      *
      *
@@ -11193,7 +11986,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_0_VALUE_ID = 100000;
      */
-    CUSTOM_DIMENSION_0_VALUE_ID(651, 100000),
+    CUSTOM_DIMENSION_0_VALUE_ID(691, 100000),
     /**
      *
      *
@@ -11204,7 +11997,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_1_VALUE_ID = 100001;
      */
-    CUSTOM_DIMENSION_1_VALUE_ID(652, 100001),
+    CUSTOM_DIMENSION_1_VALUE_ID(692, 100001),
     /**
      *
      *
@@ -11215,7 +12008,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_2_VALUE_ID = 100002;
      */
-    CUSTOM_DIMENSION_2_VALUE_ID(653, 100002),
+    CUSTOM_DIMENSION_2_VALUE_ID(693, 100002),
     /**
      *
      *
@@ -11226,7 +12019,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_3_VALUE_ID = 100003;
      */
-    CUSTOM_DIMENSION_3_VALUE_ID(654, 100003),
+    CUSTOM_DIMENSION_3_VALUE_ID(694, 100003),
     /**
      *
      *
@@ -11237,7 +12030,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_4_VALUE_ID = 100004;
      */
-    CUSTOM_DIMENSION_4_VALUE_ID(655, 100004),
+    CUSTOM_DIMENSION_4_VALUE_ID(695, 100004),
     /**
      *
      *
@@ -11248,7 +12041,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_5_VALUE_ID = 100005;
      */
-    CUSTOM_DIMENSION_5_VALUE_ID(656, 100005),
+    CUSTOM_DIMENSION_5_VALUE_ID(696, 100005),
     /**
      *
      *
@@ -11259,7 +12052,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_6_VALUE_ID = 100006;
      */
-    CUSTOM_DIMENSION_6_VALUE_ID(657, 100006),
+    CUSTOM_DIMENSION_6_VALUE_ID(697, 100006),
     /**
      *
      *
@@ -11270,7 +12063,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_7_VALUE_ID = 100007;
      */
-    CUSTOM_DIMENSION_7_VALUE_ID(658, 100007),
+    CUSTOM_DIMENSION_7_VALUE_ID(698, 100007),
     /**
      *
      *
@@ -11281,7 +12074,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_8_VALUE_ID = 100008;
      */
-    CUSTOM_DIMENSION_8_VALUE_ID(659, 100008),
+    CUSTOM_DIMENSION_8_VALUE_ID(699, 100008),
     /**
      *
      *
@@ -11292,7 +12085,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_9_VALUE_ID = 100009;
      */
-    CUSTOM_DIMENSION_9_VALUE_ID(660, 100009),
+    CUSTOM_DIMENSION_9_VALUE_ID(700, 100009),
     /**
      *
      *
@@ -11303,7 +12096,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_0_VALUE = 101000;
      */
-    CUSTOM_DIMENSION_0_VALUE(661, 101000),
+    CUSTOM_DIMENSION_0_VALUE(701, 101000),
     /**
      *
      *
@@ -11314,7 +12107,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_1_VALUE = 101001;
      */
-    CUSTOM_DIMENSION_1_VALUE(662, 101001),
+    CUSTOM_DIMENSION_1_VALUE(702, 101001),
     /**
      *
      *
@@ -11325,7 +12118,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_2_VALUE = 101002;
      */
-    CUSTOM_DIMENSION_2_VALUE(663, 101002),
+    CUSTOM_DIMENSION_2_VALUE(703, 101002),
     /**
      *
      *
@@ -11336,7 +12129,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_3_VALUE = 101003;
      */
-    CUSTOM_DIMENSION_3_VALUE(664, 101003),
+    CUSTOM_DIMENSION_3_VALUE(704, 101003),
     /**
      *
      *
@@ -11347,7 +12140,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_4_VALUE = 101004;
      */
-    CUSTOM_DIMENSION_4_VALUE(665, 101004),
+    CUSTOM_DIMENSION_4_VALUE(705, 101004),
     /**
      *
      *
@@ -11358,7 +12151,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_5_VALUE = 101005;
      */
-    CUSTOM_DIMENSION_5_VALUE(666, 101005),
+    CUSTOM_DIMENSION_5_VALUE(706, 101005),
     /**
      *
      *
@@ -11369,7 +12162,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_6_VALUE = 101006;
      */
-    CUSTOM_DIMENSION_6_VALUE(667, 101006),
+    CUSTOM_DIMENSION_6_VALUE(707, 101006),
     /**
      *
      *
@@ -11380,7 +12173,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_7_VALUE = 101007;
      */
-    CUSTOM_DIMENSION_7_VALUE(668, 101007),
+    CUSTOM_DIMENSION_7_VALUE(708, 101007),
     /**
      *
      *
@@ -11391,7 +12184,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_8_VALUE = 101008;
      */
-    CUSTOM_DIMENSION_8_VALUE(669, 101008),
+    CUSTOM_DIMENSION_8_VALUE(709, 101008),
     /**
      *
      *
@@ -11402,7 +12195,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      * CUSTOM_DIMENSION_9_VALUE = 101009;
      */
-    CUSTOM_DIMENSION_9_VALUE(670, 101009),
+    CUSTOM_DIMENSION_9_VALUE(710, 101009),
     UNRECOGNIZED(-1, -1),
     ;
 
@@ -11509,7 +12302,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Advertiser credit status locallized name
+     * Advertiser credit status localized name
      *
      *
      *
@@ -11686,7 +12479,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Advertiser status locallized name
+     * Advertiser status localized name
      *
      *
      *
@@ -11726,7 +12519,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Advertiser type locallized name
+     * Advertiser type localized name
      *
      *
      *
@@ -11773,7 +12566,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Ad Exchange product value" in the Ad Manager UI (when
      * showing API fields).
      *
-     * Compatible with the following report types: `HISTORICAL`
+     * Compatible with the following report types: `HISTORICAL`,
+     * `REVENUE_VERIFICATION`
      *
      * Data format: `ENUM`
      * 
@@ -11793,7 +12587,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Ad Exchange product" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
@@ -11882,6 +12677,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AD_LOCATION_NAME_VALUE = 391; + /** + * + * + *
+     * Multi-size inventory in an ad request.
+     *
+     *
+     *
+     * Corresponds to "Ad request sizes" in the Ad Manager UI.
+     *
+     * Compatible with the following report types:
+     *
+     * Data format: `STRING_LIST`
+     * 
+ * + * AD_REQUEST_SIZES = 541; + */ + public static final int AD_REQUEST_SIZES_VALUE = 541; + /** * * @@ -13286,6 +14100,44 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AGE_BRACKET_NAME_VALUE = 582; + /** + * + * + *
+     * Property ID in Google Analytics
+     *
+     *
+     *
+     * Corresponds to "Analytics property ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * ANALYTICS_PROPERTY_ID = 733; + */ + public static final int ANALYTICS_PROPERTY_ID_VALUE = 733; + + /** + * + * + *
+     * Property name in Google Analytics
+     *
+     *
+     *
+     * Corresponds to "Analytics property" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * ANALYTICS_PROPERTY_NAME = 767; + */ + public static final int ANALYTICS_PROPERTY_NAME_VALUE = 767; + /** * * @@ -13383,6 +14235,82 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUCTION_PACKAGE_DEAL_ID_VALUE = 571; + /** + * + * + *
+     * Name of billable audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (billable)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_BILLABLE = 594; + */ + public static final int AUDIENCE_SEGMENT_BILLABLE_VALUE = 594; + + /** + * + * + *
+     * ID of the data provider for the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment data provider ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * AUDIENCE_SEGMENT_DATA_PROVIDER_ID = 613; + */ + public static final int AUDIENCE_SEGMENT_DATA_PROVIDER_ID_VALUE = 613; + + /** + * + * + *
+     * Name of the data provider for the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment data provider" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 614; + */ + public static final int AUDIENCE_SEGMENT_DATA_PROVIDER_NAME_VALUE = 614; + + /** + * + * + *
+     * ID of billable audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment ID (billable)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * AUDIENCE_SEGMENT_ID_BILLABLE = 595; + */ + public static final int AUDIENCE_SEGMENT_ID_BILLABLE_VALUE = 595; + /** * * @@ -13423,6 +14351,284 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AUDIENCE_SEGMENT_TARGETED_VALUE = 585; + /** + * + * + *
+     * Number of AdID identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) AdID size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE = 605; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE_VALUE = 605; + + /** + * + * + *
+     * Number of Amazon Fire identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Amazon Fire size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE = 606; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE_VALUE = 606; + + /** + * + * + *
+     * Number of Android TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Android TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE = 607; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE_VALUE = 607; + + /** + * + * + *
+     * Number of Apple TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Apple TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE = 608; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE_VALUE = 608; + + /** + * + * + *
+     * Number of IDFA identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) IDFA size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE = 609; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE_VALUE = 609; + + /** + * + * + *
+     * Number of mobile web identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) mobile web size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE = 610; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE_VALUE = 610; + + /** + * + * + *
+     * Number of PlayStation identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) PlayStation size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE = 611; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE_VALUE = 611; + + /** + * + * + *
+     * Number of PPID identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) PPID size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE = 612; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE_VALUE = 612; + + /** + * + * + *
+     * Number of Roku identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Roku size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE = 615; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE_VALUE = 615; + + /** + * + * + *
+     * Number of Samsung TV identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Samsung TV size" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE = 616; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE_VALUE = 616; + + /** + * + * + *
+     * Number of identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) size" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_SIZE = 618; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_SIZE_VALUE = 618; + + /** + * + * + *
+     * Status of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) status value" in the Ad
+     * Manager UI (when showing API fields).
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `ENUM`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_STATUS = 628; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_STATUS_VALUE = 628; + + /** + * + * + *
+     * Name of the status of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) status" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_STATUS_NAME = 617; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_STATUS_NAME_VALUE = 617; + + /** + * + * + *
+     * Number of Xbox identifiers in the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment (targeted) Xbox size" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE = 619; + */ + public static final int AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE_VALUE = 619; + /** * * @@ -13472,7 +14678,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Bidder encrypted ID" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
@@ -13491,7 +14698,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Bidder" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
@@ -13983,6 +15191,82 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CLASSIFIED_BRAND_NAME_VALUE = 244; + /** + * + * + *
+     * ID of the video content bundle served.
+     *
+     *
+     *
+     * Corresponds to "Content bundle ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * CONTENT_BUNDLE_ID = 460; + */ + public static final int CONTENT_BUNDLE_ID_VALUE = 460; + + /** + * + * + *
+     * Name of the video content bundle served.
+     *
+     *
+     *
+     * Corresponds to "Content bundle" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * CONTENT_BUNDLE_NAME = 461; + */ + public static final int CONTENT_BUNDLE_NAME_VALUE = 461; + + /** + * + * + *
+     * ID of the video content metadata namespace served.
+     *
+     *
+     *
+     * Corresponds to "CMS metadata key ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * CONTENT_CMS_METADATA_KV_NAMESPACE_ID = 462; + */ + public static final int CONTENT_CMS_METADATA_KV_NAMESPACE_ID_VALUE = 462; + + /** + * + * + *
+     * Name of the video content metadata namespace served.
+     *
+     *
+     *
+     * Corresponds to "CMS metadata key" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * CONTENT_CMS_METADATA_KV_NAMESPACE_NAME = 463; + */ + public static final int CONTENT_CMS_METADATA_KV_NAMESPACE_NAME_VALUE = 463; + /** * * @@ -14337,7 +15621,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Creative Protections filtering (Publisher Blocks Enforcement).
+     * Creative Protections filtering.
      *
      *
      *
@@ -14437,7 +15721,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Creative technology locallized name
+     * Creative technology localized name
      *
      *
      *
@@ -14735,7 +16019,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Date" in the Ad Manager UI.
      *
      * Compatible with the following report types: `HISTORICAL`, `REACH`,
-     * `PRIVACY_AND_MESSAGING`, `AD_SPEED`
+     * `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `AD_SPEED`
      *
      * Data format: `DATE`
      * 
@@ -14893,7 +16177,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * API fields). * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `AD_SPEED` + * `REVENUE_VERIFICATION`, `AD_SPEED` * * Data format: `ENUM` *
@@ -14913,7 +16197,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Demand channel" in the Ad Manager UI. * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `AD_SPEED` + * `REVENUE_VERIFICATION`, `AD_SPEED` * * Data format: `STRING` *
@@ -15155,9 +16439,9 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Data format: `STRING` * * - * DEVICE_NAME = 225; + * DEVICE_NAME = 225 [deprecated = true]; */ - public static final int DEVICE_NAME_VALUE = 225; + @java.lang.Deprecated public static final int DEVICE_NAME_VALUE = 225; /** * @@ -16115,6 +17399,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int KEY_VALUES_NAME_VALUE = 215; + /** + * + * + *
+     * The custom criteria key-values specified in ad requests.
+     *
+     *
+     *
+     * Corresponds to "Key-values" in the Ad Manager UI.
+     *
+     * Compatible with the following report types:
+     *
+     * Data format: `STRING_LIST`
+     * 
+ * + * KEY_VALUES_SET = 713; + */ + public static final int KEY_VALUES_SET_VALUE = 713; + /** * * @@ -16157,7 +17460,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Line item comanion delivery option ENUM value.
+     * Line item companion delivery option ENUM value.
      *
      *
      *
@@ -16177,7 +17480,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Localized line item comanion delivery option name.
+     * Localized line item companion delivery option name.
      *
      *
      *
@@ -16851,7 +18154,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      *
      *
      * 
-     * Whether a Line item is eligible for opitimization.
+     * Whether a Line item is eligible for optimization.
      *
      *
      *
@@ -17669,7 +18972,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      * Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing
      * API fields).
      *
-     * Compatible with the following report types: `HISTORICAL`
+     * Compatible with the following report types: `HISTORICAL`,
+     * `REVENUE_VERIFICATION`
      *
      * Data format: `ENUM`
      * 
@@ -17688,7 +18992,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Rendering SDK" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` *
@@ -17765,7 +19070,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Month and year" in the Ad Manager UI. * * Compatible with the following report types: `HISTORICAL`, `REACH`, - * `PRIVACY_AND_MESSAGING` + * `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `PARTNER_FINANCE` * * Data format: `INTEGER` *
@@ -18608,6 +19913,86 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PAGE_TITLE_AND_SCREEN_NAME_VALUE = 513; + /** + * + * + *
+     * The ID of a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management assignment ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_ASSIGNMENT_ID = 657; + */ + public static final int PARTNER_MANAGEMENT_ASSIGNMENT_ID_VALUE = 657; + + /** + * + * + *
+     * The name of a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management assignment" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `STRING`
+     * 
+ * + * PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 658; + */ + public static final int PARTNER_MANAGEMENT_ASSIGNMENT_NAME_VALUE = 658; + + /** + * + * + *
+     * The ID of a partner in a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_ID = 655; + */ + public static final int PARTNER_MANAGEMENT_PARTNER_ID_VALUE = 655; + + /** + * + * + *
+     * The name of a partner in a partner management assignment.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `STRING`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_NAME = 656; + */ + public static final int PARTNER_MANAGEMENT_PARTNER_NAME_VALUE = 656; + /** * * @@ -18978,7 +20363,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * Corresponds to "Programmatic channel value" in the Ad Manager UI (when * showing API fields). * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, + * `REVENUE_VERIFICATION` * * Data format: `ENUM` * @@ -18998,7 +20384,8 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Programmatic channel" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL`, `REACH` + * Compatible with the following report types: `HISTORICAL`, `REACH`, + * `REVENUE_VERIFICATION` * * Data format: `STRING` * @@ -19491,7 +20878,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Request type locallized name
+     * Request type localized name
      *
      *
      *
@@ -19506,6 +20893,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int REQUEST_TYPE_NAME_VALUE = 147;
 
+    /**
+     *
+     *
+     * 
+     * Revenue Verification bidder-provided ID.
+     *
+     *
+     *
+     * Corresponds to "Revenue verification ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `IDENTIFIER`
+     * 
+ * + * REVENUE_VERIFICATION_ID = 645; + */ + public static final int REVENUE_VERIFICATION_ID_VALUE = 645; + /** * * @@ -19879,6 +21285,45 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int URL_ID_VALUE = 507; + /** + * + * + *
+     * The choice made in a user message.
+     *
+     *
+     *
+     * Corresponds to "User choice value" in the Ad Manager UI (when showing API
+     * fields).
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `ENUM`
+     * 
+ * + * USER_MESSAGES_CHOICE = 702; + */ + public static final int USER_MESSAGES_CHOICE_VALUE = 702; + + /** + * + * + *
+     * Localized name of the choice made in a user message.
+     *
+     *
+     *
+     * Corresponds to "User choice" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `STRING`
+     * 
+ * + * USER_MESSAGES_CHOICE_NAME = 703; + */ + public static final int USER_MESSAGES_CHOICE_NAME_VALUE = 703; + /** * * @@ -20289,6 +21734,121 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_FALLBACK_POSITION_VALUE = 530; + /** + * + * + *
+     * The duration of the ad break in seconds for a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Ad break duration (seconds)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION = 547; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION_VALUE = 547; + + /** + * + * + *
+     * The ID of the ad break in a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ad break ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID = 548; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID_VALUE = 548; + + /** + * + * + *
+     * The name of the ad break in a live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ad break" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME = 549; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME_VALUE = 549; + + /** + * + * + *
+     * The time of the ad break in a live stream event in the format of
+     *  YYYY-MM-DD HH:MM:SS+Timezone.
+     *
+     *
+     *
+     * Corresponds to "Ad break time" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `TIMESTAMP`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME = 550; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME_VALUE = 550; + + /** + * + * + *
+     * The ID of the live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream ID" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_ID = 551; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_ID_VALUE = 551; + + /** + * + * + *
+     * The name of the live stream event.
+     *
+     *
+     *
+     * Corresponds to "Live stream" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * VIDEO_LIVE_STREAM_EVENT_NAME = 552; + */ + public static final int VIDEO_LIVE_STREAM_EVENT_NAME_VALUE = 552; + /** * * @@ -20484,6 +22044,25 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_STITCHER_TYPE_NAME_VALUE = 753; + /** + * + * + *
+     * Web property code
+     *
+     *
+     *
+     * Corresponds to "Web property code" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `STRING`
+     * 
+ * + * WEB_PROPERTY_CODE = 730; + */ + public static final int WEB_PROPERTY_CODE_VALUE = 730; + /** * * @@ -20645,7 +22224,7 @@ public enum Dimension implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * YouTube instream Ad Type locallized name.
+     * YouTube instream Ad Type localized name.
      *
      *
      *
@@ -23312,6 +24891,8 @@ public static Dimension forNumber(int value) {
           return AD_LOCATION;
         case 391:
           return AD_LOCATION_NAME;
+        case 541:
+          return AD_REQUEST_SIZES;
         case 620:
           return AD_TECHNOLOGY_PROVIDER_DOMAIN;
         case 621:
@@ -23456,6 +25037,10 @@ public static Dimension forNumber(int value) {
           return AGE_BRACKET;
         case 582:
           return AGE_BRACKET_NAME;
+        case 733:
+          return ANALYTICS_PROPERTY_ID;
+        case 767:
+          return ANALYTICS_PROPERTY_NAME;
         case 442:
           return APP_TRACKING_TRANSPARENCY_CONSENT_STATUS;
         case 443:
@@ -23466,10 +25051,46 @@ public static Dimension forNumber(int value) {
           return AUCTION_PACKAGE_DEAL;
         case 571:
           return AUCTION_PACKAGE_DEAL_ID;
+        case 594:
+          return AUDIENCE_SEGMENT_BILLABLE;
+        case 613:
+          return AUDIENCE_SEGMENT_DATA_PROVIDER_ID;
+        case 614:
+          return AUDIENCE_SEGMENT_DATA_PROVIDER_NAME;
+        case 595:
+          return AUDIENCE_SEGMENT_ID_BILLABLE;
         case 584:
           return AUDIENCE_SEGMENT_ID_TARGETED;
         case 585:
           return AUDIENCE_SEGMENT_TARGETED;
+        case 605:
+          return AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE;
+        case 606:
+          return AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE;
+        case 607:
+          return AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE;
+        case 608:
+          return AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE;
+        case 609:
+          return AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE;
+        case 610:
+          return AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE;
+        case 611:
+          return AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE;
+        case 612:
+          return AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE;
+        case 615:
+          return AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE;
+        case 616:
+          return AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE;
+        case 618:
+          return AUDIENCE_SEGMENT_TARGETED_SIZE;
+        case 628:
+          return AUDIENCE_SEGMENT_TARGETED_STATUS;
+        case 617:
+          return AUDIENCE_SEGMENT_TARGETED_STATUS_NAME;
+        case 619:
+          return AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE;
         case 421:
           return AUTO_REFRESHED_TRAFFIC;
         case 422:
@@ -23528,6 +25149,14 @@ public static Dimension forNumber(int value) {
           return CLASSIFIED_BRAND_ID;
         case 244:
           return CLASSIFIED_BRAND_NAME;
+        case 460:
+          return CONTENT_BUNDLE_ID;
+        case 461:
+          return CONTENT_BUNDLE_NAME;
+        case 462:
+          return CONTENT_CMS_METADATA_KV_NAMESPACE_ID;
+        case 463:
+          return CONTENT_CMS_METADATA_KV_NAMESPACE_NAME;
         case 643:
           return CONTENT_CMS_NAME;
         case 644:
@@ -23746,6 +25375,8 @@ public static Dimension forNumber(int value) {
           return KEY_VALUES_ID;
         case 215:
           return KEY_VALUES_NAME;
+        case 713:
+          return KEY_VALUES_SET;
         case 663:
           return LINE_ITEM_AGENCY;
         case 188:
@@ -23998,6 +25629,14 @@ public static Dimension forNumber(int value) {
           return PAGE_TITLE_AND_SCREEN_CLASS;
         case 513:
           return PAGE_TITLE_AND_SCREEN_NAME;
+        case 657:
+          return PARTNER_MANAGEMENT_ASSIGNMENT_ID;
+        case 658:
+          return PARTNER_MANAGEMENT_ASSIGNMENT_NAME;
+        case 655:
+          return PARTNER_MANAGEMENT_PARTNER_ID;
+        case 656:
+          return PARTNER_MANAGEMENT_PARTNER_NAME;
         case 113:
           return PLACEMENT_ID;
         case 144:
@@ -24086,6 +25725,8 @@ public static Dimension forNumber(int value) {
           return REQUEST_TYPE;
         case 147:
           return REQUEST_TYPE_NAME;
+        case 645:
+          return REVENUE_VERIFICATION_ID;
         case 597:
           return SERVER_SIDE_UNWRAPPING_ELIGIBLE;
         case 631:
@@ -24124,6 +25765,10 @@ public static Dimension forNumber(int value) {
           return URL;
         case 507:
           return URL_ID;
+        case 702:
+          return USER_MESSAGES_CHOICE;
+        case 703:
+          return USER_MESSAGES_CHOICE_NAME;
         case 635:
           return USER_MESSAGES_ENTITLEMENT_SOURCE;
         case 636:
@@ -24166,6 +25811,18 @@ public static Dimension forNumber(int value) {
           return VIDEO_CONTINUOUS_PLAY_TYPE_NAME;
         case 530:
           return VIDEO_FALLBACK_POSITION;
+        case 547:
+          return VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION;
+        case 548:
+          return VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID;
+        case 549:
+          return VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME;
+        case 550:
+          return VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME;
+        case 551:
+          return VIDEO_LIVE_STREAM_EVENT_ID;
+        case 552:
+          return VIDEO_LIVE_STREAM_EVENT_NAME;
         case 601:
           return VIDEO_MEASUREMENT_SOURCE;
         case 602:
@@ -24186,6 +25843,8 @@ public static Dimension forNumber(int value) {
           return VIDEO_STITCHER_TYPE;
         case 753:
           return VIDEO_STITCHER_TYPE_NAME;
+        case 730:
+          return WEB_PROPERTY_CODE;
         case 5:
           return WEEK;
         case 184:
@@ -24663,6 +26322,7 @@ private static Dimension[] getStaticValuesArray() {
         AD_EXPERIENCES_TYPE_NAME,
         AD_LOCATION,
         AD_LOCATION_NAME,
+        AD_REQUEST_SIZES,
         AD_TECHNOLOGY_PROVIDER_DOMAIN,
         AD_TECHNOLOGY_PROVIDER_ID,
         AD_TECHNOLOGY_PROVIDER_NAME,
@@ -24735,13 +26395,33 @@ private static Dimension[] getStaticValuesArray() {
         AGENCY_LEVEL_3_NAME,
         AGE_BRACKET,
         AGE_BRACKET_NAME,
+        ANALYTICS_PROPERTY_ID,
+        ANALYTICS_PROPERTY_NAME,
         APP_TRACKING_TRANSPARENCY_CONSENT_STATUS,
         APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME,
         APP_VERSION,
         AUCTION_PACKAGE_DEAL,
         AUCTION_PACKAGE_DEAL_ID,
+        AUDIENCE_SEGMENT_BILLABLE,
+        AUDIENCE_SEGMENT_DATA_PROVIDER_ID,
+        AUDIENCE_SEGMENT_DATA_PROVIDER_NAME,
+        AUDIENCE_SEGMENT_ID_BILLABLE,
         AUDIENCE_SEGMENT_ID_TARGETED,
         AUDIENCE_SEGMENT_TARGETED,
+        AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_SIZE,
+        AUDIENCE_SEGMENT_TARGETED_STATUS,
+        AUDIENCE_SEGMENT_TARGETED_STATUS_NAME,
+        AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE,
         AUTO_REFRESHED_TRAFFIC,
         AUTO_REFRESHED_TRAFFIC_NAME,
         BIDDER_ENCRYPTED_ID,
@@ -24771,6 +26451,10 @@ private static Dimension[] getStaticValuesArray() {
         CLASSIFIED_ADVERTISER_NAME,
         CLASSIFIED_BRAND_ID,
         CLASSIFIED_BRAND_NAME,
+        CONTENT_BUNDLE_ID,
+        CONTENT_BUNDLE_NAME,
+        CONTENT_CMS_METADATA_KV_NAMESPACE_ID,
+        CONTENT_CMS_METADATA_KV_NAMESPACE_NAME,
         CONTENT_CMS_NAME,
         CONTENT_CMS_VIDEO_ID,
         CONTENT_ID,
@@ -24880,6 +26564,7 @@ private static Dimension[] getStaticValuesArray() {
         IS_FIRST_LOOK_DEAL,
         KEY_VALUES_ID,
         KEY_VALUES_NAME,
+        KEY_VALUES_SET,
         LINE_ITEM_AGENCY,
         LINE_ITEM_ARCHIVED,
         LINE_ITEM_COMPANION_DELIVERY_OPTION,
@@ -25006,6 +26691,10 @@ private static Dimension[] getStaticValuesArray() {
         PAGE_PATH,
         PAGE_TITLE_AND_SCREEN_CLASS,
         PAGE_TITLE_AND_SCREEN_NAME,
+        PARTNER_MANAGEMENT_ASSIGNMENT_ID,
+        PARTNER_MANAGEMENT_ASSIGNMENT_NAME,
+        PARTNER_MANAGEMENT_PARTNER_ID,
+        PARTNER_MANAGEMENT_PARTNER_NAME,
         PLACEMENT_ID,
         PLACEMENT_ID_ALL,
         PLACEMENT_NAME,
@@ -25052,6 +26741,7 @@ private static Dimension[] getStaticValuesArray() {
         REQUESTED_AD_SIZES,
         REQUEST_TYPE,
         REQUEST_TYPE_NAME,
+        REVENUE_VERIFICATION_ID,
         SERVER_SIDE_UNWRAPPING_ELIGIBLE,
         SERVING_RESTRICTION,
         SERVING_RESTRICTION_NAME,
@@ -25071,6 +26761,8 @@ private static Dimension[] getStaticValuesArray() {
         UNIFIED_PRICING_RULE_NAME,
         URL,
         URL_ID,
+        USER_MESSAGES_CHOICE,
+        USER_MESSAGES_CHOICE_NAME,
         USER_MESSAGES_ENTITLEMENT_SOURCE,
         USER_MESSAGES_ENTITLEMENT_SOURCE_NAME,
         USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID,
@@ -25092,6 +26784,12 @@ private static Dimension[] getStaticValuesArray() {
         VIDEO_CONTINUOUS_PLAY_TYPE,
         VIDEO_CONTINUOUS_PLAY_TYPE_NAME,
         VIDEO_FALLBACK_POSITION,
+        VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION,
+        VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID,
+        VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME,
+        VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME,
+        VIDEO_LIVE_STREAM_EVENT_ID,
+        VIDEO_LIVE_STREAM_EVENT_NAME,
         VIDEO_MEASUREMENT_SOURCE,
         VIDEO_MEASUREMENT_SOURCE_NAME,
         VIDEO_PLCMT,
@@ -25102,6 +26800,7 @@ private static Dimension[] getStaticValuesArray() {
         VIDEO_SDK_VERSION_NAME,
         VIDEO_STITCHER_TYPE,
         VIDEO_STITCHER_TYPE_NAME,
+        WEB_PROPERTY_CODE,
         WEEK,
         YIELD_GROUP_BUYER_NAME,
         YIELD_GROUP_BUYER_TAG_NAME,
@@ -26688,7 +28387,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      * The ratio of matched ad requests served by the Ad Exchange that
      *  resulted in users clicking on an ad. The clickthrough rate (CTR) is
      *  updated nightly. Ad Exchange Matched Request CTR is calculated as:
-     *  (Ad Exchange clicks / Ad Exchange Macthed Ad Requests).
+     *  (Ad Exchange clicks / Ad Exchange Matched Ad Requests).
      *
      *
      *
@@ -27568,6 +29267,46 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      * AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338;
      */
     AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS(114, 338),
+    /**
+     *
+     *
+     * 
+     * Total number of ad server VAST errors discounting errors generated from
+     *  video fallback ads.
+     *
+     *
+     *
+     * Corresponds to "Ad Server opportunities from errors" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AD_SERVER_OPPORTUNITIES_FROM_ERRORS = 461; + */ + AD_SERVER_OPPORTUNITIES_FROM_ERRORS(115, 461), + /** + * + * + *
+     * Total number of ad server impressions discounting video fallback
+     *  impressions.
+     *
+     *
+     *
+     * Corresponds to "Ad Server opportunities from impressions" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS = 462; + */ + AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS(116, 462), /** * * @@ -27586,7 +29325,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_PERCENT_CLICKS = 12; */ - AD_SERVER_PERCENT_CLICKS(115, 12), + AD_SERVER_PERCENT_CLICKS(117, 12), /** * * @@ -27605,7 +29344,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_PERCENT_IMPRESSIONS = 11; */ - AD_SERVER_PERCENT_IMPRESSIONS(116, 11), + AD_SERVER_PERCENT_IMPRESSIONS(118, 11), /** * * @@ -27624,7 +29363,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_PERCENT_REVENUE = 35; */ - AD_SERVER_PERCENT_REVENUE(117, 35), + AD_SERVER_PERCENT_REVENUE(119, 35), /** * * @@ -27643,7 +29382,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD = 13; */ - AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD(118, 13), + AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD(120, 13), /** * * @@ -27661,7 +29400,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_RESPONSES_SERVED = 40; */ - AD_SERVER_RESPONSES_SERVED(119, 40), + AD_SERVER_RESPONSES_SERVED(121, 40), /** * * @@ -27681,7 +29420,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_REVENUE = 33; */ - AD_SERVER_REVENUE(120, 33), + AD_SERVER_REVENUE(122, 33), /** * * @@ -27702,7 +29441,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 213; */ - AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(121, 213), + AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(123, 213), /** * * @@ -27722,7 +29461,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_REVENUE_WITHOUT_CPD = 9; */ - AD_SERVER_REVENUE_WITHOUT_CPD(122, 9), + AD_SERVER_REVENUE_WITHOUT_CPD(124, 9), /** * * @@ -27741,7 +29480,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_TARGETED_CLICKS = 274; */ - AD_SERVER_TARGETED_CLICKS(123, 274), + AD_SERVER_TARGETED_CLICKS(125, 274), /** * * @@ -27760,7 +29499,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_TARGETED_IMPRESSIONS = 275; */ - AD_SERVER_TARGETED_IMPRESSIONS(124, 275), + AD_SERVER_TARGETED_IMPRESSIONS(126, 275), /** * * @@ -27778,7 +29517,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_TRACKED_ADS = 264; */ - AD_SERVER_TRACKED_ADS(125, 264), + AD_SERVER_TRACKED_ADS(127, 264), /** * * @@ -27799,7 +29538,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS = 261; */ - AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS(126, 261), + AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS(128, 261), /** * * @@ -27817,7 +29556,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_UNFILTERED_CLICKS = 259; */ - AD_SERVER_UNFILTERED_CLICKS(127, 259), + AD_SERVER_UNFILTERED_CLICKS(129, 259), /** * * @@ -27837,7 +29576,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS = 260; */ - AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS(128, 260), + AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS(130, 260), /** * * @@ -27856,7 +29595,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_SERVER_UNFILTERED_TRACKED_ADS = 263; */ - AD_SERVER_UNFILTERED_TRACKED_ADS(130, 263), + AD_SERVER_UNFILTERED_TRACKED_ADS(132, 263), /** * * @@ -27875,7 +29614,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_UNIT_EXPOSURE_SECONDS = 242; */ - AD_UNIT_EXPOSURE_SECONDS(131, 242), + AD_UNIT_EXPOSURE_SECONDS(133, 242), /** * * @@ -27894,7 +29633,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AD_VIEWERS = 425; */ - AD_VIEWERS(132, 425), + AD_VIEWERS(134, 425), /** * * @@ -27913,7 +29652,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_ADS_FAILED_TO_RENDER = 430; */ - ATN_ADS_FAILED_TO_RENDER(133, 430), + ATN_ADS_FAILED_TO_RENDER(135, 430), /** * * @@ -27932,7 +29671,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_ELIGIBLE_LINE_ITEMS = 342; */ - ATN_ELIGIBLE_LINE_ITEMS(134, 342), + ATN_ELIGIBLE_LINE_ITEMS(136, 342), /** * * @@ -27952,7 +29691,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS = 343; */ - ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS(135, 343), + ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS(137, 343), /** * * @@ -27972,7 +29711,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_ALLOWED_AD_REQUESTS = 344; */ - ATN_HBT_ALLOWED_AD_REQUESTS(136, 344), + ATN_HBT_ALLOWED_AD_REQUESTS(138, 344), /** * * @@ -27992,7 +29731,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_BIDS_IN_AUCTION = 345; */ - ATN_HBT_BIDS_IN_AUCTION(137, 345), + ATN_HBT_BIDS_IN_AUCTION(139, 345), /** * * @@ -28012,7 +29751,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS = 346; */ - ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS(138, 346), + ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS(140, 346), /** * * @@ -28031,7 +29770,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_CANDIDATE_BIDS = 347; */ - ATN_HBT_CANDIDATE_BIDS(139, 347), + ATN_HBT_CANDIDATE_BIDS(141, 347), /** * * @@ -28051,7 +29790,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_INVALID_AD_REQUESTS = 348; */ - ATN_HBT_INVALID_AD_REQUESTS(140, 348), + ATN_HBT_INVALID_AD_REQUESTS(142, 348), /** * * @@ -28061,7 +29800,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Header bidding trafficking ad requests with no bids" in + * Corresponds to "Ad requests with no header bidding trafficking bids" in * the Ad Manager UI. * * Compatible with the following report types: @@ -28071,7 +29810,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_NO_BIDS_AD_REQUESTS = 472; */ - ATN_HBT_NO_BIDS_AD_REQUESTS(141, 472), + ATN_HBT_NO_BIDS_AD_REQUESTS(143, 472), /** * * @@ -28091,7 +29830,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_REJECTED_BIDS = 349; */ - ATN_HBT_REJECTED_BIDS(142, 349), + ATN_HBT_REJECTED_BIDS(144, 349), /** * * @@ -28111,7 +29850,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_VALID_AD_REQUESTS = 350; */ - ATN_HBT_VALID_AD_REQUESTS(143, 350), + ATN_HBT_VALID_AD_REQUESTS(145, 350), /** * * @@ -28121,7 +29860,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Header bidding trafficking ad requests with bids" in the + * Corresponds to "Ad requests with header bidding trafficking bids" in the * Ad Manager UI. * * Compatible with the following report types: @@ -28131,7 +29870,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_HBT_WITH_BIDS_AD_REQUESTS = 473; */ - ATN_HBT_WITH_BIDS_AD_REQUESTS(144, 473), + ATN_HBT_WITH_BIDS_AD_REQUESTS(146, 473), /** * * @@ -28149,7 +29888,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_INVALID_AD_REQUESTS = 351; */ - ATN_INVALID_AD_REQUESTS(145, 351), + ATN_INVALID_AD_REQUESTS(147, 351), /** * * @@ -28159,7 +29898,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Creative not retrieved" in the Ad Manager UI. + * Corresponds to "Line items with no creative retrieved" in the Ad Manager + * UI. * * Compatible with the following report types: * @@ -28168,7 +29908,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED = 476; */ - ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED(146, 476), + ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED(148, 476), /** * * @@ -28187,7 +29927,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEMS_IN_AUCTION = 352; */ - ATN_LINE_ITEMS_IN_AUCTION(147, 352), + ATN_LINE_ITEMS_IN_AUCTION(149, 352), /** * * @@ -28206,7 +29946,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEMS_NOT_COMPETING = 515; */ - ATN_LINE_ITEMS_NOT_COMPETING(148, 515), + ATN_LINE_ITEMS_NOT_COMPETING(150, 515), /** * * @@ -28216,7 +29956,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Not selected to compete" in the Ad Manager UI. + * Corresponds to "Line items not selected to compete" in the Ad Manager UI. * * Compatible with the following report types: * @@ -28225,7 +29965,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEMS_NOT_SELECTED = 353; */ - ATN_LINE_ITEMS_NOT_SELECTED(149, 353), + ATN_LINE_ITEMS_NOT_SELECTED(151, 353), /** * * @@ -28245,7 +29985,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS = 354; */ - ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS(150, 354), + ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS(152, 354), /** * * @@ -28265,7 +30005,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_LINE_ITEM_TARGETED_AD_REQUESTS = 355; */ - ATN_LINE_ITEM_TARGETED_AD_REQUESTS(151, 355), + ATN_LINE_ITEM_TARGETED_AD_REQUESTS(153, 355), /** * * @@ -28284,7 +30024,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_ALLOWED_AD_REQUESTS = 356; */ - ATN_MEDIATION_ALLOWED_AD_REQUESTS(152, 356), + ATN_MEDIATION_ALLOWED_AD_REQUESTS(154, 356), /** * * @@ -28304,7 +30044,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_INVALID_AD_REQUESTS = 357; */ - ATN_MEDIATION_INVALID_AD_REQUESTS(153, 357), + ATN_MEDIATION_INVALID_AD_REQUESTS(155, 357), /** * * @@ -28323,7 +30063,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_LOADED_ADS_FROM_CHAINS = 358; */ - ATN_MEDIATION_LOADED_ADS_FROM_CHAINS(154, 358), + ATN_MEDIATION_LOADED_ADS_FROM_CHAINS(156, 358), /** * * @@ -28333,8 +30073,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Mediation requests with no partners" in the Ad Manager - * UI. + * Corresponds to "Ad requests with no targeted mediation partners" in the + * Ad Manager UI. * * Compatible with the following report types: * @@ -28343,7 +30083,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_NO_PARTNER_AD_REQUESTS = 474; */ - ATN_MEDIATION_NO_PARTNER_AD_REQUESTS(155, 474), + ATN_MEDIATION_NO_PARTNER_AD_REQUESTS(157, 474), /** * * @@ -28362,7 +30102,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_PARTNERS_IN_AUCTION = 359; */ - ATN_MEDIATION_PARTNERS_IN_AUCTION(156, 359), + ATN_MEDIATION_PARTNERS_IN_AUCTION(158, 359), /** * * @@ -28382,7 +30122,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS = 360; */ - ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS(157, 360), + ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS(159, 360), /** * * @@ -28401,7 +30141,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_REJECTED_PARTNERS = 361; */ - ATN_MEDIATION_REJECTED_PARTNERS(158, 361), + ATN_MEDIATION_REJECTED_PARTNERS(160, 361), /** * * @@ -28420,7 +30160,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_TARGETED_PARTNERS = 362; */ - ATN_MEDIATION_TARGETED_PARTNERS(159, 362), + ATN_MEDIATION_TARGETED_PARTNERS(161, 362), /** * * @@ -28439,7 +30179,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_TOTAL_YIELD_PARTNERS = 442; */ - ATN_MEDIATION_TOTAL_YIELD_PARTNERS(160, 442), + ATN_MEDIATION_TOTAL_YIELD_PARTNERS(162, 442), /** * * @@ -28458,7 +30198,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS = 363; */ - ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS(161, 363), + ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS(163, 363), /** * * @@ -28477,7 +30217,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS = 364; */ - ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS(162, 364), + ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS(164, 364), /** * * @@ -28496,7 +30236,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_VALID_AD_REQUESTS = 365; */ - ATN_MEDIATION_VALID_AD_REQUESTS(163, 365), + ATN_MEDIATION_VALID_AD_REQUESTS(165, 365), /** * * @@ -28516,7 +30256,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS = 475; */ - ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS(164, 475), + ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS(166, 475), /** * * @@ -28535,7 +30275,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS = 366; */ - ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS(165, 366), + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS(167, 366), /** * * @@ -28554,7 +30294,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT = 367; */ - ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT(166, 367), + ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT(168, 367), /** * * @@ -28573,7 +30313,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS = 368; */ - ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS(167, 368), + ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS(169, 368), /** * * @@ -28592,7 +30332,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BIDS_IN_AUCTION = 369; */ - ATN_PROGRAMMATIC_BIDS_IN_AUCTION(168, 369), + ATN_PROGRAMMATIC_BIDS_IN_AUCTION(170, 369), /** * * @@ -28612,7 +30352,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS = 370; */ - ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS(169, 370), + ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS(171, 370), /** * * @@ -28631,7 +30371,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BID_REQUESTS_SENT = 371; */ - ATN_PROGRAMMATIC_BID_REQUESTS_SENT(170, 371), + ATN_PROGRAMMATIC_BID_REQUESTS_SENT(172, 371), /** * * @@ -28650,7 +30390,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE = 372; */ - ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE(171, 372), + ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE(173, 372), /** * * @@ -28669,7 +30409,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES = 373; */ - ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES(172, 373), + ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES(174, 373), /** * * @@ -28688,7 +30428,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_BID_REQUEST_ERRORS = 374; */ - ATN_PROGRAMMATIC_BID_REQUEST_ERRORS(173, 374), + ATN_PROGRAMMATIC_BID_REQUEST_ERRORS(175, 374), /** * * @@ -28708,7 +30448,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS = 375; */ - ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS(174, 375), + ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS(176, 375), /** * * @@ -28727,7 +30467,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_REJECTED_BIDS = 376; */ - ATN_PROGRAMMATIC_REJECTED_BIDS(175, 376), + ATN_PROGRAMMATIC_REJECTED_BIDS(177, 376), /** * * @@ -28746,7 +30486,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS = 377; */ - ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS(176, 377), + ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS(178, 377), /** * * @@ -28765,7 +30505,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_TOTAL_BIDS = 378; */ - ATN_PROGRAMMATIC_TOTAL_BIDS(177, 378), + ATN_PROGRAMMATIC_TOTAL_BIDS(179, 378), /** * * @@ -28785,7 +30525,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_PROGRAMMATIC_VALID_AD_REQUESTS = 379; */ - ATN_PROGRAMMATIC_VALID_AD_REQUESTS(178, 379), + ATN_PROGRAMMATIC_VALID_AD_REQUESTS(180, 379), /** * * @@ -28804,7 +30544,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_REJECTED_LINE_ITEMS = 380; */ - ATN_REJECTED_LINE_ITEMS(179, 380), + ATN_REJECTED_LINE_ITEMS(181, 380), /** * * @@ -28823,7 +30563,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_SERVED_MEDIATION_CHAINS = 381; */ - ATN_SERVED_MEDIATION_CHAINS(180, 381), + ATN_SERVED_MEDIATION_CHAINS(182, 381), /** * * @@ -28841,7 +30581,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_SERVED_SINGLE_ADS = 382; */ - ATN_SERVED_SINGLE_ADS(181, 382), + ATN_SERVED_SINGLE_ADS(183, 382), /** * * @@ -28860,7 +30600,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_TARGETED_LINE_ITEMS = 383; */ - ATN_TARGETED_LINE_ITEMS(182, 383), + ATN_TARGETED_LINE_ITEMS(184, 383), /** * * @@ -28870,7 +30610,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Total ad requests (ATN)" in the Ad Manager UI. + * Corresponds to "Total ad requests (Ads traffic navigator)" in the Ad + * Manager UI. * * Compatible with the following report types: * @@ -28879,7 +30620,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_TOTAL_AD_REQUESTS = 384; */ - ATN_TOTAL_AD_REQUESTS(183, 384), + ATN_TOTAL_AD_REQUESTS(185, 384), /** * * @@ -28897,7 +30638,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_TOTAL_COMPETING_ADS_IN_AUCTION = 385; */ - ATN_TOTAL_COMPETING_ADS_IN_AUCTION(184, 385), + ATN_TOTAL_COMPETING_ADS_IN_AUCTION(186, 385), /** * * @@ -28915,7 +30656,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_TOTAL_LOADED_ADS = 387; */ - ATN_TOTAL_LOADED_ADS(185, 387), + ATN_TOTAL_LOADED_ADS(187, 387), /** * * @@ -28933,7 +30674,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_VALID_AD_REQUESTS = 389; */ - ATN_VALID_AD_REQUESTS(186, 389), + ATN_VALID_AD_REQUESTS(188, 389), /** * * @@ -28952,7 +30693,25 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; */ - ATN_YIELD_GROUP_MEDIATION_PASSBACKS(187, 390), + ATN_YIELD_GROUP_MEDIATION_PASSBACKS(189, 390), + /** + * + * + *
+     * Cost of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment cost" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * AUDIENCE_SEGMENT_COST = 558; + */ + AUDIENCE_SEGMENT_COST(190, 558), /** * * @@ -28971,7 +30730,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_ECPM = 37; */ - AVERAGE_ECPM(188, 37), + AVERAGE_ECPM(191, 37), /** * * @@ -28983,14 +30742,14 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `MONEY` *
* * AVERAGE_ECPM_WITHOUT_CPD = 5; */ - AVERAGE_ECPM_WITHOUT_CPD(189, 5), + AVERAGE_ECPM_WITHOUT_CPD(192, 5), /** * * @@ -29009,7 +30768,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION = 224; */ - AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION(190, 224), + AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION(193, 224), /** * * @@ -29028,7 +30787,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_ENGAGEMENT_SECONDS_PER_USER = 225; */ - AVERAGE_ENGAGEMENT_SECONDS_PER_USER(191, 225), + AVERAGE_ENGAGEMENT_SECONDS_PER_USER(194, 225), /** * * @@ -29046,7 +30805,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR = 418; */ - AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR(192, 418), + AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR(195, 418), /** * * @@ -29064,7 +30823,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER = 226; */ - AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER(193, 226), + AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER(196, 226), /** * * @@ -29082,7 +30841,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_REVENUE_PER_USER = 227; */ - AVERAGE_REVENUE_PER_USER(194, 227), + AVERAGE_REVENUE_PER_USER(197, 227), /** * * @@ -29100,7 +30859,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * AVERAGE_SESSION_SECONDS = 228; */ - AVERAGE_SESSION_SECONDS(195, 228), + AVERAGE_SESSION_SECONDS(198, 228), /** * * @@ -29118,7 +30877,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * BIDS = 443; */ - BIDS(196, 443), + BIDS(199, 443), /** * * @@ -29136,7 +30895,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * BID_AVERAGE_CPM = 444; */ - BID_AVERAGE_CPM(197, 444), + BID_AVERAGE_CPM(200, 444), /** * * @@ -29154,7 +30913,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * BOUNCE_RATE = 433; */ - BOUNCE_RATE(198, 433), + BOUNCE_RATE(201, 433), /** * * @@ -29165,14 +30924,14 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total clicks" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `INTEGER` *
* * CLICKS = 2; */ - CLICKS(199, 2), + CLICKS(202, 2), /** * * @@ -29191,7 +30950,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CODE_SERVED_COUNT = 44; */ - CODE_SERVED_COUNT(200, 44), + CODE_SERVED_COUNT(203, 44), /** * * @@ -29209,7 +30968,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CPC_REVENUE = 440; */ - CPC_REVENUE(201, 440), + CPC_REVENUE(204, 440), /** * * @@ -29227,7 +30986,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CPM_REVENUE = 441; */ - CPM_REVENUE(202, 441), + CPM_REVENUE(205, 441), /** * * @@ -29245,7 +31004,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_0_500_PERCENT = 324; */ - CREATIVE_LOAD_TIME_0_500_PERCENT(203, 324), + CREATIVE_LOAD_TIME_0_500_PERCENT(206, 324), /** * * @@ -29263,7 +31022,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_1000_2000_PERCENT = 326; */ - CREATIVE_LOAD_TIME_1000_2000_PERCENT(204, 326), + CREATIVE_LOAD_TIME_1000_2000_PERCENT(207, 326), /** * * @@ -29281,7 +31040,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_2000_4000_PERCENT = 327; */ - CREATIVE_LOAD_TIME_2000_4000_PERCENT(205, 327), + CREATIVE_LOAD_TIME_2000_4000_PERCENT(208, 327), /** * * @@ -29299,7 +31058,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_4000_8000_PERCENT = 328; */ - CREATIVE_LOAD_TIME_4000_8000_PERCENT(206, 328), + CREATIVE_LOAD_TIME_4000_8000_PERCENT(209, 328), /** * * @@ -29317,7 +31076,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_500_1000_PERCENT = 325; */ - CREATIVE_LOAD_TIME_500_1000_PERCENT(207, 325), + CREATIVE_LOAD_TIME_500_1000_PERCENT(210, 325), /** * * @@ -29335,7 +31094,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * CREATIVE_LOAD_TIME_GT_8000_PERCENT = 329; */ - CREATIVE_LOAD_TIME_GT_8000_PERCENT(208, 329), + CREATIVE_LOAD_TIME_GT_8000_PERCENT(211, 329), /** * * @@ -29348,14 +31107,14 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total CTR" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `PERCENT` * * * CTR = 3; */ - CTR(209, 3), + CTR(212, 3), /** * * @@ -29373,7 +31132,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DEALS_BIDS = 542; */ - DEALS_BIDS(210, 542), + DEALS_BIDS(213, 542), /** * * @@ -29391,7 +31150,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DEALS_BID_RATE = 543; */ - DEALS_BID_RATE(211, 543), + DEALS_BID_RATE(214, 543), /** * * @@ -29409,7 +31168,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DEALS_BID_REQUESTS = 544; */ - DEALS_BID_REQUESTS(212, 544), + DEALS_BID_REQUESTS(215, 544), /** * * @@ -29427,7 +31186,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DEALS_WINNING_BIDS = 545; */ - DEALS_WINNING_BIDS(213, 545), + DEALS_WINNING_BIDS(216, 545), /** * * @@ -29445,7 +31204,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DEALS_WIN_RATE = 546; */ - DEALS_WIN_RATE(214, 546), + DEALS_WIN_RATE(217, 546), /** * * @@ -29464,7 +31223,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 521; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(215, 521), + DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(218, 521), /** * * @@ -29483,7 +31242,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 522; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(216, 522), + DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(219, 522), /** * * @@ -29502,7 +31261,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 523; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(217, 523), + DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(220, 523), /** * * @@ -29521,7 +31280,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 524; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(218, 524), + DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(221, 524), /** * * @@ -29540,7 +31299,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 525; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(219, 525), + DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(222, 525), /** * * @@ -29559,7 +31318,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 520; */ - DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(220, 520), + DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(223, 520), /** * * @@ -29578,7 +31337,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT = 526; */ - DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT(221, 526), + DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT(224, 526), /** * * @@ -29597,7 +31356,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT = 527; */ - DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT(222, 527), + DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT(225, 527), /** * * @@ -29616,7 +31375,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT = 528; */ - DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT(223, 528), + DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT(226, 528), /** * * @@ -29635,7 +31394,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT = 529; */ - DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT(224, 529), + DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT(227, 529), /** * * @@ -29654,7 +31413,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT = 531; */ - DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT(225, 531), + DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT(228, 531), /** * * @@ -29673,7 +31432,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT = 530; */ - DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT(226, 530), + DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT(229, 530), /** * * @@ -29691,7 +31450,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * DROPOFF_RATE = 415; */ - DROPOFF_RATE(227, 415), + DROPOFF_RATE(230, 415), /** * * @@ -29709,7 +31468,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ENGAGED_SESSIONS = 229; */ - ENGAGED_SESSIONS(228, 229), + ENGAGED_SESSIONS(231, 229), /** * * @@ -29727,7 +31486,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ENGAGED_SESSIONS_PER_USER = 230; */ - ENGAGED_SESSIONS_PER_USER(229, 230), + ENGAGED_SESSIONS_PER_USER(232, 230), /** * * @@ -29745,7 +31504,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * ENGAGEMENT_RATE = 426; */ - ENGAGEMENT_RATE(230, 426), + ENGAGEMENT_RATE(233, 426), /** * * @@ -29764,7 +31523,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * EUROPEAN_REGULATIONS_CONSENT_RATE = 270; */ - EUROPEAN_REGULATIONS_CONSENT_RATE(231, 270), + EUROPEAN_REGULATIONS_CONSENT_RATE(234, 270), /** * * @@ -29784,7 +31543,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE = 271; */ - EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE(232, 271), + EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE(235, 271), /** * * @@ -29803,7 +31562,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * EUROPEAN_REGULATIONS_MESSAGES_SHOWN = 272; */ - EUROPEAN_REGULATIONS_MESSAGES_SHOWN(233, 272), + EUROPEAN_REGULATIONS_MESSAGES_SHOWN(236, 272), /** * * @@ -29823,7 +31582,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * EUROPEAN_REGULATIONS_NO_CONSENT_RATE = 273; */ - EUROPEAN_REGULATIONS_NO_CONSENT_RATE(234, 273), + EUROPEAN_REGULATIONS_NO_CONSENT_RATE(237, 273), /** * * @@ -29842,7 +31601,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * FILL_RATE = 258; */ - FILL_RATE(235, 258), + FILL_RATE(238, 258), /** * * @@ -29860,7 +31619,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_CLICKS = 231; */ - GOOGLE_ANALYTICS_CLICKS(236, 231), + GOOGLE_ANALYTICS_CLICKS(239, 231), /** * * @@ -29878,7 +31637,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_CTR = 232; */ - GOOGLE_ANALYTICS_CTR(237, 232), + GOOGLE_ANALYTICS_CTR(240, 232), /** * * @@ -29896,7 +31655,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_ECPM = 233; */ - GOOGLE_ANALYTICS_ECPM(238, 233), + GOOGLE_ANALYTICS_ECPM(241, 233), /** * * @@ -29914,7 +31673,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_IMPRESSIONS = 234; */ - GOOGLE_ANALYTICS_IMPRESSIONS(239, 234), + GOOGLE_ANALYTICS_IMPRESSIONS(242, 234), /** * * @@ -29932,7 +31691,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_REVENUE = 235; */ - GOOGLE_ANALYTICS_REVENUE(240, 235), + GOOGLE_ANALYTICS_REVENUE(243, 235), /** * * @@ -29950,7 +31709,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_VIEWS = 236; */ - GOOGLE_ANALYTICS_VIEWS(241, 236), + GOOGLE_ANALYTICS_VIEWS(244, 236), /** * * @@ -29968,7 +31727,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_ANALYTICS_VIEWS_PER_USER = 237; */ - GOOGLE_ANALYTICS_VIEWS_PER_USER(242, 237), + GOOGLE_ANALYTICS_VIEWS_PER_USER(245, 237), /** * * @@ -29987,7 +31746,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS = 129; */ - GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS(243, 129), + GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS(246, 129), /** * * @@ -30005,7 +31764,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_AUCTION_IMPRESSIONS = 128; */ - GOOGLE_SOLD_AUCTION_IMPRESSIONS(244, 128), + GOOGLE_SOLD_AUCTION_IMPRESSIONS(247, 128), /** * * @@ -30024,7 +31783,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_COVIEWED_IMPRESSIONS = 131; */ - GOOGLE_SOLD_COVIEWED_IMPRESSIONS(245, 131), + GOOGLE_SOLD_COVIEWED_IMPRESSIONS(248, 131), /** * * @@ -30042,7 +31801,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_IMPRESSIONS = 130; */ - GOOGLE_SOLD_IMPRESSIONS(246, 130), + GOOGLE_SOLD_IMPRESSIONS(249, 130), /** * * @@ -30061,7 +31820,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS = 127; */ - GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS(247, 127), + GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS(250, 127), /** * * @@ -30080,7 +31839,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * GOOGLE_SOLD_RESERVATION_IMPRESSIONS = 126; */ - GOOGLE_SOLD_RESERVATION_IMPRESSIONS(248, 126), + GOOGLE_SOLD_RESERVATION_IMPRESSIONS(251, 126), /** * * @@ -30092,14 +31851,14 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total impressions" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `INTEGER` * * * IMPRESSIONS = 1; */ - IMPRESSIONS(249, 1), + IMPRESSIONS(252, 1), /** * * @@ -30121,7 +31880,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 407; */ - INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS(250, 407), + INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS(253, 407), /** * * @@ -30139,7 +31898,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARES = 547; */ - INVENTORY_SHARES(251, 547), + INVENTORY_SHARES(254, 547), /** * * @@ -30159,7 +31918,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES = 548; */ - INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES(252, 548), + INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES(255, 548), /** * * @@ -30177,7 +31936,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * INVOICED_IMPRESSIONS = 404; */ - INVOICED_IMPRESSIONS(253, 404), + INVOICED_IMPRESSIONS(256, 404), /** * * @@ -30195,7 +31954,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * INVOICED_UNFILLED_IMPRESSIONS = 405; */ - INVOICED_UNFILLED_IMPRESSIONS(254, 405), + INVOICED_UNFILLED_IMPRESSIONS(257, 405), /** * * @@ -30213,7 +31972,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * MEDIATION_CHAINS_FILLED = 584; */ - MEDIATION_CHAINS_FILLED(255, 584), + MEDIATION_CHAINS_FILLED(258, 584), /** * * @@ -30231,7 +31990,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * MUTED_IMPRESSIONS = 412; */ - MUTED_IMPRESSIONS(256, 412), + MUTED_IMPRESSIONS(259, 412), /** * * @@ -30249,7 +32008,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * MUTE_ELIGIBLE_IMPRESSIONS = 409; */ - MUTE_ELIGIBLE_IMPRESSIONS(257, 409), + MUTE_ELIGIBLE_IMPRESSIONS(260, 409), /** * * @@ -30267,7 +32026,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * OPPORTUNITIES = 463; */ - OPPORTUNITIES(258, 463), + OPPORTUNITIES(261, 463), /** * * @@ -30285,7 +32044,282 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * OVERDELIVERED_IMPRESSIONS = 432; */ - OVERDELIVERED_IMPRESSIONS(259, 432), + OVERDELIVERED_IMPRESSIONS(262, 432), + /** + * + * + *
+     * The gross revenue for partner finance reports.
+     *
+     *
+     *
+     * Corresponds to "Gross revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_GROSS_REVENUE = 648; + */ + PARTNER_FINANCE_GROSS_REVENUE(263, 648), + /** + * + * + *
+     * Monthly host eCPM for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Host eCPM" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_HOST_ECPM = 649; + */ + PARTNER_FINANCE_HOST_ECPM(264, 649), + /** + * + * + *
+     * The host impressions for partner finance reports.
+     *
+     *
+     *
+     * Corresponds to "Host impressions" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_FINANCE_HOST_IMPRESSIONS = 650; + */ + PARTNER_FINANCE_HOST_IMPRESSIONS(265, 650), + /** + * + * + *
+     * Monthly host revenue for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Host revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_HOST_REVENUE = 651; + */ + PARTNER_FINANCE_HOST_REVENUE(266, 651), + /** + * + * + *
+     * Monthly partner eCPM for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Partner eCPM" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_PARTNER_ECPM = 652; + */ + PARTNER_FINANCE_PARTNER_ECPM(267, 652), + /** + * + * + *
+     * Monthly partner revenue for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Partner revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_PARTNER_REVENUE = 653; + */ + PARTNER_FINANCE_PARTNER_REVENUE(268, 653), + /** + * + * + *
+     * The gross revenue in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management gross revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_MANAGEMENT_GROSS_REVENUE = 533; + */ + PARTNER_MANAGEMENT_GROSS_REVENUE(269, 533), + /** + * + * + *
+     * The host clicks in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host clicks" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_CLICKS = 534; + */ + PARTNER_MANAGEMENT_HOST_CLICKS(270, 534), + /** + * + * + *
+     * The host CTR in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host CTR" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_CTR = 535; + */ + PARTNER_MANAGEMENT_HOST_CTR(271, 535), + /** + * + * + *
+     * The host impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host impressions" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_IMPRESSIONS = 536; + */ + PARTNER_MANAGEMENT_HOST_IMPRESSIONS(272, 536), + /** + * + * + *
+     * The partner clicks in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner clicks" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_CLICKS = 537; + */ + PARTNER_MANAGEMENT_PARTNER_CLICKS(273, 537), + /** + * + * + *
+     * The partner CTR in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner CTR" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_CTR = 538; + */ + PARTNER_MANAGEMENT_PARTNER_CTR(274, 538), + /** + * + * + *
+     * The partner impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner impressions" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS = 539; + */ + PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS(275, 539), + /** + * + * + *
+     * The total content views in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management total monetizable content views" in
+     * the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS = 540; + */ + PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS(276, 540), + /** + * + * + *
+     * The unfilled impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management unfilled impressions" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 541; + */ + PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS(277, 541), /** * * @@ -30304,7 +32338,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_FILLED_POD_REQUESTS = 135; */ - PARTNER_SALES_FILLED_POD_REQUESTS(260, 135), + PARTNER_SALES_FILLED_POD_REQUESTS(278, 135), /** * * @@ -30323,7 +32357,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_FILL_RATE = 136; */ - PARTNER_SALES_FILL_RATE(261, 136), + PARTNER_SALES_FILL_RATE(279, 136), /** * * @@ -30342,7 +32376,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_PARTNER_MATCH_RATE = 137; */ - PARTNER_SALES_PARTNER_MATCH_RATE(262, 137), + PARTNER_SALES_PARTNER_MATCH_RATE(280, 137), /** * * @@ -30360,7 +32394,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_QUERIES = 132; */ - PARTNER_SALES_QUERIES(263, 132), + PARTNER_SALES_QUERIES(281, 132), /** * * @@ -30380,7 +32414,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_UNFILLED_IMPRESSIONS = 133; */ - PARTNER_SALES_UNFILLED_IMPRESSIONS(264, 133), + PARTNER_SALES_UNFILLED_IMPRESSIONS(282, 133), /** * * @@ -30400,7 +32434,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SALES_UNMATCHED_QUERIES = 134; */ - PARTNER_SALES_UNMATCHED_QUERIES(265, 134), + PARTNER_SALES_UNMATCHED_QUERIES(283, 134), /** * * @@ -30418,7 +32452,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SOLD_CODE_SERVED = 125; */ - PARTNER_SOLD_CODE_SERVED(266, 125), + PARTNER_SOLD_CODE_SERVED(284, 125), /** * * @@ -30437,7 +32471,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SOLD_COVIEWED_IMPRESSIONS = 124; */ - PARTNER_SOLD_COVIEWED_IMPRESSIONS(267, 124), + PARTNER_SOLD_COVIEWED_IMPRESSIONS(285, 124), /** * * @@ -30455,7 +32489,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PARTNER_SOLD_IMPRESSIONS = 123; */ - PARTNER_SOLD_IMPRESSIONS(268, 123), + PARTNER_SOLD_IMPRESSIONS(286, 123), /** * * @@ -30475,7 +32509,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PROGRAMMATIC_ELIGIBLE_AD_REQUESTS = 177; */ - PROGRAMMATIC_ELIGIBLE_AD_REQUESTS(269, 177), + PROGRAMMATIC_ELIGIBLE_AD_REQUESTS(287, 177), /** * * @@ -30495,7 +32529,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PROGRAMMATIC_MATCH_RATE = 178; */ - PROGRAMMATIC_MATCH_RATE(270, 178), + PROGRAMMATIC_MATCH_RATE(288, 178), /** * * @@ -30517,7 +32551,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * PROGRAMMATIC_RESPONSES_SERVED = 176; */ - PROGRAMMATIC_RESPONSES_SERVED(271, 176), + PROGRAMMATIC_RESPONSES_SERVED(289, 176), /** * * @@ -30535,7 +32569,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * REACH_IMPRESSIONS = 416; */ - REACH_IMPRESSIONS(272, 416), + REACH_IMPRESSIONS(290, 416), /** * * @@ -30554,7 +32588,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * RESPONSES_SERVED = 39; */ - RESPONSES_SERVED(273, 39), + RESPONSES_SERVED(291, 39), /** * * @@ -30572,7 +32606,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * RETENTION = 238; */ - RETENTION(274, 238), + RETENTION(292, 238), /** * * @@ -30585,14 +32619,14 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total revenue" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `MONEY` * * * REVENUE = 36; */ - REVENUE(275, 36), + REVENUE(293, 36), /** * * @@ -30613,12 +32647,103 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; */ - REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(276, 214), + REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(294, 214), /** * * *
-     * Total amount of revenue (excluding CPD) based on the number of units
+     * The total CPD net revenue for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPD revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_CPD_REVENUE = 560; + */ + REVENUE_VERIFICATION_CPD_REVENUE(295, 560), + /** + * + * + *
+     * The total CPD gross revenue for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPD revenue (gross)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_GROSS_CPD_REVENUE = 559; + */ + REVENUE_VERIFICATION_GROSS_CPD_REVENUE(296, 559), + /** + * + * + *
+     * The total gross revenue (excluding CPD) for Revenue Verification
+     *  reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPM and CPC revenue (gross)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD = 561; + */ + REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD(297, 561), + /** + * + * + *
+     * The total impressions for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total impressions" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * REVENUE_VERIFICATION_IMPRESSIONS = 564; + */ + REVENUE_VERIFICATION_IMPRESSIONS(298, 564), + /** + * + * + *
+     * The total net revenue (excluding CPD) for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD = 567; + */ + REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD(299, 567), + /** + * + * + *
+     * Total revenue (excluding CPD) based on the number of units
      *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
      *  third-party Mediation networks.
      *
@@ -30633,7 +32758,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * REVENUE_WITHOUT_CPD = 4;
      */
-    REVENUE_WITHOUT_CPD(277, 4),
+    REVENUE_WITHOUT_CPD(300, 4),
     /**
      *
      *
@@ -30651,7 +32776,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * REWARDS_GRANTED = 413;
      */
-    REWARDS_GRANTED(278, 413),
+    REWARDS_GRANTED(301, 413),
     /**
      *
      *
@@ -30670,7 +32795,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_AVERAGE_DISPLAY_TIME = 587;
      */
-    RICH_MEDIA_AVERAGE_DISPLAY_TIME(279, 587),
+    RICH_MEDIA_AVERAGE_DISPLAY_TIME(302, 587),
     /**
      *
      *
@@ -30689,7 +32814,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_AVERAGE_INTERACTION_TIME = 588;
      */
-    RICH_MEDIA_AVERAGE_INTERACTION_TIME(280, 588),
+    RICH_MEDIA_AVERAGE_INTERACTION_TIME(303, 588),
     /**
      *
      *
@@ -30708,7 +32833,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_BACKUP_IMAGES = 589;
      */
-    RICH_MEDIA_BACKUP_IMAGES(281, 589),
+    RICH_MEDIA_BACKUP_IMAGES(304, 589),
     /**
      *
      *
@@ -30727,7 +32852,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_CUSTOM_EVENT_COUNT = 599;
      */
-    RICH_MEDIA_CUSTOM_EVENT_COUNT(282, 599),
+    RICH_MEDIA_CUSTOM_EVENT_COUNT(305, 599),
     /**
      *
      *
@@ -30746,7 +32871,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_CUSTOM_EVENT_TIME = 600;
      */
-    RICH_MEDIA_CUSTOM_EVENT_TIME(283, 600),
+    RICH_MEDIA_CUSTOM_EVENT_TIME(306, 600),
     /**
      *
      *
@@ -30765,7 +32890,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_DISPLAY_TIME = 590;
      */
-    RICH_MEDIA_DISPLAY_TIME(284, 590),
+    RICH_MEDIA_DISPLAY_TIME(307, 590),
     /**
      *
      *
@@ -30784,7 +32909,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_EXPANDING_TIME = 591;
      */
-    RICH_MEDIA_EXPANDING_TIME(285, 591),
+    RICH_MEDIA_EXPANDING_TIME(308, 591),
     /**
      *
      *
@@ -30802,7 +32927,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_EXPANSIONS = 592;
      */
-    RICH_MEDIA_EXPANSIONS(286, 592),
+    RICH_MEDIA_EXPANSIONS(309, 592),
     /**
      *
      *
@@ -30820,7 +32945,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_FULL_SCREEN_IMPRESSIONS = 593;
      */
-    RICH_MEDIA_FULL_SCREEN_IMPRESSIONS(287, 593),
+    RICH_MEDIA_FULL_SCREEN_IMPRESSIONS(310, 593),
     /**
      *
      *
@@ -30838,7 +32963,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_INTERACTION_COUNT = 594;
      */
-    RICH_MEDIA_INTERACTION_COUNT(288, 594),
+    RICH_MEDIA_INTERACTION_COUNT(311, 594),
     /**
      *
      *
@@ -30857,7 +32982,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_INTERACTION_RATE = 595;
      */
-    RICH_MEDIA_INTERACTION_RATE(289, 595),
+    RICH_MEDIA_INTERACTION_RATE(312, 595),
     /**
      *
      *
@@ -30876,7 +33001,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_INTERACTION_TIME = 596;
      */
-    RICH_MEDIA_INTERACTION_TIME(290, 596),
+    RICH_MEDIA_INTERACTION_TIME(313, 596),
     /**
      *
      *
@@ -30894,7 +33019,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_INTERACTIVE_IMPRESSIONS = 597;
      */
-    RICH_MEDIA_INTERACTIVE_IMPRESSIONS(291, 597),
+    RICH_MEDIA_INTERACTIVE_IMPRESSIONS(314, 597),
     /**
      *
      *
@@ -30912,7 +33037,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_MANUAL_CLOSES = 598;
      */
-    RICH_MEDIA_MANUAL_CLOSES(292, 598),
+    RICH_MEDIA_MANUAL_CLOSES(315, 598),
     /**
      *
      *
@@ -30930,7 +33055,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_COMPLETES = 503;
      */
-    RICH_MEDIA_VIDEO_COMPLETES(293, 503),
+    RICH_MEDIA_VIDEO_COMPLETES(316, 503),
     /**
      *
      *
@@ -30950,7 +33075,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_INTERACTIONS = 505;
      */
-    RICH_MEDIA_VIDEO_INTERACTIONS(294, 505),
+    RICH_MEDIA_VIDEO_INTERACTIONS(317, 505),
     /**
      *
      *
@@ -30969,7 +33094,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_INTERACTION_RATE = 504;
      */
-    RICH_MEDIA_VIDEO_INTERACTION_RATE(295, 504),
+    RICH_MEDIA_VIDEO_INTERACTION_RATE(318, 504),
     /**
      *
      *
@@ -30987,7 +33112,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_MIDPOINTS = 506;
      */
-    RICH_MEDIA_VIDEO_MIDPOINTS(296, 506),
+    RICH_MEDIA_VIDEO_MIDPOINTS(319, 506),
     /**
      *
      *
@@ -31005,7 +33130,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_MUTES = 507;
      */
-    RICH_MEDIA_VIDEO_MUTES(297, 507),
+    RICH_MEDIA_VIDEO_MUTES(320, 507),
     /**
      *
      *
@@ -31023,7 +33148,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_PAUSES = 508;
      */
-    RICH_MEDIA_VIDEO_PAUSES(298, 508),
+    RICH_MEDIA_VIDEO_PAUSES(321, 508),
     /**
      *
      *
@@ -31041,7 +33166,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_PLAYS = 509;
      */
-    RICH_MEDIA_VIDEO_PLAYS(299, 509),
+    RICH_MEDIA_VIDEO_PLAYS(322, 509),
     /**
      *
      *
@@ -31059,7 +33184,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_REPLAYS = 510;
      */
-    RICH_MEDIA_VIDEO_REPLAYS(300, 510),
+    RICH_MEDIA_VIDEO_REPLAYS(323, 510),
     /**
      *
      *
@@ -31077,7 +33202,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_STOPS = 511;
      */
-    RICH_MEDIA_VIDEO_STOPS(301, 511),
+    RICH_MEDIA_VIDEO_STOPS(324, 511),
     /**
      *
      *
@@ -31095,7 +33220,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_UNMUTES = 512;
      */
-    RICH_MEDIA_VIDEO_UNMUTES(302, 512),
+    RICH_MEDIA_VIDEO_UNMUTES(325, 512),
     /**
      *
      *
@@ -31113,7 +33238,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_VIEW_RATE = 513;
      */
-    RICH_MEDIA_VIDEO_VIEW_RATE(303, 513),
+    RICH_MEDIA_VIDEO_VIEW_RATE(326, 513),
     /**
      *
      *
@@ -31132,7 +33257,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * RICH_MEDIA_VIDEO_VIEW_TIME = 514;
      */
-    RICH_MEDIA_VIDEO_VIEW_TIME(304, 514),
+    RICH_MEDIA_VIDEO_VIEW_TIME(327, 514),
     /**
      *
      *
@@ -31150,7 +33275,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SELL_THROUGH_AVAILABLE_IMPRESSIONS = 477;
      */
-    SELL_THROUGH_AVAILABLE_IMPRESSIONS(305, 477),
+    SELL_THROUGH_AVAILABLE_IMPRESSIONS(328, 477),
     /**
      *
      *
@@ -31168,7 +33293,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SELL_THROUGH_FORECASTED_IMPRESSIONS = 478;
      */
-    SELL_THROUGH_FORECASTED_IMPRESSIONS(306, 478),
+    SELL_THROUGH_FORECASTED_IMPRESSIONS(329, 478),
     /**
      *
      *
@@ -31186,7 +33311,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SELL_THROUGH_RESERVED_IMPRESSIONS = 479;
      */
-    SELL_THROUGH_RESERVED_IMPRESSIONS(307, 479),
+    SELL_THROUGH_RESERVED_IMPRESSIONS(330, 479),
     /**
      *
      *
@@ -31204,7 +33329,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SELL_THROUGH_SELL_THROUGH_RATE = 480;
      */
-    SELL_THROUGH_SELL_THROUGH_RATE(308, 480),
+    SELL_THROUGH_SELL_THROUGH_RATE(331, 480),
     /**
      *
      *
@@ -31227,7 +33352,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS = 434;
      */
-    SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS(309, 434),
+    SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS(332, 434),
     /**
      *
      *
@@ -31245,7 +33370,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_CALLOUTS = 435;
      */
-    SERVER_SIDE_UNWRAPPING_CALLOUTS(310, 435),
+    SERVER_SIDE_UNWRAPPING_CALLOUTS(333, 435),
     /**
      *
      *
@@ -31265,7 +33390,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES = 436;
      */
-    SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES(311, 436),
+    SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES(334, 436),
     /**
      *
      *
@@ -31285,7 +33410,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES = 437;
      */
-    SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES(312, 437),
+    SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES(335, 437),
     /**
      *
      *
@@ -31306,7 +33431,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES = 438;
      */
-    SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES(313, 438),
+    SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES(336, 438),
     /**
      *
      *
@@ -31325,7 +33450,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SERVER_SIDE_UNWRAPPING_TIMEOUTS = 439;
      */
-    SERVER_SIDE_UNWRAPPING_TIMEOUTS(314, 439),
+    SERVER_SIDE_UNWRAPPING_TIMEOUTS(337, 439),
     /**
      *
      *
@@ -31343,7 +33468,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * SESSIONS = 239;
      */
-    SESSIONS(315, 239),
+    SESSIONS(338, 239),
     /**
      *
      *
@@ -31362,7 +33487,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT = 455;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(316, 455),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT(339, 455),
     /**
      *
      *
@@ -31381,7 +33506,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT = 457;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(317, 457),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT(340, 457),
     /**
      *
      *
@@ -31400,7 +33525,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT = 458;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(318, 458),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT(341, 458),
     /**
      *
      *
@@ -31419,7 +33544,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT = 459;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(319, 459),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT(342, 459),
     /**
      *
      *
@@ -31438,7 +33563,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT = 456;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(320, 456),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT(343, 456),
     /**
      *
      *
@@ -31457,7 +33582,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT = 460;
      */
-    TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(321, 460),
+    TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT(344, 460),
     /**
      *
      *
@@ -31476,7 +33601,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TARGETED_CLICKS = 276;
      */
-    TARGETED_CLICKS(322, 276),
+    TARGETED_CLICKS(345, 276),
     /**
      *
      *
@@ -31495,7 +33620,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * TARGETED_IMPRESSIONS = 277;
      */
-    TARGETED_IMPRESSIONS(323, 277),
+    TARGETED_IMPRESSIONS(346, 277),
     /**
      *
      *
@@ -31514,7 +33639,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNFILLED_IMPRESSIONS = 45;
      */
-    UNFILLED_IMPRESSIONS(324, 45),
+    UNFILLED_IMPRESSIONS(347, 45),
     /**
      *
      *
@@ -31532,7 +33657,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNIQUE_VISITORS = 417;
      */
-    UNIQUE_VISITORS(325, 417),
+    UNIQUE_VISITORS(348, 417),
     /**
      *
      *
@@ -31552,7 +33677,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNLOADED_IMPRESSIONS_DUE_TO_CPU = 408;
      */
-    UNLOADED_IMPRESSIONS_DUE_TO_CPU(326, 408),
+    UNLOADED_IMPRESSIONS_DUE_TO_CPU(349, 408),
     /**
      *
      *
@@ -31572,7 +33697,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNLOADED_IMPRESSIONS_DUE_TO_NETWORK = 406;
      */
-    UNLOADED_IMPRESSIONS_DUE_TO_NETWORK(327, 406),
+    UNLOADED_IMPRESSIONS_DUE_TO_NETWORK(350, 406),
     /**
      *
      *
@@ -31590,7 +33715,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNMATCHED_AD_REQUESTS = 43;
      */
-    UNMATCHED_AD_REQUESTS(328, 43),
+    UNMATCHED_AD_REQUESTS(351, 43),
     /**
      *
      *
@@ -31609,7 +33734,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNVIEWED_REASON_OTHER_PERCENT = 550;
      */
-    UNVIEWED_REASON_OTHER_PERCENT(329, 550),
+    UNVIEWED_REASON_OTHER_PERCENT(352, 550),
     /**
      *
      *
@@ -31628,7 +33753,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT = 553;
      */
-    UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT(330, 553),
+    UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT(353, 553),
     /**
      *
      *
@@ -31647,7 +33772,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT = 551;
      */
-    UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT(331, 551),
+    UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT(354, 551),
     /**
      *
      *
@@ -31667,7 +33792,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT = 552;
      */
-    UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT(332, 552),
+    UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT(355, 552),
     /**
      *
      *
@@ -31687,7 +33812,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT = 549;
      */
-    UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT(333, 549),
+    UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT(356, 549),
     /**
      *
      *
@@ -31706,7 +33831,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * USER_ENGAGEMENT_DURATION_IN_SECONDS = 240;
      */
-    USER_ENGAGEMENT_DURATION_IN_SECONDS(334, 240),
+    USER_ENGAGEMENT_DURATION_IN_SECONDS(357, 240),
     /**
      *
      *
@@ -31725,7 +33850,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE = 486;
      */
-    USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE(335, 486),
+    USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE(358, 486),
     /**
      *
      *
@@ -31745,7 +33870,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT = 487;
      */
-    USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT(336, 487),
+    USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT(359, 487),
     /**
      *
      *
@@ -31764,7 +33889,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN = 488;
      */
-    USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN(337, 488),
+    USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN(360, 488),
     /**
      *
      *
@@ -31784,25 +33909,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      *
      * USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489;
      */
-    USER_MESSAGES_ALLOW_ADS_PAGEVIEWS(338, 489),
-    /**
-     *
-     *
-     * 
-     * Number of times a US state regulations message was shown to users.
-     *
-     *
-     *
-     * Corresponds to "US states messages shown" in the Ad Manager UI.
-     *
-     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
-     *
-     * Data format: `INTEGER`
-     * 
- * - * USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; - */ - USER_MESSAGES_CCPA_MESSAGES_SHOWN(339, 490), + USER_MESSAGES_ALLOW_ADS_PAGEVIEWS(361, 489), /** * * @@ -31821,7 +33928,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN = 491; */ - USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN(340, 491), + USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN(362, 491), /** * * @@ -31840,7 +33947,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_ATT_CONSENT = 492; */ - USER_MESSAGES_IDFA_ATT_CONSENT(341, 492), + USER_MESSAGES_IDFA_ATT_CONSENT(363, 492), /** * * @@ -31859,7 +33966,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_ATT_CONSENT_RATE = 493; */ - USER_MESSAGES_IDFA_ATT_CONSENT_RATE(342, 493), + USER_MESSAGES_IDFA_ATT_CONSENT_RATE(364, 493), /** * * @@ -31878,7 +33985,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT = 494; */ - USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT(343, 494), + USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT(365, 494), /** * * @@ -31897,7 +34004,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_ATT_DECLINE_RATE = 495; */ - USER_MESSAGES_IDFA_ATT_DECLINE_RATE(344, 495), + USER_MESSAGES_IDFA_ATT_DECLINE_RATE(366, 495), /** * * @@ -31915,7 +34022,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_EXPLAINERS_SHOWN = 496; */ - USER_MESSAGES_IDFA_EXPLAINERS_SHOWN(345, 496), + USER_MESSAGES_IDFA_EXPLAINERS_SHOWN(367, 496), /** * * @@ -31934,7 +34041,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN = 497; */ - USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN(346, 497), + USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN(368, 497), /** * * @@ -31952,7 +34059,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_IDFA_NO_DECISION = 498; */ - USER_MESSAGES_IDFA_NO_DECISION(347, 498), + USER_MESSAGES_IDFA_NO_DECISION(369, 498), /** * * @@ -31970,7 +34077,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN = 121; */ - USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN(348, 121), + USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN(370, 121), /** * * @@ -31988,7 +34095,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS = 122; */ - USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS(349, 122), + USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS(371, 122), /** * * @@ -32007,7 +34114,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS = 499; */ - USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS(350, 499), + USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS(372, 499), /** * * @@ -32026,7 +34133,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_TOTAL_ESTIMATED_REVENUE = 500; */ - USER_MESSAGES_TOTAL_ESTIMATED_REVENUE(351, 500), + USER_MESSAGES_TOTAL_ESTIMATED_REVENUE(373, 500), /** * * @@ -32045,7 +34152,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_UPTC_MESSAGES_SHOWN = 501; */ - USER_MESSAGES_UPTC_MESSAGES_SHOWN(352, 501), + USER_MESSAGES_UPTC_MESSAGES_SHOWN(374, 501), /** * * @@ -32064,7 +34171,43 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; */ - USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO(353, 502), + USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO(375, 502), + /** + * + * + *
+     * Number of times a US state regulations message was shown to users.
+     *
+     *
+     *
+     * Corresponds to "US states messages shown" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * USER_MESSAGES_US_STATES_MESSAGES_SHOWN = 490; + */ + USER_MESSAGES_US_STATES_MESSAGES_SHOWN(376, 490), + /** + * + * + *
+     * Number of times users selected the opt-out option in a US states message.
+     *
+     *
+     *
+     * Corresponds to "US states opt-out selections" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS = 586; + */ + USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS(377, 586), /** * * @@ -32082,7 +34225,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_100_COUNT = 180; */ - VIDEO_ERROR_100_COUNT(354, 180), + VIDEO_ERROR_100_COUNT(378, 180), /** * * @@ -32100,7 +34243,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_101_COUNT = 181; */ - VIDEO_ERROR_101_COUNT(355, 181), + VIDEO_ERROR_101_COUNT(379, 181), /** * * @@ -32118,7 +34261,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_102_COUNT = 182; */ - VIDEO_ERROR_102_COUNT(356, 182), + VIDEO_ERROR_102_COUNT(380, 182), /** * * @@ -32136,7 +34279,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_200_COUNT = 183; */ - VIDEO_ERROR_200_COUNT(357, 183), + VIDEO_ERROR_200_COUNT(381, 183), /** * * @@ -32154,7 +34297,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_201_COUNT = 184; */ - VIDEO_ERROR_201_COUNT(358, 184), + VIDEO_ERROR_201_COUNT(382, 184), /** * * @@ -32172,7 +34315,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_202_COUNT = 185; */ - VIDEO_ERROR_202_COUNT(359, 185), + VIDEO_ERROR_202_COUNT(383, 185), /** * * @@ -32190,7 +34333,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_203_COUNT = 186; */ - VIDEO_ERROR_203_COUNT(360, 186), + VIDEO_ERROR_203_COUNT(384, 186), /** * * @@ -32208,7 +34351,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_300_COUNT = 187; */ - VIDEO_ERROR_300_COUNT(361, 187), + VIDEO_ERROR_300_COUNT(385, 187), /** * * @@ -32226,7 +34369,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_301_COUNT = 188; */ - VIDEO_ERROR_301_COUNT(362, 188), + VIDEO_ERROR_301_COUNT(386, 188), /** * * @@ -32244,7 +34387,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_302_COUNT = 189; */ - VIDEO_ERROR_302_COUNT(363, 189), + VIDEO_ERROR_302_COUNT(387, 189), /** * * @@ -32262,7 +34405,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_303_COUNT = 190; */ - VIDEO_ERROR_303_COUNT(364, 190), + VIDEO_ERROR_303_COUNT(388, 190), /** * * @@ -32280,7 +34423,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_400_COUNT = 191; */ - VIDEO_ERROR_400_COUNT(365, 191), + VIDEO_ERROR_400_COUNT(389, 191), /** * * @@ -32298,7 +34441,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_401_COUNT = 192; */ - VIDEO_ERROR_401_COUNT(366, 192), + VIDEO_ERROR_401_COUNT(390, 192), /** * * @@ -32316,7 +34459,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_402_COUNT = 193; */ - VIDEO_ERROR_402_COUNT(367, 193), + VIDEO_ERROR_402_COUNT(391, 193), /** * * @@ -32334,7 +34477,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_403_COUNT = 194; */ - VIDEO_ERROR_403_COUNT(368, 194), + VIDEO_ERROR_403_COUNT(392, 194), /** * * @@ -32352,7 +34495,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_405_COUNT = 195; */ - VIDEO_ERROR_405_COUNT(369, 195), + VIDEO_ERROR_405_COUNT(393, 195), /** * * @@ -32370,7 +34513,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_406_COUNT = 196; */ - VIDEO_ERROR_406_COUNT(370, 196), + VIDEO_ERROR_406_COUNT(394, 196), /** * * @@ -32388,7 +34531,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_407_COUNT = 197; */ - VIDEO_ERROR_407_COUNT(371, 197), + VIDEO_ERROR_407_COUNT(395, 197), /** * * @@ -32406,7 +34549,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_408_COUNT = 198; */ - VIDEO_ERROR_408_COUNT(372, 198), + VIDEO_ERROR_408_COUNT(396, 198), /** * * @@ -32424,7 +34567,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_409_COUNT = 199; */ - VIDEO_ERROR_409_COUNT(373, 199), + VIDEO_ERROR_409_COUNT(397, 199), /** * * @@ -32442,7 +34585,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_410_COUNT = 200; */ - VIDEO_ERROR_410_COUNT(374, 200), + VIDEO_ERROR_410_COUNT(398, 200), /** * * @@ -32460,7 +34603,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_500_COUNT = 201; */ - VIDEO_ERROR_500_COUNT(375, 201), + VIDEO_ERROR_500_COUNT(399, 201), /** * * @@ -32478,7 +34621,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_501_COUNT = 202; */ - VIDEO_ERROR_501_COUNT(376, 202), + VIDEO_ERROR_501_COUNT(400, 202), /** * * @@ -32496,7 +34639,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_502_COUNT = 203; */ - VIDEO_ERROR_502_COUNT(377, 203), + VIDEO_ERROR_502_COUNT(401, 203), /** * * @@ -32514,7 +34657,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_503_COUNT = 204; */ - VIDEO_ERROR_503_COUNT(378, 204), + VIDEO_ERROR_503_COUNT(402, 204), /** * * @@ -32532,7 +34675,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_600_COUNT = 205; */ - VIDEO_ERROR_600_COUNT(379, 205), + VIDEO_ERROR_600_COUNT(403, 205), /** * * @@ -32550,7 +34693,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_601_COUNT = 206; */ - VIDEO_ERROR_601_COUNT(380, 206), + VIDEO_ERROR_601_COUNT(404, 206), /** * * @@ -32568,7 +34711,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_602_COUNT = 207; */ - VIDEO_ERROR_602_COUNT(381, 207), + VIDEO_ERROR_602_COUNT(405, 207), /** * * @@ -32586,7 +34729,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_603_COUNT = 208; */ - VIDEO_ERROR_603_COUNT(382, 208), + VIDEO_ERROR_603_COUNT(406, 208), /** * * @@ -32604,7 +34747,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_604_COUNT = 209; */ - VIDEO_ERROR_604_COUNT(383, 209), + VIDEO_ERROR_604_COUNT(407, 209), /** * * @@ -32622,7 +34765,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_900_COUNT = 210; */ - VIDEO_ERROR_900_COUNT(384, 210), + VIDEO_ERROR_900_COUNT(408, 210), /** * * @@ -32640,7 +34783,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_ERROR_901_COUNT = 211; */ - VIDEO_ERROR_901_COUNT(385, 211), + VIDEO_ERROR_901_COUNT(409, 211), /** * * @@ -32659,7 +34802,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE = 92; */ - VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE(386, 92), + VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE(410, 92), /** * * @@ -32678,7 +34821,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_COLLAPSES = 93; */ - VIDEO_INTERACTION_COLLAPSES(387, 93), + VIDEO_INTERACTION_COLLAPSES(411, 93), /** * * @@ -32696,7 +34839,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_EXPANDS = 95; */ - VIDEO_INTERACTION_EXPANDS(388, 95), + VIDEO_INTERACTION_EXPANDS(412, 95), /** * * @@ -32714,7 +34857,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_FULL_SCREENS = 96; */ - VIDEO_INTERACTION_FULL_SCREENS(389, 96), + VIDEO_INTERACTION_FULL_SCREENS(413, 96), /** * * @@ -32733,7 +34876,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_MUTES = 97; */ - VIDEO_INTERACTION_MUTES(390, 97), + VIDEO_INTERACTION_MUTES(414, 97), /** * * @@ -32751,7 +34894,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_PAUSES = 98; */ - VIDEO_INTERACTION_PAUSES(391, 98), + VIDEO_INTERACTION_PAUSES(415, 98), /** * * @@ -32769,7 +34912,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_RESUMES = 99; */ - VIDEO_INTERACTION_RESUMES(392, 99), + VIDEO_INTERACTION_RESUMES(416, 99), /** * * @@ -32787,7 +34930,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_REWINDS = 100; */ - VIDEO_INTERACTION_REWINDS(393, 100), + VIDEO_INTERACTION_REWINDS(417, 100), /** * * @@ -32805,7 +34948,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_UNMUTES = 101; */ - VIDEO_INTERACTION_UNMUTES(394, 101), + VIDEO_INTERACTION_UNMUTES(418, 101), /** * * @@ -32823,7 +34966,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_INTERACTION_VIDEO_SKIPS = 102; */ - VIDEO_INTERACTION_VIDEO_SKIPS(395, 102), + VIDEO_INTERACTION_VIDEO_SKIPS(419, 102), /** * * @@ -32841,7 +34984,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_MONETIZABLE_CONTENT_VIEWS = 601; */ - VIDEO_MONETIZABLE_CONTENT_VIEWS(396, 601), + VIDEO_MONETIZABLE_CONTENT_VIEWS(420, 601), /** * * @@ -32859,7 +35002,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_CREATIVE_SERVES = 139; */ - VIDEO_REAL_TIME_CREATIVE_SERVES(397, 139), + VIDEO_REAL_TIME_CREATIVE_SERVES(421, 139), /** * * @@ -32877,7 +35020,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_100_COUNT = 143; */ - VIDEO_REAL_TIME_ERROR_100_COUNT(398, 143), + VIDEO_REAL_TIME_ERROR_100_COUNT(422, 143), /** * * @@ -32895,7 +35038,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_101_COUNT = 144; */ - VIDEO_REAL_TIME_ERROR_101_COUNT(399, 144), + VIDEO_REAL_TIME_ERROR_101_COUNT(423, 144), /** * * @@ -32913,7 +35056,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_102_COUNT = 145; */ - VIDEO_REAL_TIME_ERROR_102_COUNT(400, 145), + VIDEO_REAL_TIME_ERROR_102_COUNT(424, 145), /** * * @@ -32931,7 +35074,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_200_COUNT = 146; */ - VIDEO_REAL_TIME_ERROR_200_COUNT(401, 146), + VIDEO_REAL_TIME_ERROR_200_COUNT(425, 146), /** * * @@ -32949,7 +35092,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_201_COUNT = 147; */ - VIDEO_REAL_TIME_ERROR_201_COUNT(402, 147), + VIDEO_REAL_TIME_ERROR_201_COUNT(426, 147), /** * * @@ -32967,7 +35110,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_202_COUNT = 148; */ - VIDEO_REAL_TIME_ERROR_202_COUNT(403, 148), + VIDEO_REAL_TIME_ERROR_202_COUNT(427, 148), /** * * @@ -32985,7 +35128,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_203_COUNT = 149; */ - VIDEO_REAL_TIME_ERROR_203_COUNT(404, 149), + VIDEO_REAL_TIME_ERROR_203_COUNT(428, 149), /** * * @@ -33003,7 +35146,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_300_COUNT = 150; */ - VIDEO_REAL_TIME_ERROR_300_COUNT(405, 150), + VIDEO_REAL_TIME_ERROR_300_COUNT(429, 150), /** * * @@ -33021,7 +35164,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_301_COUNT = 151; */ - VIDEO_REAL_TIME_ERROR_301_COUNT(406, 151), + VIDEO_REAL_TIME_ERROR_301_COUNT(430, 151), /** * * @@ -33039,7 +35182,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_302_COUNT = 152; */ - VIDEO_REAL_TIME_ERROR_302_COUNT(407, 152), + VIDEO_REAL_TIME_ERROR_302_COUNT(431, 152), /** * * @@ -33057,7 +35200,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_303_COUNT = 153; */ - VIDEO_REAL_TIME_ERROR_303_COUNT(408, 153), + VIDEO_REAL_TIME_ERROR_303_COUNT(432, 153), /** * * @@ -33075,7 +35218,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_400_COUNT = 154; */ - VIDEO_REAL_TIME_ERROR_400_COUNT(409, 154), + VIDEO_REAL_TIME_ERROR_400_COUNT(433, 154), /** * * @@ -33093,7 +35236,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_401_COUNT = 155; */ - VIDEO_REAL_TIME_ERROR_401_COUNT(410, 155), + VIDEO_REAL_TIME_ERROR_401_COUNT(434, 155), /** * * @@ -33111,7 +35254,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_402_COUNT = 156; */ - VIDEO_REAL_TIME_ERROR_402_COUNT(411, 156), + VIDEO_REAL_TIME_ERROR_402_COUNT(435, 156), /** * * @@ -33129,7 +35272,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_403_COUNT = 157; */ - VIDEO_REAL_TIME_ERROR_403_COUNT(412, 157), + VIDEO_REAL_TIME_ERROR_403_COUNT(436, 157), /** * * @@ -33147,7 +35290,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_405_COUNT = 158; */ - VIDEO_REAL_TIME_ERROR_405_COUNT(413, 158), + VIDEO_REAL_TIME_ERROR_405_COUNT(437, 158), /** * * @@ -33165,7 +35308,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_406_COUNT = 159; */ - VIDEO_REAL_TIME_ERROR_406_COUNT(414, 159), + VIDEO_REAL_TIME_ERROR_406_COUNT(438, 159), /** * * @@ -33183,7 +35326,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_407_COUNT = 160; */ - VIDEO_REAL_TIME_ERROR_407_COUNT(415, 160), + VIDEO_REAL_TIME_ERROR_407_COUNT(439, 160), /** * * @@ -33201,7 +35344,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_408_COUNT = 161; */ - VIDEO_REAL_TIME_ERROR_408_COUNT(416, 161), + VIDEO_REAL_TIME_ERROR_408_COUNT(440, 161), /** * * @@ -33219,7 +35362,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_409_COUNT = 162; */ - VIDEO_REAL_TIME_ERROR_409_COUNT(417, 162), + VIDEO_REAL_TIME_ERROR_409_COUNT(441, 162), /** * * @@ -33237,7 +35380,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_410_COUNT = 163; */ - VIDEO_REAL_TIME_ERROR_410_COUNT(418, 163), + VIDEO_REAL_TIME_ERROR_410_COUNT(442, 163), /** * * @@ -33255,7 +35398,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_500_COUNT = 164; */ - VIDEO_REAL_TIME_ERROR_500_COUNT(419, 164), + VIDEO_REAL_TIME_ERROR_500_COUNT(443, 164), /** * * @@ -33273,7 +35416,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_501_COUNT = 165; */ - VIDEO_REAL_TIME_ERROR_501_COUNT(420, 165), + VIDEO_REAL_TIME_ERROR_501_COUNT(444, 165), /** * * @@ -33291,7 +35434,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_502_COUNT = 166; */ - VIDEO_REAL_TIME_ERROR_502_COUNT(421, 166), + VIDEO_REAL_TIME_ERROR_502_COUNT(445, 166), /** * * @@ -33309,7 +35452,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_503_COUNT = 167; */ - VIDEO_REAL_TIME_ERROR_503_COUNT(422, 167), + VIDEO_REAL_TIME_ERROR_503_COUNT(446, 167), /** * * @@ -33327,7 +35470,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_600_COUNT = 168; */ - VIDEO_REAL_TIME_ERROR_600_COUNT(423, 168), + VIDEO_REAL_TIME_ERROR_600_COUNT(447, 168), /** * * @@ -33345,7 +35488,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_601_COUNT = 169; */ - VIDEO_REAL_TIME_ERROR_601_COUNT(424, 169), + VIDEO_REAL_TIME_ERROR_601_COUNT(448, 169), /** * * @@ -33363,7 +35506,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_602_COUNT = 170; */ - VIDEO_REAL_TIME_ERROR_602_COUNT(425, 170), + VIDEO_REAL_TIME_ERROR_602_COUNT(449, 170), /** * * @@ -33381,7 +35524,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_603_COUNT = 171; */ - VIDEO_REAL_TIME_ERROR_603_COUNT(426, 171), + VIDEO_REAL_TIME_ERROR_603_COUNT(450, 171), /** * * @@ -33399,7 +35542,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_604_COUNT = 172; */ - VIDEO_REAL_TIME_ERROR_604_COUNT(427, 172), + VIDEO_REAL_TIME_ERROR_604_COUNT(451, 172), /** * * @@ -33417,7 +35560,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_900_COUNT = 173; */ - VIDEO_REAL_TIME_ERROR_900_COUNT(428, 173), + VIDEO_REAL_TIME_ERROR_900_COUNT(452, 173), /** * * @@ -33435,7 +35578,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_ERROR_901_COUNT = 174; */ - VIDEO_REAL_TIME_ERROR_901_COUNT(429, 174), + VIDEO_REAL_TIME_ERROR_901_COUNT(453, 174), /** * * @@ -33453,7 +35596,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_IMPRESSIONS = 138; */ - VIDEO_REAL_TIME_IMPRESSIONS(430, 138), + VIDEO_REAL_TIME_IMPRESSIONS(454, 138), /** * * @@ -33471,7 +35614,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_MATCHED_QUERIES = 140; */ - VIDEO_REAL_TIME_MATCHED_QUERIES(431, 140), + VIDEO_REAL_TIME_MATCHED_QUERIES(455, 140), /** * * @@ -33489,7 +35632,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_TOTAL_ERROR_COUNT = 175; */ - VIDEO_REAL_TIME_TOTAL_ERROR_COUNT(432, 175), + VIDEO_REAL_TIME_TOTAL_ERROR_COUNT(456, 175), /** * * @@ -33507,7 +35650,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_TOTAL_QUERIES = 142; */ - VIDEO_REAL_TIME_TOTAL_QUERIES(433, 142), + VIDEO_REAL_TIME_TOTAL_QUERIES(457, 142), /** * * @@ -33525,7 +35668,191 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; */ - VIDEO_REAL_TIME_UNMATCHED_QUERIES(434, 141), + VIDEO_REAL_TIME_UNMATCHED_QUERIES(458, 141), + /** + * + * + *
+     * The total number of breaks completed or fatal errors for the last ad in
+     *  the pod.
+     *
+     *
+     *
+     * Corresponds to "Break end" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END = 279; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END(459, 279), + /** + * + * + *
+     * The total number of breaks starts or errors for the first ad in a pod
+     *  that users made it to.
+     *
+     *
+     *
+     * Corresponds to "Break start" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START = 280; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START(460, 280), + /** + * + * + *
+     * The number of video ad opportunities reached by a user (rounded down, or
+     *  capped based on your max ads setting, whichever is less).
+     *
+     *
+     *
+     * Corresponds to "Capped opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK = 281; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK(461, 281), + /** + * + * + *
+     * The total number of seconds available to be filled.
+     *
+     *
+     *
+     * Corresponds to "Total duration (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK = 283; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK(462, 283), + /** + * + * + *
+     * The total number of seconds filled.
+     *
+     *
+     *
+     * Corresponds to "Matched duration (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK = 285; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK(463, 285), + /** + * + * + *
+     * The total matched opportunities in video true opportunities reporting.
+     *
+     *
+     *
+     * Corresponds to "Matched opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK = 287; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK(464, 287), + /** + * + * + *
+     * The number of video ad opportunities reached by a user (rounded down).
+     *
+     *
+     *
+     * Corresponds to "Viewed opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK = 289; + */ + VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK(465, 289), + /** + * + * + *
+     * The number of TrueView ad impressions viewed.
+     *
+     *
+     *
+     * Corresponds to "True views" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_VIEWS = 392; + */ + VIDEO_TRUE_VIEWS(466, 392), + /** + * + * + *
+     * Measures the percentage of skips.
+     *
+     *
+     *
+     * Corresponds to "True views skip rate" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * VIDEO_TRUE_VIEW_SKIP_RATE = 393; + */ + VIDEO_TRUE_VIEW_SKIP_RATE(467, 393), + /** + * + * + *
+     * The view-through rate is the percentage of views divided by number of
+     *  impressions
+     *
+     *
+     *
+     * Corresponds to "True views view-through rate" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE = 394; + */ + VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE(468, 394), /** * * @@ -33544,7 +35871,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_AUTO_PLAYS = 103; */ - VIDEO_VIEWERSHIP_AUTO_PLAYS(435, 103), + VIDEO_VIEWERSHIP_AUTO_PLAYS(469, 103), /** * * @@ -33562,7 +35889,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE = 104; */ - VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE(436, 104), + VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE(470, 104), /** * * @@ -33580,7 +35907,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME = 105; */ - VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME(437, 105), + VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME(471, 105), /** * * @@ -33599,7 +35926,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_CLICK_TO_PLAYS = 106; */ - VIDEO_VIEWERSHIP_CLICK_TO_PLAYS(438, 106), + VIDEO_VIEWERSHIP_CLICK_TO_PLAYS(472, 106), /** * * @@ -33617,7 +35944,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_COMPLETES = 107; */ - VIDEO_VIEWERSHIP_COMPLETES(439, 107), + VIDEO_VIEWERSHIP_COMPLETES(473, 107), /** * * @@ -33635,7 +35962,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_COMPLETION_RATE = 108; */ - VIDEO_VIEWERSHIP_COMPLETION_RATE(440, 108), + VIDEO_VIEWERSHIP_COMPLETION_RATE(474, 108), /** * * @@ -33654,7 +35981,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_ENGAGED_VIEWS = 109; */ - VIDEO_VIEWERSHIP_ENGAGED_VIEWS(441, 109), + VIDEO_VIEWERSHIP_ENGAGED_VIEWS(475, 109), /** * * @@ -33672,7 +35999,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_FIRST_QUARTILES = 110; */ - VIDEO_VIEWERSHIP_FIRST_QUARTILES(442, 110), + VIDEO_VIEWERSHIP_FIRST_QUARTILES(476, 110), /** * * @@ -33690,7 +36017,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_MIDPOINTS = 111; */ - VIDEO_VIEWERSHIP_MIDPOINTS(443, 111), + VIDEO_VIEWERSHIP_MIDPOINTS(477, 111), /** * * @@ -33708,7 +36035,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN = 112; */ - VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN(444, 112), + VIDEO_VIEWERSHIP_SKIP_BUTTONS_SHOWN(478, 112), /** * * @@ -33726,7 +36053,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_STARTS = 113; */ - VIDEO_VIEWERSHIP_STARTS(445, 113), + VIDEO_VIEWERSHIP_STARTS(479, 113), /** * * @@ -33744,7 +36071,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_THIRD_QUARTILES = 114; */ - VIDEO_VIEWERSHIP_THIRD_QUARTILES(446, 114), + VIDEO_VIEWERSHIP_THIRD_QUARTILES(480, 114), /** * * @@ -33763,7 +36090,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT = 115; */ - VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT(447, 115), + VIDEO_VIEWERSHIP_TOTAL_ERROR_COUNT(481, 115), /** * * @@ -33781,7 +36108,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE = 94; */ - VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE(448, 94), + VIDEO_VIEWERSHIP_TOTAL_ERROR_RATE(482, 94), /** * * @@ -33799,7 +36126,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_VIDEO_LENGTH = 116; */ - VIDEO_VIEWERSHIP_VIDEO_LENGTH(449, 116), + VIDEO_VIEWERSHIP_VIDEO_LENGTH(483, 116), /** * * @@ -33817,7 +36144,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE = 117; */ - VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE(450, 117), + VIDEO_VIEWERSHIP_VIEW_THROUGH_RATE(484, 117), /** * * @@ -33836,7 +36163,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_AUCTIONS_WON = 80; */ - YIELD_GROUP_AUCTIONS_WON(451, 80), + YIELD_GROUP_AUCTIONS_WON(485, 80), /** * * @@ -33855,7 +36182,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_BIDS = 81; */ - YIELD_GROUP_BIDS(452, 81), + YIELD_GROUP_BIDS(486, 81), /** * * @@ -33874,7 +36201,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_BIDS_IN_AUCTION = 82; */ - YIELD_GROUP_BIDS_IN_AUCTION(453, 82), + YIELD_GROUP_BIDS_IN_AUCTION(487, 82), /** * * @@ -33893,7 +36220,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_CALLOUTS = 83; */ - YIELD_GROUP_CALLOUTS(454, 83), + YIELD_GROUP_CALLOUTS(488, 83), /** * * @@ -33912,7 +36239,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_ESTIMATED_CPM = 88; */ - YIELD_GROUP_ESTIMATED_CPM(455, 88), + YIELD_GROUP_ESTIMATED_CPM(489, 88), /** * * @@ -33931,7 +36258,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_ESTIMATED_REVENUE = 87; */ - YIELD_GROUP_ESTIMATED_REVENUE(456, 87), + YIELD_GROUP_ESTIMATED_REVENUE(490, 87), /** * * @@ -33950,7 +36277,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_IMPRESSIONS = 85; */ - YIELD_GROUP_IMPRESSIONS(457, 85), + YIELD_GROUP_IMPRESSIONS(491, 85), /** * * @@ -33969,7 +36296,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_MEDIATION_FILL_RATE = 89; */ - YIELD_GROUP_MEDIATION_FILL_RATE(458, 89), + YIELD_GROUP_MEDIATION_FILL_RATE(492, 89), /** * * @@ -33988,7 +36315,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_MEDIATION_MATCHED_QUERIES = 86; */ - YIELD_GROUP_MEDIATION_MATCHED_QUERIES(459, 86), + YIELD_GROUP_MEDIATION_MATCHED_QUERIES(493, 86), /** * * @@ -34006,7 +36333,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_MEDIATION_PASSBACKS = 118; */ - YIELD_GROUP_MEDIATION_PASSBACKS(460, 118), + YIELD_GROUP_MEDIATION_PASSBACKS(494, 118), /** * * @@ -34026,7 +36353,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM = 90; */ - YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM(461, 90), + YIELD_GROUP_MEDIATION_THIRD_PARTY_ECPM(495, 90), /** * * @@ -34047,7 +36374,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 215; */ - YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(462, 215), + YIELD_GROUP_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT(496, 215), /** * * @@ -34066,7 +36393,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * YIELD_GROUP_SUCCESSFUL_RESPONSES = 84; */ - YIELD_GROUP_SUCCESSFUL_RESPONSES(463, 84), + YIELD_GROUP_SUCCESSFUL_RESPONSES(497, 84), UNRECOGNIZED(-1, -1), ; @@ -35501,7 +37828,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * The ratio of matched ad requests served by the Ad Exchange that * resulted in users clicking on an ad. The clickthrough rate (CTR) is * updated nightly. Ad Exchange Matched Request CTR is calculated as: - * (Ad Exchange clicks / Ad Exchange Macthed Ad Requests). + * (Ad Exchange clicks / Ad Exchange Matched Ad Requests). * * * @@ -36426,6 +38753,48 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS_VALUE = 338; + /** + * + * + *
+     * Total number of ad server VAST errors discounting errors generated from
+     *  video fallback ads.
+     *
+     *
+     *
+     * Corresponds to "Ad Server opportunities from errors" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AD_SERVER_OPPORTUNITIES_FROM_ERRORS = 461; + */ + public static final int AD_SERVER_OPPORTUNITIES_FROM_ERRORS_VALUE = 461; + + /** + * + * + *
+     * Total number of ad server impressions discounting video fallback
+     *  impressions.
+     *
+     *
+     *
+     * Corresponds to "Ad Server opportunities from impressions" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS = 462; + */ + public static final int AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS_VALUE = 462; + /** * * @@ -36959,7 +39328,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Header bidding trafficking ad requests with no bids" in + * Corresponds to "Ad requests with no header bidding trafficking bids" in * the Ad Manager UI. * * Compatible with the following report types: @@ -37022,7 +39391,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Header bidding trafficking ad requests with bids" in the + * Corresponds to "Ad requests with header bidding trafficking bids" in the * Ad Manager UI. * * Compatible with the following report types: @@ -37062,7 +39431,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Creative not retrieved" in the Ad Manager UI. + * Corresponds to "Line items with no creative retrieved" in the Ad Manager + * UI. * * Compatible with the following report types: * @@ -37122,7 +39492,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Not selected to compete" in the Ad Manager UI. + * Corresponds to "Line items not selected to compete" in the Ad Manager UI. * * Compatible with the following report types: * @@ -37245,8 +39615,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Mediation requests with no partners" in the Ad Manager - * UI. + * Corresponds to "Ad requests with no targeted mediation partners" in the + * Ad Manager UI. * * Compatible with the following report types: * @@ -37810,7 +40180,8 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * * - * Corresponds to "Total ad requests (ATN)" in the Ad Manager UI. + * Corresponds to "Total ad requests (Ads traffic navigator)" in the Ad + * Manager UI. * * Compatible with the following report types: * @@ -37898,6 +40269,25 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ATN_YIELD_GROUP_MEDIATION_PASSBACKS_VALUE = 390; + /** + * + * + *
+     * Cost of the audience segment.
+     *
+     *
+     *
+     * Corresponds to "Audience segment cost" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * AUDIENCE_SEGMENT_COST = 558; + */ + public static final int AUDIENCE_SEGMENT_COST_VALUE = 558; + /** * * @@ -37929,7 +40319,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `MONEY` *
@@ -38121,7 +40511,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total clicks" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `INTEGER` * @@ -38314,7 +40704,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total CTR" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `PERCENT` * @@ -39098,7 +41488,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total impressions" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `INTEGER` * @@ -39303,6 +41693,296 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OVERDELIVERED_IMPRESSIONS_VALUE = 432; + /** + * + * + *
+     * The gross revenue for partner finance reports.
+     *
+     *
+     *
+     * Corresponds to "Gross revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_GROSS_REVENUE = 648; + */ + public static final int PARTNER_FINANCE_GROSS_REVENUE_VALUE = 648; + + /** + * + * + *
+     * Monthly host eCPM for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Host eCPM" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_HOST_ECPM = 649; + */ + public static final int PARTNER_FINANCE_HOST_ECPM_VALUE = 649; + + /** + * + * + *
+     * The host impressions for partner finance reports.
+     *
+     *
+     *
+     * Corresponds to "Host impressions" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_FINANCE_HOST_IMPRESSIONS = 650; + */ + public static final int PARTNER_FINANCE_HOST_IMPRESSIONS_VALUE = 650; + + /** + * + * + *
+     * Monthly host revenue for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Host revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_HOST_REVENUE = 651; + */ + public static final int PARTNER_FINANCE_HOST_REVENUE_VALUE = 651; + + /** + * + * + *
+     * Monthly partner eCPM for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Partner eCPM" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_PARTNER_ECPM = 652; + */ + public static final int PARTNER_FINANCE_PARTNER_ECPM_VALUE = 652; + + /** + * + * + *
+     * Monthly partner revenue for partner finance reports
+     *
+     *
+     *
+     * Corresponds to "Partner revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PARTNER_FINANCE`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_FINANCE_PARTNER_REVENUE = 653; + */ + public static final int PARTNER_FINANCE_PARTNER_REVENUE_VALUE = 653; + + /** + * + * + *
+     * The gross revenue in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management gross revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * PARTNER_MANAGEMENT_GROSS_REVENUE = 533; + */ + public static final int PARTNER_MANAGEMENT_GROSS_REVENUE_VALUE = 533; + + /** + * + * + *
+     * The host clicks in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host clicks" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_CLICKS = 534; + */ + public static final int PARTNER_MANAGEMENT_HOST_CLICKS_VALUE = 534; + + /** + * + * + *
+     * The host CTR in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host CTR" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_CTR = 535; + */ + public static final int PARTNER_MANAGEMENT_HOST_CTR_VALUE = 535; + + /** + * + * + *
+     * The host impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management host impressions" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_HOST_IMPRESSIONS = 536; + */ + public static final int PARTNER_MANAGEMENT_HOST_IMPRESSIONS_VALUE = 536; + + /** + * + * + *
+     * The partner clicks in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner clicks" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_CLICKS = 537; + */ + public static final int PARTNER_MANAGEMENT_PARTNER_CLICKS_VALUE = 537; + + /** + * + * + *
+     * The partner CTR in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner CTR" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_CTR = 538; + */ + public static final int PARTNER_MANAGEMENT_PARTNER_CTR_VALUE = 538; + + /** + * + * + *
+     * The partner impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management partner impressions" in the Ad Manager
+     * UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS = 539; + */ + public static final int PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS_VALUE = 539; + + /** + * + * + *
+     * The total content views in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management total monetizable content views" in
+     * the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS = 540; + */ + public static final int PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS_VALUE = 540; + + /** + * + * + *
+     * The unfilled impressions in the partner management.
+     *
+     *
+     *
+     * Corresponds to "Partner management unfilled impressions" in the Ad
+     * Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`,
+     * `PARTNER_FINANCE`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 541; + */ + public static final int PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS_VALUE = 541; + /** * * @@ -39617,7 +42297,7 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * Corresponds to "Total revenue" in the Ad Manager UI. * - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` * * Data format: `MONEY` * @@ -39652,7 +42332,103 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { * * *
-     * Total amount of revenue (excluding CPD) based on the number of units
+     * The total CPD net revenue for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPD revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_CPD_REVENUE = 560; + */ + public static final int REVENUE_VERIFICATION_CPD_REVENUE_VALUE = 560; + + /** + * + * + *
+     * The total CPD gross revenue for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPD revenue (gross)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_GROSS_CPD_REVENUE = 559; + */ + public static final int REVENUE_VERIFICATION_GROSS_CPD_REVENUE_VALUE = 559; + + /** + * + * + *
+     * The total gross revenue (excluding CPD) for Revenue Verification
+     *  reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPM and CPC revenue (gross)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD = 561; + */ + public static final int REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD_VALUE = 561; + + /** + * + * + *
+     * The total impressions for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total impressions" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * REVENUE_VERIFICATION_IMPRESSIONS = 564; + */ + public static final int REVENUE_VERIFICATION_IMPRESSIONS_VALUE = 564; + + /** + * + * + *
+     * The total net revenue (excluding CPD) for Revenue Verification reporting.
+     *
+     *
+     *
+     * Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `REVENUE_VERIFICATION`
+     *
+     * Data format: `MONEY`
+     * 
+ * + * REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD = 567; + */ + public static final int REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD_VALUE = 567; + + /** + * + * + *
+     * Total revenue (excluding CPD) based on the number of units
      *  served by the Google Ad Manager server, AdSense, Ad Exchange, and
      *  third-party Mediation networks.
      *
@@ -40881,25 +43657,6 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum {
      */
     public static final int USER_MESSAGES_ALLOW_ADS_PAGEVIEWS_VALUE = 489;
 
-    /**
-     *
-     *
-     * 
-     * Number of times a US state regulations message was shown to users.
-     *
-     *
-     *
-     * Corresponds to "US states messages shown" in the Ad Manager UI.
-     *
-     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
-     *
-     * Data format: `INTEGER`
-     * 
- * - * USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; - */ - public static final int USER_MESSAGES_CCPA_MESSAGES_SHOWN_VALUE = 490; - /** * * @@ -41176,6 +43933,44 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO_VALUE = 502; + /** + * + * + *
+     * Number of times a US state regulations message was shown to users.
+     *
+     *
+     *
+     * Corresponds to "US states messages shown" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * USER_MESSAGES_US_STATES_MESSAGES_SHOWN = 490; + */ + public static final int USER_MESSAGES_US_STATES_MESSAGES_SHOWN_VALUE = 490; + + /** + * + * + *
+     * Number of times users selected the opt-out option in a US states message.
+     *
+     *
+     *
+     * Corresponds to "US states opt-out selections" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `PRIVACY_AND_MESSAGING`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS = 586; + */ + public static final int USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS_VALUE = 586; + /** * * @@ -42718,6 +45513,201 @@ public enum Metric implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VIDEO_REAL_TIME_UNMATCHED_QUERIES_VALUE = 141; + /** + * + * + *
+     * The total number of breaks completed or fatal errors for the last ad in
+     *  the pod.
+     *
+     *
+     *
+     * Corresponds to "Break end" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END = 279; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END_VALUE = 279; + + /** + * + * + *
+     * The total number of breaks starts or errors for the first ad in a pod
+     *  that users made it to.
+     *
+     *
+     *
+     * Corresponds to "Break start" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START = 280; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START_VALUE = 280; + + /** + * + * + *
+     * The number of video ad opportunities reached by a user (rounded down, or
+     *  capped based on your max ads setting, whichever is less).
+     *
+     *
+     *
+     * Corresponds to "Capped opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK = 281; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK_VALUE = 281; + + /** + * + * + *
+     * The total number of seconds available to be filled.
+     *
+     *
+     *
+     * Corresponds to "Total duration (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK = 283; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK_VALUE = 283; + + /** + * + * + *
+     * The total number of seconds filled.
+     *
+     *
+     *
+     * Corresponds to "Matched duration (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK = 285; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK_VALUE = 285; + + /** + * + * + *
+     * The total matched opportunities in video true opportunities reporting.
+     *
+     *
+     *
+     * Corresponds to "Matched opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK = 287; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK_VALUE = + 287; + + /** + * + * + *
+     * The number of video ad opportunities reached by a user (rounded down).
+     *
+     *
+     *
+     * Corresponds to "Viewed opportunities (adbreak)" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK = 289; + */ + public static final int VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK_VALUE = 289; + + /** + * + * + *
+     * The number of TrueView ad impressions viewed.
+     *
+     *
+     *
+     * Corresponds to "True views" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `INTEGER`
+     * 
+ * + * VIDEO_TRUE_VIEWS = 392; + */ + public static final int VIDEO_TRUE_VIEWS_VALUE = 392; + + /** + * + * + *
+     * Measures the percentage of skips.
+     *
+     *
+     *
+     * Corresponds to "True views skip rate" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * VIDEO_TRUE_VIEW_SKIP_RATE = 393; + */ + public static final int VIDEO_TRUE_VIEW_SKIP_RATE_VALUE = 393; + + /** + * + * + *
+     * The view-through rate is the percentage of views divided by number of
+     *  impressions
+     *
+     *
+     *
+     * Corresponds to "True views view-through rate" in the Ad Manager UI.
+     *
+     * Compatible with the following report types: `HISTORICAL`
+     *
+     * Data format: `PERCENT`
+     * 
+ * + * VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE = 394; + */ + public static final int VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE_VALUE = 394; + /** * * @@ -43542,6 +46532,10 @@ public static Metric forNumber(int value) { return AD_SERVER_IMPRESSIONS_WITH_COMPANION; case 338: return AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS; + case 461: + return AD_SERVER_OPPORTUNITIES_FROM_ERRORS; + case 462: + return AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS; case 12: return AD_SERVER_PERCENT_CLICKS; case 11: @@ -43686,6 +46680,8 @@ public static Metric forNumber(int value) { return ATN_VALID_AD_REQUESTS; case 390: return ATN_YIELD_GROUP_MEDIATION_PASSBACKS; + case 558: + return AUDIENCE_SEGMENT_COST; case 37: return AVERAGE_ECPM; case 5: @@ -43830,6 +46826,36 @@ public static Metric forNumber(int value) { return OPPORTUNITIES; case 432: return OVERDELIVERED_IMPRESSIONS; + case 648: + return PARTNER_FINANCE_GROSS_REVENUE; + case 649: + return PARTNER_FINANCE_HOST_ECPM; + case 650: + return PARTNER_FINANCE_HOST_IMPRESSIONS; + case 651: + return PARTNER_FINANCE_HOST_REVENUE; + case 652: + return PARTNER_FINANCE_PARTNER_ECPM; + case 653: + return PARTNER_FINANCE_PARTNER_REVENUE; + case 533: + return PARTNER_MANAGEMENT_GROSS_REVENUE; + case 534: + return PARTNER_MANAGEMENT_HOST_CLICKS; + case 535: + return PARTNER_MANAGEMENT_HOST_CTR; + case 536: + return PARTNER_MANAGEMENT_HOST_IMPRESSIONS; + case 537: + return PARTNER_MANAGEMENT_PARTNER_CLICKS; + case 538: + return PARTNER_MANAGEMENT_PARTNER_CTR; + case 539: + return PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS; + case 540: + return PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS; + case 541: + return PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS; case 135: return PARTNER_SALES_FILLED_POD_REQUESTS; case 136: @@ -43864,6 +46890,16 @@ public static Metric forNumber(int value) { return REVENUE; case 214: return REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT; + case 560: + return REVENUE_VERIFICATION_CPD_REVENUE; + case 559: + return REVENUE_VERIFICATION_GROSS_CPD_REVENUE; + case 561: + return REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD; + case 564: + return REVENUE_VERIFICATION_IMPRESSIONS; + case 567: + return REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD; case 4: return REVENUE_WITHOUT_CPD; case 413: @@ -43988,8 +47024,6 @@ public static Metric forNumber(int value) { return USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN; case 489: return USER_MESSAGES_ALLOW_ADS_PAGEVIEWS; - case 490: - return USER_MESSAGES_CCPA_MESSAGES_SHOWN; case 491: return USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN; case 492: @@ -44018,6 +47052,10 @@ public static Metric forNumber(int value) { return USER_MESSAGES_UPTC_MESSAGES_SHOWN; case 502: return USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO; + case 490: + return USER_MESSAGES_US_STATES_MESSAGES_SHOWN; + case 586: + return USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS; case 180: return VIDEO_ERROR_100_COUNT; case 181: @@ -44180,6 +47218,26 @@ public static Metric forNumber(int value) { return VIDEO_REAL_TIME_TOTAL_QUERIES; case 141: return VIDEO_REAL_TIME_UNMATCHED_QUERIES; + case 279: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END; + case 280: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START; + case 281: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK; + case 283: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK; + case 285: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK; + case 287: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK; + case 289: + return VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK; + case 392: + return VIDEO_TRUE_VIEWS; + case 393: + return VIDEO_TRUE_VIEW_SKIP_RATE; + case 394: + return VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE; case 103: return VIDEO_VIEWERSHIP_AUTO_PLAYS; case 104: @@ -44389,6 +47447,8 @@ private static Metric[] getStaticValuesArray() { AD_SERVER_IMPRESSIONS, AD_SERVER_IMPRESSIONS_WITH_COMPANION, AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS, + AD_SERVER_OPPORTUNITIES_FROM_ERRORS, + AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS, AD_SERVER_PERCENT_CLICKS, AD_SERVER_PERCENT_IMPRESSIONS, AD_SERVER_PERCENT_REVENUE, @@ -44462,6 +47522,7 @@ private static Metric[] getStaticValuesArray() { ATN_TOTAL_LOADED_ADS, ATN_VALID_AD_REQUESTS, ATN_YIELD_GROUP_MEDIATION_PASSBACKS, + AUDIENCE_SEGMENT_COST, AVERAGE_ECPM, AVERAGE_ECPM_WITHOUT_CPD, AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION, @@ -44534,6 +47595,21 @@ private static Metric[] getStaticValuesArray() { MUTE_ELIGIBLE_IMPRESSIONS, OPPORTUNITIES, OVERDELIVERED_IMPRESSIONS, + PARTNER_FINANCE_GROSS_REVENUE, + PARTNER_FINANCE_HOST_ECPM, + PARTNER_FINANCE_HOST_IMPRESSIONS, + PARTNER_FINANCE_HOST_REVENUE, + PARTNER_FINANCE_PARTNER_ECPM, + PARTNER_FINANCE_PARTNER_REVENUE, + PARTNER_MANAGEMENT_GROSS_REVENUE, + PARTNER_MANAGEMENT_HOST_CLICKS, + PARTNER_MANAGEMENT_HOST_CTR, + PARTNER_MANAGEMENT_HOST_IMPRESSIONS, + PARTNER_MANAGEMENT_PARTNER_CLICKS, + PARTNER_MANAGEMENT_PARTNER_CTR, + PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS, + PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS, + PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS, PARTNER_SALES_FILLED_POD_REQUESTS, PARTNER_SALES_FILL_RATE, PARTNER_SALES_PARTNER_MATCH_RATE, @@ -44551,6 +47627,11 @@ private static Metric[] getStaticValuesArray() { RETENTION, REVENUE, REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT, + REVENUE_VERIFICATION_CPD_REVENUE, + REVENUE_VERIFICATION_GROSS_CPD_REVENUE, + REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD, + REVENUE_VERIFICATION_IMPRESSIONS, + REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD, REVENUE_WITHOUT_CPD, REWARDS_GRANTED, RICH_MEDIA_AVERAGE_DISPLAY_TIME, @@ -44613,7 +47694,6 @@ private static Metric[] getStaticValuesArray() { USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT, USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN, USER_MESSAGES_ALLOW_ADS_PAGEVIEWS, - USER_MESSAGES_CCPA_MESSAGES_SHOWN, USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN, USER_MESSAGES_IDFA_ATT_CONSENT, USER_MESSAGES_IDFA_ATT_CONSENT_RATE, @@ -44628,6 +47708,8 @@ private static Metric[] getStaticValuesArray() { USER_MESSAGES_TOTAL_ESTIMATED_REVENUE, USER_MESSAGES_UPTC_MESSAGES_SHOWN, USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO, + USER_MESSAGES_US_STATES_MESSAGES_SHOWN, + USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS, VIDEO_ERROR_100_COUNT, VIDEO_ERROR_101_COUNT, VIDEO_ERROR_102_COUNT, @@ -44709,6 +47791,16 @@ private static Metric[] getStaticValuesArray() { VIDEO_REAL_TIME_TOTAL_ERROR_COUNT, VIDEO_REAL_TIME_TOTAL_QUERIES, VIDEO_REAL_TIME_UNMATCHED_QUERIES, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK, + VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK, + VIDEO_TRUE_VIEWS, + VIDEO_TRUE_VIEW_SKIP_RATE, + VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE, VIDEO_VIEWERSHIP_AUTO_PLAYS, VIDEO_VIEWERSHIP_AVERAGE_VIEW_RATE, VIDEO_VIEWERSHIP_AVERAGE_VIEW_TIME, @@ -46695,6 +49787,17 @@ public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum * LAST_WEEK = 7; */ LAST_WEEK(7), + /** + * + * + *
+       * The entire previous calendar week, Sunday to Saturday (inclusive),
+       * preceding the calendar week the report is run.
+       * 
+ * + * LAST_WEEK_STARTING_SUNDAY = 39; + */ + LAST_WEEK_STARTING_SUNDAY(39), /** * * @@ -46768,6 +49871,16 @@ public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum * LAST_90_DAYS = 14; */ LAST_90_DAYS(14), + /** + * + * + *
+       * The 93 days preceding the day the report is run.
+       * 
+ * + * LAST_93_DAYS = 38; + */ + LAST_93_DAYS(38), /** * * @@ -47119,6 +50232,18 @@ public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum */ public static final int LAST_WEEK_VALUE = 7; + /** + * + * + *
+       * The entire previous calendar week, Sunday to Saturday (inclusive),
+       * preceding the calendar week the report is run.
+       * 
+ * + * LAST_WEEK_STARTING_SUNDAY = 39; + */ + public static final int LAST_WEEK_STARTING_SUNDAY_VALUE = 39; + /** * * @@ -47199,6 +50324,17 @@ public enum RelativeDateRange implements com.google.protobuf.ProtocolMessageEnum */ public static final int LAST_90_DAYS_VALUE = 14; + /** + * + * + *
+       * The 93 days preceding the day the report is run.
+       * 
+ * + * LAST_93_DAYS = 38; + */ + public static final int LAST_93_DAYS_VALUE = 38; + /** * * @@ -47471,6 +50607,8 @@ public static RelativeDateRange forNumber(int value) { return THIS_YEAR_TO_DATE; case 7: return LAST_WEEK; + case 39: + return LAST_WEEK_STARTING_SUNDAY; case 8: return LAST_MONTH; case 9: @@ -47485,6 +50623,8 @@ public static RelativeDateRange forNumber(int value) { return LAST_60_DAYS; case 14: return LAST_90_DAYS; + case 38: + return LAST_93_DAYS; case 15: return LAST_180_DAYS; case 16: diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java index 49946304197e..c2c12bf6a4df 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/ReportDefinitionProto.java @@ -81,7 +81,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/google/ads/admanager/v1/report_definit" + "ion.proto\022\027google.ads.admanager.v1\032*goog" + "le/ads/admanager/v1/report_value.proto\032\037" - + "google/api/field_behavior.proto\032\026google/type/date.proto\"\350\324\002\n" + + "google/api/field_behavior.proto\032\026google/type/date.proto\"\275\355\002\n" + "\020ReportDefinition\022L\n" + "\n" + "dimensions\030\001" @@ -117,7 +117,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".admanager.v1.ReportDefinition.DimensionH\000\022B\n" + "\006metric\030\002" + " \001(\01620.google.ads.admanager.v1.ReportDefinition.MetricH\000B\007\n" - + "\005field\032\376\007\n" + + "\005field\032\257\010\n" + "\tDateRange\022S\n" + "\005fixed\030\001 \001(\0132B.google.ad" + "s.admanager.v1.ReportDefinition.DateRange.FixedDateRangeH\000\022Y\n" @@ -125,7 +125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRangeH\000\032f\n" + "\016FixedDateRange\022*\n\n" + "start_date\030\001 \001(\0132\021.google.type.DateB\003\340A\002\022(\n" - + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\305\005\n" + + "\010end_date\030\002 \001(\0132\021.google.type.DateB\003\340A\002\"\366\005\n" + "\021RelativeDateRange\022#\n" + "\037RELATIVE_DATE_RANGE_UNSPECIFIED\020\000\022\t\n" + "\005TODAY\020\001\022\r\n" @@ -138,7 +138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024THIS_QUARTER_TO_DATE\020\033\022\r\n" + "\tTHIS_YEAR\020\006\022\025\n" + "\021THIS_YEAR_TO_DATE\020\034\022\r\n" - + "\tLAST_WEEK\020\007\022\016\n\n" + + "\tLAST_WEEK\020\007\022\035\n" + + "\031LAST_WEEK_STARTING_SUNDAY\020\'\022\016\n\n" + "LAST_MONTH\020\010\022\020\n" + "\014LAST_QUARTER\020\t\022\r\n" + "\tLAST_YEAR\020\n" @@ -147,13 +148,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014LAST_30_DAYS\020\014\022\020\n" + "\014LAST_60_DAYS\020\r" + "\022\020\n" - + "\014LAST_90_DAYS\020\016\022\021\n\r" + + "\014LAST_90_DAYS\020\016\022\020\n" + + "\014LAST_93_DAYS\020&\022\021\n\r" + "LAST_180_DAYS\020\017\022\021\n\r" + "LAST_360_DAYS\020\020\022\021\n\r" + "LAST_365_DAYS\020\021\022\021\n\r" + "LAST_3_MONTHS\020\022\022\021\n\r" + "LAST_6_MONTHS\020\023\022\022\n" - + "\016LAST_12_MONTHS\020\024\022\021\n\r" + + "\016LAST_12_MONTHS\020\024\022\021\n" + + "\r" + "ALL_AVAILABLE\020\025\022\014\n" + "\010TOMORROW\020\036\022\020\n" + "\014NEXT_90_DAYS\020\037\022\016\n\n" @@ -167,32 +170,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031SAME_PERIOD_PREVIOUS_YEAR\020\030B\021\n" + "\017date_range_type\032\317\010\n" + "\006Filter\022T\n" - + "\014field_filter\030\001 \001(\0132<.google.ads.admanager" - + ".v1.ReportDefinition.Filter.FieldFilterH\000\022F\n\n" - + "not_filter\030\002" - + " \001(\01320.google.ads.admanager.v1.ReportDefinition.FilterH\000\022Q\n\n" - + "and_filter\030\003" - + " \001(\0132;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\000\022P\n" - + "\tor_filter\030\004 \001(\0132;.google.ads.admanager.v" - + "1.ReportDefinition.Filter.FilterListH\000\032\346\003\n" + + "\014field_filter\030\001 \001(\0132<.google.ads." + + "admanager.v1.ReportDefinition.Filter.FieldFilterH\000\022F\n\n" + + "not_filter\030\002 \001(\01320.google." + + "ads.admanager.v1.ReportDefinition.FilterH\000\022Q\n\n" + + "and_filter\030\003 \001(\0132;.google.ads.adma" + + "nager.v1.ReportDefinition.Filter.FilterListH\000\022P\n" + + "\tor_filter\030\004 \001(\0132;.google.ads.ad" + + "manager.v1.ReportDefinition.Filter.FilterListH\000\032\346\003\n" + "\013FieldFilter\022C\n" - + "\005field\030\001 \001(\0132/.google.a" - + "ds.admanager.v1.ReportDefinition.FieldB\003\340A\002\022R\n" - + "\toperation\030\002 \001(\0162:.google.ads.adma" - + "nager.v1.ReportDefinition.Filter.OperationB\003\340A\002\0229\n" + + "\005field\030\001 \001(\0132/" + + ".google.ads.admanager.v1.ReportDefinition.FieldB\003\340A\002\022R\n" + + "\toperation\030\002 \001(\0162:.google" + + ".ads.admanager.v1.ReportDefinition.Filter.OperationB\003\340A\002\0229\n" + "\006values\030\003" + " \003(\0132$.google.ads.admanager.v1.ReportValueB\003\340A\002\022H\n" - + "\005slice\030\004 \001(" - + "\0132/.google.ads.admanager.v1.ReportDefinition.SliceB\003\340A\001H\000\210\001\001\022#\n" + + "\005slice\030\004" + + " \001(\0132/.google.ads.admanager.v1.ReportDefinition.SliceB\003\340A\001H\000\210\001\001\022#\n" + "\021time_period_index\030\005 \001(\005B\003\340A\001H\001\210\001\001\022^\n" - + "\021metric_value_type\030\006" - + " \001(\01629.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\021metric_value_type\030\006 \001(\01629.google.ads.admanager.v1." + + "ReportDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + "\006_sliceB\024\n" + "\022_time_period_indexB\024\n" + "\022_metric_value_type\032T\n\n" + "FilterList\022F\n" - + "\007filters\030\001 \003(\01320" - + ".google.ads.admanager.v1.ReportDefinition.FilterB\003\340A\002\"\272\001\n" + + "\007filters\030\001" + + " \003(\01320.google.ads.admanager.v1.ReportDefinition.FilterB\003\340A\002\"\272\001\n" + "\tOperation\022\006\n" + "\002IN\020\000\022\n\n" + "\006NOT_IN\020\001\022\014\n" @@ -208,32 +211,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\006\n" + "\004type\032\351\002\n" + "\004Sort\022C\n" - + "\005field\030\001 \001(\0132/.goo" - + "gle.ads.admanager.v1.ReportDefinition.FieldB\003\340A\002\022\027\n\n" + + "\005field\030\001 " + + "\001(\0132/.google.ads.admanager.v1.ReportDefinition.FieldB\003\340A\002\022\027\n\n" + "descending\030\002 \001(\010B\003\340A\001\022H\n" + "\005slice\030\003" + " \001(\0132/.google.ads.admanager.v1.ReportDefinition.SliceB\003\340A\001H\000\210\001\001\022#\n" + "\021time_period_index\030\004 \001(\005B\003\340A\001H\001\210\001\001\022^\n" - + "\021metric_value_type\030\005 \001(\01629.google.ads.admanager.v1.Re" - + "portDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + + "\021metric_value_type\030\005 \001(\01629.google.ads.admana" + + "ger.v1.ReportDefinition.MetricValueTypeB\003\340A\001H\002\210\001\001B\010\n" + "\006_sliceB\024\n" + "\022_time_period_indexB\024\n" + "\022_metric_value_type\032\216\001\n" + "\005Slice\022K\n" - + "\tdimension\030\001 " - + "\001(\01623.google.ads.admanager.v1.ReportDefinition.DimensionB\003\340A\002\0228\n" + + "\tdimension\030\001" + + " \001(\01623.google.ads.admanager.v1.ReportDefinition.DimensionB\003\340A\002\0228\n" + "\005value\030\002 \001(\0132$.google.ads.admanager.v1.ReportValueB\003\340A\002\032a\n" + "\004Flag\022F\n" - + "\007filters\030\001 \003(\01320.google.ads.ad" - + "manager.v1.ReportDefinition.FilterB\003\340A\002\022\021\n" - + "\004name\030\002 \001(\tB\003\340A\001\"m\n\n" + + "\007filters\030\001 \003(\01320.goog" + + "le.ads.admanager.v1.ReportDefinition.FilterB\003\340A\002\022\021\n" + + "\004name\030\002 \001(\tB\003\340A\001\"\234\001\n\n" + "ReportType\022\033\n" + "\027REPORT_TYPE_UNSPECIFIED\020\000\022\016\n\n" + "HISTORICAL\020\001\022\t\n" + "\005REACH\020\005\022\031\n" - + "\025PRIVACY_AND_MESSAGING\020\006\022\014\n" + + "\025PRIVACY_AND_MESSAGING\020\006\022\030\n" + + "\024REVENUE_VERIFICATION\020\007\022\023\n" + + "\017PARTNER_FINANCE\020\010\022\014\n" + "\010AD_SPEED\020\r" - + "\"\263\251\001\n" + + "\"\337\265\001\n" + "\tDimension\022\031\n" + "\025DIMENSION_UNSPECIFIED\020\000\022#\n" + "\036ACTIVE_VIEW_MEASUREMENT_SOURCE\020\277\004\022(\n" @@ -257,7 +262,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023AD_EXPERIENCES_TYPE\020\201\005\022\035\n" + "\030AD_EXPERIENCES_TYPE_NAME\020\202\005\022\020\n" + "\013AD_LOCATION\020\206\003\022\025\n" - + "\020AD_LOCATION_NAME\020\207\003\022\"\n" + + "\020AD_LOCATION_NAME\020\207\003\022\025\n" + + "\020AD_REQUEST_SIZES\020\235\004\022\"\n" + "\035AD_TECHNOLOGY_PROVIDER_DOMAIN\020\354\004\022\036\n" + "\031AD_TECHNOLOGY_PROVIDER_ID\020\355\004\022 \n" + "\033AD_TECHNOLOGY_PROVIDER_NAME\020\356\004\022\014\n" @@ -329,14 +335,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021AGENCY_LEVEL_3_ID\020\271\004\022\030\n" + "\023AGENCY_LEVEL_3_NAME\020\272\004\022\020\n" + "\013AGE_BRACKET\020\374\003\022\025\n" - + "\020AGE_BRACKET_NAME\020\306\004\022-\n" + + "\020AGE_BRACKET_NAME\020\306\004\022\032\n" + + "\025ANALYTICS_PROPERTY_ID\020\335\005\022\034\n" + + "\027ANALYTICS_PROPERTY_NAME\020\377\005\022-\n" + "(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\020\272\003\0222\n" + "-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\020\273\003\022\020\n" + "\013APP_VERSION\020\210\003\022\031\n" + "\024AUCTION_PACKAGE_DEAL\020\303\004\022\034\n" - + "\027AUCTION_PACKAGE_DEAL_ID\020\273\004\022!\n" + + "\027AUCTION_PACKAGE_DEAL_ID\020\273\004\022\036\n" + + "\031AUDIENCE_SEGMENT_BILLABLE\020\322\004\022&\n" + + "!AUDIENCE_SEGMENT_DATA_PROVIDER_ID\020\345\004\022(\n" + + "#AUDIENCE_SEGMENT_DATA_PROVIDER_NAME\020\346\004\022!\n" + + "\034AUDIENCE_SEGMENT_ID_BILLABLE\020\323\004\022!\n" + "\034AUDIENCE_SEGMENT_ID_TARGETED\020\310\004\022\036\n" - + "\031AUDIENCE_SEGMENT_TARGETED\020\311\004\022\033\n" + + "\031AUDIENCE_SEGMENT_TARGETED\020\311\004\022.\n" + + ")AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE\020\335\004\0224\n" + + "/AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE\020\336\004\0223\n" + + ".AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE\020\337\004\0221\n" + + ",AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE\020\340\004\022-\n" + + "(AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE\020\341\004\0223\n" + + ".AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE\020\342\004\0224\n" + + "/AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE\020\343\004\022-\n" + + "(AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE\020\344\004\022-\n" + + "(AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE\020\347\004\0223\n" + + ".AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE\020\350\004\022#\n" + + "\036AUDIENCE_SEGMENT_TARGETED_SIZE\020\352\004\022%\n" + + " AUDIENCE_SEGMENT_TARGETED_STATUS\020\364\004\022*\n" + + "%AUDIENCE_SEGMENT_TARGETED_STATUS_NAME\020\351\004\022-\n" + + "(AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE\020\353\004\022\033\n" + "\026AUTO_REFRESHED_TRAFFIC\020\245\003\022 \n" + "\033AUTO_REFRESHED_TRAFFIC_NAME\020\246\003\022\030\n" + "\023BIDDER_ENCRYPTED_ID\020\355\003\022\020\n" @@ -365,7 +391,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030CLASSIFIED_ADVERTISER_ID\020\205\001\022\037\n" + "\032CLASSIFIED_ADVERTISER_NAME\020\206\001\022\030\n" + "\023CLASSIFIED_BRAND_ID\020\363\001\022\032\n" - + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\025\n" + + "\025CLASSIFIED_BRAND_NAME\020\364\001\022\026\n" + + "\021CONTENT_BUNDLE_ID\020\314\003\022\030\n" + + "\023CONTENT_BUNDLE_NAME\020\315\003\022)\n" + + "$CONTENT_CMS_METADATA_KV_NAMESPACE_ID\020\316\003\022+\n" + + "&CONTENT_CMS_METADATA_KV_NAMESPACE_NAME\020\317\003\022\025\n" + "\020CONTENT_CMS_NAME\020\203\005\022\031\n" + "\024CONTENT_CMS_VIDEO_ID\020\204\005\022\017\n\n" + "CONTENT_ID\020\366\001\022\035\n" @@ -374,7 +404,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014CONTENT_NAME\020\367\001\022\016\n" + "\tCONTINENT\020\325\003\022\023\n" + "\016CONTINENT_NAME\020\326\003\022\021\n" - + "\014COUNTRY_CODE\020\322\003\022\016\n\n" + + "\014COUNTRY_CODE\020\322\003\022\016\n" + + "\n" + "COUNTRY_ID\020\013\022\020\n" + "\014COUNTRY_NAME\020\014\022\032\n" + "\025CREATIVE_BILLING_TYPE\020\356\002\022\037\n" @@ -425,8 +456,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026DEVICE_MANUFACTURER_ID\020\215\004\022\035\n" + "\030DEVICE_MANUFACTURER_NAME\020\216\004\022\024\n" + "\017DEVICE_MODEL_ID\020\217\004\022\026\n" - + "\021DEVICE_MODEL_NAME\020\220\004\022\020\n" - + "\013DEVICE_NAME\020\341\001\022\020\n" + + "\021DEVICE_MODEL_NAME\020\220\004\022\024\n" + + "\013DEVICE_NAME\020\341\001\032\002\010\001\022\020\n" + "\013DSP_SEAT_ID\020\264\004\022\034\n" + "\027DYNAMIC_ALLOCATION_TYPE\020\366\003\022!\n" + "\034DYNAMIC_ALLOCATION_TYPE_NAME\020\367\003\022\021\n" @@ -475,7 +506,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "IS_DROPPED\020\320\003\022\027\n" + "\022IS_FIRST_LOOK_DEAL\020\221\003\022\022\n\r" + "KEY_VALUES_ID\020\326\001\022\024\n" - + "\017KEY_VALUES_NAME\020\327\001\022\025\n" + + "\017KEY_VALUES_NAME\020\327\001\022\023\n" + + "\016KEY_VALUES_SET\020\311\005\022\025\n" + "\020LINE_ITEM_AGENCY\020\227\005\022\027\n" + "\022LINE_ITEM_ARCHIVED\020\274\001\022(\n" + "#LINE_ITEM_COMPANION_DELIVERY_OPTION\020\314\001\022-\n" @@ -601,7 +633,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ORDER_UNLIMITED_END\020\313\001\022\016\n" + "\tPAGE_PATH\020\377\003\022 \n" + "\033PAGE_TITLE_AND_SCREEN_CLASS\020\200\004\022\037\n" - + "\032PAGE_TITLE_AND_SCREEN_NAME\020\201\004\022\020\n" + + "\032PAGE_TITLE_AND_SCREEN_NAME\020\201\004\022%\n" + + " PARTNER_MANAGEMENT_ASSIGNMENT_ID\020\221\005\022\'\n" + + "\"PARTNER_MANAGEMENT_ASSIGNMENT_NAME\020\222\005\022\"\n" + + "\035PARTNER_MANAGEMENT_PARTNER_ID\020\217\005\022$\n" + + "\037PARTNER_MANAGEMENT_PARTNER_NAME\020\220\005\022\020\n" + "\014PLACEMENT_ID\020q\022\025\n" + "\020PLACEMENT_ID_ALL\020\220\001\022\022\n" + "\016PLACEMENT_NAME\020r\022\027\n" @@ -617,7 +653,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!PREDICTED_VIEWABILITY_BUCKET_NAME\020\372\004\022\037\n" + "\032PRESENTED_SECURE_SIGNAL_ID\020\357\003\022!\n" + "\034PRESENTED_SECURE_SIGNAL_NAME\020\360\003\022$\n" - + "\037PRIMARY_PERSONALIZATION_ID_TYPE\020\230\003\022)\n" + + "\037PRIMARY_PERSONALIZATION_ID_TY", + "PE\020\230\003\022)\n" + "$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\020\231\003\022\036\n" + "\025PROGRAMMATIC_BUYER_ID\020\360\001\032\002\010\001\022 \n" + "\027PROGRAMMATIC_BUYER_NAME\020\361\001\032\002\010\001\022\030\n" @@ -648,12 +685,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026RENDERED_CREATIVE_SIZE\020\327\002\022\027\n" + "\022REQUESTED_AD_SIZES\020\340\002\022\021\n" + "\014REQUEST_TYPE\020\222\001\022\026\n" - + "\021REQUEST_TYPE_NAME\020\223\001\022$\n" + + "\021REQUEST_TYPE_NAME\020\223\001\022\034\n" + + "\027REVENUE_VERIFICATION_ID\020\205\005\022$\n" + "\037SERVER_SIDE_UNWRAPPING_ELIGIBLE\020\325\004\022\030\n" + "\023SERVING_RESTRICTION\020\367\004\022\035\n" + "\030SERVING_RESTRICTION_NAME\020\370\004\022\t\n" - + "\004SI", - "TE\020\203\003\022\021\n" + + "\004SITE\020\203\003\022\021\n" + "\014TARGETING_ID\020\350\001\022\023\n" + "\016TARGETING_NAME\020\351\001\022\023\n" + "\016TARGETING_TYPE\020\201\003\022\030\n" @@ -668,7 +705,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027UNIFIED_PRICING_RULE_ID\020\211\003\022\036\n" + "\031UNIFIED_PRICING_RULE_NAME\020\212\003\022\010\n" + "\003URL\020\372\003\022\013\n" - + "\006URL_ID\020\373\003\022%\n" + + "\006URL_ID\020\373\003\022\031\n" + + "\024USER_MESSAGES_CHOICE\020\276\005\022\036\n" + + "\031USER_MESSAGES_CHOICE_NAME\020\277\005\022%\n" + " USER_MESSAGES_ENTITLEMENT_SOURCE\020\373\004\022*\n" + "%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\020\374\004\022/\n" + "*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\020\375\004\0221\n" @@ -689,7 +728,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022VIDEO_AD_TYPE_NAME\020\261\003\022\037\n" + "\032VIDEO_CONTINUOUS_PLAY_TYPE\020\321\005\022$\n" + "\037VIDEO_CONTINUOUS_PLAY_TYPE_NAME\020\322\005\022\034\n" - + "\027VIDEO_FALLBACK_POSITION\020\222\004\022\035\n" + + "\027VIDEO_FALLBACK_POSITION\020\222\004\022.\n" + + ")VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION\020\243\004\022(\n" + + "#VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID\020\244\004\022*\n" + + "%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME\020\245\004\022*\n" + + "%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME\020\246\004\022\037\n" + + "\032VIDEO_LIVE_STREAM_EVENT_ID\020\247\004\022!\n" + + "\034VIDEO_LIVE_STREAM_EVENT_NAME\020\250\004\022\035\n" + "\030VIDEO_MEASUREMENT_SOURCE\020\331\004\022\"\n" + "\035VIDEO_MEASUREMENT_SOURCE_NAME\020\332\004\022\020\n" + "\013VIDEO_PLCMT\020\254\001\022\025\n" @@ -699,7 +744,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021VIDEO_SDK_VERSION\020\270\003\022\033\n" + "\026VIDEO_SDK_VERSION_NAME\020\271\003\022\030\n" + "\023VIDEO_STITCHER_TYPE\020\360\005\022\035\n" - + "\030VIDEO_STITCHER_TYPE_NAME\020\361\005\022\010\n" + + "\030VIDEO_STITCHER_TYPE_NAME\020\361\005\022\026\n" + + "\021WEB_PROPERTY_CODE\020\332\005\022\010\n" + "\004WEEK\020\005\022\033\n" + "\026YIELD_GROUP_BUYER_NAME\020\270\001\022\037\n" + "\032YIELD_GROUP_BUYER_TAG_NAME\020\363\004\022\023\n" @@ -908,7 +954,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030CUSTOM_DIMENSION_6_VALUE\020\216\225\006\022\036\n" + "\030CUSTOM_DIMENSION_7_VALUE\020\217\225\006\022\036\n" + "\030CUSTOM_DIMENSION_8_VALUE\020\220\225\006\022\036\n" - + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\032\002\020\001\"\237\210\001\n" + + "\030CUSTOM_DIMENSION_9_VALUE\020\221\225\006\032\002\020\001\"\347\223\001\n" + "\006Metric\022\026\n" + "\022METRIC_UNSPECIFIED\020\000\022\021\n" + "\014ACTIVE_USERS\020\337\001\022)\n" @@ -1012,7 +1058,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\020>\022<\n" + "7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\020\315\002\0223\n" + "/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\020A\022\032\n" - + "\026AD_SERVER_AVERAGE_ECPM\020\"\022&\n" + + "\026AD_", + "SERVER_AVERAGE_ECPM\020\"\022&\n" + "\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\020\n" + "\022*\n" + "%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\020\206\002\022\024\n" @@ -1025,7 +1072,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\020\344\003\022\031\n" + "\025AD_SERVER_IMPRESSIONS\020\006\022)\n" + "$AD_SERVER_IMPRESSIONS_WITH_COMPANION\020\336\001\0223\n" - + ".AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\020\322\002\022\034\n" + + ".AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\020\322\002\022(\n" + + "#AD_SERVER_OPPORTUNITIES_FROM_ERRORS\020\315\003\022-\n" + + "(AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS\020\316\003\022\034\n" + "\030AD_SERVER_PERCENT_CLICKS\020\014\022!\n" + "\035AD_SERVER_PERCENT_IMPRESSIONS\020\013\022\035\n" + "\031AD_SERVER_PERCENT_REVENUE\020#\022)\n" @@ -1043,7 +1092,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\020\204\002\022)\n" + " AD_SERVER_UNFILTERED_IMPRESSIONS\020\204\002\032\002\010\001\022%\n" + " AD_SERVER_UNFILTERED_TRACKED_ADS\020\207\002\022\035\n" - + "\030AD_UNIT_EXPOSURE_SECONDS\020\362\001\022\017\n\n" + + "\030AD_UNIT_EXPOSURE_SECONDS\020\362\001\022\017\n" + + "\n" + "AD_VIEWERS\020\251\003\022\035\n" + "\030ATN_ADS_FAILED_TO_RENDER\020\256\003\022\034\n" + "\027ATN_ELIGIBLE_LINE_ITEMS\020\326\002\022(\n" @@ -1062,8 +1112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ATN_LINE_ITEMS_IN_AUCTION\020\340\002\022!\n" + "\034ATN_LINE_ITEMS_NOT_COMPETING\020\203\004\022 \n" + "\033ATN_LINE_ITEMS_NOT_SELECTED\020\341\002\022)\n" - + "$ATN_LINE_IT", - "EM_IN_AUCTION_AD_REQUESTS\020\342\002\022\'\n" + + "$ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS\020\342\002\022\'\n" + "\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\020\343\002\022&\n" + "!ATN_MEDIATION_ALLOWED_AD_REQUESTS\020\344\002\022&\n" + "!ATN_MEDIATION_INVALID_AD_REQUESTS\020\345\002\022)\n" @@ -1100,7 +1149,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"ATN_TOTAL_COMPETING_ADS_IN_AUCTION\020\201\003\022\031\n" + "\024ATN_TOTAL_LOADED_ADS\020\203\003\022\032\n" + "\025ATN_VALID_AD_REQUESTS\020\205\003\022(\n" - + "#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\020\206\003\022\020\n" + + "#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\020\206\003\022\032\n" + + "\025AUDIENCE_SEGMENT_COST\020\256\004\022\020\n" + "\014AVERAGE_ECPM\020%\022\034\n" + "\030AVERAGE_ECPM_WITHOUT_CPD\020\005\022+\n" + "&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\020\340\001\022(\n" @@ -1172,7 +1222,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021MUTED_IMPRESSIONS\020\234\003\022\036\n" + "\031MUTE_ELIGIBLE_IMPRESSIONS\020\231\003\022\022\n\r" + "OPPORTUNITIES\020\317\003\022\036\n" - + "\031OVERDELIVERED_IMPRESSIONS\020\260\003\022&\n" + + "\031OVERDELIVERED_IMPRESSIONS\020\260\003\022\"\n" + + "\035PARTNER_FINANCE_GROSS_REVENUE\020\210\005\022\036\n" + + "\031PARTNER_FINANCE_HOST_ECPM\020\211\005\022%\n" + + " PARTNER_FINANCE_HOST_IMPRESSIONS\020\212\005\022!\n" + + "\034PARTNER_FINANCE_HOST_REVENUE\020\213\005\022!\n" + + "\034PARTNER_FINANCE_PARTNER_ECPM\020\214\005\022$\n" + + "\037PARTNER_FINANCE_PARTNER_REVENUE\020\215\005\022%\n" + + " PARTNER_MANAGEMENT_GROSS_REVENUE\020\225\004\022#\n" + + "\036PARTNER_MANAGEMENT_HOST_CLICKS\020\226\004\022 \n" + + "\033PARTNER_MANAGEMENT_HOST_CTR\020\227\004\022(\n" + + "#PARTNER_MANAGEMENT_HOST_IMPRESSIONS\020\230\004\022&\n" + + "!PARTNER_MANAGEMENT_PARTNER_CLICKS\020\231\004\022#\n" + + "\036PARTNER_MANAGEMENT_PARTNER_CTR\020\232\004\022+\n" + + "&PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS\020\233\004\022+\n" + + "&PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS\020\234\004\022,\n" + + "\'PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS\020\235\004\022&\n" + "!PARTNER_SALES_FILLED_POD_REQUESTS\020\207\001\022\034\n" + "\027PARTNER_SALES_FILL_RATE\020\210\001\022%\n" + " PARTNER_SALES_PARTNER_MATCH_RATE\020\211\001\022\032\n" @@ -1189,7 +1254,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RESPONSES_SERVED\020\'\022\016\n" + "\tRETENTION\020\356\001\022\013\n" + "\007REVENUE\020$\022)\n" - + "$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\326\001\022\027\n" + + "$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\020\326\001\022%\n" + + " REVENUE_VERIFICATION_CPD_REVENUE\020\260\004\022+\n" + + "&REVENUE_VERIFICATION_GROSS_CPD_REVENUE\020\257\004\0223\n" + + ".REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD\020\261\004\022%\n" + + " REVENUE_VERIFICATION_IMPRESSIONS\020\264\004\022-\n" + + "(REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD\020\267\004\022\027\n" + "\023REVENUE_WITHOUT_CPD\020\004\022\024\n" + "\017REWARDS_GRANTED\020\235\003\022$\n" + "\037RICH_MEDIA_AVERAGE_DISPLAY_TIME\020\313\004\022(\n" @@ -1251,8 +1321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\020\346\003\0229\n" + "4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\020\347\003\0226\n" + "1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\020\350\003\022&\n" - + "!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\020\351\003\022&\n" - + "!USER_MESSAGES_CCPA_MESSAGES_SHOWN\020\352\003\022(\n" + + "!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\020\351\003\022(\n" + "#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\020\353\003\022#\n" + "\036USER_MESSAGES_IDFA_ATT_CONSENT\020\354\003\022(\n" + "#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\020\355\003\022+\n" @@ -1266,7 +1335,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\020\363\003\022*\n" + "%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\020\364\003\022&\n" + "!USER_MESSAGES_UPTC_MESSAGES_SHOWN\020\365\003\0225\n" - + "0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\020\366\003\022\032\n" + + "0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\020\366\003\022+\n" + + "&USER_MESSAGES_US_STATES_MESSAGES_SHOWN\020\352\003\022/\n" + + "*USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS\020\312\004\022\032\n" + "\025VIDEO_ERROR_100_COUNT\020\264\001\022\032\n" + "\025VIDEO_ERROR_101_COUNT\020\265\001\022\032\n" + "\025VIDEO_ERROR_102_COUNT\020\266\001\022\032\n" @@ -1347,7 +1418,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037VIDEO_REAL_TIME_MATCHED_QUERIES\020\214\001\022&\n" + "!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\020\257\001\022\"\n" + "\035VIDEO_REAL_TIME_TOTAL_QUERIES\020\216\001\022&\n" - + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022\037\n" + + "!VIDEO_REAL_TIME_UNMATCHED_QUERIES\020\215\001\022-\n" + + "(VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END\020\227\002\022/\n" + + "*VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START\020\230\002\022@\n" + + ";VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK\020\231\002\0224\n" + + "/VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK\020\233\002\022<\n" + + "7VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK\020\235\002\022A\n" + + "\n" + "\020dimension_values\030\001 \003(\0132$.google.ads.admanager.v1.ReportValue\022V\n" - + "\023metric_value_groups\030\002 \003(\01329.goog" - + "le.ads.admanager.v1.ReportDataTable.MetricValueGroup\032\323\003\n" + + "\023metric_value_groups\030\002" + + " \003(\01329.google.ads.admanager.v1.ReportDataTable.MetricValueGroup\032\323\003\n" + "\020MetricValueGroup\022<\n" + "\016primary_values\030\001 \003(\0132$.google.ads.admanager.v1.ReportValue\022M\n" + "\037primary_percent_of_total_values\030\002" + " \003(\0132$.google.ads.admanager.v1.ReportValue\022?\n" + "\021comparison_values\030\003 \003(\0132$.google.ads.admanager.v1.ReportValue\022P\n" - + "\"comparison_percent_of_total_values\030\004 " - + "\003(\0132$.google.ads.admanager.v1.ReportValue\022D\n" + + "\"comparison_percent_of_total_values\030\004" + + " \003(\0132$.google.ads.admanager.v1.ReportValue\022D\n" + "\026absolute_change_values\030\005" + " \003(\0132$.google.ads.admanager.v1.ReportValue\022D\n" + "\026relative_change_values\030\006" + " \003(\0132$.google.ads.admanager.v1.ReportValue\022\023\n" + "\013flag_values\030\007 \003(\010\"\372\007\n" + "\017ScheduleOptions\022C\n" - + "\010schedule\030\001 \001(\013" - + "21.google.ads.admanager.v1.ScheduleOptions.Schedule\022V\n" - + "\022delivery_condition\030\002 \001(\0162" - + ":.google.ads.admanager.v1.ScheduleOptions.DeliveryCondition\022B\n" - + "\005flags\030\003 \003(\0132..goo" - + "gle.ads.admanager.v1.ReportDefinition.FlagB\003\340A\001\032\273\005\n" + + "\010schedule\030\001" + + " \001(\01321.google.ads.admanager.v1.ScheduleOptions.Schedule\022V\n" + + "\022delivery_condition\030\002 \001(\0162:.google.ads.admana" + + "ger.v1.ScheduleOptions.DeliveryCondition\022B\n" + + "\005flags\030\003" + + " \003(\0132..google.ads.admanager.v1.ReportDefinition.FlagB\003\340A\001\032\273\005\n" + "\010Schedule\022[\n" - + "\017weekly_schedule\030\006" - + " \001(\0132@.google.ads.admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleH\000\022]\n" - + "\020monthly_schedule\030\007 \001(\0132A.google.ads.admanag" - + "er.v1.ScheduleOptions.Schedule.MonthlyScheduleH\000\022%\n\n" + + "\017weekly_schedule\030\006 \001(\0132@.google.ads." + + "admanager.v1.ScheduleOptions.Schedule.WeeklyScheduleH\000\022]\n" + + "\020monthly_schedule\030\007 \001(\013" + + "2A.google.ads.admanager.v1.ScheduleOptions.Schedule.MonthlyScheduleH\000\022%\n\n" + "start_date\030\001 \001(\0132\021.google.type.Date\022#\n" + "\010end_date\030\002 \001(\0132\021.google.type.Date\022N\n" - + "\tfrequency\030\003 \001(\0162;.google.ads.adm" - + "anager.v1.ScheduleOptions.Schedule.Frequency\022*\n\n" + + "\tfrequency\030\003" + + " \001(\0162;.google.ads.admanager.v1.ScheduleOptions.Schedule.Frequency\022*\n\n" + "start_time\030\004 \001(\0132\026.google.type.TimeOfDay\032G\n" + "\016WeeklySchedule\0225\n" + "\025weekly_scheduled_days\030\001 \003(\0162\026.google.type.DayOfWeek\0321\n" @@ -149,11 +150,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005NEVER\020\000\022\n\n" + "\006ALWAYS\020\001\022\034\n" + "\030WHEN_FLAG_CONDITIONS_MET\020\002B\307\001\n" - + "\033com.google.ads.admanager.v1B\023ReportMessagesProtoP\001Z@" - + "google.golang.org/genproto/googleapis/ad" - + "s/admanager/v1;admanager\252\002\027Google.Ads.Ad" - + "Manager.V1\312\002\027Google\\Ads\\AdManager\\V1\352\002\032G" - + "oogle::Ads::AdManager::V1b\006proto3" + + "\033com.google.ads.admanager.v1B\023ReportMessagesProtoP\001Z@google.golang.org/g" + + "enproto/googleapis/ads/admanager/v1;adma" + + "nager\252\002\027Google.Ads.AdManager.V1\312\002\027Google" + + "\\Ads\\AdManager\\V1\352\002\032Google::Ads::AdManager::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java index affa06fe5b58..ed742a29dbbc 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequest.java @@ -238,11 +238,11 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-   * Required. Only return ads with the given status.
+   * Optional. Only return ads with the given status.
    * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for status. @@ -256,11 +256,11 @@ public int getStatusValue() { * * *
-   * Required. Only return ads with the given status.
+   * Optional. Only return ads with the given status.
    * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The status. @@ -285,7 +285,8 @@ public com.google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdSt * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -301,7 +302,8 @@ public com.google.protobuf.ProtocolStringList getAdReviewCenterAdIdList() { * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -317,7 +319,8 @@ public int getAdReviewCenterAdIdCount() { * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -334,7 +337,8 @@ public java.lang.String getAdReviewCenterAdId(int index) { * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1520,11 +1524,11 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Only return ads with the given status.
+     * Optional. Only return ads with the given status.
      * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for status. @@ -1538,11 +1542,11 @@ public int getStatusValue() { * * *
-     * Required. Only return ads with the given status.
+     * Optional. Only return ads with the given status.
      * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The enum numeric value on the wire for status to set. @@ -1559,11 +1563,11 @@ public Builder setStatusValue(int value) { * * *
-     * Required. Only return ads with the given status.
+     * Optional. Only return ads with the given status.
      * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The status. @@ -1584,11 +1588,11 @@ public Builder setStatusValue(int value) { * * *
-     * Required. Only return ads with the given status.
+     * Optional. Only return ads with the given status.
      * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @param value The status to set. @@ -1609,11 +1613,11 @@ public Builder setStatus( * * *
-     * Required. Only return ads with the given status.
+     * Optional. Only return ads with the given status.
      * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return This builder for chaining. @@ -1639,7 +1643,8 @@ private void ensureAdReviewCenterAdIdIsMutable() { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1656,7 +1661,8 @@ public com.google.protobuf.ProtocolStringList getAdReviewCenterAdIdList() { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1672,7 +1678,8 @@ public int getAdReviewCenterAdIdCount() { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1689,7 +1696,8 @@ public java.lang.String getAdReviewCenterAdId(int index) { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1706,7 +1714,8 @@ public com.google.protobuf.ByteString getAdReviewCenterAdIdBytes(int index) { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1731,7 +1740,8 @@ public Builder setAdReviewCenterAdId(int index, java.lang.String value) { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1755,7 +1765,8 @@ public Builder addAdReviewCenterAdId(java.lang.String value) { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1776,7 +1787,8 @@ public Builder addAllAdReviewCenterAdId(java.lang.Iterable val * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -1796,7 +1808,8 @@ public Builder clearAdReviewCenterAdId() { * * *
-     * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+     * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+     * no other filter can be set (other than page size and page token).
      * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java index 4aa24e3d9cbc..40015bbfe663 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/SearchAdReviewCenterAdsRequestOrBuilder.java @@ -128,11 +128,11 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Required. Only return ads with the given status.
+   * Optional. Only return ads with the given status.
    * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The enum numeric value on the wire for status. @@ -143,11 +143,11 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Required. Only return ads with the given status.
+   * Optional. Only return ads with the given status.
    * 
* * - * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = REQUIRED]; + * .google.ads.admanager.v1.AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 [(.google.api.field_behavior) = OPTIONAL]; * * * @return The status. @@ -158,7 +158,8 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,7 +173,8 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -186,7 +188,8 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; @@ -201,7 +204,8 @@ public interface SearchAdReviewCenterAdsRequestOrBuilder * * *
-   * Optional. If provided, only return ads with the given AdReviewCenterAd IDs.
+   * Optional. Only return ads with the given AdReviewCenterAd IDs. If provided,
+   * no other filter can be set (other than page size and page token).
    * 
* * repeated string ad_review_center_ad_id = 5 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnum.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnum.java new file mode 100644 index 000000000000..31b5902a89b5 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnum.java @@ -0,0 +1,757 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Wrapper message for
+ * [UnitType][google.ads.admanager.v1.UnitTypeEnum.UnitType].
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UnitTypeEnum} + */ +public final class UnitTypeEnum extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UnitTypeEnum) + UnitTypeEnumOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UnitTypeEnum.newBuilder() to construct. + private UnitTypeEnum(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UnitTypeEnum() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UnitTypeEnum(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_UnitTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UnitTypeEnum.class, + com.google.ads.admanager.v1.UnitTypeEnum.Builder.class); + } + + /** + * + * + *
+   * Indicates the type of unit used for defining a reservation. The
+   * [LineItem.cost_type][] can differ from the UnitType - an
+   * ad can have an impression goal, but be billed by its click. Usually
+   * CostType and UnitType will refer to the same unit.
+   * 
+ * + * Protobuf enum {@code google.ads.admanager.v1.UnitTypeEnum.UnitType} + */ + public enum UnitType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNIT_TYPE_UNSPECIFIED = 0; + */ + UNIT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * The number of impressions served by creatives associated with the line
+     * item.
+     * 
+ * + * IMPRESSIONS = 1; + */ + IMPRESSIONS(1), + /** + * + * + *
+     * The number of clicks reported by creatives associated with the line item.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]
+     * * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * 
+ * + * CLICKS = 2; + */ + CLICKS(2), + /** + * + * + *
+     * The number of click-through Cost-Per-Action (CPA) conversions from
+     * creatives associated with the line item. This is only supported as
+     * secondary goal and the [LineItem.cost_type][] must be
+     * [CostTypeEnum.CostType.CPA][].
+     * 
+ * + * CLICK_THROUGH_CPA_CONVERSIONS = 3; + */ + CLICK_THROUGH_CPA_CONVERSIONS(3), + /** + * + * + *
+     * The number of view-through Cost-Per-Action (CPA) conversions from
+     * creatives associated with the line item. This is only supported as
+     * secondary goal and the [LineItem.cost_type][] must be
+     * [CostTypeEnum.CostType.CPA}.
+     * 
+ * + * VIEW_THROUGH_CPA_CONVERSIONS = 4; + */ + VIEW_THROUGH_CPA_CONVERSIONS(4), + /** + * + * + *
+     * The number of total Cost-Per-Action (CPA) conversions from creatives
+     * associated with the line item. This is only supported as secondary goal
+     * and the [LineItem.cost_type} must be [CostTypeEnum.CostType.CPA}.
+     * 
+ * + * TOTAL_CPA_CONVERSIONS = 5; + */ + TOTAL_CPA_CONVERSIONS(5), + /** + * + * + *
+     * The number of viewable impressions reported by creatives associated with
+     * the line item. The
+     * [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be
+     * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
+     * 
+ * + * VIEWABLE_IMPRESSIONS = 6; + */ + VIEWABLE_IMPRESSIONS(6), + /** + * + * + *
+     * The number of in-target impressions reported by third party measurements.
+     * The
+     * [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be
+     * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
+     * 
+ * + * IN_TARGET_IMPRESSIONS = 7; + */ + IN_TARGET_IMPRESSIONS(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNIT_TYPE_UNSPECIFIED = 0; + */ + public static final int UNIT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The number of impressions served by creatives associated with the line
+     * item.
+     * 
+ * + * IMPRESSIONS = 1; + */ + public static final int IMPRESSIONS_VALUE = 1; + + /** + * + * + *
+     * The number of clicks reported by creatives associated with the line item.
+     * The line item [type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be one of:
+     *
+     * * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]
+     * * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK]
+     * * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY]
+     * 
+ * + * CLICKS = 2; + */ + public static final int CLICKS_VALUE = 2; + + /** + * + * + *
+     * The number of click-through Cost-Per-Action (CPA) conversions from
+     * creatives associated with the line item. This is only supported as
+     * secondary goal and the [LineItem.cost_type][] must be
+     * [CostTypeEnum.CostType.CPA][].
+     * 
+ * + * CLICK_THROUGH_CPA_CONVERSIONS = 3; + */ + public static final int CLICK_THROUGH_CPA_CONVERSIONS_VALUE = 3; + + /** + * + * + *
+     * The number of view-through Cost-Per-Action (CPA) conversions from
+     * creatives associated with the line item. This is only supported as
+     * secondary goal and the [LineItem.cost_type][] must be
+     * [CostTypeEnum.CostType.CPA}.
+     * 
+ * + * VIEW_THROUGH_CPA_CONVERSIONS = 4; + */ + public static final int VIEW_THROUGH_CPA_CONVERSIONS_VALUE = 4; + + /** + * + * + *
+     * The number of total Cost-Per-Action (CPA) conversions from creatives
+     * associated with the line item. This is only supported as secondary goal
+     * and the [LineItem.cost_type} must be [CostTypeEnum.CostType.CPA}.
+     * 
+ * + * TOTAL_CPA_CONVERSIONS = 5; + */ + public static final int TOTAL_CPA_CONVERSIONS_VALUE = 5; + + /** + * + * + *
+     * The number of viewable impressions reported by creatives associated with
+     * the line item. The
+     * [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be
+     * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
+     * 
+ * + * VIEWABLE_IMPRESSIONS = 6; + */ + public static final int VIEWABLE_IMPRESSIONS_VALUE = 6; + + /** + * + * + *
+     * The number of in-target impressions reported by third party measurements.
+     * The
+     * [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type]
+     * must be
+     * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD].
+     * 
+ * + * IN_TARGET_IMPRESSIONS = 7; + */ + public static final int IN_TARGET_IMPRESSIONS_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 UnitType 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 UnitType forNumber(int value) { + switch (value) { + case 0: + return UNIT_TYPE_UNSPECIFIED; + case 1: + return IMPRESSIONS; + case 2: + return CLICKS; + case 3: + return CLICK_THROUGH_CPA_CONVERSIONS; + case 4: + return VIEW_THROUGH_CPA_CONVERSIONS; + case 5: + return TOTAL_CPA_CONVERSIONS; + case 6: + return VIEWABLE_IMPRESSIONS; + case 7: + return IN_TARGET_IMPRESSIONS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UnitType findValueByNumber(int number) { + return UnitType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.ads.admanager.v1.UnitTypeEnum.getDescriptor().getEnumTypes().get(0); + } + + private static final UnitType[] VALUES = values(); + + public static UnitType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UnitType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.ads.admanager.v1.UnitTypeEnum.UnitType) + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.ads.admanager.v1.UnitTypeEnum)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UnitTypeEnum other = (com.google.ads.admanager.v1.UnitTypeEnum) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UnitTypeEnum parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum 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.ads.admanager.v1.UnitTypeEnum parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum 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.ads.admanager.v1.UnitTypeEnum parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum 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.ads.admanager.v1.UnitTypeEnum parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum 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.ads.admanager.v1.UnitTypeEnum 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; + } + + /** + * + * + *
+   * Wrapper message for
+   * [UnitType][google.ads.admanager.v1.UnitTypeEnum.UnitType].
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UnitTypeEnum} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UnitTypeEnum) + com.google.ads.admanager.v1.UnitTypeEnumOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_UnitTypeEnum_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UnitTypeEnum.class, + com.google.ads.admanager.v1.UnitTypeEnum.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UnitTypeEnum.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.GoalEnumsProto + .internal_static_google_ads_admanager_v1_UnitTypeEnum_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UnitTypeEnum.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum build() { + com.google.ads.admanager.v1.UnitTypeEnum result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum buildPartial() { + com.google.ads.admanager.v1.UnitTypeEnum result = + new com.google.ads.admanager.v1.UnitTypeEnum(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UnitTypeEnum) { + return mergeFrom((com.google.ads.admanager.v1.UnitTypeEnum) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UnitTypeEnum other) { + if (other == com.google.ads.admanager.v1.UnitTypeEnum.getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + 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.ads.admanager.v1.UnitTypeEnum) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UnitTypeEnum) + private static final com.google.ads.admanager.v1.UnitTypeEnum DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UnitTypeEnum(); + } + + public static com.google.ads.admanager.v1.UnitTypeEnum getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnitTypeEnum parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UnitTypeEnum getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnumOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnumOrBuilder.java new file mode 100644 index 000000000000..ad9fd5c1b0a7 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UnitTypeEnumOrBuilder.java @@ -0,0 +1,25 @@ +/* + * Copyright 2025 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/ads/admanager/v1/goal_enums.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UnitTypeEnumOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UnitTypeEnum) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequest.java new file mode 100644 index 000000000000..d82d296fc801 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequest.java @@ -0,0 +1,1063 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `UpdateAdUnit` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateAdUnitRequest} + */ +public final class UpdateAdUnitRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateAdUnitRequest) + UpdateAdUnitRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateAdUnitRequest.newBuilder() to construct. + private UpdateAdUnitRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAdUnitRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAdUnitRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateAdUnitRequest.class, + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder.class); + } + + private int bitField0_; + public static final int AD_UNIT_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.AdUnit adUnit_; + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + @java.lang.Override + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnit getAdUnit() { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder() { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAdUnit()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAdUnit()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().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.ads.admanager.v1.UpdateAdUnitRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateAdUnitRequest other = + (com.google.ads.admanager.v1.UpdateAdUnitRequest) obj; + + if (hasAdUnit() != other.hasAdUnit()) return false; + if (hasAdUnit()) { + if (!getAdUnit().equals(other.getAdUnit())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAdUnit()) { + hash = (37 * hash) + AD_UNIT_FIELD_NUMBER; + hash = (53 * hash) + getAdUnit().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest 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.ads.admanager.v1.UpdateAdUnitRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest 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.ads.admanager.v1.UpdateAdUnitRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest 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.ads.admanager.v1.UpdateAdUnitRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest 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.ads.admanager.v1.UpdateAdUnitRequest 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 object for `UpdateAdUnit` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateAdUnitRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateAdUnitRequest) + com.google.ads.admanager.v1.UpdateAdUnitRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateAdUnitRequest.class, + com.google.ads.admanager.v1.UpdateAdUnitRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateAdUnitRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAdUnitFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + adUnit_ = null; + if (adUnitBuilder_ != null) { + adUnitBuilder_.dispose(); + adUnitBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.AdUnitServiceProto + .internal_static_google_ads_admanager_v1_UpdateAdUnitRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateAdUnitRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequest build() { + com.google.ads.admanager.v1.UpdateAdUnitRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequest buildPartial() { + com.google.ads.admanager.v1.UpdateAdUnitRequest result = + new com.google.ads.admanager.v1.UpdateAdUnitRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateAdUnitRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.adUnit_ = adUnitBuilder_ == null ? adUnit_ : adUnitBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateAdUnitRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateAdUnitRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateAdUnitRequest other) { + if (other == com.google.ads.admanager.v1.UpdateAdUnitRequest.getDefaultInstance()) + return this; + if (other.hasAdUnit()) { + mergeAdUnit(other.getAdUnit()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAdUnitFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.ads.admanager.v1.AdUnit adUnit_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + adUnitBuilder_; + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + public boolean hasAdUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + public com.google.ads.admanager.v1.AdUnit getAdUnit() { + if (adUnitBuilder_ == null) { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } else { + return adUnitBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdUnit(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adUnit_ = value; + } else { + adUnitBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdUnit(com.google.ads.admanager.v1.AdUnit.Builder builderForValue) { + if (adUnitBuilder_ == null) { + adUnit_ = builderForValue.build(); + } else { + adUnitBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAdUnit(com.google.ads.admanager.v1.AdUnit value) { + if (adUnitBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && adUnit_ != null + && adUnit_ != com.google.ads.admanager.v1.AdUnit.getDefaultInstance()) { + getAdUnitBuilder().mergeFrom(value); + } else { + adUnit_ = value; + } + } else { + adUnitBuilder_.mergeFrom(value); + } + if (adUnit_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdUnit() { + bitField0_ = (bitField0_ & ~0x00000001); + adUnit_ = null; + if (adUnitBuilder_ != null) { + adUnitBuilder_.dispose(); + adUnitBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdUnit.Builder getAdUnitBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAdUnitFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder() { + if (adUnitBuilder_ != null) { + return adUnitBuilder_.getMessageOrBuilder(); + } else { + return adUnit_ == null ? com.google.ads.admanager.v1.AdUnit.getDefaultInstance() : adUnit_; + } + } + + /** + * + * + *
+     * Required. The `AdUnit` to update.
+     *
+     * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+     * `networks/{network_code}/adUnits/{ad_unit_id}`
+     * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder> + getAdUnitFieldBuilder() { + if (adUnitBuilder_ == null) { + adUnitBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.AdUnit, + com.google.ads.admanager.v1.AdUnit.Builder, + com.google.ads.admanager.v1.AdUnitOrBuilder>( + getAdUnit(), getParentForChildren(), isClean()); + adUnit_ = null; + } + return adUnitBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.ads.admanager.v1.UpdateAdUnitRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateAdUnitRequest) + private static final com.google.ads.admanager.v1.UpdateAdUnitRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateAdUnitRequest(); + } + + public static com.google.ads.admanager.v1.UpdateAdUnitRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAdUnitRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateAdUnitRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequestOrBuilder.java new file mode 100644 index 000000000000..8f766195346e --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateAdUnitRequestOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2025 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/ads/admanager/v1/ad_unit_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateAdUnitRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateAdUnitRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adUnit field is set. + */ + boolean hasAdUnit(); + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adUnit. + */ + com.google.ads.admanager.v1.AdUnit getAdUnit(); + + /** + * + * + *
+   * Required. The `AdUnit` to update.
+   *
+   * The `AdUnit`'s name is used to identify the `AdUnit` to update. Format:
+   * `networks/{network_code}/adUnits/{ad_unit_id}`
+   * 
+ * + * .google.ads.admanager.v1.AdUnit ad_unit = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.AdUnitOrBuilder getAdUnitOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequest.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequest.java new file mode 100644 index 000000000000..7db93f16fd2b --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequest.java @@ -0,0 +1,1092 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +/** + * + * + *
+ * Request object for `UpdateCustomTargetingKey` method.
+ * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateCustomTargetingKeyRequest} + */ +public final class UpdateCustomTargetingKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) + UpdateCustomTargetingKeyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use UpdateCustomTargetingKeyRequest.newBuilder() to construct. + private UpdateCustomTargetingKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomTargetingKeyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomTargetingKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.class, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int CUSTOM_TARGETING_KEY_FIELD_NUMBER = 1; + private com.google.ads.admanager.v1.CustomTargetingKey customTargetingKey_; + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + @java.lang.Override + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey() { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeyOrBuilder() { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getCustomTargetingKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomTargetingKey()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += getUnknownFields().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.ads.admanager.v1.UpdateCustomTargetingKeyRequest)) { + return super.equals(obj); + } + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest other = + (com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) obj; + + if (hasCustomTargetingKey() != other.hasCustomTargetingKey()) return false; + if (hasCustomTargetingKey()) { + if (!getCustomTargetingKey().equals(other.getCustomTargetingKey())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCustomTargetingKey()) { + hash = (37 * hash) + CUSTOM_TARGETING_KEY_FIELD_NUMBER; + hash = (53 * hash) + getCustomTargetingKey().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest 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.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest 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.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest 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.ads.admanager.v1.UpdateCustomTargetingKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest 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.ads.admanager.v1.UpdateCustomTargetingKeyRequest 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 object for `UpdateCustomTargetingKey` method.
+   * 
+ * + * Protobuf type {@code google.ads.admanager.v1.UpdateCustomTargetingKeyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.class, + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.Builder.class); + } + + // Construct using com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomTargetingKeyFieldBuilder(); + getUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customTargetingKey_ = null; + if (customTargetingKeyBuilder_ != null) { + customTargetingKeyBuilder_.dispose(); + customTargetingKeyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.ads.admanager.v1.CustomTargetingKeyServiceProto + .internal_static_google_ads_admanager_v1_UpdateCustomTargetingKeyRequest_descriptor; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getDefaultInstanceForType() { + return com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest build() { + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest buildPartial() { + com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest result = + new com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customTargetingKey_ = + customTargetingKeyBuilder_ == null + ? customTargetingKey_ + : customTargetingKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) { + return mergeFrom((com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest other) { + if (other == com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest.getDefaultInstance()) + return this; + if (other.hasCustomTargetingKey()) { + mergeCustomTargetingKey(other.getCustomTargetingKey()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getCustomTargetingKeyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.ads.admanager.v1.CustomTargetingKey customTargetingKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + customTargetingKeyBuilder_; + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + public boolean hasCustomTargetingKey() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + public com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey() { + if (customTargetingKeyBuilder_ == null) { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } else { + return customTargetingKeyBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetingKey(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customTargetingKey_ = value; + } else { + customTargetingKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomTargetingKey( + com.google.ads.admanager.v1.CustomTargetingKey.Builder builderForValue) { + if (customTargetingKeyBuilder_ == null) { + customTargetingKey_ = builderForValue.build(); + } else { + customTargetingKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomTargetingKey(com.google.ads.admanager.v1.CustomTargetingKey value) { + if (customTargetingKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customTargetingKey_ != null + && customTargetingKey_ + != com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance()) { + getCustomTargetingKeyBuilder().mergeFrom(value); + } else { + customTargetingKey_ = value; + } + } else { + customTargetingKeyBuilder_.mergeFrom(value); + } + if (customTargetingKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomTargetingKey() { + bitField0_ = (bitField0_ & ~0x00000001); + customTargetingKey_ = null; + if (customTargetingKeyBuilder_ != null) { + customTargetingKeyBuilder_.dispose(); + customTargetingKeyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingKey.Builder getCustomTargetingKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomTargetingKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder + getCustomTargetingKeyOrBuilder() { + if (customTargetingKeyBuilder_ != null) { + return customTargetingKeyBuilder_.getMessageOrBuilder(); + } else { + return customTargetingKey_ == null + ? com.google.ads.admanager.v1.CustomTargetingKey.getDefaultInstance() + : customTargetingKey_; + } + } + + /** + * + * + *
+     * Required. The `CustomTargetingKey` to update.
+     *
+     * The `CustomTargetingKey`'s `name` is used to identify the
+     * `CustomTargetingKey` to update.
+     * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder> + getCustomTargetingKeyFieldBuilder() { + if (customTargetingKeyBuilder_ == null) { + customTargetingKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.ads.admanager.v1.CustomTargetingKey, + com.google.ads.admanager.v1.CustomTargetingKey.Builder, + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder>( + getCustomTargetingKey(), getParentForChildren(), isClean()); + customTargetingKey_ = null; + } + return customTargetingKeyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Required. The list of fields to update.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @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.ads.admanager.v1.UpdateCustomTargetingKeyRequest) + } + + // @@protoc_insertion_point(class_scope:google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) + private static final com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest(); + } + + public static com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomTargetingKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequestOrBuilder.java b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequestOrBuilder.java new file mode 100644 index 000000000000..310dd10d16e3 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/java/com/google/ads/admanager/v1/UpdateCustomTargetingKeyRequestOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2025 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/ads/admanager/v1/custom_targeting_key_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.ads.admanager.v1; + +public interface UpdateCustomTargetingKeyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.ads.admanager.v1.UpdateCustomTargetingKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customTargetingKey field is set. + */ + boolean hasCustomTargetingKey(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customTargetingKey. + */ + com.google.ads.admanager.v1.CustomTargetingKey getCustomTargetingKey(); + + /** + * + * + *
+   * Required. The `CustomTargetingKey` to update.
+   *
+   * The `CustomTargetingKey`'s `name` is used to identify the
+   * `CustomTargetingKey` to update.
+   * 
+ * + * + * .google.ads.admanager.v1.CustomTargetingKey custom_targeting_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.ads.admanager.v1.CustomTargetingKeyOrBuilder getCustomTargetingKeyOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Required. The list of fields to update.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto index c1b4255cbfc9..6b736e49695b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_review_center_ad_service.proto @@ -117,11 +117,12 @@ message SearchAdReviewCenterAdsRequest { // is the value returned from a previous Search request, or empty. string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - // Required. Only return ads with the given status. + // Optional. Only return ads with the given status. AdReviewCenterAdStatusEnum.AdReviewCenterAdStatus status = 4 - [(google.api.field_behavior) = REQUIRED]; + [(google.api.field_behavior) = OPTIONAL]; - // Optional. If provided, only return ads with the given AdReviewCenterAd IDs. + // Optional. Only return ads with the given AdReviewCenterAd IDs. If provided, + // no other filter can be set (other than page size and page token). repeated string ad_review_center_ad_id = 5 [(google.api.field_behavior) = OPTIONAL]; diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto index 00843ea20407..c7ff8039f887 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/ad_unit_service.proto @@ -21,6 +21,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; @@ -60,6 +61,74 @@ service AdUnitService { }; option (google.api.method_signature) = "parent"; } + + // API to create an `AdUnit` object. + rpc CreateAdUnit(CreateAdUnitRequest) returns (AdUnit) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits" + body: "ad_unit" + }; + option (google.api.method_signature) = "parent,ad_unit"; + } + + // API to update an `AdUnit` object. + rpc UpdateAdUnit(UpdateAdUnitRequest) returns (AdUnit) { + option (google.api.http) = { + patch: "/v1/{ad_unit.name=networks/*/adUnits/*}" + body: "ad_unit" + }; + option (google.api.method_signature) = "ad_unit,update_mask"; + } + + // API to batch create `AdUnit` objects. + rpc BatchCreateAdUnits(BatchCreateAdUnitsRequest) + returns (BatchCreateAdUnitsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to batch update `AdUnit` objects. + rpc BatchUpdateAdUnits(BatchUpdateAdUnitsRequest) + returns (BatchUpdateAdUnitsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to batch activate `AdUnit` objects. + rpc BatchActivateAdUnits(BatchActivateAdUnitsRequest) + returns (BatchActivateAdUnitsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits:batchActivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Deactivates a list of `AdUnit` objects. + rpc BatchDeactivateAdUnits(BatchDeactivateAdUnitsRequest) + returns (BatchDeactivateAdUnitsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Archives a list of `AdUnit` objects. + rpc BatchArchiveAdUnits(BatchArchiveAdUnitsRequest) + returns (BatchArchiveAdUnitsResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/adUnits:batchArchive" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } } // Request object for GetAdUnit method. @@ -135,6 +204,84 @@ message ListAdUnitsResponse { int32 total_size = 3; } +// Request object for `CreateAdUnit` method. +message CreateAdUnitRequest { + // Required. The parent resource where this `AdUnit` will be created. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `AdUnit` to create. + AdUnit ad_unit = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `UpdateAdUnit` method. +message UpdateAdUnitRequest { + // Required. The `AdUnit` to update. + // + // The `AdUnit`'s name is used to identify the `AdUnit` to update. Format: + // `networks/{network_code}/adUnits/{ad_unit_id}` + AdUnit ad_unit = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateAdUnits` method. +message BatchCreateAdUnitsRequest { + // Required. The parent resource where `AdUnits` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateAdUnitRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `AdUnit` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateAdUnitRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateAdUnits` method. +message BatchCreateAdUnitsResponse { + // The `AdUnit` objects created. + repeated AdUnit ad_units = 1; +} + +// Request object for `BatchUpdateAdUnits` method. +message BatchUpdateAdUnitsRequest { + // Required. The parent resource where `AdUnits` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateAdUnitRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `AdUnit` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateAdUnitRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateAdUnits` method. +message BatchUpdateAdUnitsResponse { + // The `AdUnit` objects updated. + repeated AdUnit ad_units = 1; +} + // Request object for ListAdUnitSizes method. message ListAdUnitSizesRequest { // Required. The parent, which owns this collection of AdUnitSizes. @@ -195,3 +342,72 @@ message ListAdUnitSizesResponse { // https://developers.google.com/ad-manager/api/beta/field-masks int32 total_size = 3; } + +// Request object for `BatchActivateAdUnits` method. +message BatchActivateAdUnitsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `AdUnit`s to activate. + // Format: `networks/{network_code}/adUnits/{ad_unit_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdUnit" + } + ]; +} + +// Response object for `BatchActivateAdUnits` method. +message BatchActivateAdUnitsResponse {} + +// Request object for `BatchDeactivateAdUnits` method. +message BatchDeactivateAdUnitsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `AdUnit`s to deactivate. + // Format: `networks/{network_code}/adUnits/{ad_unit_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdUnit" + } + ]; +} + +// Response object for `BatchDeactivateAdUnits` method. +message BatchDeactivateAdUnitsResponse {} + +// Request object for `BatchArchiveAdUnits` method. +message BatchArchiveAdUnitsRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `AdUnit`s to archive. + // Format: `networks/{network_code}/adUnits/{ad_unit_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/AdUnit" + } + ]; +} + +// Response object for `BatchArchiveAdUnits` method. +message BatchArchiveAdUnitsResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto index 8e85a34443e4..a569ae23fc5d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/cms_metadata_value_service.proto @@ -36,7 +36,7 @@ service CmsMetadataValueService { option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/admanager"; - // API to retrieve a `CmsMetadataKey` object. + // API to retrieve a `CmsMetadataValue` object. rpc GetCmsMetadataValue(GetCmsMetadataValueRequest) returns (CmsMetadataValue) { option (google.api.http) = { @@ -57,7 +57,7 @@ service CmsMetadataValueService { // Request object for `GetCmsMetadataValue` method. message GetCmsMetadataValueRequest { - // Required. The resource name of the CmsMetadataKey. + // Required. The resource name of the CmsMetadataValue. // Format: `networks/{network_code}/cmsMetadataValues/{cms_metadata_value_id}` string name = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto index d211d674992b..ff317e80a562 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/custom_targeting_key_service.proto @@ -21,6 +21,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Ads.AdManager.V1"; option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; @@ -53,6 +54,67 @@ service CustomTargetingKeyService { }; option (google.api.method_signature) = "parent"; } + + // API to create a `CustomTargetingKey` object. + rpc CreateCustomTargetingKey(CreateCustomTargetingKeyRequest) + returns (CustomTargetingKey) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customTargetingKeys" + body: "custom_targeting_key" + }; + option (google.api.method_signature) = "parent,custom_targeting_key"; + } + + // API to batch create `CustomTargetingKey` objects. + rpc BatchCreateCustomTargetingKeys(BatchCreateCustomTargetingKeysRequest) + returns (BatchCreateCustomTargetingKeysResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customTargetingKeys:batchCreate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to update a `CustomTargetingKey` object. + rpc UpdateCustomTargetingKey(UpdateCustomTargetingKeyRequest) + returns (CustomTargetingKey) { + option (google.api.http) = { + patch: "/v1/{custom_targeting_key.name=networks/*/customTargetingKeys/*}" + body: "custom_targeting_key" + }; + option (google.api.method_signature) = "custom_targeting_key,update_mask"; + } + + // API to batch update `CustomTargetingKey` objects. + rpc BatchUpdateCustomTargetingKeys(BatchUpdateCustomTargetingKeysRequest) + returns (BatchUpdateCustomTargetingKeysResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customTargetingKeys:batchUpdate" + body: "*" + }; + option (google.api.method_signature) = "parent,requests"; + } + + // API to batch activate `CustomTargetingKey` objects. + rpc BatchActivateCustomTargetingKeys(BatchActivateCustomTargetingKeysRequest) + returns (BatchActivateCustomTargetingKeysResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customTargetingKeys:batchActivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } + + // Deactivates a list of `CustomTargetingKey` objects. + rpc BatchDeactivateCustomTargetingKeys( + BatchDeactivateCustomTargetingKeysRequest) + returns (BatchDeactivateCustomTargetingKeysResponse) { + option (google.api.http) = { + post: "/v1/{parent=networks/*}/customTargetingKeys:batchDeactivate" + body: "*" + }; + option (google.api.method_signature) = "parent,names"; + } } // Request object for `GetCustomTargetingKey` method. @@ -129,3 +191,131 @@ message ListCustomTargetingKeysResponse { // https://developers.google.com/ad-manager/api/beta/field-masks int32 total_size = 3; } + +// Request object for `CreateCustomTargetingKey` method. +message CreateCustomTargetingKeyRequest { + // Required. The parent resource where this `CustomTargetingKey` will be + // created. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomTargetingKey` to create. + CustomTargetingKey custom_targeting_key = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchCreateCustomTargetingKeys` method. +message BatchCreateCustomTargetingKeysRequest { + // Required. The parent resource where `CustomTargetingKeys` will be created. + // Format: `networks/{network_code}` + // The parent field in the CreateCustomTargetingKeyRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomTargetingKey` objects to create. + // A maximum of 100 objects can be created in a batch. + repeated CreateCustomTargetingKeyRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchCreateCustomTargetingKeys` method. +message BatchCreateCustomTargetingKeysResponse { + // The `CustomTargetingKey` objects created. + repeated CustomTargetingKey custom_targeting_keys = 1; +} + +// Request object for `UpdateCustomTargetingKey` method. +message UpdateCustomTargetingKeyRequest { + // Required. The `CustomTargetingKey` to update. + // + // The `CustomTargetingKey`'s `name` is used to identify the + // `CustomTargetingKey` to update. + CustomTargetingKey custom_targeting_key = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to update. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Request object for `BatchUpdateCustomTargetingKeys` method. +message BatchUpdateCustomTargetingKeysRequest { + // Required. The parent resource where `CustomTargetingKeys` will be updated. + // Format: `networks/{network_code}` + // The parent field in the UpdateCustomTargetingKeyRequest must match this + // field. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The `CustomTargetingKey` objects to update. + // A maximum of 100 objects can be updated in a batch. + repeated UpdateCustomTargetingKeyRequest requests = 2 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response object for `BatchUpdateCustomTargetingKeys` method. +message BatchUpdateCustomTargetingKeysResponse { + // The `CustomTargetingKey` objects updated. + repeated CustomTargetingKey custom_targeting_keys = 1; +} + +// Request object for `BatchActivateCustomTargetingKeys` method. +message BatchActivateCustomTargetingKeysRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `CustomTargetingKey`s to activate. + // Format: + // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomTargetingKey" + } + ]; +} + +// Response object for `BatchActivateCustomTargetingKeys` method. +message BatchActivateCustomTargetingKeysResponse {} + +// Request message for `BatchDeactivateCustomTargetingKeys` method. +message BatchDeactivateCustomTargetingKeysRequest { + // Required. Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Required. The resource names of the `CustomTargetingKey`s to deactivate. + // Format: + // `networks/{network_code}/customTargetingKeys/{custom_targeting_key_id}` + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/CustomTargetingKey" + } + ]; +} + +// Response object for `BatchDeactivateCustomTargetingKeys` method. +message BatchDeactivateCustomTargetingKeysResponse {} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal.proto new file mode 100644 index 000000000000..8916b12f005c --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal.proto @@ -0,0 +1,57 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.ads.admanager.v1; + +import "google/ads/admanager/v1/goal_enums.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "GoalProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Defines the criteria a [LineItem][google.ads.admanager.v1.LineItem] needs to +// satisfy to meet its delivery goal. +message Goal { + // The type of the goal for the LineItem. It defines the period over which the + // goal should be reached. + optional GoalTypeEnum.GoalType goal_type = 1; + + // The type of the goal unit for the LineItem. + optional UnitTypeEnum.UnitType unit_type = 2; + + // If this is a primary goal, it represents the number or percentage of + // impressions or clicks that will be reserved. If the line item is of type + // [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP], + // it represents the percentage of available impressions reserved. If the line + // item is of type + // [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK] + // or + // [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY], + // it represents the number of remaining impressions reserved. If the line + // item is of type + // [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK] + // or + // [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE], + // it represents the percentage of remaining impressions reserved.

If this + // is an impression cap goal, it represents the number of impressions or + // conversions that the line item will stop serving at if reached. For valid + // line item types, see [LineItem.impressions_cap][]. + optional int64 units = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal_enums.proto new file mode 100644 index 000000000000..963823378de8 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/goal_enums.proto @@ -0,0 +1,129 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "GoalEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [GoalType][google.ads.admanager.v1.GoalTypeEnum.GoalType]. +message GoalTypeEnum { + // Specifies the type of the goal for a LineItem. + enum GoalType { + // Default value. This value is unused. + GOAL_TYPE_UNSPECIFIED = 0; + + // No goal is specified for the number of ads delivered. + // The line item [type][google.ads.admanager.v1.LineItem.line_item_type] + // must be one of: + // + // * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY] + // * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE] + // * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING] + NONE = 1; + + // There is a goal on the number of ads delivered for this line item during + // its entire lifetime. + // The line item [type][google.ads.admanager.v1.LineItem.line_item_type] + // must be one of: + // + // * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD] + // * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK] + // * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY] + // * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE] + // * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE] + // * [LineItemTypeEnum.LineItemType.ADMOB][] + // * [LineItemTypeEnum.LineItemType.CLICK_TRACKING][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.CLICK_TRACKING] + LIFETIME = 2; + + // There is a daily goal on the number of ads delivered for this line item. + // The line item [type][google.ads.admanager.v1.LineItem.line_item_type] + // must be one of: + // + // * [LineItemTypeEnum.LineItemType.SPONSORSHIP][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.SPONSORSHIP] + // * [LineItemTypeEnum.LineItemType.NETWORK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.NETWORK] + // * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY] + // * [LineItemTypeEnum.LineItemType.HOUSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.HOUSE] + // * [LineItemTypeEnum.LineItemType.ADSENSE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.ADSENSE] + // * [LineItemTypeEnum.LineItemType.AD_EXCHANGE][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.AD_EXCHANGE] + // * [LineItemTypeEnum.LineItemType.ADMOB][] + // * [LineItemTypeEnum.LineItemType.BUMPER][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BUMPER] + DAILY = 3; + } +} + +// Wrapper message for +// [UnitType][google.ads.admanager.v1.UnitTypeEnum.UnitType]. +message UnitTypeEnum { + // Indicates the type of unit used for defining a reservation. The + // [LineItem.cost_type][] can differ from the UnitType - an + // ad can have an impression goal, but be billed by its click. Usually + // CostType and UnitType will refer to the same unit. + enum UnitType { + // Default value. This value is unused. + UNIT_TYPE_UNSPECIFIED = 0; + + // The number of impressions served by creatives associated with the line + // item. + IMPRESSIONS = 1; + + // The number of clicks reported by creatives associated with the line item. + // The line item [type][google.ads.admanager.v1.LineItem.line_item_type] + // must be one of: + // + // * [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD] + // * [LineItemTypeEnum.LineItemType.BULK][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.BULK] + // * [LineItemTypeEnum.LineItemType.PRICE_PRIORITY][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.PRICE_PRIORITY] + CLICKS = 2; + + // The number of click-through Cost-Per-Action (CPA) conversions from + // creatives associated with the line item. This is only supported as + // secondary goal and the [LineItem.cost_type][] must be + // [CostTypeEnum.CostType.CPA][]. + CLICK_THROUGH_CPA_CONVERSIONS = 3; + + // The number of view-through Cost-Per-Action (CPA) conversions from + // creatives associated with the line item. This is only supported as + // secondary goal and the [LineItem.cost_type][] must be + // [CostTypeEnum.CostType.CPA}. + VIEW_THROUGH_CPA_CONVERSIONS = 4; + + // The number of total Cost-Per-Action (CPA) conversions from creatives + // associated with the line item. This is only supported as secondary goal + // and the [LineItem.cost_type} must be [CostTypeEnum.CostType.CPA}. + TOTAL_CPA_CONVERSIONS = 5; + + // The number of viewable impressions reported by creatives associated with + // the line item. The + // [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type] + // must be + // [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]. + VIEWABLE_IMPRESSIONS = 6; + + // The number of in-target impressions reported by third party measurements. + // The + // [LineItem.line_item_type][google.ads.admanager.v1.LineItem.line_item_type] + // must be + // [LineItemTypeEnum.LineItemType.STANDARD][google.ads.admanager.v1.LineItemTypeEnum.LineItemType.STANDARD]. + IN_TARGET_IMPRESSIONS = 7; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_enums.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_enums.proto new file mode 100644 index 000000000000..ef03b0c49b48 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_enums.proto @@ -0,0 +1,86 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.ads.admanager.v1; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "LineItemEnumsProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Wrapper message for +// [LineItemType][google.ads.admanager.v1.LineItemTypeEnum.LineItemType]. +message LineItemTypeEnum { + // Indicates the priority of a LineItem, determined by the way in which + // impressions are reserved to be served for it. + enum LineItemType { + // Not specified value. + LINE_ITEM_TYPE_UNSPECIFIED = 0; + + // The type of LineItem for which a percentage of all the impressions that + // are being sold are reserved. + SPONSORSHIP = 12; + + // The type of LineItem for which a fixed quantity of impressions or + // clicks are reserved. + STANDARD = 13; + + // The type of LineItem most commonly used to fill a site's unsold + // inventory if not contractually obligated to deliver a requested number + // of impressions. Uses daily percentage of unsold impressions or clicks. + NETWORK = 9; + + // The type of LineItem for which a fixed quantity of impressions or + // clicks will be delivered at a priority lower than the STANDARD type. + BULK = 4; + + // The type of LineItem most commonly used to fill a site's unsold + // inventory if not contractually obligated to deliver a requested number + // of impressions. Uses fixed quantity percentage of unsold impressions or + // clicks. + PRICE_PRIORITY = 11; + + // The type of LineItem typically used for ads that promote products and + // services chosen by the publisher. + HOUSE = 7; + + // The type of LineItem used for ads that track ads being served + // externally of Ad Manager. + CLICK_TRACKING = 6; + + // Targets the LineItem to specific inventory available to AdSense buyers. + ADSENSE = 2; + + // Targets the LineItem to specific inventory available to Authorized Buyers + // and the Open Auction. + AD_EXCHANGE = 3; + + // Represents a non-monetizable video LineItem that targets one or more + // bumper positions, which are short house video messages used by + // publishers to separate content from ad breaks. + BUMPER = 5; + + // The type of LineItem for which there are no impressions reserved, and + // will serve for a second price bid. + PREFERRED_DEAL = 10; + + // The type of LineItem used for configuring audience extension campaigns. + AUDIENCE_EXTENSION = 14; + } +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_messages.proto new file mode 100644 index 000000000000..75392cd5d615 --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_messages.proto @@ -0,0 +1,93 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.ads.admanager.v1; + +import "google/ads/admanager/v1/custom_field_value.proto"; +import "google/ads/admanager/v1/goal.proto"; +import "google/ads/admanager/v1/line_item_enums.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/money.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "LineItemMessagesProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// A LineItem contains information about how specific ad creatives are intended +// to serve to your website or app along with pricing and other delivery +// details. +message LineItem { + option (google.api.resource) = { + type: "admanager.googleapis.com/LineItem" + pattern: "networks/{network_code}/lineItems/{line_item}" + plural: "lineItems" + singular: "lineItem" + }; + + // Identifier. The resource name of the `LineItem`. + // Format: `networks/{network_code}/lineItems/{line_item_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The ID of the Order to which the LineItem belongs. This + // attribute is required. Format: `networks/{network_code}/orders/{order}` + optional string order = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { type: "admanager.googleapis.com/Order" } + ]; + + // Required. The name of the line item. This attribute is required and has a + // maximum length of 255 characters. + optional string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The date and time on which the LineItem is enabled to begin + // serving. This attribute is required and must be in the future. + optional google.protobuf.Timestamp start_time = 6 + [(google.api.field_behavior) = REQUIRED]; + + // Output only. The timestamp when the LineItem will stop serving. This + // attribute is read-only and includes auto extension days. + optional google.protobuf.Timestamp end_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Indicates the line item type of a LineItem. This attribute is + // required. The line item type determines the default priority of the line + // item. More information can be found at + // https://support.google.com/admanager/answer/177279. + optional LineItemTypeEnum.LineItemType line_item_type = 17 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The amount of money to spend per impression or click. + optional google.type.Money rate = 20 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The amount of money allocated to the LineItem. This attribute + // is readonly and is populated by Google. The currency code is readonly. + optional google.type.Money budget = 35 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The values of the custom fields associated with this line item. + repeated CustomFieldValue custom_field_values = 59 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The primary goal that this LineItem is associated with, which is + // used in its pacing and budgeting. + optional Goal goal = 76 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_service.proto new file mode 100644 index 000000000000..014b94e80cfe --- /dev/null +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/line_item_service.proto @@ -0,0 +1,128 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.ads.admanager.v1; + +import "google/ads/admanager/v1/line_item_messages.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; + +option csharp_namespace = "Google.Ads.AdManager.V1"; +option go_package = "google.golang.org/genproto/googleapis/ads/admanager/v1;admanager"; +option java_multiple_files = true; +option java_outer_classname = "LineItemServiceProto"; +option java_package = "com.google.ads.admanager.v1"; +option php_namespace = "Google\\Ads\\AdManager\\V1"; +option ruby_package = "Google::Ads::AdManager::V1"; + +// Provides methods for handling `LineItem` objects. +service LineItemService { + option (google.api.default_host) = "admanager.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/admanager"; + + // API to retrieve a `LineItem` object. + rpc GetLineItem(GetLineItemRequest) returns (LineItem) { + option (google.api.http) = { + get: "/v1/{name=networks/*/lineItems/*}" + }; + option (google.api.method_signature) = "name"; + } + + // API to retrieve a list of `LineItem` objects. + rpc ListLineItems(ListLineItemsRequest) returns (ListLineItemsResponse) { + option (google.api.http) = { + get: "/v1/{parent=networks/*}/lineItems" + }; + option (google.api.method_signature) = "parent"; + } +} + +// Request object for `GetLineItem` method. +message GetLineItemRequest { + // Required. The resource name of the LineItem. + // Format: `networks/{network_code}/lineItems/{line_item_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/LineItem" + } + ]; +} + +// Request object for `ListLineItems` method. +message ListLineItemsRequest { + // Required. The parent, which owns this collection of LineItems. + // Format: `networks/{network_code}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "admanager.googleapis.com/Network" + } + ]; + + // Optional. The maximum number of `LineItems` to return. The service may + // return fewer than this value. If unspecified, at most 50 `LineItems` will + // be returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListLineItems` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListLineItems` must + // match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to filter the response. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Expression to specify sorting order. + // See syntax details at + // https://developers.google.com/ad-manager/api/beta/filters#order + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response object for `ListLineItemsRequest` containing matching `LineItem` +// objects. +message ListLineItemsResponse { + // The `LineItem` objects from the specified network. + repeated LineItem line_items = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `LineItem` objects. + // If a filter was included in the request, this reflects the total number + // after the filtering is applied. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; +} diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto index ce2cb82a2523..78a85362d44b 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_messages.proto @@ -41,20 +41,20 @@ message Network { string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Display name for Network. - string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; + optional string display_name = 2 [(google.api.field_behavior) = OPTIONAL]; // Output only. Network Code. - string network_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string network_code = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Property code. - string property_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string property_code = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time zone associated with the delivery of orders and // reporting. - string time_zone = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string time_zone = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Primary currency code, in ISO-4217 format. - string currency_code = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional string currency_code = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // Optional. Currency codes that can be used as an alternative to the primary // currency code for trafficking Line Items. @@ -64,7 +64,7 @@ message Network { // Output only. Top most [Ad Unit](google.ads.admanager.v1.AdUnit) to which // descendant Ad Units can be added. // Format: networks/{network_code}/adUnits/{ad_unit} - string effective_root_ad_unit = 8 [ + optional string effective_root_ad_unit = 8 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { type: "admanager.googleapis.com/AdUnit" @@ -72,8 +72,8 @@ message Network { ]; // Output only. Whether this is a test network. - bool test_network = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional bool test_network = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Network ID. - int64 network_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + optional int64 network_id = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto index fed396886a50..2bf5396c3737 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/network_service.proto @@ -65,10 +65,41 @@ message GetNetworkRequest { } // Request object for `ListNetworks` method. -message ListNetworksRequest {} +message ListNetworksRequest { + // Optional. The maximum number of `Network`s to return. The service may + // return fewer than this value. If unspecified, at most 50 `Network`s will be + // returned. The maximum value is 1000; values greater than 1000 will be + // coerced to 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListNetworks` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListNetworks` must match + // the call that provided the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Number of individual resources to skip while paginating. + int32 skip = 5 [(google.api.field_behavior) = OPTIONAL]; +} // Response object for `ListNetworks` method. message ListNetworksResponse { // The `Network`s a user has access to. repeated Network networks = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; + + // Total number of `Network`s. + // + // `total_size` won't be calculated in the response unless it has been + // included in a response field mask. The response field mask can be provided + // to the method by using the URL parameter `$fields` or `fields`, or by using + // the HTTP/gRPC header `X-Goog-FieldMask`. + // + // For more information, see + // https://developers.google.com/ad-manager/api/beta/field-masks + int32 total_size = 3; } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto index 88b9115f2020..5e8620ced13d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/order_messages.proto @@ -61,10 +61,12 @@ message Order { (google.api.resource_reference) = { type: "admanager.googleapis.com/User" } ]; - // Optional. The resource names of Contacts from the advertiser of this Order. - // Format: "networks/{network_code}/contacts/{contact_id}" + // Optional. Unordered list. The resource names of Contacts from the + // advertiser of this Order. Format: + // "networks/{network_code}/contacts/{contact_id}" repeated string advertiser_contacts = 5 [ (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = UNORDERED_LIST, (google.api.resource_reference) = { type: "admanager.googleapis.com/Contact" } diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto index 5e8640ff5f4c..eaf42bde804d 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_definition.proto @@ -100,6 +100,10 @@ message ReportDefinition { // preceding the calendar week the report is run. LAST_WEEK = 7; + // The entire previous calendar week, Sunday to Saturday (inclusive), + // preceding the calendar week the report is run. + LAST_WEEK_STARTING_SUNDAY = 39; + // The entire previous calendar month preceding the calendar month the // report is run. LAST_MONTH = 8; @@ -124,6 +128,9 @@ message ReportDefinition { // The 90 days preceding the day the report is run. LAST_90_DAYS = 14; + // The 93 days preceding the day the report is run. + LAST_93_DAYS = 38; + // The 180 days preceding the day the report is run. LAST_180_DAYS = 15; @@ -392,6 +399,12 @@ message ReportDefinition { // Privacy and messaging. PRIVACY_AND_MESSAGING = 6; + // Gross revenue. + REVENUE_VERIFICATION = 7; + + // Partner finance. + PARTNER_FINANCE = 8; + // Ad speed. AD_SPEED = 13; } @@ -439,7 +452,7 @@ message ReportDefinition { // Data format: `ENUM` ADVERTISER_CREDIT_STATUS = 475; - // Advertiser credit status locallized name + // Advertiser credit status localized name // // // @@ -544,7 +557,7 @@ message ReportDefinition { // Data format: `ENUM` ADVERTISER_STATUS = 471; - // Advertiser status locallized name + // Advertiser status localized name // // // @@ -568,7 +581,7 @@ message ReportDefinition { // Data format: `ENUM` ADVERTISER_TYPE = 473; - // Advertiser type locallized name + // Advertiser type localized name // // // @@ -599,7 +612,8 @@ message ReportDefinition { // Corresponds to "Ad Exchange product value" in the Ad Manager UI (when // showing API fields). // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `ENUM` ADX_PRODUCT = 499; @@ -611,7 +625,8 @@ message ReportDefinition { // // Corresponds to "Ad Exchange product" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `STRING` ADX_PRODUCT_NAME = 500; @@ -664,6 +679,17 @@ message ReportDefinition { // Data format: `STRING` AD_LOCATION_NAME = 391; + // Multi-size inventory in an ad request. + // + // + // + // Corresponds to "Ad request sizes" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING_LIST` + AD_REQUEST_SIZES = 541; + // The domain of the ad technology provider associated with the bid. // // @@ -1492,6 +1518,28 @@ message ReportDefinition { // Data format: `STRING` AGE_BRACKET_NAME = 582; + // Property ID in Google Analytics + // + // + // + // Corresponds to "Analytics property ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + ANALYTICS_PROPERTY_ID = 733; + + // Property name in Google Analytics + // + // + // + // Corresponds to "Analytics property" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + ANALYTICS_PROPERTY_NAME = 767; + // Enum value for App Tracking Transparency consent status. // // @@ -1549,6 +1597,50 @@ message ReportDefinition { // Data format: `IDENTIFIER` AUCTION_PACKAGE_DEAL_ID = 571; + // Name of billable audience segment. + // + // + // + // Corresponds to "Audience segment (billable)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUDIENCE_SEGMENT_BILLABLE = 594; + + // ID of the data provider for the audience segment. + // + // + // + // Corresponds to "Audience segment data provider ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AUDIENCE_SEGMENT_DATA_PROVIDER_ID = 613; + + // Name of the data provider for the audience segment. + // + // + // + // Corresponds to "Audience segment data provider" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUDIENCE_SEGMENT_DATA_PROVIDER_NAME = 614; + + // ID of billable audience segment. + // + // + // + // Corresponds to "Audience segment ID (billable)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + AUDIENCE_SEGMENT_ID_BILLABLE = 595; + // ID of targeted audience segment, including all first-party and // third-party segments that matched the user on the winning line item. // @@ -1573,6 +1665,172 @@ message ReportDefinition { // Data format: `STRING` AUDIENCE_SEGMENT_TARGETED = 585; + // Number of AdID identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) AdID size" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE = 605; + + // Number of Amazon Fire identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Amazon Fire size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE = 606; + + // Number of Android TV identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Android TV size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE = 607; + + // Number of Apple TV identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Apple TV size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE = 608; + + // Number of IDFA identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) IDFA size" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE = 609; + + // Number of mobile web identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) mobile web size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE = 610; + + // Number of PlayStation identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) PlayStation size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE = 611; + + // Number of PPID identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) PPID size" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE = 612; + + // Number of Roku identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Roku size" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE = 615; + + // Number of Samsung TV identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Samsung TV size" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE = 616; + + // Number of identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) size" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_SIZE = 618; + + // Status of the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) status value" in the Ad + // Manager UI (when showing API fields). + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `ENUM` + AUDIENCE_SEGMENT_TARGETED_STATUS = 628; + + // Name of the status of the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) status" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + AUDIENCE_SEGMENT_TARGETED_STATUS_NAME = 617; + + // Number of Xbox identifiers in the audience segment. + // + // + // + // Corresponds to "Audience segment (targeted) Xbox size" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE = 619; + // Enum value of Auto refreshed traffic. // // @@ -1602,7 +1860,8 @@ message ReportDefinition { // // Corresponds to "Bidder encrypted ID" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `STRING` BIDDER_ENCRYPTED_ID = 493; @@ -1613,7 +1872,8 @@ message ReportDefinition { // // Corresponds to "Bidder" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `STRING` BIDDER_NAME = 494; @@ -1901,6 +2161,50 @@ message ReportDefinition { // Data format: `STRING` CLASSIFIED_BRAND_NAME = 244; + // ID of the video content bundle served. + // + // + // + // Corresponds to "Content bundle ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CONTENT_BUNDLE_ID = 460; + + // Name of the video content bundle served. + // + // + // + // Corresponds to "Content bundle" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_BUNDLE_NAME = 461; + + // ID of the video content metadata namespace served. + // + // + // + // Corresponds to "CMS metadata key ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `IDENTIFIER` + CONTENT_CMS_METADATA_KV_NAMESPACE_ID = 462; + + // Name of the video content metadata namespace served. + // + // + // + // Corresponds to "CMS metadata key" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + CONTENT_CMS_METADATA_KV_NAMESPACE_NAME = 463; + // The display name of the CMS content. // // @@ -2107,7 +2411,7 @@ message ReportDefinition { // Data format: `STRING` CREATIVE_POLICIES_FILTERING_NAME = 712; - // Creative Protections filtering (Publisher Blocks Enforcement). + // Creative Protections filtering. // // // @@ -2167,7 +2471,7 @@ message ReportDefinition { // Data format: `ENUM` CREATIVE_TECHNOLOGY = 148; - // Creative technology locallized name + // Creative technology localized name // // // @@ -2345,7 +2649,7 @@ message ReportDefinition { // Corresponds to "Date" in the Ad Manager UI. // // Compatible with the following report types: `HISTORICAL`, `REACH`, - // `PRIVACY_AND_MESSAGING`, `AD_SPEED` + // `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `AD_SPEED` // // Data format: `DATE` DATE = 3; @@ -2439,7 +2743,7 @@ message ReportDefinition { // API fields). // // Compatible with the following report types: `HISTORICAL`, `REACH`, - // `AD_SPEED` + // `REVENUE_VERIFICATION`, `AD_SPEED` // // Data format: `ENUM` DEMAND_CHANNEL = 9; @@ -2451,7 +2755,7 @@ message ReportDefinition { // Corresponds to "Demand channel" in the Ad Manager UI. // // Compatible with the following report types: `HISTORICAL`, `REACH`, - // `AD_SPEED` + // `REVENUE_VERIFICATION`, `AD_SPEED` // // Data format: `STRING` DEMAND_CHANNEL_NAME = 10; @@ -2595,7 +2899,7 @@ message ReportDefinition { // Compatible with the following report types: `HISTORICAL` // // Data format: `STRING` - DEVICE_NAME = 225; + DEVICE_NAME = 225 [deprecated = true]; // The ID of DSP Seat // @@ -3161,6 +3465,17 @@ message ReportDefinition { // Data format: `STRING` KEY_VALUES_NAME = 215; + // The custom criteria key-values specified in ad requests. + // + // + // + // Corresponds to "Key-values" in the Ad Manager UI. + // + // Compatible with the following report types: + // + // Data format: `STRING_LIST` + KEY_VALUES_SET = 713; + // The agency of the order associated with the line item. // // @@ -3183,7 +3498,7 @@ message ReportDefinition { // Data format: `BOOLEAN` LINE_ITEM_ARCHIVED = 188; - // Line item comanion delivery option ENUM value. + // Line item companion delivery option ENUM value. // // // @@ -3195,7 +3510,7 @@ message ReportDefinition { // Data format: `ENUM` LINE_ITEM_COMPANION_DELIVERY_OPTION = 204; - // Localized line item comanion delivery option name. + // Localized line item companion delivery option name. // // // @@ -3597,7 +3912,7 @@ message ReportDefinition { // Data format: `MONEY` LINE_ITEM_NON_CPD_BOOKED_REVENUE = 98; - // Whether a Line item is eligible for opitimization. + // Whether a Line item is eligible for optimization. // // // @@ -4095,7 +4410,8 @@ message ReportDefinition { // Corresponds to "Rendering SDK value" in the Ad Manager UI (when showing // API fields). // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `ENUM` MOBILE_RENDERING_SDK = 646; @@ -4106,7 +4422,8 @@ message ReportDefinition { // // Corresponds to "Rendering SDK" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `STRING` MOBILE_RENDERING_SDK_NAME = 647; @@ -4151,7 +4468,7 @@ message ReportDefinition { // Corresponds to "Month and year" in the Ad Manager UI. // // Compatible with the following report types: `HISTORICAL`, `REACH`, - // `PRIVACY_AND_MESSAGING` + // `PRIVACY_AND_MESSAGING`, `REVENUE_VERIFICATION`, `PARTNER_FINANCE` // // Data format: `INTEGER` MONTH_YEAR = 6; @@ -4646,27 +4963,75 @@ message ReportDefinition { // Data format: `STRING` PAGE_TITLE_AND_SCREEN_NAME = 513; - // Placement ID + // The ID of a partner management assignment. // // // - // Corresponds to "Placement ID" in the Ad Manager UI. + // Corresponds to "Partner management assignment ID" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL`, `REACH` + // Compatible with the following report types: `HISTORICAL`, + // `PARTNER_FINANCE` // - // Data format: `IDENTIFIER` - PLACEMENT_ID = 113; + // Data format: `INTEGER` + PARTNER_MANAGEMENT_ASSIGNMENT_ID = 657; - // The full list of placement IDs associated with the ad unit. + // The name of a partner management assignment. // // // - // Corresponds to "Placement ID (all)" in the Ad Manager UI. + // Corresponds to "Partner management assignment" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL`, `REACH` + // Compatible with the following report types: `HISTORICAL`, + // `PARTNER_FINANCE` // - // Data format: `IDENTIFIER_LIST` - PLACEMENT_ID_ALL = 144; + // Data format: `STRING` + PARTNER_MANAGEMENT_ASSIGNMENT_NAME = 658; + + // The ID of a partner in a partner management assignment. + // + // + // + // Corresponds to "Partner management partner ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PARTNER_FINANCE` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_PARTNER_ID = 655; + + // The name of a partner in a partner management assignment. + // + // + // + // Corresponds to "Partner management partner" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PARTNER_FINANCE` + // + // Data format: `STRING` + PARTNER_MANAGEMENT_PARTNER_NAME = 656; + + // Placement ID + // + // + // + // Corresponds to "Placement ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER` + PLACEMENT_ID = 113; + + // The full list of placement IDs associated with the ad unit. + // + // + // + // Corresponds to "Placement ID (all)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, `REACH` + // + // Data format: `IDENTIFIER_LIST` + PLACEMENT_ID_ALL = 144; // Placement name // @@ -4860,7 +5225,8 @@ message ReportDefinition { // Corresponds to "Programmatic channel value" in the Ad Manager UI (when // showing API fields). // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, + // `REVENUE_VERIFICATION` // // Data format: `ENUM` PROGRAMMATIC_CHANNEL = 13; @@ -4872,7 +5238,8 @@ message ReportDefinition { // // Corresponds to "Programmatic channel" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL`, `REACH` + // Compatible with the following report types: `HISTORICAL`, `REACH`, + // `REVENUE_VERIFICATION` // // Data format: `STRING` PROGRAMMATIC_CHANNEL_NAME = 14; @@ -5165,7 +5532,7 @@ message ReportDefinition { // Data format: `ENUM` REQUEST_TYPE = 146; - // Request type locallized name + // Request type localized name // // // @@ -5176,6 +5543,17 @@ message ReportDefinition { // Data format: `STRING` REQUEST_TYPE_NAME = 147; + // Revenue Verification bidder-provided ID. + // + // + // + // Corresponds to "Revenue verification ID" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `IDENTIFIER` + REVENUE_VERIFICATION_ID = 645; + // Indicates if a request was eligible for server-side unwrapping. // // @@ -5397,6 +5775,29 @@ message ReportDefinition { // Data format: `IDENTIFIER` URL_ID = 507; + // The choice made in a user message. + // + // + // + // Corresponds to "User choice value" in the Ad Manager UI (when showing API + // fields). + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `ENUM` + USER_MESSAGES_CHOICE = 702; + + // Localized name of the choice made in a user message. + // + // + // + // Corresponds to "User choice" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `STRING` + USER_MESSAGES_CHOICE_NAME = 703; + // Enum value for the entitlement source. // // @@ -5639,6 +6040,73 @@ message ReportDefinition { // Data format: `STRING` VIDEO_FALLBACK_POSITION = 530; + // The duration of the ad break in seconds for a live stream event. + // + // + // + // Corresponds to "Ad break duration (seconds)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION = 547; + + // The ID of the ad break in a live stream event. + // + // + // + // Corresponds to "Live stream ad break ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID = 548; + + // The name of the ad break in a live stream event. + // + // + // + // Corresponds to "Live stream ad break" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME = 549; + + // The time of the ad break in a live stream event in the format of + // YYYY-MM-DD HH:MM:SS+Timezone. + // + // + // + // Corresponds to "Ad break time" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `TIMESTAMP` + VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME = 550; + + // The ID of the live stream event. + // + // + // + // Corresponds to "Live stream ID" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_LIVE_STREAM_EVENT_ID = 551; + + // The name of the live stream event. + // + // + // + // Corresponds to "Live stream" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + VIDEO_LIVE_STREAM_EVENT_NAME = 552; + // The performance of the video ad inventory broken out by source. // // @@ -5754,6 +6222,17 @@ message ReportDefinition { // Data format: `STRING` VIDEO_STITCHER_TYPE_NAME = 753; + // Web property code + // + // + // + // Corresponds to "Web property code" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `STRING` + WEB_PROPERTY_CODE = 730; + // Breaks down reporting data by week of the year. // // @@ -5847,7 +6326,7 @@ message ReportDefinition { // Data format: `ENUM` YOUTUBE_AD_TYPE = 399; - // YouTube instream Ad Type locallized name. + // YouTube instream Ad Type localized name. // // // @@ -7694,7 +8173,7 @@ message ReportDefinition { // The ratio of matched ad requests served by the Ad Exchange that // resulted in users clicking on an ad. The clickthrough rate (CTR) is // updated nightly. Ad Exchange Matched Request CTR is calculated as: - // (Ad Exchange clicks / Ad Exchange Macthed Ad Requests). + // (Ad Exchange clicks / Ad Exchange Matched Ad Requests). // // // @@ -8263,6 +8742,32 @@ message ReportDefinition { // Data format: `INTEGER` AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS = 338; + // Total number of ad server VAST errors discounting errors generated from + // video fallback ads. + // + // + // + // Corresponds to "Ad Server opportunities from errors" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_OPPORTUNITIES_FROM_ERRORS = 461; + + // Total number of ad server impressions discounting video fallback + // impressions. + // + // + // + // Corresponds to "Ad Server opportunities from impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS = 462; + // Ratio of clicks delivered by the Google Ad Manager server in relation to // the total clicks delivered. // @@ -8584,7 +9089,7 @@ message ReportDefinition { // // // - // Corresponds to "Header bidding trafficking ad requests with no bids" in + // Corresponds to "Ad requests with no header bidding trafficking bids" in // the Ad Manager UI. // // Compatible with the following report types: @@ -8623,7 +9128,7 @@ message ReportDefinition { // // // - // Corresponds to "Header bidding trafficking ad requests with bids" in the + // Corresponds to "Ad requests with header bidding trafficking bids" in the // Ad Manager UI. // // Compatible with the following report types: @@ -8647,7 +9152,8 @@ message ReportDefinition { // // // - // Corresponds to "Creative not retrieved" in the Ad Manager UI. + // Corresponds to "Line items with no creative retrieved" in the Ad Manager + // UI. // // Compatible with the following report types: // @@ -8683,7 +9189,7 @@ message ReportDefinition { // // // - // Corresponds to "Not selected to compete" in the Ad Manager UI. + // Corresponds to "Line items not selected to compete" in the Ad Manager UI. // // Compatible with the following report types: // @@ -8758,8 +9264,8 @@ message ReportDefinition { // // // - // Corresponds to "Mediation requests with no partners" in the Ad Manager - // UI. + // Corresponds to "Ad requests with no targeted mediation partners" in the + // Ad Manager UI. // // Compatible with the following report types: // @@ -9099,7 +9605,8 @@ message ReportDefinition { // // // - // Corresponds to "Total ad requests (ATN)" in the Ad Manager UI. + // Corresponds to "Total ad requests (Ads traffic navigator)" in the Ad + // Manager UI. // // Compatible with the following report types: // @@ -9151,6 +9658,17 @@ message ReportDefinition { // Data format: `INTEGER` ATN_YIELD_GROUP_MEDIATION_PASSBACKS = 390; + // Cost of the audience segment. + // + // + // + // Corresponds to "Audience segment cost" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + AUDIENCE_SEGMENT_COST = 558; + // eCPM averaged across the Google Ad Manager server, AdSense, // and Ad Exchange. // @@ -9170,7 +9688,7 @@ message ReportDefinition { // // Corresponds to "Total average eCPM w/o CPD" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` // // Data format: `MONEY` AVERAGE_ECPM_WITHOUT_CPD = 5; @@ -9282,7 +9800,7 @@ message ReportDefinition { // // Corresponds to "Total clicks" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` // // Data format: `INTEGER` CLICKS = 2; @@ -9395,7 +9913,7 @@ message ReportDefinition { // // Corresponds to "Total CTR" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` // // Data format: `PERCENT` CTR = 3; @@ -9859,7 +10377,7 @@ message ReportDefinition { // // Corresponds to "Total impressions" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` // // Data format: `INTEGER` IMPRESSIONS = 1; @@ -9980,6 +10498,176 @@ message ReportDefinition { // Data format: `INTEGER` OVERDELIVERED_IMPRESSIONS = 432; + // The gross revenue for partner finance reports. + // + // + // + // Corresponds to "Gross revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `MONEY` + PARTNER_FINANCE_GROSS_REVENUE = 648; + + // Monthly host eCPM for partner finance reports + // + // + // + // Corresponds to "Host eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `MONEY` + PARTNER_FINANCE_HOST_ECPM = 649; + + // The host impressions for partner finance reports. + // + // + // + // Corresponds to "Host impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `INTEGER` + PARTNER_FINANCE_HOST_IMPRESSIONS = 650; + + // Monthly host revenue for partner finance reports + // + // + // + // Corresponds to "Host revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `MONEY` + PARTNER_FINANCE_HOST_REVENUE = 651; + + // Monthly partner eCPM for partner finance reports + // + // + // + // Corresponds to "Partner eCPM" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `MONEY` + PARTNER_FINANCE_PARTNER_ECPM = 652; + + // Monthly partner revenue for partner finance reports + // + // + // + // Corresponds to "Partner revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `PARTNER_FINANCE` + // + // Data format: `MONEY` + PARTNER_FINANCE_PARTNER_REVENUE = 653; + + // The gross revenue in the partner management. + // + // + // + // Corresponds to "Partner management gross revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `MONEY` + PARTNER_MANAGEMENT_GROSS_REVENUE = 533; + + // The host clicks in the partner management. + // + // + // + // Corresponds to "Partner management host clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_HOST_CLICKS = 534; + + // The host CTR in the partner management. + // + // + // + // Corresponds to "Partner management host CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + PARTNER_MANAGEMENT_HOST_CTR = 535; + + // The host impressions in the partner management. + // + // + // + // Corresponds to "Partner management host impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_HOST_IMPRESSIONS = 536; + + // The partner clicks in the partner management. + // + // + // + // Corresponds to "Partner management partner clicks" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_PARTNER_CLICKS = 537; + + // The partner CTR in the partner management. + // + // + // + // Corresponds to "Partner management partner CTR" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + PARTNER_MANAGEMENT_PARTNER_CTR = 538; + + // The partner impressions in the partner management. + // + // + // + // Corresponds to "Partner management partner impressions" in the Ad Manager + // UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS = 539; + + // The total content views in the partner management. + // + // + // + // Corresponds to "Partner management total monetizable content views" in + // the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS = 540; + + // The unfilled impressions in the partner management. + // + // + // + // Corresponds to "Partner management unfilled impressions" in the Ad + // Manager UI. + // + // Compatible with the following report types: `HISTORICAL`, + // `PARTNER_FINANCE` + // + // Data format: `INTEGER` + PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS = 541; + // The number of filled pod requests (filled by partner or Google) in // partner sales. // @@ -10170,7 +10858,7 @@ message ReportDefinition { // // Corresponds to "Total revenue" in the Ad Manager UI. // - // Compatible with the following report types: `HISTORICAL` + // Compatible with the following report types: `HISTORICAL`, `AD_SPEED` // // Data format: `MONEY` REVENUE = 36; @@ -10189,7 +10877,63 @@ message ReportDefinition { // Data format: `MONEY` REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT = 214; - // Total amount of revenue (excluding CPD) based on the number of units + // The total CPD net revenue for Revenue Verification reporting. + // + // + // + // Corresponds to "Total CPD revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `MONEY` + REVENUE_VERIFICATION_CPD_REVENUE = 560; + + // The total CPD gross revenue for Revenue Verification reporting. + // + // + // + // Corresponds to "Total CPD revenue (gross)" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `MONEY` + REVENUE_VERIFICATION_GROSS_CPD_REVENUE = 559; + + // The total gross revenue (excluding CPD) for Revenue Verification + // reporting. + // + // + // + // Corresponds to "Total CPM and CPC revenue (gross)" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `MONEY` + REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD = 561; + + // The total impressions for Revenue Verification reporting. + // + // + // + // Corresponds to "Total impressions" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `INTEGER` + REVENUE_VERIFICATION_IMPRESSIONS = 564; + + // The total net revenue (excluding CPD) for Revenue Verification reporting. + // + // + // + // Corresponds to "Total CPM and CPC revenue" in the Ad Manager UI. + // + // Compatible with the following report types: `REVENUE_VERIFICATION` + // + // Data format: `MONEY` + REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD = 567; + + // Total revenue (excluding CPD) based on the number of units // served by the Google Ad Manager server, AdSense, Ad Exchange, and // third-party Mediation networks. // @@ -10926,17 +11670,6 @@ message ReportDefinition { // Data format: `INTEGER` USER_MESSAGES_ALLOW_ADS_PAGEVIEWS = 489; - // Number of times a US state regulations message was shown to users. - // - // - // - // Corresponds to "US states messages shown" in the Ad Manager UI. - // - // Compatible with the following report types: `PRIVACY_AND_MESSAGING` - // - // Data format: `INTEGER` - USER_MESSAGES_CCPA_MESSAGES_SHOWN = 490; - // Number of iOS ATT alerts that were triggered by an IDFA message (IDFA // messages can be IDFA explainers or GDPR messages). // @@ -11101,6 +11834,28 @@ message ReportDefinition { // Data format: `PERCENT` USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO = 502; + // Number of times a US state regulations message was shown to users. + // + // + // + // Corresponds to "US states messages shown" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_US_STATES_MESSAGES_SHOWN = 490; + + // Number of times users selected the opt-out option in a US states message. + // + // + // + // Corresponds to "US states opt-out selections" in the Ad Manager UI. + // + // Compatible with the following report types: `PRIVACY_AND_MESSAGING` + // + // Data format: `INTEGER` + USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS = 586; + // The number of errors of type 100 in reporting. // // @@ -11995,6 +12750,120 @@ message ReportDefinition { // Data format: `INTEGER` VIDEO_REAL_TIME_UNMATCHED_QUERIES = 141; + // The total number of breaks completed or fatal errors for the last ad in + // the pod. + // + // + // + // Corresponds to "Break end" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END = 279; + + // The total number of breaks starts or errors for the first ad in a pod + // that users made it to. + // + // + // + // Corresponds to "Break start" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START = 280; + + // The number of video ad opportunities reached by a user (rounded down, or + // capped based on your max ads setting, whichever is less). + // + // + // + // Corresponds to "Capped opportunities (adbreak)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK = 281; + + // The total number of seconds available to be filled. + // + // + // + // Corresponds to "Total duration (adbreak)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK = 283; + + // The total number of seconds filled. + // + // + // + // Corresponds to "Matched duration (adbreak)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK = 285; + + // The total matched opportunities in video true opportunities reporting. + // + // + // + // Corresponds to "Matched opportunities (adbreak)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_OPPORTUNITIES_ADBREAK = 287; + + // The number of video ad opportunities reached by a user (rounded down). + // + // + // + // Corresponds to "Viewed opportunities (adbreak)" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_OPPORTUNITIES_TOTAL_VIEWED_OPPORTUNITIES_ADBREAK = 289; + + // The number of TrueView ad impressions viewed. + // + // + // + // Corresponds to "True views" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `INTEGER` + VIDEO_TRUE_VIEWS = 392; + + // Measures the percentage of skips. + // + // + // + // Corresponds to "True views skip rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_TRUE_VIEW_SKIP_RATE = 393; + + // The view-through rate is the percentage of views divided by number of + // impressions + // + // + // + // Corresponds to "True views view-through rate" in the Ad Manager UI. + // + // Compatible with the following report types: `HISTORICAL` + // + // Data format: `PERCENT` + VIDEO_TRUE_VIEW_VIEW_THROUGH_RATE = 394; + // Number of times that the publisher specified a video ad played // automatically. // diff --git a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto index 76f1cd167e65..9560974d84eb 100644 --- a/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto +++ b/java-admanager/proto-ad-manager-v1/src/main/proto/google/ads/admanager/v1/report_messages.proto @@ -44,6 +44,8 @@ message Report { // The visibility of a report. enum Visibility { + option allow_alias = true; + // Default value. Reports with hidden visibility won't appear in the Ad // Manager UI. HIDDEN = 0; @@ -53,8 +55,11 @@ message Report { DRAFT = 1; // Reports with saved visibility will appear in the Ad Manager UI by - // default. - SAVED = 2; + // default. Alias for VISIBLE and will be replaced in the future. + SAVED = 2 [deprecated = true]; + + // Reports with this visibility will appear in the Ad Manager UI. + VISIBLE = 2; } // Identifier. The resource name of the report. diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/AsyncBatchActivateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/AsyncBatchActivateAdUnits.java new file mode 100644 index 000000000000..bb57c8677c2c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/AsyncBatchActivateAdUnits.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchActivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchActivateAdUnits { + + public static void main(String[] args) throws Exception { + asyncBatchActivateAdUnits(); + } + + public static void asyncBatchActivateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchActivateAdUnitsRequest request = + BatchActivateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + adUnitServiceClient.batchActivateAdUnitsCallable().futureCall(request); + // Do something. + BatchActivateAdUnitsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnits.java new file mode 100644 index 000000000000..47ac8e81baa3 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnits.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchActivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchActivateAdUnits { + + public static void main(String[] args) throws Exception { + syncBatchActivateAdUnits(); + } + + public static void syncBatchActivateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchActivateAdUnitsRequest request = + BatchActivateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchActivateAdUnitsResponse response = adUnitServiceClient.batchActivateAdUnits(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsNetworknameListstring.java new file mode 100644 index 000000000000..bfdbbea1533e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_NetworknameListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateAdUnitsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateAdUnitsNetworknameListstring(); + } + + public static void syncBatchActivateAdUnitsNetworknameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchActivateAdUnitsResponse response = + adUnitServiceClient.batchActivateAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsStringListstring.java new file mode 100644 index 000000000000..7a52bbc2763e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchactivateadunits/SyncBatchActivateAdUnitsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchActivateAdUnits_StringListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchActivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateAdUnitsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateAdUnitsStringListstring(); + } + + public static void syncBatchActivateAdUnitsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchActivateAdUnitsResponse response = + adUnitServiceClient.batchActivateAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchActivateAdUnits_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/AsyncBatchArchiveAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/AsyncBatchArchiveAdUnits.java new file mode 100644 index 000000000000..3d560862069b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/AsyncBatchArchiveAdUnits.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_async] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchArchiveAdUnits { + + public static void main(String[] args) throws Exception { + asyncBatchArchiveAdUnits(); + } + + public static void asyncBatchArchiveAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchArchiveAdUnitsRequest request = + BatchArchiveAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + adUnitServiceClient.batchArchiveAdUnitsCallable().futureCall(request); + // Do something. + BatchArchiveAdUnitsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnits.java new file mode 100644 index 000000000000..281bdc14d832 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnits.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsRequest; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchArchiveAdUnits { + + public static void main(String[] args) throws Exception { + syncBatchArchiveAdUnits(); + } + + public static void syncBatchArchiveAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchArchiveAdUnitsRequest request = + BatchArchiveAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsNetworknameListstring.java new file mode 100644 index 000000000000..01931afc4cae --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsNetworknameListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_NetworknameListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchArchiveAdUnitsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchArchiveAdUnitsNetworknameListstring(); + } + + public static void syncBatchArchiveAdUnitsNetworknameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsStringListstring.java new file mode 100644 index 000000000000..ad3da52f7624 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batcharchiveadunits/SyncBatchArchiveAdUnitsStringListstring.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_StringListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchArchiveAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchArchiveAdUnitsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchArchiveAdUnitsStringListstring(); + } + + public static void syncBatchArchiveAdUnitsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchArchiveAdUnitsResponse response = adUnitServiceClient.batchArchiveAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchArchiveAdUnits_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/AsyncBatchCreateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/AsyncBatchCreateAdUnits.java new file mode 100644 index 000000000000..964c1e3d17d5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/AsyncBatchCreateAdUnits.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchCreateAdUnits_async] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchCreateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateAdUnits { + + public static void main(String[] args) throws Exception { + asyncBatchCreateAdUnits(); + } + + public static void asyncBatchCreateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchCreateAdUnitsRequest request = + BatchCreateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + adUnitServiceClient.batchCreateAdUnitsCallable().futureCall(request); + // Do something. + BatchCreateAdUnitsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchCreateAdUnits_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnits.java new file mode 100644 index 000000000000..0900aca9cfac --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnits.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchCreateAdUnits_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchCreateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchCreateAdUnits { + + public static void main(String[] args) throws Exception { + syncBatchCreateAdUnits(); + } + + public static void syncBatchCreateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchCreateAdUnitsRequest request = + BatchCreateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateAdUnitsResponse response = adUnitServiceClient.batchCreateAdUnits(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchCreateAdUnits_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsNetworknameListcreateadunitrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsNetworknameListcreateadunitrequest.java new file mode 100644 index 000000000000..ca2e1823abb7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsNetworknameListcreateadunitrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchCreateAdUnits_NetworknameListcreateadunitrequest_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateAdUnitsNetworknameListcreateadunitrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateAdUnitsNetworknameListcreateadunitrequest(); + } + + public static void syncBatchCreateAdUnitsNetworknameListcreateadunitrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateAdUnitsResponse response = + adUnitServiceClient.batchCreateAdUnits(parent, requests); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchCreateAdUnits_NetworknameListcreateadunitrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsStringListcreateadunitrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsStringListcreateadunitrequest.java new file mode 100644 index 000000000000..23511abfa416 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchcreateadunits/SyncBatchCreateAdUnitsStringListcreateadunitrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchCreateAdUnits_StringListcreateadunitrequest_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchCreateAdUnitsResponse; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateAdUnitsStringListcreateadunitrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateAdUnitsStringListcreateadunitrequest(); + } + + public static void syncBatchCreateAdUnitsStringListcreateadunitrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateAdUnitsResponse response = + adUnitServiceClient.batchCreateAdUnits(parent, requests); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchCreateAdUnits_StringListcreateadunitrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/AsyncBatchDeactivateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/AsyncBatchDeactivateAdUnits.java new file mode 100644 index 000000000000..5420d331fef5 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/AsyncBatchDeactivateAdUnits.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_async] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivateAdUnits { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivateAdUnits(); + } + + public static void asyncBatchDeactivateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchDeactivateAdUnitsRequest request = + BatchDeactivateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + adUnitServiceClient.batchDeactivateAdUnitsCallable().futureCall(request); + // Do something. + BatchDeactivateAdUnitsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnits.java new file mode 100644 index 000000000000..9f812b997b94 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnits.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchDeactivateAdUnits { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateAdUnits(); + } + + public static void syncBatchDeactivateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchDeactivateAdUnitsRequest request = + BatchDeactivateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivateAdUnitsResponse response = adUnitServiceClient.batchDeactivateAdUnits(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsNetworknameListstring.java new file mode 100644 index 000000000000..5d78f623f8ce --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsNetworknameListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_NetworknameListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateAdUnitsNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateAdUnitsNetworknameListstring(); + } + + public static void syncBatchDeactivateAdUnitsNetworknameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivateAdUnitsResponse response = + adUnitServiceClient.batchDeactivateAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsStringListstring.java new file mode 100644 index 000000000000..787acb3dc0f7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchdeactivateadunits/SyncBatchDeactivateAdUnitsStringListstring.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_StringListstring_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchDeactivateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateAdUnitsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateAdUnitsStringListstring(); + } + + public static void syncBatchDeactivateAdUnitsStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivateAdUnitsResponse response = + adUnitServiceClient.batchDeactivateAdUnits(parent, names); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchDeactivateAdUnits_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/AsyncBatchUpdateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/AsyncBatchUpdateAdUnits.java new file mode 100644 index 000000000000..63089050f4e7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/AsyncBatchUpdateAdUnits.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_async] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateAdUnits { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateAdUnits(); + } + + public static void asyncBatchUpdateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchUpdateAdUnitsRequest request = + BatchUpdateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + adUnitServiceClient.batchUpdateAdUnitsCallable().futureCall(request); + // Do something. + BatchUpdateAdUnitsResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnits.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnits.java new file mode 100644 index 000000000000..ef54225534ec --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnits.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsRequest; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateAdUnits { + + public static void main(String[] args) throws Exception { + syncBatchUpdateAdUnits(); + } + + public static void syncBatchUpdateAdUnits() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + BatchUpdateAdUnitsRequest request = + BatchUpdateAdUnitsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateAdUnitsResponse response = adUnitServiceClient.batchUpdateAdUnits(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsNetworknameListupdateadunitrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsNetworknameListupdateadunitrequest.java new file mode 100644 index 000000000000..f61e7ef4b7e4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsNetworknameListupdateadunitrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_NetworknameListupdateadunitrequest_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateAdUnitsNetworknameListupdateadunitrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateAdUnitsNetworknameListupdateadunitrequest(); + } + + public static void syncBatchUpdateAdUnitsNetworknameListupdateadunitrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateAdUnitsResponse response = + adUnitServiceClient.batchUpdateAdUnits(parent, requests); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_NetworknameListupdateadunitrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsStringListupdateadunitrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsStringListupdateadunitrequest.java new file mode 100644 index 000000000000..a550c764faec --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/batchupdateadunits/SyncBatchUpdateAdUnitsStringListupdateadunitrequest.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_StringListupdateadunitrequest_sync] +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.BatchUpdateAdUnitsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateAdUnitsStringListupdateadunitrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateAdUnitsStringListupdateadunitrequest(); + } + + public static void syncBatchUpdateAdUnitsStringListupdateadunitrequest() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateAdUnitsResponse response = + adUnitServiceClient.batchUpdateAdUnits(parent, requests); + } + } +} +// [END admanager_v1_generated_AdUnitService_BatchUpdateAdUnits_StringListupdateadunitrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/AsyncCreateAdUnit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/AsyncCreateAdUnit.java new file mode 100644 index 000000000000..f1b02a167b14 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/AsyncCreateAdUnit.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_CreateAdUnit_async] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateAdUnit { + + public static void main(String[] args) throws Exception { + asyncCreateAdUnit(); + } + + public static void asyncCreateAdUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + CreateAdUnitRequest request = + CreateAdUnitRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setAdUnit(AdUnit.newBuilder().build()) + .build(); + ApiFuture future = adUnitServiceClient.createAdUnitCallable().futureCall(request); + // Do something. + AdUnit response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_CreateAdUnit_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnit.java new file mode 100644 index 000000000000..b5e512d0146e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnit.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_CreateAdUnit_sync] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.CreateAdUnitRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateAdUnit { + + public static void main(String[] args) throws Exception { + syncCreateAdUnit(); + } + + public static void syncCreateAdUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + CreateAdUnitRequest request = + CreateAdUnitRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setAdUnit(AdUnit.newBuilder().build()) + .build(); + AdUnit response = adUnitServiceClient.createAdUnit(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_CreateAdUnit_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitNetworknameAdunit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitNetworknameAdunit.java new file mode 100644 index 000000000000..aee51bcdf714 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitNetworknameAdunit.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_CreateAdUnit_NetworknameAdunit_sync] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateAdUnitNetworknameAdunit { + + public static void main(String[] args) throws Exception { + syncCreateAdUnitNetworknameAdunit(); + } + + public static void syncCreateAdUnitNetworknameAdunit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + AdUnit adUnit = AdUnit.newBuilder().build(); + AdUnit response = adUnitServiceClient.createAdUnit(parent, adUnit); + } + } +} +// [END admanager_v1_generated_AdUnitService_CreateAdUnit_NetworknameAdunit_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitStringAdunit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitStringAdunit.java new file mode 100644 index 000000000000..668aaae32b0a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/createadunit/SyncCreateAdUnitStringAdunit.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_CreateAdUnit_StringAdunit_sync] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateAdUnitStringAdunit { + + public static void main(String[] args) throws Exception { + syncCreateAdUnitStringAdunit(); + } + + public static void syncCreateAdUnitStringAdunit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + AdUnit adUnit = AdUnit.newBuilder().build(); + AdUnit response = adUnitServiceClient.createAdUnit(parent, adUnit); + } + } +} +// [END admanager_v1_generated_AdUnitService_CreateAdUnit_StringAdunit_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/AsyncUpdateAdUnit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/AsyncUpdateAdUnit.java new file mode 100644 index 000000000000..2e511edba4d9 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/AsyncUpdateAdUnit.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_UpdateAdUnit_async] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAdUnit { + + public static void main(String[] args) throws Exception { + asyncUpdateAdUnit(); + } + + public static void asyncUpdateAdUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + UpdateAdUnitRequest request = + UpdateAdUnitRequest.newBuilder() + .setAdUnit(AdUnit.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = adUnitServiceClient.updateAdUnitCallable().futureCall(request); + // Do something. + AdUnit response = future.get(); + } + } +} +// [END admanager_v1_generated_AdUnitService_UpdateAdUnit_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnit.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnit.java new file mode 100644 index 000000000000..1d1e8ef407bb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnit.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_UpdateAdUnit_sync] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.ads.admanager.v1.UpdateAdUnitRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAdUnit { + + public static void main(String[] args) throws Exception { + syncUpdateAdUnit(); + } + + public static void syncUpdateAdUnit() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + UpdateAdUnitRequest request = + UpdateAdUnitRequest.newBuilder() + .setAdUnit(AdUnit.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + AdUnit response = adUnitServiceClient.updateAdUnit(request); + } + } +} +// [END admanager_v1_generated_AdUnitService_UpdateAdUnit_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnitAdunitFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnitAdunitFieldmask.java new file mode 100644 index 000000000000..4af1c92d7d82 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/adunitservice/updateadunit/SyncUpdateAdUnitAdunitFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_AdUnitService_UpdateAdUnit_AdunitFieldmask_sync] +import com.google.ads.admanager.v1.AdUnit; +import com.google.ads.admanager.v1.AdUnitServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAdUnitAdunitFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAdUnitAdunitFieldmask(); + } + + public static void syncUpdateAdUnitAdunitFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (AdUnitServiceClient adUnitServiceClient = AdUnitServiceClient.create()) { + AdUnit adUnit = AdUnit.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AdUnit response = adUnitServiceClient.updateAdUnit(adUnit, updateMask); + } + } +} +// [END admanager_v1_generated_AdUnitService_UpdateAdUnit_AdunitFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/AsyncBatchActivateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/AsyncBatchActivateCustomTargetingKeys.java new file mode 100644 index 000000000000..991a391164d6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/AsyncBatchActivateCustomTargetingKeys.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_async] +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchActivateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + asyncBatchActivateCustomTargetingKeys(); + } + + public static void asyncBatchActivateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchActivateCustomTargetingKeysRequest request = + BatchActivateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient + .batchActivateCustomTargetingKeysCallable() + .futureCall(request); + // Do something. + BatchActivateCustomTargetingKeysResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeys.java new file mode 100644 index 000000000000..e6e18e9d169b --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeys.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_sync] +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchActivateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomTargetingKeys(); + } + + public static void syncBatchActivateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchActivateCustomTargetingKeysRequest request = + BatchActivateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchActivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysNetworknameListstring.java new file mode 100644 index 000000000000..3f6738d4a2ea --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysNetworknameListstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateCustomTargetingKeysNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomTargetingKeysNetworknameListstring(); + } + + public static void syncBatchActivateCustomTargetingKeysNetworknameListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchActivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(parent, names); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysStringListstring.java new file mode 100644 index 000000000000..8c2c4047bc1f --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchactivatecustomtargetingkeys/SyncBatchActivateCustomTargetingKeysStringListstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_StringListstring_sync] +import com.google.ads.admanager.v1.BatchActivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchActivateCustomTargetingKeysStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchActivateCustomTargetingKeysStringListstring(); + } + + public static void syncBatchActivateCustomTargetingKeysStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchActivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchActivateCustomTargetingKeys(parent, names); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchActivateCustomTargetingKeys_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/AsyncBatchCreateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/AsyncBatchCreateCustomTargetingKeys.java new file mode 100644 index 000000000000..095e48e5d568 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/AsyncBatchCreateCustomTargetingKeys.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_async] +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchCreateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + asyncBatchCreateCustomTargetingKeys(); + } + + public static void asyncBatchCreateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchCreateCustomTargetingKeysRequest request = + BatchCreateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient + .batchCreateCustomTargetingKeysCallable() + .futureCall(request); + // Do something. + BatchCreateCustomTargetingKeysResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeys.java new file mode 100644 index 000000000000..f27373ecf95d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeys.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_sync] +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchCreateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomTargetingKeys(); + } + + public static void syncBatchCreateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchCreateCustomTargetingKeysRequest request = + BatchCreateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchCreateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest.java new file mode 100644 index 000000000000..6d1b7c84b93c --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_NetworknameListcreatecustomtargetingkeyrequest_sync] +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest(); + } + + public static void + syncBatchCreateCustomTargetingKeysNetworknameListcreatecustomtargetingkeyrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchCreateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_NetworknameListcreatecustomtargetingkeyrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest.java new file mode 100644 index 000000000000..9e54ce6d51fe --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchcreatecustomtargetingkeys/SyncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_StringListcreatecustomtargetingkeyrequest_sync] +import com.google.ads.admanager.v1.BatchCreateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest { + + public static void main(String[] args) throws Exception { + syncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest(); + } + + public static void syncBatchCreateCustomTargetingKeysStringListcreatecustomtargetingkeyrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchCreateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchCreateCustomTargetingKeys(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchCreateCustomTargetingKeys_StringListcreatecustomtargetingkeyrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/AsyncBatchDeactivateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/AsyncBatchDeactivateCustomTargetingKeys.java new file mode 100644 index 000000000000..b50901b0d478 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/AsyncBatchDeactivateCustomTargetingKeys.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_async] +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchDeactivateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + asyncBatchDeactivateCustomTargetingKeys(); + } + + public static void asyncBatchDeactivateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchDeactivateCustomTargetingKeysRequest request = + BatchDeactivateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient + .batchDeactivateCustomTargetingKeysCallable() + .futureCall(request); + // Do something. + BatchDeactivateCustomTargetingKeysResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeys.java new file mode 100644 index 000000000000..501dea3ab7e1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeys.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; + +public class SyncBatchDeactivateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomTargetingKeys(); + } + + public static void syncBatchDeactivateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchDeactivateCustomTargetingKeysRequest request = + BatchDeactivateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeactivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysNetworknameListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysNetworknameListstring.java new file mode 100644 index 000000000000..7bd9aa7838cb --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysNetworknameListstring.java @@ -0,0 +1,48 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_NetworknameListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateCustomTargetingKeysNetworknameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomTargetingKeysNetworknameListstring(); + } + + public static void syncBatchDeactivateCustomTargetingKeysNetworknameListstring() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List names = new ArrayList<>(); + BatchDeactivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(parent, names); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_NetworknameListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysStringListstring.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysStringListstring.java new file mode 100644 index 000000000000..4dc11e412269 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchdeactivatecustomtargetingkeys/SyncBatchDeactivateCustomTargetingKeysStringListstring.java @@ -0,0 +1,47 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_StringListstring_sync] +import com.google.ads.admanager.v1.BatchDeactivateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeactivateCustomTargetingKeysStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeactivateCustomTargetingKeysStringListstring(); + } + + public static void syncBatchDeactivateCustomTargetingKeysStringListstring() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List names = new ArrayList<>(); + BatchDeactivateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchDeactivateCustomTargetingKeys(parent, names); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchDeactivateCustomTargetingKeys_StringListstring_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/AsyncBatchUpdateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/AsyncBatchUpdateCustomTargetingKeys.java new file mode 100644 index 000000000000..336a806f8233 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/AsyncBatchUpdateCustomTargetingKeys.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_async] +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import com.google.api.core.ApiFuture; +import java.util.ArrayList; + +public class AsyncBatchUpdateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateCustomTargetingKeys(); + } + + public static void asyncBatchUpdateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchUpdateCustomTargetingKeysRequest request = + BatchUpdateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient + .batchUpdateCustomTargetingKeysCallable() + .futureCall(request); + // Do something. + BatchUpdateCustomTargetingKeysResponse response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeys.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeys.java new file mode 100644 index 000000000000..234ee10bfa52 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeys.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysRequest; +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import java.util.ArrayList; + +public class SyncBatchUpdateCustomTargetingKeys { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomTargetingKeys(); + } + + public static void syncBatchUpdateCustomTargetingKeys() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + BatchUpdateCustomTargetingKeysRequest request = + BatchUpdateCustomTargetingKeysRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .addAllRequests(new ArrayList()) + .build(); + BatchUpdateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest.java new file mode 100644 index 000000000000..ed5813416902 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest.java @@ -0,0 +1,50 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_NetworknameListupdatecustomtargetingkeyrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest(); + } + + public static void + syncBatchUpdateCustomTargetingKeysNetworknameListupdatecustomtargetingkeyrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + List requests = new ArrayList<>(); + BatchUpdateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_NetworknameListupdatecustomtargetingkeyrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest.java new file mode 100644 index 000000000000..cf665bda963a --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/batchupdatecustomtargetingkeys/SyncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_StringListupdatecustomtargetingkeyrequest_sync] +import com.google.ads.admanager.v1.BatchUpdateCustomTargetingKeysResponse; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest { + + public static void main(String[] args) throws Exception { + syncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest(); + } + + public static void syncBatchUpdateCustomTargetingKeysStringListupdatecustomtargetingkeyrequest() + throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + List requests = new ArrayList<>(); + BatchUpdateCustomTargetingKeysResponse response = + customTargetingKeyServiceClient.batchUpdateCustomTargetingKeys(parent, requests); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_BatchUpdateCustomTargetingKeys_StringListupdatecustomtargetingkeyrequest_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/AsyncCreateCustomTargetingKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/AsyncCreateCustomTargetingKey.java new file mode 100644 index 000000000000..646e5dc74400 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/AsyncCreateCustomTargetingKey.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_async] +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncCreateCustomTargetingKey { + + public static void main(String[] args) throws Exception { + asyncCreateCustomTargetingKey(); + } + + public static void asyncCreateCustomTargetingKey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + CreateCustomTargetingKeyRequest request = + CreateCustomTargetingKeyRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setCustomTargetingKey(CustomTargetingKey.newBuilder().build()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient.createCustomTargetingKeyCallable().futureCall(request); + // Do something. + CustomTargetingKey response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKey.java new file mode 100644 index 000000000000..6176907baef4 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKey.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_sync] +import com.google.ads.admanager.v1.CreateCustomTargetingKeyRequest; +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomTargetingKey { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetingKey(); + } + + public static void syncCreateCustomTargetingKey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + CreateCustomTargetingKeyRequest request = + CreateCustomTargetingKeyRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setCustomTargetingKey(CustomTargetingKey.newBuilder().build()) + .build(); + CustomTargetingKey response = + customTargetingKeyServiceClient.createCustomTargetingKey(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyNetworknameCustomtargetingkey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyNetworknameCustomtargetingkey.java new file mode 100644 index 000000000000..c1d5b0c60c51 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyNetworknameCustomtargetingkey.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_NetworknameCustomtargetingkey_sync] +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomTargetingKeyNetworknameCustomtargetingkey { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetingKeyNetworknameCustomtargetingkey(); + } + + public static void syncCreateCustomTargetingKeyNetworknameCustomtargetingkey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + CustomTargetingKey response = + customTargetingKeyServiceClient.createCustomTargetingKey(parent, customTargetingKey); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_NetworknameCustomtargetingkey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyStringCustomtargetingkey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyStringCustomtargetingkey.java new file mode 100644 index 000000000000..426e024bec76 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/createcustomtargetingkey/SyncCreateCustomTargetingKeyStringCustomtargetingkey.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_StringCustomtargetingkey_sync] +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncCreateCustomTargetingKeyStringCustomtargetingkey { + + public static void main(String[] args) throws Exception { + syncCreateCustomTargetingKeyStringCustomtargetingkey(); + } + + public static void syncCreateCustomTargetingKeyStringCustomtargetingkey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + CustomTargetingKey response = + customTargetingKeyServiceClient.createCustomTargetingKey(parent, customTargetingKey); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_CreateCustomTargetingKey_StringCustomtargetingkey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/AsyncUpdateCustomTargetingKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/AsyncUpdateCustomTargetingKey.java new file mode 100644 index 000000000000..b32068811d27 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/AsyncUpdateCustomTargetingKey.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_async] +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import com.google.api.core.ApiFuture; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCustomTargetingKey { + + public static void main(String[] args) throws Exception { + asyncUpdateCustomTargetingKey(); + } + + public static void asyncUpdateCustomTargetingKey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + UpdateCustomTargetingKeyRequest request = + UpdateCustomTargetingKeyRequest.newBuilder() + .setCustomTargetingKey(CustomTargetingKey.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + customTargetingKeyServiceClient.updateCustomTargetingKeyCallable().futureCall(request); + // Do something. + CustomTargetingKey response = future.get(); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKey.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKey.java new file mode 100644 index 000000000000..8c3f4befa32e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKey.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_sync] +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.ads.admanager.v1.UpdateCustomTargetingKeyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomTargetingKey { + + public static void main(String[] args) throws Exception { + syncUpdateCustomTargetingKey(); + } + + public static void syncUpdateCustomTargetingKey() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + UpdateCustomTargetingKeyRequest request = + UpdateCustomTargetingKeyRequest.newBuilder() + .setCustomTargetingKey(CustomTargetingKey.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + CustomTargetingKey response = + customTargetingKeyServiceClient.updateCustomTargetingKey(request); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask.java new file mode 100644 index 000000000000..7e4f17ff98cf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/customtargetingkeyservice/updatecustomtargetingkey/SyncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_CustomtargetingkeyFieldmask_sync] +import com.google.ads.admanager.v1.CustomTargetingKey; +import com.google.ads.admanager.v1.CustomTargetingKeyServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask(); + } + + public static void syncUpdateCustomTargetingKeyCustomtargetingkeyFieldmask() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (CustomTargetingKeyServiceClient customTargetingKeyServiceClient = + CustomTargetingKeyServiceClient.create()) { + CustomTargetingKey customTargetingKey = CustomTargetingKey.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + CustomTargetingKey response = + customTargetingKeyServiceClient.updateCustomTargetingKey(customTargetingKey, updateMask); + } + } +} +// [END admanager_v1_generated_CustomTargetingKeyService_UpdateCustomTargetingKey_CustomtargetingkeyFieldmask_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetCredentialsProvider.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9f5426a2288d --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_Create_SetCredentialsProvider_sync] +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.LineItemServiceSettings; +import com.google.ads.admanager.v1.myCredentials; +import com.google.api.gax.core.FixedCredentialsProvider; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LineItemServiceSettings lineItemServiceSettings = + LineItemServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + LineItemServiceClient lineItemServiceClient = + LineItemServiceClient.create(lineItemServiceSettings); + } +} +// [END admanager_v1_generated_LineItemService_Create_SetCredentialsProvider_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetEndpoint.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..c7146f3e4ffc --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_Create_SetEndpoint_sync] +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.LineItemServiceSettings; +import com.google.ads.admanager.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LineItemServiceSettings lineItemServiceSettings = + LineItemServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + LineItemServiceClient lineItemServiceClient = + LineItemServiceClient.create(lineItemServiceSettings); + } +} +// [END admanager_v1_generated_LineItemService_Create_SetEndpoint_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/AsyncGetLineItem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/AsyncGetLineItem.java new file mode 100644 index 000000000000..a05a04717130 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/AsyncGetLineItem.java @@ -0,0 +1,49 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_GetLineItem_async] +import com.google.ads.admanager.v1.GetLineItemRequest; +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemName; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.api.core.ApiFuture; + +public class AsyncGetLineItem { + + public static void main(String[] args) throws Exception { + asyncGetLineItem(); + } + + public static void asyncGetLineItem() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + GetLineItemRequest request = + GetLineItemRequest.newBuilder() + .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString()) + .build(); + ApiFuture future = lineItemServiceClient.getLineItemCallable().futureCall(request); + // Do something. + LineItem response = future.get(); + } + } +} +// [END admanager_v1_generated_LineItemService_GetLineItem_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItem.java new file mode 100644 index 000000000000..0c6da54e1b43 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItem.java @@ -0,0 +1,46 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_GetLineItem_sync] +import com.google.ads.admanager.v1.GetLineItemRequest; +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemName; +import com.google.ads.admanager.v1.LineItemServiceClient; + +public class SyncGetLineItem { + + public static void main(String[] args) throws Exception { + syncGetLineItem(); + } + + public static void syncGetLineItem() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + GetLineItemRequest request = + GetLineItemRequest.newBuilder() + .setName(LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString()) + .build(); + LineItem response = lineItemServiceClient.getLineItem(request); + } + } +} +// [END admanager_v1_generated_LineItemService_GetLineItem_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemLineitemname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemLineitemname.java new file mode 100644 index 000000000000..af2ee60afbb7 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemLineitemname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_GetLineItem_Lineitemname_sync] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemName; +import com.google.ads.admanager.v1.LineItemServiceClient; + +public class SyncGetLineItemLineitemname { + + public static void main(String[] args) throws Exception { + syncGetLineItemLineitemname(); + } + + public static void syncGetLineItemLineitemname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + LineItemName name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]"); + LineItem response = lineItemServiceClient.getLineItem(name); + } + } +} +// [END admanager_v1_generated_LineItemService_GetLineItem_Lineitemname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemString.java new file mode 100644 index 000000000000..a3afb5bedf14 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/getlineitem/SyncGetLineItemString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_GetLineItem_String_sync] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemName; +import com.google.ads.admanager.v1.LineItemServiceClient; + +public class SyncGetLineItemString { + + public static void main(String[] args) throws Exception { + syncGetLineItemString(); + } + + public static void syncGetLineItemString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + String name = LineItemName.of("[NETWORK_CODE]", "[LINE_ITEM]").toString(); + LineItem response = lineItemServiceClient.getLineItem(name); + } + } +} +// [END admanager_v1_generated_LineItemService_GetLineItem_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItems.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItems.java new file mode 100644 index 000000000000..afd55b5de2bf --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItems.java @@ -0,0 +1,57 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_ListLineItems_async] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.NetworkName; +import com.google.api.core.ApiFuture; + +public class AsyncListLineItems { + + public static void main(String[] args) throws Exception { + asyncListLineItems(); + } + + public static void asyncListLineItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + ListLineItemsRequest request = + ListLineItemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + ApiFuture future = + lineItemServiceClient.listLineItemsPagedCallable().futureCall(request); + // Do something. + for (LineItem element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_LineItemService_ListLineItems_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItemsPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItemsPaged.java new file mode 100644 index 000000000000..f7f6574c7d9e --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/AsyncListLineItemsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_ListLineItems_Paged_async] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.ListLineItemsResponse; +import com.google.ads.admanager.v1.NetworkName; +import com.google.common.base.Strings; + +public class AsyncListLineItemsPaged { + + public static void main(String[] args) throws Exception { + asyncListLineItemsPaged(); + } + + public static void asyncListLineItemsPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + ListLineItemsRequest request = + ListLineItemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + while (true) { + ListLineItemsResponse response = + lineItemServiceClient.listLineItemsCallable().call(request); + for (LineItem element : response.getLineItemsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_LineItemService_ListLineItems_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItems.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItems.java new file mode 100644 index 000000000000..6a431d036039 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItems.java @@ -0,0 +1,53 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_ListLineItems_sync] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.ListLineItemsRequest; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListLineItems { + + public static void main(String[] args) throws Exception { + syncListLineItems(); + } + + public static void syncListLineItems() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + ListLineItemsRequest request = + ListLineItemsRequest.newBuilder() + .setParent(NetworkName.of("[NETWORK_CODE]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setSkip(3532159) + .build(); + for (LineItem element : lineItemServiceClient.listLineItems(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_LineItemService_ListLineItems_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsNetworkname.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsNetworkname.java new file mode 100644 index 000000000000..499551198afa --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsNetworkname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_ListLineItems_Networkname_sync] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListLineItemsNetworkname { + + public static void main(String[] args) throws Exception { + syncListLineItemsNetworkname(); + } + + public static void syncListLineItemsNetworkname() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + NetworkName parent = NetworkName.of("[NETWORK_CODE]"); + for (LineItem element : lineItemServiceClient.listLineItems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_LineItemService_ListLineItems_Networkname_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsString.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsString.java new file mode 100644 index 000000000000..52308e9f2576 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservice/listlineitems/SyncListLineItemsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemService_ListLineItems_String_sync] +import com.google.ads.admanager.v1.LineItem; +import com.google.ads.admanager.v1.LineItemServiceClient; +import com.google.ads.admanager.v1.NetworkName; + +public class SyncListLineItemsString { + + public static void main(String[] args) throws Exception { + syncListLineItemsString(); + } + + public static void syncListLineItemsString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (LineItemServiceClient lineItemServiceClient = LineItemServiceClient.create()) { + String parent = NetworkName.of("[NETWORK_CODE]").toString(); + for (LineItem element : lineItemServiceClient.listLineItems(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END admanager_v1_generated_LineItemService_ListLineItems_String_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservicesettings/getlineitem/SyncGetLineItem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservicesettings/getlineitem/SyncGetLineItem.java new file mode 100644 index 000000000000..9af03922f9b1 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/lineitemservicesettings/getlineitem/SyncGetLineItem.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_LineItemServiceSettings_GetLineItem_sync] +import com.google.ads.admanager.v1.LineItemServiceSettings; +import java.time.Duration; + +public class SyncGetLineItem { + + public static void main(String[] args) throws Exception { + syncGetLineItem(); + } + + public static void syncGetLineItem() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LineItemServiceSettings.Builder lineItemServiceSettingsBuilder = + LineItemServiceSettings.newBuilder(); + lineItemServiceSettingsBuilder + .getLineItemSettings() + .setRetrySettings( + lineItemServiceSettingsBuilder + .getLineItemSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + LineItemServiceSettings lineItemServiceSettings = lineItemServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_LineItemServiceSettings_GetLineItem_sync] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworks.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworks.java index ea4509c28bda..50846367b2e9 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworks.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworks.java @@ -18,7 +18,7 @@ // [START admanager_v1_generated_NetworkService_ListNetworks_async] import com.google.ads.admanager.v1.ListNetworksRequest; -import com.google.ads.admanager.v1.ListNetworksResponse; +import com.google.ads.admanager.v1.Network; import com.google.ads.admanager.v1.NetworkServiceClient; import com.google.api.core.ApiFuture; @@ -35,11 +35,18 @@ public static void asyncListNetworks() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) { - ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); - ApiFuture future = - networkServiceClient.listNetworksCallable().futureCall(request); + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSkip(3532159) + .build(); + ApiFuture future = + networkServiceClient.listNetworksPagedCallable().futureCall(request); // Do something. - ListNetworksResponse response = future.get(); + for (Network element : future.get().iterateAll()) { + // doThingsWith(element); + } } } } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworksPaged.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworksPaged.java new file mode 100644 index 000000000000..e172e69a71a6 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/AsyncListNetworksPaged.java @@ -0,0 +1,60 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.samples; + +// [START admanager_v1_generated_NetworkService_ListNetworks_Paged_async] +import com.google.ads.admanager.v1.ListNetworksRequest; +import com.google.ads.admanager.v1.ListNetworksResponse; +import com.google.ads.admanager.v1.Network; +import com.google.ads.admanager.v1.NetworkServiceClient; +import com.google.common.base.Strings; + +public class AsyncListNetworksPaged { + + public static void main(String[] args) throws Exception { + asyncListNetworksPaged(); + } + + public static void asyncListNetworksPaged() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) { + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSkip(3532159) + .build(); + while (true) { + ListNetworksResponse response = networkServiceClient.listNetworksCallable().call(request); + for (Network element : response.getNetworksList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END admanager_v1_generated_NetworkService_ListNetworks_Paged_async] diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/SyncListNetworks.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/SyncListNetworks.java index 18d838f22a8e..72680f0bcd22 100644 --- a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/SyncListNetworks.java +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/networkservice/listnetworks/SyncListNetworks.java @@ -18,7 +18,7 @@ // [START admanager_v1_generated_NetworkService_ListNetworks_sync] import com.google.ads.admanager.v1.ListNetworksRequest; -import com.google.ads.admanager.v1.ListNetworksResponse; +import com.google.ads.admanager.v1.Network; import com.google.ads.admanager.v1.NetworkServiceClient; public class SyncListNetworks { @@ -34,8 +34,15 @@ public static void syncListNetworks() throws Exception { // - It may require specifying regional endpoints when creating the service client as shown in // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (NetworkServiceClient networkServiceClient = NetworkServiceClient.create()) { - ListNetworksRequest request = ListNetworksRequest.newBuilder().build(); - ListNetworksResponse response = networkServiceClient.listNetworks(request); + ListNetworksRequest request = + ListNetworksRequest.newBuilder() + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSkip(3532159) + .build(); + for (Network element : networkServiceClient.listNetworks(request).iterateAll()) { + // doThingsWith(element); + } } } } diff --git a/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/lineitemservicestubsettings/getlineitem/SyncGetLineItem.java b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/lineitemservicestubsettings/getlineitem/SyncGetLineItem.java new file mode 100644 index 000000000000..6ed6295fe910 --- /dev/null +++ b/java-admanager/samples/snippets/generated/com/google/ads/admanager/v1/stub/lineitemservicestubsettings/getlineitem/SyncGetLineItem.java @@ -0,0 +1,56 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.ads.admanager.v1.stub.samples; + +// [START admanager_v1_generated_LineItemServiceStubSettings_GetLineItem_sync] +import com.google.ads.admanager.v1.stub.LineItemServiceStubSettings; +import java.time.Duration; + +public class SyncGetLineItem { + + public static void main(String[] args) throws Exception { + syncGetLineItem(); + } + + public static void syncGetLineItem() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + LineItemServiceStubSettings.Builder lineItemServiceSettingsBuilder = + LineItemServiceStubSettings.newBuilder(); + lineItemServiceSettingsBuilder + .getLineItemSettings() + .setRetrySettings( + lineItemServiceSettingsBuilder + .getLineItemSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + LineItemServiceStubSettings lineItemServiceSettings = lineItemServiceSettingsBuilder.build(); + } +} +// [END admanager_v1_generated_LineItemServiceStubSettings_GetLineItem_sync] diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json index 595cb060b19a..fa54a0701100 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/resources/META-INF/native-image/com.google.cloud.aiplatform.v1/reflect-config.json @@ -14417,6 +14417,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.PartialArg", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.PartialArg$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCall.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCall.java index 51f678286da9..6f0f75a9755b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCall.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCall.java @@ -43,6 +43,7 @@ private FunctionCall(com.google.protobuf.GeneratedMessageV3.Builder builder) private FunctionCall() { name_ = ""; + partialArgs_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -76,11 +77,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *

-   * Required. The name of the function to call.
+   * Optional. The name of the function to call.
    * Matches [FunctionDeclaration.name].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -101,11 +102,11 @@ public java.lang.String getName() { * * *
-   * Required. The name of the function to call.
+   * Optional. The name of the function to call.
    * Matches [FunctionDeclaration.name].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -129,8 +130,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -146,8 +147,8 @@ public boolean hasArgs() { * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -163,8 +164,8 @@ public com.google.protobuf.Struct getArgs() { * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -174,6 +175,123 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_; } + public static final int PARTIAL_ARGS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List partialArgs_; + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getPartialArgsList() { + return partialArgs_; + } + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getPartialArgsOrBuilderList() { + return partialArgs_; + } + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getPartialArgsCount() { + return partialArgs_.size(); + } + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArg getPartialArgs(int index) { + return partialArgs_.get(index); + } + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArgOrBuilder getPartialArgsOrBuilder(int index) { + return partialArgs_.get(index); + } + + public static final int WILL_CONTINUE_FIELD_NUMBER = 5; + private boolean willContinue_ = false; + + /** + * + * + *
+   * Optional. Whether this is the last part of the FunctionCall.
+   * If true, another partial message for the current FunctionCall is expected
+   * to follow.
+   * 
+ * + * bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -194,6 +312,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getArgs()); } + for (int i = 0; i < partialArgs_.size(); i++) { + output.writeMessage(4, partialArgs_.get(i)); + } + if (willContinue_ != false) { + output.writeBool(5, willContinue_); + } getUnknownFields().writeTo(output); } @@ -209,6 +333,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getArgs()); } + for (int i = 0; i < partialArgs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, partialArgs_.get(i)); + } + if (willContinue_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, willContinue_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -230,6 +360,8 @@ public boolean equals(final java.lang.Object obj) { if (hasArgs()) { if (!getArgs().equals(other.getArgs())) return false; } + if (!getPartialArgsList().equals(other.getPartialArgsList())) return false; + if (getWillContinue() != other.getWillContinue()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -247,6 +379,12 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgs().hashCode(); } + if (getPartialArgsCount() > 0) { + hash = (37 * hash) + PARTIAL_ARGS_FIELD_NUMBER; + hash = (53 * hash) + getPartialArgsList().hashCode(); + } + hash = (37 * hash) + WILL_CONTINUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWillContinue()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -391,6 +529,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getArgsFieldBuilder(); + getPartialArgsFieldBuilder(); } } @@ -404,6 +543,14 @@ public Builder clear() { argsBuilder_.dispose(); argsBuilder_ = null; } + if (partialArgsBuilder_ == null) { + partialArgs_ = java.util.Collections.emptyList(); + } else { + partialArgs_ = null; + partialArgsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + willContinue_ = false; return this; } @@ -431,6 +578,7 @@ public com.google.cloud.aiplatform.v1.FunctionCall build() { public com.google.cloud.aiplatform.v1.FunctionCall buildPartial() { com.google.cloud.aiplatform.v1.FunctionCall result = new com.google.cloud.aiplatform.v1.FunctionCall(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -438,6 +586,18 @@ public com.google.cloud.aiplatform.v1.FunctionCall buildPartial() { return result; } + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1.FunctionCall result) { + if (partialArgsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + partialArgs_ = java.util.Collections.unmodifiableList(partialArgs_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.partialArgs_ = partialArgs_; + } else { + result.partialArgs_ = partialArgsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1.FunctionCall result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -448,6 +608,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.FunctionCall result) { result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.willContinue_ = willContinue_; + } result.bitField0_ |= to_bitField0_; } @@ -504,6 +667,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FunctionCall other) { if (other.hasArgs()) { mergeArgs(other.getArgs()); } + if (partialArgsBuilder_ == null) { + if (!other.partialArgs_.isEmpty()) { + if (partialArgs_.isEmpty()) { + partialArgs_ = other.partialArgs_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensurePartialArgsIsMutable(); + partialArgs_.addAll(other.partialArgs_); + } + onChanged(); + } + } else { + if (!other.partialArgs_.isEmpty()) { + if (partialArgsBuilder_.isEmpty()) { + partialArgsBuilder_.dispose(); + partialArgsBuilder_ = null; + partialArgs_ = other.partialArgs_; + bitField0_ = (bitField0_ & ~0x00000004); + partialArgsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialArgsFieldBuilder() + : null; + } else { + partialArgsBuilder_.addAllMessages(other.partialArgs_); + } + } + } + if (other.getWillContinue() != false) { + setWillContinue(other.getWillContinue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -542,6 +735,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 34: + { + com.google.cloud.aiplatform.v1.PartialArg m = + input.readMessage( + com.google.cloud.aiplatform.v1.PartialArg.parser(), extensionRegistry); + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + partialArgs_.add(m); + } else { + partialArgsBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + willContinue_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -567,11 +779,11 @@ public Builder mergeFrom( * * *
-     * Required. The name of the function to call.
+     * Optional. The name of the function to call.
      * Matches [FunctionDeclaration.name].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -591,11 +803,11 @@ public java.lang.String getName() { * * *
-     * Required. The name of the function to call.
+     * Optional. The name of the function to call.
      * Matches [FunctionDeclaration.name].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -615,11 +827,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The name of the function to call.
+     * Optional. The name of the function to call.
      * Matches [FunctionDeclaration.name].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The name to set. * @return This builder for chaining. @@ -638,11 +850,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The name of the function to call.
+     * Optional. The name of the function to call.
      * Matches [FunctionDeclaration.name].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -657,11 +869,11 @@ public Builder clearName() { * * *
-     * Required. The name of the function to call.
+     * Optional. The name of the function to call.
      * Matches [FunctionDeclaration.name].
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -688,8 +900,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -704,8 +916,8 @@ public boolean hasArgs() { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -724,8 +936,8 @@ public com.google.protobuf.Struct getArgs() { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -748,8 +960,8 @@ public Builder setArgs(com.google.protobuf.Struct value) { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -769,8 +981,8 @@ public Builder setArgs(com.google.protobuf.Struct.Builder builderForValue) { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -798,8 +1010,8 @@ public Builder mergeArgs(com.google.protobuf.Struct value) { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -819,8 +1031,8 @@ public Builder clearArgs() { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -835,8 +1047,8 @@ public com.google.protobuf.Struct.Builder getArgsBuilder() { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -853,8 +1065,8 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { * * *
-     * Optional. Required. The function parameters and values in JSON object
-     * format. See [FunctionDeclaration.parameters] for parameter details.
+     * Optional. The function parameters and values in JSON object format.
+     * See [FunctionDeclaration.parameters] for parameter details.
      * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -875,6 +1087,508 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return argsBuilder_; } + private java.util.List partialArgs_ = + java.util.Collections.emptyList(); + + private void ensurePartialArgsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + partialArgs_ = + new java.util.ArrayList(partialArgs_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PartialArg, + com.google.cloud.aiplatform.v1.PartialArg.Builder, + com.google.cloud.aiplatform.v1.PartialArgOrBuilder> + partialArgsBuilder_; + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getPartialArgsList() { + if (partialArgsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partialArgs_); + } else { + return partialArgsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getPartialArgsCount() { + if (partialArgsBuilder_ == null) { + return partialArgs_.size(); + } else { + return partialArgsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PartialArg getPartialArgs(int index) { + if (partialArgsBuilder_ == null) { + return partialArgs_.get(index); + } else { + return partialArgsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartialArgs(int index, com.google.cloud.aiplatform.v1.PartialArg value) { + if (partialArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialArgsIsMutable(); + partialArgs_.set(index, value); + onChanged(); + } else { + partialArgsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPartialArgs( + int index, com.google.cloud.aiplatform.v1.PartialArg.Builder builderForValue) { + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + partialArgs_.set(index, builderForValue.build()); + onChanged(); + } else { + partialArgsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPartialArgs(com.google.cloud.aiplatform.v1.PartialArg value) { + if (partialArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialArgsIsMutable(); + partialArgs_.add(value); + onChanged(); + } else { + partialArgsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPartialArgs(int index, com.google.cloud.aiplatform.v1.PartialArg value) { + if (partialArgsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialArgsIsMutable(); + partialArgs_.add(index, value); + onChanged(); + } else { + partialArgsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPartialArgs( + com.google.cloud.aiplatform.v1.PartialArg.Builder builderForValue) { + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + partialArgs_.add(builderForValue.build()); + onChanged(); + } else { + partialArgsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addPartialArgs( + int index, com.google.cloud.aiplatform.v1.PartialArg.Builder builderForValue) { + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + partialArgs_.add(index, builderForValue.build()); + onChanged(); + } else { + partialArgsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllPartialArgs( + java.lang.Iterable values) { + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialArgs_); + onChanged(); + } else { + partialArgsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPartialArgs() { + if (partialArgsBuilder_ == null) { + partialArgs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + partialArgsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removePartialArgs(int index) { + if (partialArgsBuilder_ == null) { + ensurePartialArgsIsMutable(); + partialArgs_.remove(index); + onChanged(); + } else { + partialArgsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PartialArg.Builder getPartialArgsBuilder(int index) { + return getPartialArgsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PartialArgOrBuilder getPartialArgsOrBuilder(int index) { + if (partialArgsBuilder_ == null) { + return partialArgs_.get(index); + } else { + return partialArgsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPartialArgsOrBuilderList() { + if (partialArgsBuilder_ != null) { + return partialArgsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialArgs_); + } + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PartialArg.Builder addPartialArgsBuilder() { + return getPartialArgsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1.PartialArg.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1.PartialArg.Builder addPartialArgsBuilder(int index) { + return getPartialArgsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1.PartialArg.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The partial argument value of the function call.
+     * If provided, represents the arguments/fields that are streamed
+     * incrementally.
+     * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getPartialArgsBuilderList() { + return getPartialArgsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PartialArg, + com.google.cloud.aiplatform.v1.PartialArg.Builder, + com.google.cloud.aiplatform.v1.PartialArgOrBuilder> + getPartialArgsFieldBuilder() { + if (partialArgsBuilder_ == null) { + partialArgsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.aiplatform.v1.PartialArg, + com.google.cloud.aiplatform.v1.PartialArg.Builder, + com.google.cloud.aiplatform.v1.PartialArgOrBuilder>( + partialArgs_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + partialArgs_ = null; + } + return partialArgsBuilder_; + } + + private boolean willContinue_; + + /** + * + * + *
+     * Optional. Whether this is the last part of the FunctionCall.
+     * If true, another partial message for the current FunctionCall is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + + /** + * + * + *
+     * Optional. Whether this is the last part of the FunctionCall.
+     * If true, another partial message for the current FunctionCall is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The willContinue to set. + * @return This builder for chaining. + */ + public Builder setWillContinue(boolean value) { + + willContinue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this is the last part of the FunctionCall.
+     * If true, another partial message for the current FunctionCall is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWillContinue() { + bitField0_ = (bitField0_ & ~0x00000008); + willContinue_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallOrBuilder.java index 83d70d8ffc2a..cd4921a9748e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallOrBuilder.java @@ -28,11 +28,11 @@ public interface FunctionCallOrBuilder * * *
-   * Required. The name of the function to call.
+   * Optional. The name of the function to call.
    * Matches [FunctionDeclaration.name].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The name. */ @@ -42,11 +42,11 @@ public interface FunctionCallOrBuilder * * *
-   * Required. The name of the function to call.
+   * Optional. The name of the function to call.
    * Matches [FunctionDeclaration.name].
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for name. */ @@ -56,8 +56,8 @@ public interface FunctionCallOrBuilder * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -70,8 +70,8 @@ public interface FunctionCallOrBuilder * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -84,11 +84,102 @@ public interface FunctionCallOrBuilder * * *
-   * Optional. Required. The function parameters and values in JSON object
-   * format. See [FunctionDeclaration.parameters] for parameter details.
+   * Optional. The function parameters and values in JSON object format.
+   * See [FunctionDeclaration.parameters] for parameter details.
    * 
* * .google.protobuf.Struct args = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getPartialArgsList(); + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.PartialArg getPartialArgs(int index); + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getPartialArgsCount(); + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getPartialArgsOrBuilderList(); + + /** + * + * + *
+   * Optional. The partial argument value of the function call.
+   * If provided, represents the arguments/fields that are streamed
+   * incrementally.
+   * 
+ * + * + * repeated .google.cloud.aiplatform.v1.PartialArg partial_args = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1.PartialArgOrBuilder getPartialArgsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Whether this is the last part of the FunctionCall.
+   * If true, another partial message for the current FunctionCall is expected
+   * to follow.
+   * 
+ * + * bool will_continue = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + boolean getWillContinue(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfig.java index fcd04be1ea4f..91bf7157b021 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfig.java @@ -382,6 +382,27 @@ public com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index) { return allowedFunctionNames_.getByteString(index); } + public static final int STREAM_FUNCTION_CALL_ARGUMENTS_FIELD_NUMBER = 4; + private boolean streamFunctionCallArguments_ = false; + + /** + * + * + *
+   * Optional. When set to true, arguments of a single function call will be
+   * streamed out in multiple parts/contents/responses. Partial parameter
+   * results will be returned in the [FunctionCall.partial_args] field.
+   * 
+ * + * bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The streamFunctionCallArguments. + */ + @java.lang.Override + public boolean getStreamFunctionCallArguments() { + return streamFunctionCallArguments_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -404,6 +425,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io com.google.protobuf.GeneratedMessageV3.writeString( output, 2, allowedFunctionNames_.getRaw(i)); } + if (streamFunctionCallArguments_ != false) { + output.writeBool(4, streamFunctionCallArguments_); + } getUnknownFields().writeTo(output); } @@ -425,6 +449,10 @@ public int getSerializedSize() { size += dataSize; size += 1 * getAllowedFunctionNamesList().size(); } + if (streamFunctionCallArguments_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, streamFunctionCallArguments_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -443,6 +471,7 @@ public boolean equals(final java.lang.Object obj) { if (mode_ != other.mode_) return false; if (!getAllowedFunctionNamesList().equals(other.getAllowedFunctionNamesList())) return false; + if (getStreamFunctionCallArguments() != other.getStreamFunctionCallArguments()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -460,6 +489,8 @@ public int hashCode() { hash = (37 * hash) + ALLOWED_FUNCTION_NAMES_FIELD_NUMBER; hash = (53 * hash) + getAllowedFunctionNamesList().hashCode(); } + hash = (37 * hash) + STREAM_FUNCTION_CALL_ARGUMENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreamFunctionCallArguments()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -602,6 +633,7 @@ public Builder clear() { bitField0_ = 0; mode_ = 0; allowedFunctionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + streamFunctionCallArguments_ = false; return this; } @@ -645,6 +677,9 @@ private void buildPartial0(com.google.cloud.aiplatform.v1.FunctionCallingConfig allowedFunctionNames_.makeImmutable(); result.allowedFunctionNames_ = allowedFunctionNames_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.streamFunctionCallArguments_ = streamFunctionCallArguments_; + } } @java.lang.Override @@ -706,6 +741,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1.FunctionCallingConfig ot } onChanged(); } + if (other.getStreamFunctionCallArguments() != false) { + setStreamFunctionCallArguments(other.getStreamFunctionCallArguments()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -745,6 +783,12 @@ public Builder mergeFrom( allowedFunctionNames_.add(s); break; } // case 18 + case 32: + { + streamFunctionCallArguments_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1081,6 +1125,71 @@ public Builder addAllowedFunctionNamesBytes(com.google.protobuf.ByteString value return this; } + private boolean streamFunctionCallArguments_; + + /** + * + * + *
+     * Optional. When set to true, arguments of a single function call will be
+     * streamed out in multiple parts/contents/responses. Partial parameter
+     * results will be returned in the [FunctionCall.partial_args] field.
+     * 
+ * + * bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamFunctionCallArguments. + */ + @java.lang.Override + public boolean getStreamFunctionCallArguments() { + return streamFunctionCallArguments_; + } + + /** + * + * + *
+     * Optional. When set to true, arguments of a single function call will be
+     * streamed out in multiple parts/contents/responses. Partial parameter
+     * results will be returned in the [FunctionCall.partial_args] field.
+     * 
+ * + * bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The streamFunctionCallArguments to set. + * @return This builder for chaining. + */ + public Builder setStreamFunctionCallArguments(boolean value) { + + streamFunctionCallArguments_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. When set to true, arguments of a single function call will be
+     * streamed out in multiple parts/contents/responses. Partial parameter
+     * results will be returned in the [FunctionCall.partial_args] field.
+     * 
+ * + * bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStreamFunctionCallArguments() { + bitField0_ = (bitField0_ & ~0x00000004); + streamFunctionCallArguments_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfigOrBuilder.java index c27a1724e0c4..976545c464d4 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/FunctionCallingConfigOrBuilder.java @@ -119,4 +119,19 @@ public interface FunctionCallingConfigOrBuilder * @return The bytes of the allowedFunctionNames at the given index. */ com.google.protobuf.ByteString getAllowedFunctionNamesBytes(int index); + + /** + * + * + *
+   * Optional. When set to true, arguments of a single function call will be
+   * streamed out in multiple parts/contents/responses. Partial parameter
+   * results will be returned in the [FunctionCall.partial_args] field.
+   * 
+ * + * bool stream_function_call_arguments = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The streamFunctionCallArguments. + */ + boolean getStreamFunctionCallArguments(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArg.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArg.java new file mode 100644 index 000000000000..e0756e628b5c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArg.java @@ -0,0 +1,1560 @@ +/* + * Copyright 2025 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/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
+ * Partial argument value of the function call.
+ * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PartialArg} + */ +public final class PartialArg extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.PartialArg) + PartialArgOrBuilder { + private static final long serialVersionUID = 0L; + + // Use PartialArg.newBuilder() to construct. + private PartialArg(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PartialArg() { + jsonPath_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PartialArg(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_PartialArg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PartialArg.class, + com.google.cloud.aiplatform.v1.PartialArg.Builder.class); + } + + private int deltaCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object delta_; + + public enum DeltaCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NULL_VALUE(2), + NUMBER_VALUE(3), + STRING_VALUE(4), + BOOL_VALUE(5), + DELTA_NOT_SET(0); + private final int value; + + private DeltaCase(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 DeltaCase valueOf(int value) { + return forNumber(value); + } + + public static DeltaCase forNumber(int value) { + switch (value) { + case 2: + return NULL_VALUE; + case 3: + return NUMBER_VALUE; + case 4: + return STRING_VALUE; + case 5: + return BOOL_VALUE; + case 0: + return DELTA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DeltaCase getDeltaCase() { + return DeltaCase.forNumber(deltaCase_); + } + + public static final int NULL_VALUE_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nullValue field is set. + */ + public boolean hasNullValue() { + return deltaCase_ == 2; + } + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nullValue. + */ + public int getNullValueValue() { + if (deltaCase_ == 2) { + return (java.lang.Integer) delta_; + } + return 0; + } + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nullValue. + */ + public com.google.protobuf.NullValue getNullValue() { + if (deltaCase_ == 2) { + com.google.protobuf.NullValue result = + com.google.protobuf.NullValue.forNumber((java.lang.Integer) delta_); + return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; + } + return com.google.protobuf.NullValue.NULL_VALUE; + } + + public static final int NUMBER_VALUE_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. Represents a double value.
+   * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the numberValue field is set. + */ + @java.lang.Override + public boolean hasNumberValue() { + return deltaCase_ == 3; + } + + /** + * + * + *
+   * Optional. Represents a double value.
+   * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numberValue. + */ + @java.lang.Override + public double getNumberValue() { + if (deltaCase_ == 3) { + return (java.lang.Double) delta_; + } + return 0D; + } + + public static final int STRING_VALUE_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stringValue field is set. + */ + public boolean hasStringValue() { + return deltaCase_ == 4; + } + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stringValue. + */ + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (deltaCase_ == 4) { + ref = delta_; + } + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (deltaCase_ == 4) { + delta_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stringValue. + */ + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (deltaCase_ == 4) { + ref = delta_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (deltaCase_ == 4) { + delta_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BOOL_VALUE_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. Represents a boolean value.
+   * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the boolValue field is set. + */ + @java.lang.Override + public boolean hasBoolValue() { + return deltaCase_ == 5; + } + + /** + * + * + *
+   * Optional. Represents a boolean value.
+   * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boolValue. + */ + @java.lang.Override + public boolean getBoolValue() { + if (deltaCase_ == 5) { + return (java.lang.Boolean) delta_; + } + return false; + } + + public static final int JSON_PATH_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object jsonPath_ = ""; + + /** + * + * + *
+   * Required. A JSON Path (RFC 9535) to the argument being streamed.
+   * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+   * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The jsonPath. + */ + @java.lang.Override + public java.lang.String getJsonPath() { + java.lang.Object ref = jsonPath_; + 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(); + jsonPath_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. A JSON Path (RFC 9535) to the argument being streamed.
+   * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+   * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for jsonPath. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonPathBytes() { + java.lang.Object ref = jsonPath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WILL_CONTINUE_FIELD_NUMBER = 6; + private boolean willContinue_ = false; + + /** + * + * + *
+   * Optional. Whether this is not the last part of the same json_path.
+   * If true, another PartialArg message for the current json_path is expected
+   * to follow.
+   * 
+ * + * bool will_continue = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jsonPath_); + } + if (deltaCase_ == 2) { + output.writeEnum(2, ((java.lang.Integer) delta_)); + } + if (deltaCase_ == 3) { + output.writeDouble(3, (double) ((java.lang.Double) delta_)); + } + if (deltaCase_ == 4) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, delta_); + } + if (deltaCase_ == 5) { + output.writeBool(5, (boolean) ((java.lang.Boolean) delta_)); + } + if (willContinue_ != false) { + output.writeBool(6, willContinue_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(jsonPath_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jsonPath_); + } + if (deltaCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(2, ((java.lang.Integer) delta_)); + } + if (deltaCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 3, (double) ((java.lang.Double) delta_)); + } + if (deltaCase_ == 4) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, delta_); + } + if (deltaCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, (boolean) ((java.lang.Boolean) delta_)); + } + if (willContinue_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, willContinue_); + } + size += getUnknownFields().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.cloud.aiplatform.v1.PartialArg)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.PartialArg other = + (com.google.cloud.aiplatform.v1.PartialArg) obj; + + if (!getJsonPath().equals(other.getJsonPath())) return false; + if (getWillContinue() != other.getWillContinue()) return false; + if (!getDeltaCase().equals(other.getDeltaCase())) return false; + switch (deltaCase_) { + case 2: + if (getNullValueValue() != other.getNullValueValue()) return false; + break; + case 3: + if (java.lang.Double.doubleToLongBits(getNumberValue()) + != java.lang.Double.doubleToLongBits(other.getNumberValue())) return false; + break; + case 4: + if (!getStringValue().equals(other.getStringValue())) return false; + break; + case 5: + if (getBoolValue() != other.getBoolValue()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + JSON_PATH_FIELD_NUMBER; + hash = (53 * hash) + getJsonPath().hashCode(); + hash = (37 * hash) + WILL_CONTINUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getWillContinue()); + switch (deltaCase_) { + case 2: + hash = (37 * hash) + NULL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getNullValueValue(); + break; + case 3: + hash = (37 * hash) + NUMBER_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getNumberValue())); + break; + case 4: + hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStringValue().hashCode(); + break; + case 5: + hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.PartialArg parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PartialArg parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PartialArg parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PartialArg 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.cloud.aiplatform.v1.PartialArg parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.PartialArg parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.PartialArg parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PartialArg 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.cloud.aiplatform.v1.PartialArg parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PartialArg 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.cloud.aiplatform.v1.PartialArg parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.PartialArg 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.cloud.aiplatform.v1.PartialArg 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; + } + + /** + * + * + *
+   * Partial argument value of the function call.
+   * 
+ * + * Protobuf type {@code google.cloud.aiplatform.v1.PartialArg} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.PartialArg) + com.google.cloud.aiplatform.v1.PartialArgOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_PartialArg_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.PartialArg.class, + com.google.cloud.aiplatform.v1.PartialArg.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.PartialArg.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + jsonPath_ = ""; + willContinue_ = false; + deltaCase_ = 0; + delta_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ToolProto + .internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArg getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.PartialArg.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArg build() { + com.google.cloud.aiplatform.v1.PartialArg result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArg buildPartial() { + com.google.cloud.aiplatform.v1.PartialArg result = + new com.google.cloud.aiplatform.v1.PartialArg(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1.PartialArg result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.jsonPath_ = jsonPath_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.willContinue_ = willContinue_; + } + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1.PartialArg result) { + result.deltaCase_ = deltaCase_; + result.delta_ = this.delta_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.PartialArg) { + return mergeFrom((com.google.cloud.aiplatform.v1.PartialArg) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1.PartialArg other) { + if (other == com.google.cloud.aiplatform.v1.PartialArg.getDefaultInstance()) return this; + if (!other.getJsonPath().isEmpty()) { + jsonPath_ = other.jsonPath_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getWillContinue() != false) { + setWillContinue(other.getWillContinue()); + } + switch (other.getDeltaCase()) { + case NULL_VALUE: + { + setNullValueValue(other.getNullValueValue()); + break; + } + case NUMBER_VALUE: + { + setNumberValue(other.getNumberValue()); + break; + } + case STRING_VALUE: + { + deltaCase_ = 4; + delta_ = other.delta_; + onChanged(); + break; + } + case BOOL_VALUE: + { + setBoolValue(other.getBoolValue()); + break; + } + case DELTA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + jsonPath_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 16: + { + int rawValue = input.readEnum(); + deltaCase_ = 2; + delta_ = rawValue; + break; + } // case 16 + case 25: + { + delta_ = input.readDouble(); + deltaCase_ = 3; + break; + } // case 25 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + deltaCase_ = 4; + delta_ = s; + break; + } // case 34 + case 40: + { + delta_ = input.readBool(); + deltaCase_ = 5; + break; + } // case 40 + case 48: + { + willContinue_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int deltaCase_ = 0; + private java.lang.Object delta_; + + public DeltaCase getDeltaCase() { + return DeltaCase.forNumber(deltaCase_); + } + + public Builder clearDelta() { + deltaCase_ = 0; + delta_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nullValue field is set. + */ + @java.lang.Override + public boolean hasNullValue() { + return deltaCase_ == 2; + } + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nullValue. + */ + @java.lang.Override + public int getNullValueValue() { + if (deltaCase_ == 2) { + return ((java.lang.Integer) delta_).intValue(); + } + return 0; + } + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for nullValue to set. + * @return This builder for chaining. + */ + public Builder setNullValueValue(int value) { + deltaCase_ = 2; + delta_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nullValue. + */ + @java.lang.Override + public com.google.protobuf.NullValue getNullValue() { + if (deltaCase_ == 2) { + com.google.protobuf.NullValue result = + com.google.protobuf.NullValue.forNumber((java.lang.Integer) delta_); + return result == null ? com.google.protobuf.NullValue.UNRECOGNIZED : result; + } + return com.google.protobuf.NullValue.NULL_VALUE; + } + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The nullValue to set. + * @return This builder for chaining. + */ + public Builder setNullValue(com.google.protobuf.NullValue value) { + if (value == null) { + throw new NullPointerException(); + } + deltaCase_ = 2; + delta_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a null value.
+     * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearNullValue() { + if (deltaCase_ == 2) { + deltaCase_ = 0; + delta_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Represents a double value.
+     * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the numberValue field is set. + */ + public boolean hasNumberValue() { + return deltaCase_ == 3; + } + + /** + * + * + *
+     * Optional. Represents a double value.
+     * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numberValue. + */ + public double getNumberValue() { + if (deltaCase_ == 3) { + return (java.lang.Double) delta_; + } + return 0D; + } + + /** + * + * + *
+     * Optional. Represents a double value.
+     * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The numberValue to set. + * @return This builder for chaining. + */ + public Builder setNumberValue(double value) { + + deltaCase_ = 3; + delta_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a double value.
+     * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNumberValue() { + if (deltaCase_ == 3) { + deltaCase_ = 0; + delta_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stringValue field is set. + */ + @java.lang.Override + public boolean hasStringValue() { + return deltaCase_ == 4; + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stringValue. + */ + @java.lang.Override + public java.lang.String getStringValue() { + java.lang.Object ref = ""; + if (deltaCase_ == 4) { + ref = delta_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (deltaCase_ == 4) { + delta_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stringValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStringValueBytes() { + java.lang.Object ref = ""; + if (deltaCase_ == 4) { + ref = delta_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (deltaCase_ == 4) { + delta_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deltaCase_ = 4; + delta_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStringValue() { + if (deltaCase_ == 4) { + deltaCase_ = 0; + delta_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Represents a string value.
+     * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for stringValue to set. + * @return This builder for chaining. + */ + public Builder setStringValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deltaCase_ = 4; + delta_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a boolean value.
+     * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the boolValue field is set. + */ + public boolean hasBoolValue() { + return deltaCase_ == 5; + } + + /** + * + * + *
+     * Optional. Represents a boolean value.
+     * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boolValue. + */ + public boolean getBoolValue() { + if (deltaCase_ == 5) { + return (java.lang.Boolean) delta_; + } + return false; + } + + /** + * + * + *
+     * Optional. Represents a boolean value.
+     * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The boolValue to set. + * @return This builder for chaining. + */ + public Builder setBoolValue(boolean value) { + + deltaCase_ = 5; + delta_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Represents a boolean value.
+     * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBoolValue() { + if (deltaCase_ == 5) { + deltaCase_ = 0; + delta_ = null; + onChanged(); + } + return this; + } + + private java.lang.Object jsonPath_ = ""; + + /** + * + * + *
+     * Required. A JSON Path (RFC 9535) to the argument being streamed.
+     * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+     * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The jsonPath. + */ + public java.lang.String getJsonPath() { + java.lang.Object ref = jsonPath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + jsonPath_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. A JSON Path (RFC 9535) to the argument being streamed.
+     * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+     * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for jsonPath. + */ + public com.google.protobuf.ByteString getJsonPathBytes() { + java.lang.Object ref = jsonPath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + jsonPath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. A JSON Path (RFC 9535) to the argument being streamed.
+     * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+     * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The jsonPath to set. + * @return This builder for chaining. + */ + public Builder setJsonPath(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonPath_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A JSON Path (RFC 9535) to the argument being streamed.
+     * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+     * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearJsonPath() { + jsonPath_ = getDefaultInstance().getJsonPath(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A JSON Path (RFC 9535) to the argument being streamed.
+     * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+     * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for jsonPath to set. + * @return This builder for chaining. + */ + public Builder setJsonPathBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonPath_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean willContinue_; + + /** + * + * + *
+     * Optional. Whether this is not the last part of the same json_path.
+     * If true, another PartialArg message for the current json_path is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + @java.lang.Override + public boolean getWillContinue() { + return willContinue_; + } + + /** + * + * + *
+     * Optional. Whether this is not the last part of the same json_path.
+     * If true, another PartialArg message for the current json_path is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The willContinue to set. + * @return This builder for chaining. + */ + public Builder setWillContinue(boolean value) { + + willContinue_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this is not the last part of the same json_path.
+     * If true, another PartialArg message for the current json_path is expected
+     * to follow.
+     * 
+ * + * bool will_continue = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearWillContinue() { + bitField0_ = (bitField0_ & ~0x00000020); + willContinue_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.PartialArg) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.PartialArg) + private static final com.google.cloud.aiplatform.v1.PartialArg DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.PartialArg(); + } + + public static com.google.cloud.aiplatform.v1.PartialArg getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PartialArg parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.PartialArg getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArgOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArgOrBuilder.java new file mode 100644 index 000000000000..65fb96936ded --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/PartialArgOrBuilder.java @@ -0,0 +1,204 @@ +/* + * Copyright 2025 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/cloud/aiplatform/v1/tool.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.aiplatform.v1; + +public interface PartialArgOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.PartialArg) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the nullValue field is set. + */ + boolean hasNullValue(); + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for nullValue. + */ + int getNullValueValue(); + + /** + * + * + *
+   * Optional. Represents a null value.
+   * 
+ * + * .google.protobuf.NullValue null_value = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The nullValue. + */ + com.google.protobuf.NullValue getNullValue(); + + /** + * + * + *
+   * Optional. Represents a double value.
+   * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the numberValue field is set. + */ + boolean hasNumberValue(); + + /** + * + * + *
+   * Optional. Represents a double value.
+   * 
+ * + * double number_value = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The numberValue. + */ + double getNumberValue(); + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stringValue field is set. + */ + boolean hasStringValue(); + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stringValue. + */ + java.lang.String getStringValue(); + + /** + * + * + *
+   * Optional. Represents a string value.
+   * 
+ * + * string string_value = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for stringValue. + */ + com.google.protobuf.ByteString getStringValueBytes(); + + /** + * + * + *
+   * Optional. Represents a boolean value.
+   * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the boolValue field is set. + */ + boolean hasBoolValue(); + + /** + * + * + *
+   * Optional. Represents a boolean value.
+   * 
+ * + * bool bool_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The boolValue. + */ + boolean getBoolValue(); + + /** + * + * + *
+   * Required. A JSON Path (RFC 9535) to the argument being streamed.
+   * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+   * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The jsonPath. + */ + java.lang.String getJsonPath(); + + /** + * + * + *
+   * Required. A JSON Path (RFC 9535) to the argument being streamed.
+   * https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data".
+   * 
+ * + * string json_path = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for jsonPath. + */ + com.google.protobuf.ByteString getJsonPathBytes(); + + /** + * + * + *
+   * Optional. Whether this is not the last part of the same json_path.
+   * If true, another PartialArg message for the current json_path is expected
+   * to follow.
+   * 
+ * + * bool will_continue = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The willContinue. + */ + boolean getWillContinue(); + + com.google.cloud.aiplatform.v1.PartialArg.DeltaCase getDeltaCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java index 21b35f5e177c..20a69127bc6e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/Retrieval.java @@ -238,7 +238,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO *
* * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=388 + * google/cloud/aiplatform/v1/tool.proto;l=426 * @return The disableAttribution. */ @java.lang.Override @@ -1146,7 +1146,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStoreOrBuilder getVertexRagStoreO *
* * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=388 + * google/cloud/aiplatform/v1/tool.proto;l=426 * @return The disableAttribution. */ @java.lang.Override @@ -1167,7 +1167,7 @@ public boolean getDisableAttribution() { *
* * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=388 + * google/cloud/aiplatform/v1/tool.proto;l=426 * @param value The disableAttribution to set. * @return This builder for chaining. */ @@ -1192,7 +1192,7 @@ public Builder setDisableAttribution(boolean value) { *
* * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=388 + * google/cloud/aiplatform/v1/tool.proto;l=426 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java index 1ad05c459f7b..3b761f6333ff 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/RetrievalOrBuilder.java @@ -113,7 +113,7 @@ public interface RetrievalOrBuilder *
* * @deprecated google.cloud.aiplatform.v1.Retrieval.disable_attribution is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=388 + * google/cloud/aiplatform/v1/tool.proto;l=426 * @return The disableAttribution. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java index a63453baf826..37b1971e975b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ToolProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_FunctionCall_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_FunctionCall_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_PartialArg_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1_FunctionResponsePart_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -215,15 +219,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010response\030\004" + " \001(\0132\".google.cloud.aiplatform.v1.SchemaB\003\340A\001\0229\n" + "\024response_json_schema\030\006" - + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\"M\n" + + " \001(\0132\026.google.protobuf.ValueB\003\340A\001\"\254\001\n" + "\014FunctionCall\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022*\n" - + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\262\001\n" + + "\004name\030\001 \001(\tB\003\340A\001\022*\n" + + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\022A\n" + + "\014partial_args\030\004" + + " \003(\0132&.google.cloud.aiplatform.v1.PartialArgB\003\340A\001\022\032\n\r" + + "will_continue\030\005 \001(\010B\003\340A\001\"\325\001\n\n" + + "PartialArg\0225\n\n" + + "null_value\030\002" + + " \001(\0162\032.google.protobuf.NullValueB\003\340A\001H\000\022\033\n" + + "\014number_value\030\003 \001(\001B\003\340A\001H\000\022\033\n" + + "\014string_value\030\004 \001(\tB\003\340A\001H\000\022\031\n\n" + + "bool_value\030\005 \001(\010B\003\340A\001H\000\022\026\n" + + "\tjson_path\030\001 \001(\tB\003\340A\002\022\032\n\r" + + "will_continue\030\006 \001(\010B\003\340A\001B\007\n" + + "\005delta\"\262\001\n" + "\024FunctionResponsePart\022G\n" - + "\013inline_data\030\001 \001(\0132" - + "0.google.cloud.aiplatform.v1.FunctionResponseBlobH\000\022I\n" - + "\tfile_data\030\002 \001(\01324.google." - + "cloud.aiplatform.v1.FunctionResponseFileDataH\000B\006\n" + + "\013inline_data\030\001 \001(\01320.google" + + ".cloud.aiplatform.v1.FunctionResponseBlobH\000\022I\n" + + "\tfile_data\030\002 \001(\01324.google.cloud.ai" + + "platform.v1.FunctionResponseFileDataH\000B\006\n" + "\004data\"\\\n" + "\024FunctionResponseBlob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" @@ -236,11 +252,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020FunctionResponse\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022.\n" + "\010response\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\002\022D\n" - + "\005parts\030\004 \003(\01320.goog" - + "le.cloud.aiplatform.v1.FunctionResponsePartB\003\340A\001\"\241\001\n" + + "\005parts\030\004 \003(\01320.google.cloud" + + ".aiplatform.v1.FunctionResponsePartB\003\340A\001\"\241\001\n" + "\016ExecutableCode\022J\n" - + "\010language\030\001" - + " \001(\01623.google.cloud.aiplatform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + + "\010language\030\001 \001(\01623." + + "google.cloud.aiplatform.v1.ExecutableCode.LanguageB\003\340A\002\022\021\n" + "\004code\030\002 \001(\tB\003\340A\002\"0\n" + "\010Language\022\030\n" + "\024LANGUAGE_UNSPECIFIED\020\000\022\n\n" @@ -255,15 +271,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016OUTCOME_FAILED\020\002\022\035\n" + "\031OUTCOME_DEADLINE_EXCEEDED\020\003\"\311\001\n" + "\tRetrieval\022F\n" - + "\020vertex_ai_search\030\002 \001(\0132" - + "*.google.cloud.aiplatform.v1.VertexAISearchH\000\022F\n" + + "\020vertex_ai_search\030\002" + + " \001(\0132*.google.cloud.aiplatform.v1.VertexAISearchH\000\022F\n" + "\020vertex_rag_store\030\004" + " \001(\0132*.google.cloud.aiplatform.v1.VertexRagStoreH\000\022\"\n" + "\023disable_attribution\030\003 \001(\010B\005\030\001\340A\001B\010\n" + "\006source\"\252\003\n" + "\016VertexRagStore\022R\n\r" - + "rag_resources\030\004" - + " \003(\01326.google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + + "rag_resources\030\004 \003(\01326." + + "google.cloud.aiplatform.v1.VertexRagStore.RagResourceB\003\340A\001\022$\n" + "\020similarity_top_k\030\002 \001(\005B\005\030\001\340A\001H\000\210\001\001\022-\n" + "\031vector_distance_threshold\030\003" + " \001(\001B\005\030\001\340A\001H\001\210\001\001\022Q\n" @@ -280,8 +296,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006engine\030\002 \001(\tB\003\340A\001\022\030\n" + "\013max_results\030\003 \001(\005B\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022R\n" - + "\020data_store_specs\030\005" - + " \003(\01328.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r" + + "\020data_store_specs\030\005 \003(" + + "\01328.google.cloud.aiplatform.v1.VertexAISearch.DataStoreSpec\0328\n\r" + "DataStoreSpec\022\022\n\n" + "data_store\030\001 \001(\t\022\023\n" + "\006filter\030\002 \001(\tB\003\340A\001\"m\n" @@ -292,26 +308,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "enable_widget\030\001 \001(\010B\003\340A\001\"\250\001\n" + "\023EnterpriseWebSearch\022\034\n" + "\017exclude_domains\030\001 \003(\tB\003\340A\001\022[\n" - + "\023blocking_confidence\030\002 \001(" - + "\01624.google.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + + "\023blocking_confidence\030\002 \001(\01624.goog" + + "le.cloud.aiplatform.v1.Tool.PhishBlockThresholdB\003\340A\001H\000\210\001\001B\026\n" + "\024_blocking_confidence\"\312\001\n" + "\026DynamicRetrievalConfig\022E\n" - + "\004mode\030\001" - + " \001(\01627.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n" + + "\004mode\030\001 \001" + + "(\01627.google.cloud.aiplatform.v1.DynamicRetrievalConfig.Mode\022#\n" + "\021dynamic_threshold\030\002 \001(\002B\003\340A\001H\000\210\001\001\".\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\020\n" + "\014MODE_DYNAMIC\020\001B\024\n" + "\022_dynamic_threshold\"\261\001\n\n" + "ToolConfig\022W\n" - + "\027function_calling_config\030\001 \001(\01321.google.cloud.ai" - + "platform.v1.FunctionCallingConfigB\003\340A\001\022J\n" + + "\027function_calling_config\030\001" + + " \001(\01321.google.cloud.aiplatform.v1.FunctionCallingConfigB\003\340A\001\022J\n" + "\020retrieval_config\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\302\001\n" + + " \001(\0132+.google.cloud.aiplatform.v1.RetrievalConfigB\003\340A\001\"\357\001\n" + "\025FunctionCallingConfig\022I\n" - + "\004mode\030\001 \001(\01626.goo" - + "gle.cloud.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" - + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\"9\n" + + "\004mode\030\001 \001(\01626.google.clou" + + "d.aiplatform.v1.FunctionCallingConfig.ModeB\003\340A\001\022#\n" + + "\026allowed_function_names\030\002 \003(\tB\003\340A\001\022+\n" + + "\036stream_function_call_arguments\030\004 \001(\010B\003\340A\001\"9\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\010\n" + "\004AUTO\020\001\022\007\n" @@ -319,7 +336,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004NONE\020\003\"v\n" + "\017RetrievalConfig\022)\n" + "\007lat_lng\030\001 \001(\0132\023.google.type.LatLngH\000\210\001\001\022\032\n\r" - + "language_code\030\002 \001(\tH\001\210\001\001B\n\n" + + "language_code\030\002 \001(\tH\001\210\001\001B\n" + + "\n" + "\010_lat_lngB\020\n" + "\016_language_code\"\252\005\n" + "\022RagRetrievalConfig\022\022\n" @@ -334,10 +352,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017metadata_filter\030\002 \001(\tB\003\340A\001B\025\n" + "\023vector_db_threshold\032\317\002\n" + "\007Ranking\022_\n" - + "\014rank_service\030\001 \001(\0132B.google.cloud.aiplatform.v" - + "1.RagRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" - + "llm_ranker\030\003 \001(\0132@.google.clo" - + "ud.aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + + "\014rank_service\030\001 \001(\0132B.google.cloud.aiplatform.v1.R" + + "agRetrievalConfig.Ranking.RankServiceB\003\340A\001H\000\022[\n\n" + + "llm_ranker\030\003 \001(\0132@.google.cloud." + + "aiplatform.v1.RagRetrievalConfig.Ranking.LlmRankerB\003\340A\001H\000\032:\n" + "\013RankService\022\034\n\n" + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_name\0328\n" @@ -345,11 +363,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "model_name\030\001 \001(\tB\003\340A\001H\000\210\001\001B\r\n" + "\013_model_nameB\020\n" + "\016ranking_configB\307\001\n" - + "\036com.google.cloud.aiplatform.v1B\tToolPro" - + "toP\001Z>cloud.google.com/go/aiplatform/api" - + "v1/aiplatformpb;aiplatformpb\252\002\032Google.Cl" - + "oud.AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatf" - + "orm\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" + + "\036com.google.cloud.aiplatform.v1B\tToolProtoP" + + "\001Z>cloud.google.com/go/aiplatform/apiv1/" + + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" + + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" + + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -424,10 +442,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionCall_descriptor, new java.lang.String[] { - "Name", "Args", + "Name", "Args", "PartialArgs", "WillContinue", }); - internal_static_google_cloud_aiplatform_v1_FunctionResponsePart_descriptor = + internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_aiplatform_v1_PartialArg_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_PartialArg_descriptor, + new java.lang.String[] { + "NullValue", + "NumberValue", + "StringValue", + "BoolValue", + "JsonPath", + "WillContinue", + "Delta", + }); + internal_static_google_cloud_aiplatform_v1_FunctionResponsePart_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_aiplatform_v1_FunctionResponsePart_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionResponsePart_descriptor, @@ -435,7 +467,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InlineData", "FileData", "Data", }); internal_static_google_cloud_aiplatform_v1_FunctionResponseBlob_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_aiplatform_v1_FunctionResponseBlob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionResponseBlob_descriptor, @@ -443,7 +475,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MimeType", "Data", "DisplayName", }); internal_static_google_cloud_aiplatform_v1_FunctionResponseFileData_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_aiplatform_v1_FunctionResponseFileData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionResponseFileData_descriptor, @@ -451,7 +483,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MimeType", "FileUri", "DisplayName", }); internal_static_google_cloud_aiplatform_v1_FunctionResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_aiplatform_v1_FunctionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionResponse_descriptor, @@ -459,7 +491,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Response", "Parts", }); internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_aiplatform_v1_ExecutableCode_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ExecutableCode_descriptor, @@ -467,7 +499,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Language", "Code", }); internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_CodeExecutionResult_descriptor, @@ -475,7 +507,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outcome", "Output", }); internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_aiplatform_v1_Retrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_Retrieval_descriptor, @@ -483,7 +515,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VertexAiSearch", "VertexRagStore", "DisableAttribution", "Source", }); internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_aiplatform_v1_VertexRagStore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_VertexRagStore_descriptor, @@ -501,7 +533,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RagCorpus", "RagFileIds", }); internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_aiplatform_v1_VertexAISearch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_VertexAISearch_descriptor, @@ -519,7 +551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataStore", "Filter", }); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GoogleSearchRetrieval_descriptor, @@ -527,7 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DynamicRetrievalConfig", }); internal_static_google_cloud_aiplatform_v1_GoogleMaps_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_aiplatform_v1_GoogleMaps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_GoogleMaps_descriptor, @@ -535,7 +567,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableWidget", }); internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_EnterpriseWebSearch_descriptor, @@ -543,7 +575,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExcludeDomains", "BlockingConfidence", }); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_DynamicRetrievalConfig_descriptor, @@ -551,7 +583,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Mode", "DynamicThreshold", }); internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_aiplatform_v1_ToolConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_ToolConfig_descriptor, @@ -559,15 +591,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FunctionCallingConfig", "RetrievalConfig", }); internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_FunctionCallingConfig_descriptor, new java.lang.String[] { - "Mode", "AllowedFunctionNames", + "Mode", "AllowedFunctionNames", "StreamFunctionCallArguments", }); internal_static_google_cloud_aiplatform_v1_RetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_aiplatform_v1_RetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RetrievalConfig_descriptor, @@ -575,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LatLng", "LanguageCode", }); internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1_RagRetrievalConfig_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java index 4cb1960ceb51..115dc4dcac23 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStore.java @@ -1234,7 +1234,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource getRagResources *
* * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -1255,7 +1255,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return The similarityTopK. */ @java.lang.Override @@ -1280,7 +1280,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=424 + * See google/cloud/aiplatform/v1/tool.proto;l=462 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -1302,7 +1302,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=424 + * See google/cloud/aiplatform/v1/tool.proto;l=462 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2357,7 +2357,7 @@ public com.google.cloud.aiplatform.v1.VertexRagStore.RagResource.Builder addRagR * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return Whether the similarityTopK field is set. */ @java.lang.Override @@ -2378,7 +2378,7 @@ public boolean hasSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return The similarityTopK. */ @java.lang.Override @@ -2399,7 +2399,7 @@ public int getSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @param value The similarityTopK to set. * @return This builder for chaining. */ @@ -2424,7 +2424,7 @@ public Builder setSimilarityTopK(int value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2450,7 +2450,7 @@ public Builder clearSimilarityTopK() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=424 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Override @@ -2472,7 +2472,7 @@ public boolean hasVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=424 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 * @return The vectorDistanceThreshold. */ @java.lang.Override @@ -2494,7 +2494,7 @@ public double getVectorDistanceThreshold() { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=424 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 * @param value The vectorDistanceThreshold to set. * @return This builder for chaining. */ @@ -2520,7 +2520,7 @@ public Builder setVectorDistanceThreshold(double value) { * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is - * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=424 + * deprecated. See google/cloud/aiplatform/v1/tool.proto;l=462 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java index 420fa7f8959b..3e89576ef009 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/VertexRagStoreOrBuilder.java @@ -118,7 +118,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return Whether the similarityTopK field is set. */ @java.lang.Deprecated @@ -136,7 +136,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See - * google/cloud/aiplatform/v1/tool.proto;l=419 + * google/cloud/aiplatform/v1/tool.proto;l=457 * @return The similarityTopK. */ @java.lang.Deprecated @@ -155,7 +155,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=424 + * See google/cloud/aiplatform/v1/tool.proto;l=462 * @return Whether the vectorDistanceThreshold field is set. */ @java.lang.Deprecated @@ -174,7 +174,7 @@ com.google.cloud.aiplatform.v1.VertexRagStore.RagResourceOrBuilder getRagResourc * * * @deprecated google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. - * See google/cloud/aiplatform/v1/tool.proto;l=424 + * See google/cloud/aiplatform/v1/tool.proto;l=462 * @return The vectorDistanceThreshold. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto index 0b742d59c05e..298cecf261a6 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/tool.proto @@ -234,13 +234,51 @@ message FunctionDeclaration { // representing the [FunctionDeclaration.name] and a structured JSON object // containing the parameters and their values. message FunctionCall { - // Required. The name of the function to call. + // Optional. The name of the function to call. // Matches [FunctionDeclaration.name]. - string name = 1 [(google.api.field_behavior) = REQUIRED]; + string name = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Required. The function parameters and values in JSON object - // format. See [FunctionDeclaration.parameters] for parameter details. + // Optional. The function parameters and values in JSON object format. + // See [FunctionDeclaration.parameters] for parameter details. google.protobuf.Struct args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The partial argument value of the function call. + // If provided, represents the arguments/fields that are streamed + // incrementally. + repeated PartialArg partial_args = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether this is the last part of the FunctionCall. + // If true, another partial message for the current FunctionCall is expected + // to follow. + bool will_continue = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Partial argument value of the function call. +message PartialArg { + // The delta of field value being streamed. + oneof delta { + // Optional. Represents a null value. + google.protobuf.NullValue null_value = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a double value. + double number_value = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a string value. + string string_value = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Represents a boolean value. + bool bool_value = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Required. A JSON Path (RFC 9535) to the argument being streamed. + // https://datatracker.ietf.org/doc/html/rfc9535. e.g. "$.foo.bar[0].data". + string json_path = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Whether this is not the last part of the same json_path. + // If true, another PartialArg message for the current json_path is expected + // to follow. + bool will_continue = 6 [(google.api.field_behavior) = OPTIONAL]; } // A datatype containing media that is part of a `FunctionResponse` message. @@ -558,6 +596,12 @@ message FunctionCallingConfig { // will predict a function call from the set of function names provided. repeated string allowed_function_names = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When set to true, arguments of a single function call will be + // streamed out in multiple parts/contents/responses. Partial parameter + // results will be returned in the [FunctionCall.partial_args] field. + bool stream_function_call_arguments = 4 + [(google.api.field_behavior) = OPTIONAL]; } // Retrieval config. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java index 9f49a0fe80fc..982f78c8d601 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/Action.java @@ -6855,6 +6855,7 @@ public enum ActionCase SAVE_FINDINGS(1), PUB_SUB(2), PUBLISH_SUMMARY_TO_CSCC(3), + @java.lang.Deprecated PUBLISH_FINDINGS_TO_CLOUD_DATA_CATALOG(5), PUBLISH_FINDINGS_TO_DATAPLEX_CATALOG(10), DEIDENTIFY(7), @@ -7080,16 +7081,21 @@ public com.google.privacy.dlp.v2.Action.PublishSummaryToCscc getPublishSummaryTo * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=4399 * @return Whether the publishFindingsToCloudDataCatalog field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPublishFindingsToCloudDataCatalog() { return actionCase_ == 5; } @@ -7098,16 +7104,21 @@ public boolean hasPublishFindingsToCloudDataCatalog() { * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=4399 * @return The publishFindingsToCloudDataCatalog. */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog() { if (actionCase_ == 5) { @@ -7120,14 +7131,17 @@ public boolean hasPublishFindingsToCloudDataCatalog() { * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder() { if (actionCase_ == 5) { @@ -8658,16 +8672,21 @@ public Builder clearPublishSummaryToCscc() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is + * deprecated. See google/privacy/dlp/v2/dlp.proto;l=4399 * @return Whether the publishFindingsToCloudDataCatalog field is set. */ @java.lang.Override + @java.lang.Deprecated public boolean hasPublishFindingsToCloudDataCatalog() { return actionCase_ == 5; } @@ -8676,16 +8695,21 @@ public boolean hasPublishFindingsToCloudDataCatalog() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is + * deprecated. See google/privacy/dlp/v2/dlp.proto;l=4399 * @return The publishFindingsToCloudDataCatalog. */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog() { if (publishFindingsToCloudDataCatalogBuilder_ == null) { @@ -8707,13 +8731,16 @@ public boolean hasPublishFindingsToCloudDataCatalog() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setPublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { if (publishFindingsToCloudDataCatalogBuilder_ == null) { @@ -8733,13 +8760,16 @@ public Builder setPublishFindingsToCloudDataCatalog( * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated public Builder setPublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder builderForValue) { @@ -8757,13 +8787,16 @@ public Builder setPublishFindingsToCloudDataCatalog( * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated public Builder mergePublishFindingsToCloudDataCatalog( com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog value) { if (publishFindingsToCloudDataCatalogBuilder_ == null) { @@ -8795,13 +8828,16 @@ public Builder mergePublishFindingsToCloudDataCatalog( * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated public Builder clearPublishFindingsToCloudDataCatalog() { if (publishFindingsToCloudDataCatalogBuilder_ == null) { if (actionCase_ == 5) { @@ -8823,13 +8859,16 @@ public Builder clearPublishFindingsToCloudDataCatalog() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog.Builder getPublishFindingsToCloudDataCatalogBuilder() { return getPublishFindingsToCloudDataCatalogFieldBuilder().getBuilder(); @@ -8839,14 +8878,17 @@ public Builder clearPublishFindingsToCloudDataCatalog() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ @java.lang.Override + @java.lang.Deprecated public com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder() { if ((actionCase_ == 5) && (publishFindingsToCloudDataCatalogBuilder_ != null)) { @@ -8864,11 +8906,13 @@ public Builder clearPublishFindingsToCloudDataCatalog() { * * *
-     * Publish findings to Cloud Datahub.
+     * Deprecated because Data Catalog is being turned down. Use
+     * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+     * Universal Catalog.
      * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ private com.google.protobuf.SingleFieldBuilderV3< diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java index b343622ea63d..9799ee681286 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/ActionOrBuilder.java @@ -139,30 +139,40 @@ public interface ActionOrBuilder * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=4399 * @return Whether the publishFindingsToCloudDataCatalog field is set. */ + @java.lang.Deprecated boolean hasPublishFindingsToCloudDataCatalog(); /** * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * * + * @deprecated google.privacy.dlp.v2.Action.publish_findings_to_cloud_data_catalog is deprecated. + * See google/privacy/dlp/v2/dlp.proto;l=4399 * @return The publishFindingsToCloudDataCatalog. */ + @java.lang.Deprecated com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog getPublishFindingsToCloudDataCatalog(); @@ -170,13 +180,16 @@ public interface ActionOrBuilder * * *
-   * Publish findings to Cloud Datahub.
+   * Deprecated because Data Catalog is being turned down. Use
+   * publish_findings_to_dataplex_catalog to publish findings to Dataplex
+   * Universal Catalog.
    * 
* * - * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; + * .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 [deprecated = true]; * */ + @java.lang.Deprecated com.google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogOrBuilder getPublishFindingsToCloudDataCatalogOrBuilder(); diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java index b813d9781b9e..579c465b39aa 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshot.java @@ -139,7 +139,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7680 + * google/privacy/dlp/v2/dlp.proto;l=7686 * @return Whether the dataProfileJob field is set. */ @java.lang.Override @@ -163,7 +163,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7680 + * google/privacy/dlp/v2/dlp.proto;l=7686 * @return The dataProfileJob. */ @java.lang.Override @@ -1076,7 +1076,7 @@ public com.google.privacy.dlp.v2.InspectConfigOrBuilder getInspectConfigOrBuilde * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7680 + * See google/privacy/dlp/v2/dlp.proto;l=7686 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -1099,7 +1099,7 @@ public boolean hasDataProfileJob() { * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. - * See google/privacy/dlp/v2/dlp.proto;l=7680 + * See google/privacy/dlp/v2/dlp.proto;l=7686 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java index 0ff6d04ea50d..ccfc4b10fd3e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataProfileConfigSnapshotOrBuilder.java @@ -79,7 +79,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7680 + * google/privacy/dlp/v2/dlp.proto;l=7686 * @return Whether the dataProfileJob field is set. */ @java.lang.Deprecated @@ -100,7 +100,7 @@ public interface DataProfileConfigSnapshotOrBuilder * * * @deprecated google.privacy.dlp.v2.DataProfileConfigSnapshot.data_profile_job is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7680 + * google/privacy/dlp/v2/dlp.proto;l=7686 * @return The dataProfileJob. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java index 29de35f42755..e8297490839e 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceType.java @@ -73,7 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. An identifying string to the type of resource being profiled.
+   * A string that identifies the type of resource being profiled.
    * Current values:
    *
    * * google/bigquery/table
@@ -82,7 +82,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * * google/gcs/bucket
    * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The dataSource. */ @@ -103,7 +103,7 @@ public java.lang.String getDataSource() { * * *
-   * Output only. An identifying string to the type of resource being profiled.
+   * A string that identifies the type of resource being profiled.
    * Current values:
    *
    * * google/bigquery/table
@@ -112,7 +112,7 @@ public java.lang.String getDataSource() {
    * * google/gcs/bucket
    * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The bytes for dataSource. */ @@ -476,7 +476,7 @@ public Builder mergeFrom( * * *
-     * Output only. An identifying string to the type of resource being profiled.
+     * A string that identifies the type of resource being profiled.
      * Current values:
      *
      * * google/bigquery/table
@@ -485,7 +485,7 @@ public Builder mergeFrom(
      * * google/gcs/bucket
      * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The dataSource. */ @@ -505,7 +505,7 @@ public java.lang.String getDataSource() { * * *
-     * Output only. An identifying string to the type of resource being profiled.
+     * A string that identifies the type of resource being profiled.
      * Current values:
      *
      * * google/bigquery/table
@@ -514,7 +514,7 @@ public java.lang.String getDataSource() {
      * * google/gcs/bucket
      * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The bytes for dataSource. */ @@ -534,7 +534,7 @@ public com.google.protobuf.ByteString getDataSourceBytes() { * * *
-     * Output only. An identifying string to the type of resource being profiled.
+     * A string that identifies the type of resource being profiled.
      * Current values:
      *
      * * google/bigquery/table
@@ -543,7 +543,7 @@ public com.google.protobuf.ByteString getDataSourceBytes() {
      * * google/gcs/bucket
      * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @param value The dataSource to set. * @return This builder for chaining. @@ -562,7 +562,7 @@ public Builder setDataSource(java.lang.String value) { * * *
-     * Output only. An identifying string to the type of resource being profiled.
+     * A string that identifies the type of resource being profiled.
      * Current values:
      *
      * * google/bigquery/table
@@ -571,7 +571,7 @@ public Builder setDataSource(java.lang.String value) {
      * * google/gcs/bucket
      * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return This builder for chaining. */ @@ -586,7 +586,7 @@ public Builder clearDataSource() { * * *
-     * Output only. An identifying string to the type of resource being profiled.
+     * A string that identifies the type of resource being profiled.
      * Current values:
      *
      * * google/bigquery/table
@@ -595,7 +595,7 @@ public Builder clearDataSource() {
      * * google/gcs/bucket
      * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @param value The bytes for dataSource to set. * @return This builder for chaining. diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java index 6934a46134d9..d59e89924044 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DataSourceTypeOrBuilder.java @@ -28,7 +28,7 @@ public interface DataSourceTypeOrBuilder * * *
-   * Output only. An identifying string to the type of resource being profiled.
+   * A string that identifies the type of resource being profiled.
    * Current values:
    *
    * * google/bigquery/table
@@ -37,7 +37,7 @@ public interface DataSourceTypeOrBuilder
    * * google/gcs/bucket
    * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The dataSource. */ @@ -47,7 +47,7 @@ public interface DataSourceTypeOrBuilder * * *
-   * Output only. An identifying string to the type of resource being profiled.
+   * A string that identifies the type of resource being profiled.
    * Current values:
    *
    * * google/bigquery/table
@@ -56,7 +56,7 @@ public interface DataSourceTypeOrBuilder
    * * google/gcs/bucket
    * 
* - * string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string data_source = 1; * * @return The bytes for dataSource. */ diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java index f1b9ab88229e..0a95708131dd 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/DlpProto.java @@ -2311,24 +2311,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tCANCELLED\020\003:\224\001\352A\220\001\n" + "\035dlp.googleapis.com/JobTrigger\022,projects/{project}/jobTriggers/{job_trigg" + "er}\022Aprojects/{project}/locations/{location}/jobTriggers/{job_trigger}B\005\n" - + "\003job\"\376\t\n" + + "\003job\"\202\n" + + "\n" + "\006Action\022C\n\r" + "save_findings\030\001" + " \001(\0132*.google.privacy.dlp.v2.Action.SaveFindingsH\000\022@\n" + "\007pub_sub\030\002" + " \001(\0132-.google.privacy.dlp.v2.Action.PublishToPubSubH\000\022U\n" + "\027publish_summary_to_cscc\030\003" - + " \001(\01322.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\000\022q\n" + + " \001(\01322.google.privacy.dlp.v2.Action.PublishSummaryToCsccH\000\022u\n" + "&publish_findings_to_cloud_data_catalog\030\005 \001(\0132?" - + ".google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogH\000\022n\n" + + ".google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalogB\002\030\001H\000\022n\n" + "$publish_findings_to_dataplex_catalog\030\n" - + " \001(\0132>.google" - + ".privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\000\022>\n\n" + + " \001(\0132>.go" + + "ogle.privacy.dlp.v2.Action.PublishFindingsToDataplexCatalogH\000\022>\n\n" + "deidentify\030\007 \001(\0132(.google.privacy.dlp.v2.Action.DeidentifyH\000\022V\n" - + "\027job_notification_emails\030\010 \001(\01323.goo" - + "gle.privacy.dlp.v2.Action.JobNotificationEmailsH\000\022T\n" - + "\026publish_to_stackdriver\030\t \001(" - + "\01322.google.privacy.dlp.v2.Action.PublishToStackdriverH\000\032Q\n" + + "\027job_notification_emails\030\010 \001(\01323" + + ".google.privacy.dlp.v2.Action.JobNotificationEmailsH\000\022T\n" + + "\026publish_to_stackdriver\030\t" + + " \001(\01322.google.privacy.dlp.v2.Action.PublishToStackdriverH\000\032Q\n" + "\014SaveFindings\022A\n\r" + "output_config\030\001 \001(\0132*.google.privacy.dlp.v2.OutputStorageConfig\032 \n" + "\017PublishToPubSub\022\r\n" @@ -2337,8 +2338,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!PublishFindingsToCloudDataCatalog\032\"\n" + " PublishFindingsToDataplexCatalog\032\263\002\n\n" + "Deidentify\022J\n" - + "\025transformation_config\030\007 \001(\0132+.go" - + "ogle.privacy.dlp.v2.TransformationConfig\022h\n" + + "\025transformation_config\030\007 \001(\0132" + + "+.google.privacy.dlp.v2.TransformationConfig\022h\n" + "%transformation_details_storage_config\030\003" + " \001(\01329.google.privacy.dlp.v2.TransformationDetailsStorageConfig\022#\n" + "\024cloud_storage_output\030\t \001(\tB\003\340A\002H\000\022@\n" @@ -2355,8 +2356,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034CreateInspectTemplateRequest\022:\n" + "\006parent\030\001 \001(" + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectTemplate\022E\n" - + "\020inspect_template\030\002 \001(" - + "\0132&.google.privacy.dlp.v2.InspectTemplateB\003\340A\002\022\023\n" + + "\020inspect_template\030\002" + + " \001(\0132&.google.privacy.dlp.v2.InspectTemplateB\003\340A\002\022\023\n" + "\013template_id\030\003 \001(\t\022\023\n" + "\013location_id\030\004 \001(\t\"\313\001\n" + "\034UpdateInspectTemplateRequest\0228\n" @@ -2369,14 +2370,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dlp.googleapis.com/InspectTemplate\"\247\001\n" + "\033ListInspectTemplatesRequest\022:\n" + "\006parent\030\001 \001(" - + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectTemplate\022\022\n\n" + + "\tB*\340A\002\372A$\022\"dlp.googleapis.com/InspectTemplate\022\022\n" + + "\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\020\n" + "\010order_by\030\004 \001(\t\022\023\n" + "\013location_id\030\005 \001(\t\"z\n" + "\034ListInspectTemplatesResponse\022A\n" - + "\021inspect_templates\030\001 \003(\0132&.google.privacy.dlp.v2.Inspe", - "ctTemplate\022\027\n" + + "\021inspect_templates\030\001 \003(\0132&.google.privacy.dlp.v2.I", + "nspectTemplate\022\027\n" + "\017next_page_token\030\002 \001(\t\"X\n" + "\034DeleteInspectTemplateRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -2408,8 +2410,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034UpdateDiscoveryConfigRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"dlp.googleapis.com/DiscoveryConfig\022E\n" - + "\020discovery_config\030\002 \001(\0132&.go" - + "ogle.privacy.dlp.v2.DiscoveryConfigB\003\340A\002\022/\n" + + "\020discovery_config\030\002 \001(\0132" + + "&.google.privacy.dlp.v2.DiscoveryConfigB\003\340A\002\022/\n" + "\013update_mask\030\003 \001(\0132\032.google.protobuf.FieldMask\"U\n" + "\031GetDiscoveryConfigRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -2429,8 +2431,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"dlp.googleapis.com/DiscoveryConfig\"\366\001\n" + "\023CreateDlpJobRequest\0221\n" + "\006parent\030\001 \001(\tB!\340A\002\372A\033\022\031dlp.googleapis.com/DlpJob\022>\n" - + "\013inspect_job\030\002 \001(\0132\'.go" - + "ogle.privacy.dlp.v2.InspectJobConfigH\000\022@\n" + + "\013inspect_job\030\002 \001(\0132" + + "\'.google.privacy.dlp.v2.InspectJobConfigH\000\022@\n" + "\010risk_job\030\003" + " \001(\0132,.google.privacy.dlp.v2.RiskAnalysisJobConfigH\000\022\016\n" + "\006job_id\030\004 \001(\t\022\023\n" @@ -2457,18 +2459,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025inspect_template_name\030\003 \001(\t\022.\n" + "\007actions\030\004 \003(\0132\035.google.privacy.dlp.v2.Action\"\362\r\n" + "\021DataProfileAction\022F\n" - + "\013export_data\030\001 \001(\0132/.google.p" - + "rivacy.dlp.v2.DataProfileAction.ExportH\000\022[\n" - + "\024pub_sub_notification\030\002 \001(\0132;.google." - + "privacy.dlp.v2.DataProfileAction.PubSubNotificationH\000\022[\n" - + "\024publish_to_chronicle\030\003 " - + "\001(\0132;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\000\022a\n" - + "\016publish_to_scc\030\004 \001(\0132G.google.privacy.dlp.v2.DataP" - + "rofileAction.PublishToSecurityCommandCenterH\000\022N\n\r" - + "tag_resources\030\010 \001(\01325.google.pr" - + "ivacy.dlp.v2.DataProfileAction.TagResourcesH\000\022h\n" - + "\033publish_to_dataplex_catalog\030\t \001" - + "(\0132A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\000\032\212\001\n" + + "\013export_data\030\001 \001(\0132/.goog" + + "le.privacy.dlp.v2.DataProfileAction.ExportH\000\022[\n" + + "\024pub_sub_notification\030\002 \001(\0132;.goo" + + "gle.privacy.dlp.v2.DataProfileAction.PubSubNotificationH\000\022[\n" + + "\024publish_to_chronicle\030\003" + + " \001(\0132;.google.privacy.dlp.v2.DataProfileAction.PublishToChronicleH\000\022a\n" + + "\016publish_to_scc\030\004 \001(\0132G.google.privacy.dlp.v2.D" + + "ataProfileAction.PublishToSecurityCommandCenterH\000\022N\n\r" + + "tag_resources\030\010 \001(\01325.googl" + + "e.privacy.dlp.v2.DataProfileAction.TagResourcesH\000\022h\n" + + "\033publish_to_dataplex_catalog\030\t" + + " \001(\0132A.google.privacy.dlp.v2.DataProfileAction.PublishToDataplexCatalogH\000\032\212\001\n" + "\006Export\022;\n\r" + "profile_table\030\001 \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022C\n" + "\025sample_findings_table\030\002" @@ -2476,10 +2478,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022PubSubNotification\022\r\n" + "\005topic\030\001 \001(\t\022A\n" + "\005event\030\002 \001(\01622.google.privacy.dlp.v2.DataProfileAction.EventType\022K\n" - + "\020pubsub_condition\030\003" - + " \001(\01321.google.privacy.dlp.v2.DataProfilePubSubCondition\022b\n" - + "\021detail_of_message\030\004 \001(\0162G.google.privacy.d" - + "lp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\n" + + "\020pubsub_condition\030\003 \001(\01321.google.pri" + + "vacy.dlp.v2.DataProfilePubSubCondition\022b\n" + + "\021detail_of_message\030\004 \001(\0162G.google.priva" + + "cy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel\"i\n" + "\013DetailLevel\022\034\n" + "\030DETAIL_LEVEL_UNSPECIFIED\020\000\022\021\n\r" + "TABLE_PROFILE\020\001\022\021\n\r" @@ -2490,8 +2492,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030PublishToDataplexCatalog\022\036\n" + "\026lower_data_risk_to_low\030\001 \001(\010\032\266\003\n" + "\014TagResources\022Z\n" - + "\016tag_conditions\030\001 \003(\0132B" - + ".google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\022L\n" + + "\016tag_conditions\030\001 \003" + + "(\0132B.google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition\022L\n" + "\032profile_generations_to_tag\030\002" + " \003(\0162(.google.privacy.dlp.v2.ProfileGeneration\022\036\n" + "\026lower_data_risk_to_low\030\003 \001(\010\032\251\001\n" @@ -2518,25 +2520,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032data_profile_resource_name\030\004 \001(\t\022\022\n\n" + "finding_id\030\005 \001(\t\022-\n" + "\ttimestamp\030\006 \001(\0132\032.google.protobuf.Timestamp\022C\n" - + "\010location\030\007 \001(\01321.google" - + ".privacy.dlp.v2.DataProfileFindingLocation\022F\n" - + "\023resource_visibility\030\010" - + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022\032\n" + + "\010location\030\007 \001(\01321.go" + + "ogle.privacy.dlp.v2.DataProfileFindingLocation\022F\n" + + "\023resource_visibility\030\010 \001(\0162).go" + + "ogle.privacy.dlp.v2.ResourceVisibility\022\032\n" + "\022full_resource_name\030\t \001(\t\022?\n" + "\020data_source_type\030\n" + " \001(\0132%.google.privacy.dlp.v2.DataSourceType\"\267\001\n" + "\032DataProfileFindingLocation\022\026\n" + "\016container_name\030\001 \001(\t\022g\n" - + "$data_profile_finding_record_location\030\002 \001(\01327.google.pr" - + "ivacy.dlp.v2.DataProfileFindingRecordLocationH\000B\030\n" + + "$data_profile_finding_record_location\030\002 \001(\01327.googl" + + "e.privacy.dlp.v2.DataProfileFindingRecordLocationH\000B\030\n" + "\026location_extra_details\"Q\n" + " DataProfileFindingRecordLocation\022-\n" + "\005field\030\001 \001(\0132\036.google.privacy.dlp.v2.FieldId\"\256\002\n" + "\024DataProfileJobConfig\022<\n" + "\010location\030\001 \001(\0132*.google.privacy.dlp.v2.DataProfileLocation\022\022\n\n" + "project_id\030\005 \001(\t\022a\n" - + "\035other_cloud_starting_location\030\010 \001(\0132:.google.privacy." - + "dlp.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + + "\035other_cloud_starting_location\030\010 \001(\0132:.google.priv" + + "acy.dlp.v2.OtherCloudDiscoveryStartingLocation\022\031\n" + "\021inspect_templates\030\007 \003(\t\022F\n" + "\024data_profile_actions\030\006" + " \003(\0132(.google.privacy.dlp.v2.DataProfileAction\"[\n\r" @@ -2572,15 +2574,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023processing_location\030\r" + " \001(\0132).google.privacy.dlp.v2.ProcessingLocationB\003\340A\001\032c\n" + "\tOrgConfig\022B\n" - + "\010location\030\001 \001" - + "(\01320.google.privacy.dlp.v2.DiscoveryStartingLocation\022\022\n\n" + + "\010location\030\001" + + " \001(\01320.google.privacy.dlp.v2.DiscoveryStartingLocation\022\022\n\n" + "project_id\030\002 \001(\t\"9\n" + "\006Status\022\026\n" + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\n\n" + "\006PAUSED\020\002:t\352Aq\n" - + "\"dlp.googleapis.com/DiscoveryConfig\022Kprojects/{project}/locatio" - + "ns/{location}/discoveryConfigs/{discovery_config}\"\366\003\n" + + "\"dlp.googleapis.com/DiscoveryConfig\022Kprojects/{project}/loc" + + "ations/{location}/discoveryConfigs/{discovery_config}\"\366\003\n" + "\017DiscoveryTarget\022J\n" + "\020big_query_target\030\001" + " \001(\0132..google.privacy.dlp.v2.BigQueryDiscoveryTargetH\000\022J\n" @@ -2596,10 +2598,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.privacy.dlp.v2.VertexDatasetDiscoveryTargetH\000B\010\n" + "\006target\"\256\002\n" + "\027BigQueryDiscoveryTarget\022C\n" - + "\006filter\030\001 \001(\0132." - + ".google.privacy.dlp.v2.DiscoveryBigQueryFilterB\003\340A\002\022F\n\n" - + "conditions\030\002 \001(\01322.google" - + ".privacy.dlp.v2.DiscoveryBigQueryConditions\022D\n" + + "\006filter\030\001 \001" + + "(\0132..google.privacy.dlp.v2.DiscoveryBigQueryFilterB\003\340A\002\022F\n\n" + + "conditions\030\002 \001(\01322.go" + + "ogle.privacy.dlp.v2.DiscoveryBigQueryConditions\022D\n" + "\007cadence\030\003" + " \001(\01321.google.privacy.dlp.v2.DiscoveryGenerationCadenceH\000\0223\n" + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\013\n" @@ -2607,10 +2609,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027DiscoveryBigQueryFilter\022@\n" + "\006tables\030\001" + " \001(\0132..google.privacy.dlp.v2.BigQueryTableCollectionH\000\022]\n" - + "\014other_tables\030\002 \001(\0132E.google.privacy.dlp.v2." - + "DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\000\022@\n" - + "\017table_reference\030\003" - + " \001(\0132%.google.privacy.dlp.v2.TableReferenceH\000\032\030\n" + + "\014other_tables\030\002 \001(\0132E.google.privacy.dlp" + + ".v2.DiscoveryBigQueryFilter.AllOtherBigQueryTablesH\000\022@\n" + + "\017table_reference\030\003 \001(\0132%." + + "google.privacy.dlp.v2.TableReferenceH\000\032\030\n" + "\026AllOtherBigQueryTablesB\010\n" + "\006filter\"g\n" + "\027BigQueryTableCollection\022A\n" @@ -2620,11 +2622,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033DiscoveryBigQueryConditions\0221\n\r" + "created_after\030\001 \001(\0132\032.google.protobuf.Timestamp\022:\n" + "\005types\030\002 \001(\0132).google.privacy.dlp.v2.BigQueryTableTypesH\000\022M\n" - + "\017type_collection\030\003" - + " \001(\01622.google.privacy.dlp.v2.BigQueryTableTypeCollectionH\000\022V\n" - + "\r" - + "or_conditions\030\004 \001(\0132?.google.privacy.dl" - + "p.v2.DiscoveryBigQueryConditions.OrConditions\032Q\n" + + "\017type_collection\030\003 \001(\01622.google.pri" + + "vacy.dlp.v2.BigQueryTableTypeCollectionH\000\022V\n\r" + + "or_conditions\030\004 \001(\0132?.google.privac" + + "y.dlp.v2.DiscoveryBigQueryConditions.OrConditions\032Q\n" + "\014OrConditions\022\025\n\r" + "min_row_count\030\001 \001(\005\022*\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.DurationB\020\n" @@ -2634,8 +2635,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.privacy.dlp.v2.DiscoverySchemaModifiedCadence\022T\n" + "\026table_modified_cadence\030\002" + " \001(\01324.google.privacy.dlp.v2.DiscoveryTableModifiedCadence\022i\n" - + "!inspect_template_modified_cadence\030\003 \001(\0132>.goo" - + "gle.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\022L\n" + + "!inspect_template_modified_cadence\030\003 \001(\0132>" + + ".google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\022L\n" + "\021refresh_frequency\030\004" + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\246\001\n" + "\035DiscoveryTableModifiedCadence\022?\n" @@ -2649,25 +2650,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tfrequency\030\001" + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"\277\002\n" + "\027CloudSqlDiscoveryTarget\022C\n" - + "\006filter\030\001 \001(\0132..goog" - + "le.privacy.dlp.v2.DiscoveryCloudSqlFilterB\003\340A\002\022F\n\n" - + "conditions\030\002 \001(\01322.google.priv" - + "acy.dlp.v2.DiscoveryCloudSqlConditions\022W\n" - + "\022generation_cadence\030\003 \001(\01329.google.priv" - + "acy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\000\0223\n" + + "\006filter\030\001 \001(\0132.." + + "google.privacy.dlp.v2.DiscoveryCloudSqlFilterB\003\340A\002\022F\n\n" + + "conditions\030\002 \001(\01322.google." + + "privacy.dlp.v2.DiscoveryCloudSqlConditions\022W\n" + + "\022generation_cadence\030\003 \001(\01329.google." + + "privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenceH\000\0223\n" + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\211\002\n" + "\027DiscoveryCloudSqlFilter\022G\n\n" - + "collection\030\001 \001(\0132" - + "1.google.privacy.dlp.v2.DatabaseResourceCollectionH\000\022B\n" - + "\006others\030\002 \001(\01320.google.pr" - + "ivacy.dlp.v2.AllOtherDatabaseResourcesH\000\022W\n" - + "\033database_resource_reference\030\003 \001(\01320." - + "google.privacy.dlp.v2.DatabaseResourceReferenceH\000B\010\n" + + "collection\030\001 " + + "\001(\01321.google.privacy.dlp.v2.DatabaseResourceCollectionH\000\022B\n" + + "\006others\030\002 \001(\01320.googl" + + "e.privacy.dlp.v2.AllOtherDatabaseResourcesH\000\022W\n" + + "\033database_resource_reference\030\003 \001(" + + "\01320.google.privacy.dlp.v2.DatabaseResourceReferenceH\000B\010\n" + "\006filter\"r\n" + "\032DatabaseResourceCollection\022I\n" - + "\017include_regexes\030\001 \001(\0132..goo" - + "gle.privacy.dlp.v2.DatabaseResourceRegexesH\000B\t\n" + + "\017include_regexes\030\001 \001(\0132." + + ".google.privacy.dlp.v2.DatabaseResourceRegexesH\000B\t\n" + "\007pattern\"Y\n" + "\027DatabaseResourceRegexes\022>\n" + "\010patterns\030\001" @@ -2684,10 +2685,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010database\030\003 \001(\tB\003\340A\002\022\036\n" + "\021database_resource\030\004 \001(\tB\003\340A\002\"\332\003\n" + "\033DiscoveryCloudSqlConditions\022`\n" - + "\020database_engines\030\001 \003(\0162A.google.privac" - + "y.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\003\340A\001\022V\n" - + "\005types\030\003 \003(\0162G.google" - + ".privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\n" + + "\020database_engines\030\001 \003(\0162A.google.pr" + + "ivacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngineB\003\340A\001\022V\n" + + "\005types\030\003 \003(\0162G.go" + + "ogle.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType\"n\n" + "\016DatabaseEngine\022\037\n" + "\033DATABASE_ENGINE_UNSPECIFIED\020\000\022\"\n" + "\036ALL_SUPPORTED_DATABASE_ENGINES\020\001\022\t\n" @@ -2698,15 +2699,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "*DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES\020\001\022 \n" + "\034DATABASE_RESOURCE_TYPE_TABLE\020\002\"\227\005\n" + "\"DiscoveryCloudSqlGenerationCadence\022p\n" - + "\027schema_modified_cadence\030\001 \001(\0132O.go" - + "ogle.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence\022L\n" - + "\021refresh_frequency\030\002" - + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\022i\n" - + "!inspect_template_modified_cadence\030\003 \001(\0132>." - + "google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\032\305\002\n" + + "\027schema_modified_cadence\030\001 \001(\0132O.google.privacy.dlp.v2.DiscoveryCloudSq" + + "lGenerationCadence.SchemaModifiedCadence\022L\n" + + "\021refresh_frequency\030\002 \001(\01621.google.pri" + + "vacy.dlp.v2.DataProfileUpdateFrequency\022i\n" + + "!inspect_template_modified_cadence\030\003 \001(" + + "\0132>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\032\305\002\n" + "\025SchemaModifiedCadence\022y\n" - + "\005types\030\001 \003(\0162j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadenc" - + "e.SchemaModifiedCadence.CloudSqlSchemaModification\022D\n" + + "\005types\030\001 \003(\0162j.google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCa" + + "dence.SchemaModifiedCadence.CloudSqlSchemaModification\022D\n" + "\tfrequency\030\002 \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\"k\n" + "\032CloudSqlSchemaModification\022\'\n" + "#SQL_SCHEMA_MODIFICATION_UNSPECIFIED\020\000\022\017\n" @@ -2714,23 +2715,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017REMOVED_COLUMNS\020\002\"\030\n" + "\026SecretsDiscoveryTarget\"\333\002\n" + "\033CloudStorageDiscoveryTarget\022G\n" - + "\006filter\030\001 \001(\01322.google.privacy" - + ".dlp.v2.DiscoveryCloudStorageFilterB\003\340A\002\022L\n\n" - + "conditions\030\004 \001(\01323.google.privacy.dl" - + "p.v2.DiscoveryFileStoreConditionsB\003\340A\001\022`\n" - + "\022generation_cadence\030\002 \001(\0132=.google.priv" - + "acy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\003\340A\001H\000\0228\n" + + "\006filter\030\001 \001(\01322.google.pri" + + "vacy.dlp.v2.DiscoveryCloudStorageFilterB\003\340A\002\022L\n\n" + + "conditions\030\004 \001(\01323.google.privac" + + "y.dlp.v2.DiscoveryFileStoreConditionsB\003\340A\001\022`\n" + + "\022generation_cadence\030\002 \001(\0132=.google." + + "privacy.dlp.v2.DiscoveryCloudStorageGenerationCadenceB\003\340A\001H\000\0228\n" + "\010disabled\030\003 \001(\0132\037.google.privacy.dlp.v2.DisabledB\003\340A\001H\000B" + "\t\n" + "\007cadence\"\226\002\n" - + "\033DiscoveryCloudStorageFilter\022E\n" - + "\n" + + "\033DiscoveryCloudStorageFilter\022E\n\n" + "collection\030\001" + " \001(\0132*.google.privacy.dlp.v2.FileStoreCollectionB\003\340A\001H\000\022e\n" - + " cloud_storage_resource_reference\030\002 \001(\01324.google." - + "privacy.dlp.v2.CloudStorageResourceReferenceB\003\340A\001H\000\022?\n" - + "\006others\030d" - + " \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + + " cloud_storage_resource_reference\030\002 \001(\01324.goo" + + "gle.privacy.dlp.v2.CloudStorageResourceReferenceB\003\340A\001H\000\022?\n" + + "\006others\030d \001(\0132(.google" + + ".privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + "\006filter\"\247\001\n" + "\023FileStoreCollection\022G\n" + "\017include_regexes\030\001" @@ -2742,8 +2742,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010patterns\030\001" + " \003(\0132%.google.privacy.dlp.v2.FileStoreRegexB\003\340A\002\"p\n" + "\016FileStoreRegex\022L\n" - + "\023cloud_storage_regex\030\001" - + " \001(\0132(.google.privacy.dlp.v2.CloudStorageRegexB\003\340A\001H\000B\020\n" + + "\023cloud_storage_regex\030\001 \001(\0132(.google.p" + + "rivacy.dlp.v2.CloudStorageRegexB\003\340A\001H\000B\020\n" + "\016resource_regex\"R\n" + "\021CloudStorageRegex\022\035\n" + "\020project_id_regex\030\001 \001(\tB\003\340A\001\022\036\n" @@ -2754,13 +2754,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&DiscoveryCloudStorageGenerationCadence\022Q\n" + "\021refresh_frequency\030\001" + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\003\340A\001\022n\n" - + "!inspect_template_modified_cadence\030\002 \001(\0132>.google.p" - + "rivacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"\233\005\n" + + "!inspect_template_modified_cadence\030\002 \001(\0132>.goog" + + "le.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"\233\005\n" + "\037DiscoveryCloudStorageConditions\022{\n" - + "\032included_object_attributes\030\001 \003(\0162R.google.privacy.dlp.v2.Disco" - + "veryCloudStorageConditions.CloudStorageObjectAttributeB\003\340A\002\022{\n" - + "\032included_bucket_attributes\030\002 \003(\0162R.google.privacy.dlp.v2." - + "DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\003\340A\002\"\343\001\n" + + "\032included_object_attributes\030\001 \003(\0162R.google.privacy.dlp.v2.D" + + "iscoveryCloudStorageConditions.CloudStorageObjectAttributeB\003\340A\002\022{\n" + + "\032included_bucket_attributes\030\002 \003(\0162R.google.privacy.dlp" + + ".v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttributeB\003\340A\002\"\343\001\n" + "\033CloudStorageObjectAttribute\022.\n" + "*CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED\020\000\022\031\n" + "\025ALL_SUPPORTED_OBJECTS\020\001\022\014\n" @@ -2779,37 +2779,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DiscoveryFileStoreConditions\0226\n\r" + "created_after\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022/\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\001\022_\n" - + "\030cloud_storage_conditions\030\003 \001(\01326.google.privacy.dl" - + "p.v2.DiscoveryCloudStorageConditionsB\003\340A\001H\000B\014\n\n" + + "\030cloud_storage_conditions\030\003 \001(\01326.google.privac" + + "y.dlp.v2.DiscoveryCloudStorageConditionsB\003\340A\001H\000B\014\n\n" + "conditions\"\222\003\n" + "\031OtherCloudDiscoveryTarget\022D\n" - + "\020data_source_type\030\001" - + " \001(\0132%.google.privacy.dlp.v2.DataSourceTypeB\003\340A\002\022E\n" + + "\020data_source_type\030\001 \001(\0132%." + + "google.privacy.dlp.v2.DataSourceTypeB\003\340A\002\022E\n" + "\006filter\030\002" + " \001(\01320.google.privacy.dlp.v2.DiscoveryOtherCloudFilterB\003\340A\002\022M\n\n" + "conditions\030\003" + " \001(\01324.google.privacy.dlp.v2.DiscoveryOtherCloudConditionsB\003\340A\001\022Y\n" - + "\022generation_cadence\030\004 \001(\0132;.google.privacy.dlp.v2." - + "DiscoveryOtherCloudGenerationCadenceH\000\0223\n" + + "\022generation_cadence\030\004 \001(\0132;.google.privacy.dlp" + + ".v2.DiscoveryOtherCloudGenerationCadenceH\000\0223\n" + "\010disabled\030\005 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\206\002\n" + "\031DiscoveryOtherCloudFilter\022I\n\n" - + "collection\030\001 \001(\01323.googl" - + "e.privacy.dlp.v2.OtherCloudResourceCollectionH\000\022S\n" - + "\017single_resource\030\002 \001(\01328.googl" - + "e.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\000\022?\n" - + "\006others\030d" - + " \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + + "collection\030\001 \001(\01323.g" + + "oogle.privacy.dlp.v2.OtherCloudResourceCollectionH\000\022S\n" + + "\017single_resource\030\002 \001(\01328.g" + + "oogle.privacy.dlp.v2.OtherCloudSingleResourceReferenceH\000\022?\n" + + "\006others\030d \001(\0132(.googl" + + "e.privacy.dlp.v2.AllOtherResourcesB\003\340A\001H\000B\010\n" + "\006filter\"v\n" + "\034OtherCloudResourceCollection\022K\n" - + "\017include_regexes\030\001" - + " \001(\01320.google.privacy.dlp.v2.OtherCloudResourceRegexesH\000B\t\n" + + "\017include_regexes\030\001 \001(\01320.google.pr" + + "ivacy.dlp.v2.OtherCloudResourceRegexesH\000B\t\n" + "\007pattern\"]\n" + "\031OtherCloudResourceRegexes\022@\n" + "\010patterns\030\001 \003(\0132..google.privacy.dlp.v2.OtherCloudResourceRegex\"y\n" + "\027OtherCloudResourceRegex\022L\n" - + "\026amazon_s3_bucket_regex\030\001 \001(" - + "\0132*.google.privacy.dlp.v2.AmazonS3BucketRegexH\000B\020\n" + + "\026amazon_s3_bucket_regex\030\001" + + " \001(\0132*.google.privacy.dlp.v2.AmazonS3BucketRegexH\000B\020\n" + "\016resource_regex\"0\n" + "\017AwsAccountRegex\022\035\n" + "\020account_id_regex\030\001 \001(\tB\003\340A\001\"x\n" @@ -2820,7 +2820,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!OtherCloudSingleResourceReference\022A\n" + "\020amazon_s3_bucket\030\001" + " \001(\0132%.google.privacy.dlp.v2.AmazonS3BucketH\000B\n\n" - + "\010resource\"%\n\n" + + "\010resource\"%\n" + + "\n" + "AwsAccount\022\027\n\n" + "account_id\030\001 \001(\tB\003\340A\002\"b\n" + "\016AmazonS3Bucket\0226\n" @@ -2832,10 +2833,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132/.google.privacy.dlp.v2.AmazonS3BucketConditionsH\000B\014\n\n" + "conditions\"\331\003\n" + "\030AmazonS3BucketConditions\022U\n" - + "\014bucket_types\030\001 " - + "\003(\0162:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\003\340A\001\022g\n" - + "\026object_storage_classes\030\002 \003(\0162B.google.privacy.dl" - + "p.v2.AmazonS3BucketConditions.ObjectStorageClassB\003\340A\001\"T\n\n" + + "\014bucket_types\030\001" + + " \003(\0162:.google.privacy.dlp.v2.AmazonS3BucketConditions.BucketTypeB\003\340A\001\022g\n" + + "\026object_storage_classes\030\002 \003(\0162B.google.privac" + + "y.dlp.v2.AmazonS3BucketConditions.ObjectStorageClassB\003\340A\001\"T\n\n" + "BucketType\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022TYPE_ALL_SUPPORTED\020\001\022\030\n" @@ -2850,16 +2851,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$DiscoveryOtherCloudGenerationCadence\022Q\n" + "\021refresh_frequency\030\001" + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequencyB\003\340A\001\022n\n" - + "!inspect_template_modified_cadence\030\002 \001(\0132>.go" - + "ogle.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"W\n" + + "!inspect_template_modified_cadence\030\002 \001(\0132" + + ">.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadenceB\003\340A\001\"W\n" + "\031DiscoveryStartingLocation\022\031\n" - + "\017organization_id\030\001 \001(\003H\000", - "\022\023\n" + + "\017organization_id\030\001 \001", + "(\003H\000\022\023\n" + "\tfolder_id\030\002 \001(\003H\000B\n\n" + "\010location\"\207\002\n" + "#OtherCloudDiscoveryStartingLocation\022o\n" - + "\014aws_location\030\001 \001(\0132W.google.privacy.dlp.v2." - + "OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\000\032c\n" + + "\014aws_location\030\001 \001(\0132W.google.privacy.dlp" + + ".v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocationH\000\032c\n" + "\034AwsDiscoveryStartingLocation\022\024\n\n" + "account_id\030\002 \001(\tH\000\022$\n" + "\032all_asset_inventory_assets\030\003 \001(\010H\000B\007\n" @@ -2871,20 +2872,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.privacy.dlp.v2.DiscoveryVertexDatasetFilterB\003\340A\002\022K\n\n" + "conditions\030\002" + " \001(\01327.google.privacy.dlp.v2.DiscoveryVertexDatasetConditions\022\\\n" - + "\022generation_cadence\030\003 \001(\0132>.google.privacy.dlp.v2.Dis" - + "coveryVertexDatasetGenerationCadenceH\000\0223\n" + + "\022generation_cadence\030\003 \001(\0132>.google.privacy.dlp.v2" + + ".DiscoveryVertexDatasetGenerationCadenceH\000\0223\n" + "\010disabled\030\004 \001(\0132\037.google.privacy.dlp.v2.DisabledH\000B\t\n" + "\007cadence\"\216\002\n" + "\034DiscoveryVertexDatasetFilter\022D\n\n" - + "collection\030\001 \001(\0132..go" - + "ogle.privacy.dlp.v2.VertexDatasetCollectionH\000\022b\n" + + "collection\030\001 \001(\0132" + + "..google.privacy.dlp.v2.VertexDatasetCollectionH\000\022b\n" + "!vertex_dataset_resource_reference\030\002" + " \001(\01325.google.privacy.dlp.v2.VertexDatasetResourceReferenceH\000\022:\n" + "\006others\030d \001(\0132(.google.privacy.dlp.v2.AllOtherResourcesH\000B\010\n" + "\006filter\"s\n" + "\027VertexDatasetCollection\022M\n" - + "\026vertex_dataset_regexes\030\001 \001(\0132+.goo" - + "gle.privacy.dlp.v2.VertexDatasetRegexesH\000B\t\n" + + "\026vertex_dataset_regexes\030\001 \001(\0132+" + + ".google.privacy.dlp.v2.VertexDatasetRegexesH\000B\t\n" + "\007pattern\"X\n" + "\024VertexDatasetRegexes\022@\n" + "\010patterns\030\001" @@ -2897,10 +2898,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "created_after\030\001 \001(\0132\032.google.protobuf.Timestamp\022*\n" + "\007min_age\030\002 \001(\0132\031.google.protobuf.Duration\"\342\001\n" + "\'DiscoveryVertexDatasetGenerationCadence\022L\n" - + "\021refresh_frequency\030\001" - + " \001(\01621.google.privacy.dlp.v2.DataProfileUpdateFrequency\022i\n" - + "!inspect_template_modified_cadence\030\002 \001(\0132>." - + "google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\334\006\n" + + "\021refresh_frequency\030\001 \001(\01621.google.pri" + + "vacy.dlp.v2.DataProfileUpdateFrequency\022i\n" + + "!inspect_template_modified_cadence\030\002 \001(" + + "\0132>.google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence\"\334\006\n" + "\006DlpJob\022\014\n" + "\004name\030\001 \001(\t\022/\n" + "\004type\030\002 \001(\0162!.google.privacy.dlp.v2.DlpJobType\0225\n" @@ -2925,8 +2926,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010CANCELED\020\004\022\n\n" + "\006FAILED\020\005\022\n\n" + "\006ACTIVE\020\006:\177\352A|\n" - + "\031dlp.googleapis.com/DlpJob\022$projects/{project}/dlp" - + "Jobs/{dlp_job}\0229projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\t\n" + + "\031dlp.googleapis.com/DlpJob\022$projects/{project}" + + "/dlpJobs/{dlp_job}\0229projects/{project}/locations/{location}/dlpJobs/{dlp_job}B\t\n" + "\007details\"C\n" + "\020GetDlpJobRequest\022/\n" + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" @@ -2994,15 +2995,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024StoredInfoTypeConfig\022\024\n" + "\014display_name\030\001 \001(\t\022\023\n" + "\013description\030\002 \001(\t\022U\n" - + "\027large_custom_dictionary\030\003" - + " \001(\01322.google.privacy.dlp.v2.LargeCustomDictionaryConfigH\000\022F\n\n" + + "\027large_custom_dictionary\030\003 \001(\01322.google.privac" + + "y.dlp.v2.LargeCustomDictionaryConfigH\000\022F\n\n" + "dictionary\030\004" + " \001(\01320.google.privacy.dlp.v2.CustomInfoType.DictionaryH\000\022<\n" + "\005regex\030\005 \001(\0132+.google.privacy.dlp.v2.CustomInfoType.RegexH\000B\006\n" + "\004type\"s\n" + "\023StoredInfoTypeStats\022T\n" - + "\027large_custom_dictionary\030\001 \001(\01321.googl" - + "e.privacy.dlp.v2.LargeCustomDictionaryStatsH\000B\006\n" + + "\027large_custom_dictionary\030\001 \001(\01321.g" + + "oogle.privacy.dlp.v2.LargeCustomDictionaryStatsH\000B\006\n" + "\004type\"\251\002\n" + "\025StoredInfoTypeVersion\022;\n" + "\006config\030\001 \001(\0132+.google.privacy.dlp.v2.StoredInfoTypeConfig\022/\n" @@ -3014,18 +3015,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\t\022E\n" + "\017current_version\030\002" + " \001(\0132,.google.privacy.dlp.v2.StoredInfoTypeVersion\022F\n" - + "\020pending_versions\030\003 " - + "\003(\0132,.google.privacy.dlp.v2.StoredInfoTypeVersion:\301\002\352A\275\002\n" - + "!dlp.googleapis.com/StoredInfoType\022?organizations/{organization" - + "}/storedInfoTypes/{stored_info_type}\0225projects/{project}/storedInfoTypes/{stored" - + "_info_type}\022Torganizations/{organization}/locations/{location}/storedInfoTypes/{" - + "stored_info_type}\022Jprojects/{project}/lo" - + "cations/{location}/storedInfoTypes/{stored_info_type}\"\314\001\n" + + "\020pending_versions\030\003" + + " \003(\0132,.google.privacy.dlp.v2.StoredInfoTypeVersion:\301\002\352A\275\002\n" + + "!dlp.googleapis.com/StoredInfoType\022?organizations/{organiza" + + "tion}/storedInfoTypes/{stored_info_type}\0225projects/{project}/storedInfoTypes/{st" + + "ored_info_type}\022Torganizations/{organization}/locations/{location}/storedInfoTyp" + + "es/{stored_info_type}\022Jprojects/{project" + + "}/locations/{location}/storedInfoTypes/{stored_info_type}\"\314\001\n" + "\033CreateStoredInfoTypeRequest\0229\n" + "\006parent\030\001 \001(" + "\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredInfoType\022@\n" - + "\006config\030\002 \001(\013" - + "2+.google.privacy.dlp.v2.StoredInfoTypeConfigB\003\340A\002\022\033\n" + + "\006config\030\002" + + " \001(\0132+.google.privacy.dlp.v2.StoredInfoTypeConfigB\003\340A\002\022\033\n" + "\023stored_info_type_id\030\003 \001(\t\022\023\n" + "\013location_id\030\004 \001(\t\"\304\001\n" + "\033UpdateStoredInfoTypeRequest\0227\n" @@ -3037,8 +3038,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!dlp.googleapis.com/StoredInfoType\"\245\001\n" + "\032ListStoredInfoTypesRequest\0229\n" - + "\006parent\030\001 \001(" - + "\tB)\340A\002\372A#\022!dlp.googleapis.com/StoredInfoType\022\022\n\n" + + "\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\022!dlp.googleapis.com/StoredInfoType\022\022\n\n" + "page_token\030\002 \001(\t\022\021\n" + "\tpage_size\030\003 \001(\005\022\020\n" + "\010order_by\030\004 \001(\t\022\023\n" @@ -3053,8 +3054,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036HybridInspectJobTriggerRequest\0223\n" + "\004name\030\001 \001(\tB%\340A\002\372A\037\n" + "\035dlp.googleapis.com/JobTrigger\022=\n" - + "\013hybrid_item\030\003" - + " \001(\0132(.google.privacy.dlp.v2.HybridContentItem\"\214\001\n" + + "\013hybrid_item\030\003 \001(\0132(.go" + + "ogle.privacy.dlp.v2.HybridContentItem\"\214\001\n" + "\032HybridInspectDlpJobRequest\022/\n" + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" + "\031dlp.googleapis.com/DlpJob\022=\n" @@ -3062,15 +3063,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132(.google.privacy.dlp.v2.HybridContentItem\"\213\001\n" + "\021HybridContentItem\0220\n" + "\004item\030\001 \001(\0132\".google.privacy.dlp.v2.ContentItem\022D\n" - + "\017finding_details\030\002 \001(\0132+.goog" - + "le.privacy.dlp.v2.HybridFindingDetails\"\260\002\n" + + "\017finding_details\030\002 \001(\0132+." + + "google.privacy.dlp.v2.HybridFindingDetails\"\260\002\n" + "\024HybridFindingDetails\022;\n" + "\021container_details\030\001 \001(\0132 .google.privacy.dlp.v2.Container\022\023\n" + "\013file_offset\030\002 \001(\003\022\022\n\n" + "row_offset\030\003 \001(\003\022:\n\r" + "table_options\030\004 \001(\0132#.google.privacy.dlp.v2.TableOptions\022G\n" - + "\006labels\030\005 \003(" - + "\01327.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\032-\n" + + "\006labels\030\005" + + " \003(\01327.google.privacy.dlp.v2.HybridFindingDetails.LabelsEntry\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"\027\n" @@ -3107,10 +3108,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036ListColumnDataProfilesResponse\022F\n" + "\024column_data_profiles\030\001" + " \003(\0132(.google.privacy.dlp.v2.ColumnDataProfile\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\313\001\n\r" + + "\017next_page_token\030\002 \001(\t\"\313\001\n" + + "\r" + "DataRiskLevel\022F\n" - + "\005score\030\001 \001(\01627.google.priva" - + "cy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\n" + + "\005score\030\001 \001(\01627.google.p" + + "rivacy.dlp.v2.DataRiskLevel.DataRiskLevelScore\"r\n" + "\022DataRiskLevelScore\022\032\n" + "\026RISK_SCORE_UNSPECIFIED\020\000\022\014\n" + "\010RISK_LOW\020\n" @@ -3129,16 +3131,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030table_data_profile_count\030\t \001(\003\022%\n" + "\035file_store_data_profile_count\030\n" + " \001(\003:\335\001\352A\331\001\n" - + "%dlp.googleapis.com/ProjectDataProfile\022\\organizatio" - + "ns/{organization}/locations/{location}/projectDataProfiles/{project_data_profile" - + "}\022Rprojects/{project}/locations/{locatio" - + "n}/projectDataProfiles/{project_data_profile}\"\311\002\n" + + "%dlp.googleapis.com/ProjectDataProfile\022\\organiz" + + "ations/{organization}/locations/{location}/projectDataProfiles/{project_data_pro" + + "file}\022Rprojects/{project}/locations/{loc" + + "ation}/projectDataProfiles/{project_data_profile}\"\311\002\n" + "\031DataProfileConfigSnapshot\022<\n" + "\016inspect_config\030\002 \001(\0132$.google.privacy.dlp.v2.InspectConfig\022I\n" - + "\020data_profile_job\030\003 " - + "\001(\0132+.google.privacy.dlp.v2.DataProfileJobConfigB\002\030\001\022@\n" - + "\020discovery_config\030\004 \001(\0132&" - + ".google.privacy.dlp.v2.DiscoveryConfig\022\035\n" + + "\020data_profile_job\030\003" + + " \001(\0132+.google.privacy.dlp.v2.DataProfileJobConfigB\002\030\001\022@\n" + + "\020discovery_config\030\004 \001" + + "(\0132&.google.privacy.dlp.v2.DiscoveryConfig\022\035\n" + "\025inspect_template_name\030\005 \001(\t\022B\n" + "\036inspect_template_modified_time\030\006" + " \001(\0132\032.google.protobuf.Timestamp\"\223\016\n" @@ -3160,8 +3162,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132&.google.privacy.dlp.v2.InfoTypeSummary\022E\n" + "\020other_info_types\030\034" + " \003(\0132+.google.privacy.dlp.v2.OtherInfoTypeSummary\022I\n" - + "\017config_snapshot\030\007 " - + "\001(\01320.google.privacy.dlp.v2.DataProfileConfigSnapshot\0226\n" + + "\017config_snapshot\030\007" + + " \001(\01320.google.privacy.dlp.v2.DataProfileConfigSnapshot\0226\n" + "\022last_modified_time\030\010 \001(\0132\032.google.protobuf.Timestamp\0223\n" + "\017expiration_time\030\t \001(\0132\032.google.protobuf.Timestamp\022\034\n" + "\024scanned_column_count\030\n" @@ -3172,8 +3174,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\003\022B\n" + "\021encryption_status\030\016" + " \001(\0162\'.google.privacy.dlp.v2.EncryptionStatus\022F\n" - + "\023resource_visibility\030\017 " - + "\001(\0162).google.privacy.dlp.v2.ResourceVisibility\022:\n" + + "\023resource_visibility\030\017" + + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022:\n" + "\026profile_last_generated\030\020 \001(\0132\032.google.protobuf.Timestamp\022T\n" + "\017resource_labels\030\021" + " \003(\0132;.google.privacy.dlp.v2.TableDataProfile.ResourceLabelsEntry\022/\n" @@ -3189,9 +3191,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" + "\004DONE\020\002:\323\001\352A\317\001\n" - + "#dlp.googleapis.com/TableDataProfile\022Xorganizations/{or" - + "ganization}/locations/{location}/tableDataProfiles/{table_data_profile}\022Nproject" - + "s/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\n\r" + + "#dlp.googleapis.com/TableDataProfile\022Xorganizations" + + "/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}\022Npro" + + "jects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}\"b\n\r" + "ProfileStatus\022\"\n" + "\006status\030\001 \001(\0132\022.google.rpc.Status\022-\n" + "\ttimestamp\030\003 \001(\0132\032.google.protobuf.Timestamp\"g\n" @@ -3226,10 +3228,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0162+.google.privacy.dlp.v2.UniquenessScoreLevel\022\027\n" + "\017free_text_score\030\r" + " \001(\001\022L\n" - + "\013column_type\030\016 \001(\01627.googl" - + "e.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\022P\n" - + "\014policy_state\030\017 \001(\0162:.google" - + ".privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\n" + + "\013column_type\030\016 \001(\01627.g" + + "oogle.privacy.dlp.v2.ColumnDataProfile.ColumnDataType\022P\n" + + "\014policy_state\030\017 \001(\0162:.go" + + "ogle.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState\"5\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" @@ -3259,9 +3261,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ColumnPolicyState\022#\n" + "\037COLUMN_POLICY_STATE_UNSPECIFIED\020\000\022\030\n" + "\024COLUMN_POLICY_TAGGED\020\001:\330\001\352A\324\001\n" - + "$dlp.googleapis.com/ColumnDataProfile\022Zorganizations/{or" - + "ganization}/locations/{location}/columnDataProfiles/{column_data_profile}\022Pproje" - + "cts/{project}/locations/{location}/columnDataProfiles/{column_data_profile}\"\350\016\n" + + "$dlp.googleapis.com/ColumnDataProfile\022Zorganizations" + + "/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}\022Pp" + + "rojects/{project}/locations/{location}/c" + + "olumnDataProfiles/{column_data_profile}\"\350\016\n" + "\024FileStoreDataProfile\022\014\n" + "\004name\030\001 \001(\t\022?\n" + "\020data_source_type\030\002" @@ -3273,28 +3276,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "location_type\030\024 \001(\t\022\027\n" + "\017file_store_path\030\006 \001(\t\022\025\n\r" + "full_resource\030\030 \001(\t\022I\n" - + "\017config_snapshot\030\007" - + " \001(\01320.google.privacy.dlp.v2.DataProfileConfigSnapshot\022<\n" + + "\017config_snapshot\030\007 \001(\01320.google." + + "privacy.dlp.v2.DataProfileConfigSnapshot\022<\n" + "\016profile_status\030\010 \001(\0132$.google.privacy.dlp.v2.ProfileStatus\022@\n" + "\005state\030\t \001(\01621.google.privacy.dlp.v2.FileStoreDataProfile.State\022:\n" + "\026profile_last_generated\030\n" + " \001(\0132\032.google.protobuf.Timestamp\022F\n" + "\023resource_visibility\030\013" + " \001(\0162).google.privacy.dlp.v2.ResourceVisibility\022B\n" - + "\021sensitivity_score\030\014 " - + "\001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + + "\021sensitivity_score\030\014" + + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + "\017data_risk_level\030\r" + " \001(\0132$.google.privacy.dlp.v2.DataRiskLevel\022/\n" + "\013create_time\030\016 \001(\0132\032.google.protobuf.Timestamp\0226\n" + "\022last_modified_time\030\017 \001(\0132\032.google.protobuf.Timestamp\022I\n" + "\026file_cluster_summaries\030\020" + " \003(\0132).google.privacy.dlp.v2.FileClusterSummary\022`\n" - + "\023resource_attributes\030\021 \003(\0132C.g" - + "oogle.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\022X\n" - + "\017resource_labels\030\022" - + " \003(\0132?.google.privacy.dlp.v2.FileStoreDataProfile.ResourceLabelsEntry\022W\n" - + "\036file_store_info_type_summaries\030\025 \003(\0132/.go" - + "ogle.privacy.dlp.v2.FileStoreInfoTypeSummary\022C\n" + + "\023resource_attributes\030\021 \003(\013" + + "2C.google.privacy.dlp.v2.FileStoreDataProfile.ResourceAttributesEntry\022X\n" + + "\017resource_labels\030\022 \003(\0132?.google.privacy.dlp.v2.F" + + "ileStoreDataProfile.ResourceLabelsEntry\022W\n" + + "\036file_store_info_type_summaries\030\025 \003(\0132" + + "/.google.privacy.dlp.v2.FileStoreInfoTypeSummary\022C\n" + "\025sample_findings_table\030\026" + " \001(\0132$.google.privacy.dlp.v2.BigQueryTable\022\033\n" + "\023file_store_is_empty\030\027 \001(\010\022(\n" @@ -3311,10 +3314,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\010\n" + "\004DONE\020\002:\351\001\352A\345\001\n" - + "\'dlp.googleapis.com/FileStoreDataProfile\022aorganization" - + "s/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_pro" - + "file}\022Wprojects/{project}/locations/{loc" - + "ation}/fileStoreDataProfiles/{file_store_data_profile}\"?\n" + + "\'dlp.googleapis.com/FileStoreDataProfile\022aorganiza" + + "tions/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data" + + "_profile}\022Wprojects/{project}/locations/" + + "{location}/fileStoreDataProfiles/{file_store_data_profile}\"?\n" + "\003Tag\022\034\n" + "\024namespaced_tag_value\030\001 \001(\t\022\013\n" + "\003key\030\002 \001(\t\022\r\n" @@ -3339,15 +3342,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\'.google.privacy.dlp.v2.SensitivityScore\022=\n" + "\017data_risk_level\030\004 \001(\0132$.google.privacy.dlp.v2.DataRiskLevel\022,\n" + "\006errors\030\006 \003(\0132\034.google.privacy.dlp.v2.Error\022I\n" - + "\027file_extensions_scanned\030\007" - + " \003(\0132(.google.privacy.dlp.v2.FileExtensionInfo\022F\n" + + "\027file_extensions_scanned\030\007 \003(\0132(" + + ".google.privacy.dlp.v2.FileExtensionInfo\022F\n" + "\024file_extensions_seen\030\010" + " \003(\0132(.google.privacy.dlp.v2.FileExtensionInfo\022\026\n" + "\016no_files_exist\030\t \001(\010\"[\n" + "\034GetProjectDataProfileRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%dlp.googleap", - "is.com/ProjectDataProfile\"]\n" + + "%dlp.goog", + "leapis.com/ProjectDataProfile\"]\n" + "\036GetFileStoreDataProfileRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" + "%dlp.googleapis.com/ProjectDataProfile\"\300\001\n" @@ -3372,19 +3375,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\340A\002\372A&\n" + "$dlp.googleapis.com/ColumnDataProfile\"\352\005\n" + "\032DataProfilePubSubCondition\022X\n" - + "\013expressions\030\001 \001(\0132C.google.p" - + "rivacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\032\351\001\n" + + "\013expressions\030\001 \001(\0132C.goog" + + "le.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions\032\351\001\n" + "\017PubSubCondition\022b\n" - + "\022minimum_risk_score\030\001 \001(\0162D.google.priv" - + "acy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\000\022i\n" - + "\031minimum_sensitivity_score\030\002 \001(\0162D.google.privacy.dlp.v2.Da" - + "taProfilePubSubCondition.ProfileScoreBucketH\000B\007\n" + + "\022minimum_risk_score\030\001 \001(\0162D.google." + + "privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucketH\000\022i\n" + + "\031minimum_sensitivity_score\030\002 \001(\0162D.google.privacy.dlp.v" + + "2.DataProfilePubSubCondition.ProfileScoreBucketH\000B\007\n" + "\005value\032\253\002\n" + "\021PubSubExpressions\022s\n" - + "\020logical_operator\030\001 \001(\0162Y.google.privacy." - + "dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\022U\n\n" - + "conditions\030\002 \003(\0132A.google.privacy.dlp.v2.Da" - + "taProfilePubSubCondition.PubSubCondition\"J\n" + + "\020logical_operator\030\001 \001(\0162Y.google.priv" + + "acy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator\022U\n" + + "\n" + + "conditions\030\002 \003(\0132A.google.privacy.dlp.v" + + "2.DataProfilePubSubCondition.PubSubCondition\"J\n" + "\025PubSubLogicalOperator\022 \n" + "\034LOGICAL_OPERATOR_UNSPECIFIED\020\000\022\006\n" + "\002OR\020\001\022\007\n" @@ -3395,10 +3399,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016MEDIUM_OR_HIGH\020\002\"\340\001\n" + "\030DataProfilePubSubMessage\0228\n" + "\007profile\030\001 \001(\0132\'.google.privacy.dlp.v2.TableDataProfile\022G\n" - + "\022file_store_profile\030\003 \001(" - + "\0132+.google.privacy.dlp.v2.FileStoreDataProfile\022A\n" - + "\005event\030\002" - + " \001(\01622.google.privacy.dlp.v2.DataProfileAction.EventType\"\214\001\n" + + "\022file_store_profile\030\003" + + " \001(\0132+.google.privacy.dlp.v2.FileStoreDataProfile\022A\n" + + "\005event\030\002 \001(\01622.google.priva" + + "cy.dlp.v2.DataProfileAction.EventType\"\214\001\n" + "\027CreateConnectionRequest\0225\n" + "\006parent\030\001 \001(" + "\tB%\340A\002\372A\037\022\035dlp.googleapis.com/Connection\022:\n\n" @@ -3415,7 +3419,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030SearchConnectionsRequest\0225\n" + "\006parent\030\001 \001(" + "\tB%\340A\002\372A\037\022\035dlp.googleapis.com/Connection\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\"j\n" + "\027ListConnectionsResponse\0226\n" @@ -3439,9 +3444,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006errors\030\003 \003(\0132\034.google.privacy.dlp.v2.ErrorB\003\340A\003\022>\n" + "\tcloud_sql\030\004" + " \001(\0132).google.privacy.dlp.v2.CloudSqlPropertiesH\000:\261\001\352A\255\001\n" - + "\035dlp.googleapis.com/Connection\022@projects/{project}/" - + "locations/{location}/connections/{connection}\022Jorganizations/{organization}/loca" - + "tions/{location}/connections/{connection}B\014\n\n" + + "\035dlp.googleapis.com/Connection\022@projects/{proje" + + "ct}/locations/{location}/connections/{connection}\022Jorganizations/{organization}/" + + "locations/{location}/connections/{connection}B\014\n\n" + "properties\"[\n" + "\027SecretManagerCredential\022\025\n" + "\010username\030\001 \001(\tB\003\340A\002\022)\n" @@ -3454,8 +3459,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "cloud_sql_iam\030\003" + " \001(\0132,.google.privacy.dlp.v2.CloudSqlIamCredentialH\000\022\034\n" + "\017max_connections\030\004 \001(\005B\003\340A\002\022V\n" - + "\017database_engine\030\007 \001(\01628.googl" - + "e.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\003\340A\002\"f\n" + + "\017database_engine\030\007 \001(\01628.g" + + "oogle.privacy.dlp.v2.CloudSqlProperties.DatabaseEngineB\003\340A\002\"f\n" + "\016DatabaseEngine\022\033\n" + "\027DATABASE_ENGINE_UNKNOWN\020\000\022\031\n" + "\025DATABASE_ENGINE_MYSQL\020\001\022\034\n" @@ -3463,9 +3468,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "credential\"Z\n" + "\035DeleteTableDataProfileRequest\0229\n" + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#dlp.googleapis.com/TableDataProfile\"*\n" - + "\016DataSourceType\022\030\n" - + "\013data_source\030\001 \001(\tB\003\340A\003\"\364\002\n" + + "#dlp.googleapis.com/TableDataProfile\"%\n" + + "\016DataSourceType\022\023\n" + + "\013data_source\030\001 \001(\t\"\364\002\n" + "\017FileClusterType\022A\n" + "\007cluster\030\001" + " \001(\0162..google.privacy.dlp.v2.FileClusterType.ClusterH\000\"\210\002\n" @@ -3484,22 +3489,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "B\023\n" + "\021file_cluster_type\"\266\005\n" + "\022ProcessingLocation\022`\n" - + "\027image_fallback_location\030\001 \001(\0132?.google.privacy.dl" - + "p.v2.ProcessingLocation.ImageFallbackLocation\022f\n" - + "\032document_fallback_location\030\002 \001(" - + "\0132B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\032\027\n" + + "\027image_fallback_location\030\001 \001(\0132?.google.privacy.dlp" + + ".v2.ProcessingLocation.ImageFallbackLocation\022f\n" + + "\032document_fallback_location\030\002 \001(\013" + + "2B.google.privacy.dlp.v2.ProcessingLocation.DocumentFallbackLocation\032\027\n" + "\025MultiRegionProcessing\032\022\n" + "\020GlobalProcessing\032\321\001\n" + "\025ImageFallbackLocation\022`\n" - + "\027multi_region_processing\030d \001(\0132?.google.privacy.dlp.v2.Pr" - + "ocessingLocation.MultiRegionProcessing\022V\n" - + "\021global_processing\030\310\001 \001(\0132:.google.priv" - + "acy.dlp.v2.ProcessingLocation.GlobalProcessing\032\324\001\n" + + "\027multi_region_processing\030d" + + " \001(\0132?.google.privacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\022V\n" + + "\021global_processing\030\310\001 \001(\0132:.google.priva" + + "cy.dlp.v2.ProcessingLocation.GlobalProcessing\032\324\001\n" + "\030DocumentFallbackLocation\022`\n" - + "\027multi_region_processing\030d \001(\0132?.google.pr" - + "ivacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\022V\n" - + "\021global_processing\030\310\001 \001(" - + "\0132:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\n" + + "\027multi_region_processing\030d \001(\0132?.google.pri" + + "vacy.dlp.v2.ProcessingLocation.MultiRegionProcessing\022V\n" + + "\021global_processing\030\310\001 \001(\013" + + "2:.google.privacy.dlp.v2.ProcessingLocation.GlobalProcessing\"K\n" + "\027SaveToGcsFindingsOutput\0220\n" + "\010findings\030\001 \003(\0132\036.google.privacy.dlp.v2.Finding\"\267\002\n" + "\006Domain\0228\n" @@ -3584,7 +3589,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031MATCHING_TYPE_UNSPECIFIED\020\000\022\034\n" + "\030MATCHING_TYPE_FULL_MATCH\020\001\022\037\n" + "\033MATCHING_TYPE_PARTIAL_MATCH\020\002\022\037\n" - + "\033MATCHING_TYPE_INVERSE_MATCH\020\003*M\n\r" + + "\033MATCHING_TYPE_INVERSE_MATCH\020\003*M\n" + + "\r" + "ContentOption\022\027\n" + "\023CONTENT_UNSPECIFIED\020\000\022\020\n" + "\014CONTENT_TEXT\020\001\022\021\n\r" @@ -3603,8 +3609,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023StoredInfoTypeState\022&\n" + "\"STORED_INFO_TYPE_STATE_UNSPECIFIED\020\000\022\013\n" + "\007PENDING\020\001\022\t\n" - + "\005READY\020\002\022\n" - + "\n" + + "\005READY\020\002\022\n\n" + "\006FAILED\020\003\022\013\n" + "\007INVALID\020\004*\243\001\n" + "\022ResourceVisibility\022#\n" @@ -3634,348 +3639,347 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tAVAILABLE\020\002\022\t\n" + "\005ERROR\020\0032\335v\n\n" + "DlpService\022\333\001\n" - + "\016InspectContent\022,.google.privacy.dlp.v2.InspectCon" - + "tentRequest\032-.google.privacy.dlp.v2.Insp" - + "ectContentResponse\"l\202\323\344\223\002f\"\'/v2/{parent=" - + "projects/*}/content:inspect:\001*Z8\"3/v2/{p" - + "arent=projects/*/locations/*}/content:inspect:\001*\022\314\001\n" - + "\013RedactImage\022).google.privacy.dlp.v2.RedactImageRequest\032*.google.pri" - + "vacy.dlp.v2.RedactImageResponse\"f\202\323\344\223\002`\"" - + "$/v2/{parent=projects/*}/image:redact:\001*" - + "Z5\"0/v2/{parent=projects/*/locations/*}/image:redact:\001*\022\352\001\n" - + "\021DeidentifyContent\022/.google.privacy.dlp.v2.DeidentifyContentR" - + "equest\0320.google.privacy.dlp.v2.Deidentif" - + "yContentResponse\"r\202\323\344\223\002l\"*/v2/{parent=pr" - + "ojects/*}/content:deidentify:\001*Z;\"6/v2/{" - + "parent=projects/*/locations/*}/content:deidentify:\001*\022\352\001\n" - + "\021ReidentifyContent\022/.google.privacy.dlp.v2.ReidentifyContentRequ" - + "est\0320.google.privacy.dlp.v2.ReidentifyCo" - + "ntentResponse\"r\202\323\344\223\002l\"*/v2/{parent=proje" - + "cts/*}/content:reidentify:\001*Z;\"6/v2/{par" - + "ent=projects/*/locations/*}/content:reidentify:\001*\022\231\002\n\r" - + "ListInfoTypes\022+.google.privacy.dlp.v2.ListInfoTypesRequest\032,.googl" - + "e.privacy.dlp.v2.ListInfoTypesResponse\"\254\001\332A\006parent\202\323\344\223\002\234\001\022\r" - + "/v2/infoTypesZ$\022\"/v2/{parent=locations/*}/infoTypesZ/\022-/v2/{p" - + "arent=projects/*/locations/*}/infoTypesZ" - + "4\0222/v2/{parent=organizations/*/locations/*}/infoTypes\022\364\002\n" - + "\025CreateInspectTemplate\0223.google.privacy.dlp.v2.CreateInspectTem" - + "plateRequest\032&.google.privacy.dlp.v2.Ins" - + "pectTemplate\"\375\001\332A\027parent,inspect_templat" - + "e\202\323\344\223\002\334\001\"4/v2/{parent=projects/*/locatio" - + "ns/*}/inspectTemplates:\001*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTem" - + "plates:\001*Z-\"(/v2/{parent=projects/*}/ins" - + "pectTemplates:\001*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\001*\022\376\002\n" - + "\025UpdateInspectTemplate\0223.google.privacy.dlp.v2.U" - + "pdateInspectTemplateRequest\032&.google.pri" - + "vacy.dlp.v2.InspectTemplate\"\207\002\332A!name,in" - + "spect_template,update_mask\202\323\344\223\002\334\00124/v2/{" - + "name=projects/*/locations/*/inspectTemplates/*}:\001*Z>29/v2/{name=organizations/*/" - + "locations/*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001" - + "*Z22-/v2/{name=organizations/*/inspectTemplates/*}:\001*\022\317\002\n" - + "\022GetInspectTemplate\0220.google.privacy.dlp.v2.GetInspectTemplateR" - + "equest\032&.google.privacy.dlp.v2.InspectTe" - + "mplate\"\336\001\332A\004name\202\323\344\223\002\320\001\0224/v2/{name=proje" - + "cts/*/locations/*/inspectTemplates/*}Z;\0229/v2/{name=organizations/*/locations/*/i" - + "nspectTemplates/*}Z*\022(/v2/{name=projects" - + "/*/inspectTemplates/*}Z/\022-/v2/{name=organizations/*/inspectTemplates/*}\022\342\002\n" - + "\024ListInspectTemplates\0222.google.privacy.dlp.v2" - + ".ListInspectTemplatesRequest\0323.google.privacy.dlp.v2.ListInspectTemplatesRespons" - + "e\"\340\001\332A\006parent\202\323\344\223\002\320\001\0224/v2/{parent=projec" - + "ts/*/locations/*}/inspectTemplatesZ;\0229/v2/{parent=organizations/*/locations/*}/i" - + "nspectTemplatesZ*\022(/v2/{parent=projects/" - + "*}/inspectTemplatesZ/\022-/v2/{parent=organizations/*}/inspectTemplates\022\305\002\n" - + "\025DeleteInspectTemplate\0223.google.privacy.dlp.v2.D" - + "eleteInspectTemplateRequest\032\026.google.pro" - + "tobuf.Empty\"\336\001\332A\004name\202\323\344\223\002\320\001*4/v2/{name=" - + "projects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/location" - + "s/*/inspectTemplates/*}Z**(/v2/{name=pro" - + "jects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\022\214\003\n" - + "\030CreateDeidentifyTemplate\0226.google.privacy.dlp.v2.CreateDeidentifyTemplateReques" - + "t\032).google.privacy.dlp.v2.DeidentifyTemp" - + "late\"\214\002\332A\032parent,deidentify_template\202\323\344\223" - + "\002\350\001\"0/v2/{parent=organizations/*}/deiden" - + "tifyTemplates:\001*ZA\"\022\022*\"9/v2/{pa" - + "rent=organizations/*/locations/*}/discoveryConfigs:\001*\022\232\002\n" - + "\025UpdateDiscoveryConfig\0223.google.privacy.dlp.v2.UpdateDiscoveryC" - + "onfigRequest\032&.google.privacy.dlp.v2.Dis" - + "coveryConfig\"\243\001\332A!name,discovery_config," - + "update_mask\202\323\344\223\002y24/v2/{name=projects/*/" - + "locations/*/discoveryConfigs/*}:\001*Z>29/v" - + "2/{name=organizations/*/locations/*/discoveryConfigs/*}:\001*\022\361\001\n" - + "\022GetDiscoveryConfig\0220.google.privacy.dlp.v2.GetDiscoveryCo" + + "\016InspectContent\022,.google.privacy.dlp.v2.InspectCont" + + "entRequest\032-.google.privacy.dlp.v2.Inspe" + + "ctContentResponse\"l\202\323\344\223\002f\"\'/v2/{parent=p" + + "rojects/*}/content:inspect:\001*Z8\"3/v2/{pa" + + "rent=projects/*/locations/*}/content:inspect:\001*\022\314\001\n" + + "\013RedactImage\022).google.privacy.dlp.v2.RedactImageRequest\032*.google.priv" + + "acy.dlp.v2.RedactImageResponse\"f\202\323\344\223\002`\"$" + + "/v2/{parent=projects/*}/image:redact:\001*Z" + + "5\"0/v2/{parent=projects/*/locations/*}/image:redact:\001*\022\352\001\n" + + "\021DeidentifyContent\022/.google.privacy.dlp.v2.DeidentifyContentRe" + + "quest\0320.google.privacy.dlp.v2.Deidentify" + + "ContentResponse\"r\202\323\344\223\002l\"*/v2/{parent=pro" + + "jects/*}/content:deidentify:\001*Z;\"6/v2/{p" + + "arent=projects/*/locations/*}/content:deidentify:\001*\022\352\001\n" + + "\021ReidentifyContent\022/.google.privacy.dlp.v2.ReidentifyContentReque" + + "st\0320.google.privacy.dlp.v2.ReidentifyCon" + + "tentResponse\"r\202\323\344\223\002l\"*/v2/{parent=projec" + + "ts/*}/content:reidentify:\001*Z;\"6/v2/{pare" + + "nt=projects/*/locations/*}/content:reidentify:\001*\022\231\002\n\r" + + "ListInfoTypes\022+.google.privacy.dlp.v2.ListInfoTypesRequest\032,.google" + + ".privacy.dlp.v2.ListInfoTypesResponse\"\254\001\332A\006parent\202\323\344\223\002\234\001\022\r" + + "/v2/infoTypesZ$\022\"/v2/{parent=locations/*}/infoTypesZ/\022-/v2/{pa" + + "rent=projects/*/locations/*}/infoTypesZ4" + + "\0222/v2/{parent=organizations/*/locations/*}/infoTypes\022\364\002\n" + + "\025CreateInspectTemplate\0223.google.privacy.dlp.v2.CreateInspectTemp" + + "lateRequest\032&.google.privacy.dlp.v2.Insp" + + "ectTemplate\"\375\001\332A\027parent,inspect_template" + + "\202\323\344\223\002\334\001\"4/v2/{parent=projects/*/location" + + "s/*}/inspectTemplates:\001*Z>\"9/v2/{parent=organizations/*/locations/*}/inspectTemp" + + "lates:\001*Z-\"(/v2/{parent=projects/*}/insp" + + "ectTemplates:\001*Z2\"-/v2/{parent=organizations/*}/inspectTemplates:\001*\022\376\002\n" + + "\025UpdateInspectTemplate\0223.google.privacy.dlp.v2.Up" + + "dateInspectTemplateRequest\032&.google.priv" + + "acy.dlp.v2.InspectTemplate\"\207\002\332A!name,ins" + + "pect_template,update_mask\202\323\344\223\002\334\00124/v2/{n" + + "ame=projects/*/locations/*/inspectTemplates/*}:\001*Z>29/v2/{name=organizations/*/l" + + "ocations/*/inspectTemplates/*}:\001*Z-2(/v2/{name=projects/*/inspectTemplates/*}:\001*" + + "Z22-/v2/{name=organizations/*/inspectTemplates/*}:\001*\022\317\002\n" + + "\022GetInspectTemplate\0220.google.privacy.dlp.v2.GetInspectTemplateRe" + + "quest\032&.google.privacy.dlp.v2.InspectTem" + + "plate\"\336\001\332A\004name\202\323\344\223\002\320\001\0224/v2/{name=projec" + + "ts/*/locations/*/inspectTemplates/*}Z;\0229/v2/{name=organizations/*/locations/*/in" + + "spectTemplates/*}Z*\022(/v2/{name=projects/" + + "*/inspectTemplates/*}Z/\022-/v2/{name=organizations/*/inspectTemplates/*}\022\342\002\n" + + "\024ListInspectTemplates\0222.google.privacy.dlp.v2." + + "ListInspectTemplatesRequest\0323.google.privacy.dlp.v2.ListInspectTemplatesResponse" + + "\"\340\001\332A\006parent\202\323\344\223\002\320\001\0224/v2/{parent=project" + + "s/*/locations/*}/inspectTemplatesZ;\0229/v2/{parent=organizations/*/locations/*}/in" + + "spectTemplatesZ*\022(/v2/{parent=projects/*" + + "}/inspectTemplatesZ/\022-/v2/{parent=organizations/*}/inspectTemplates\022\305\002\n" + + "\025DeleteInspectTemplate\0223.google.privacy.dlp.v2.De" + + "leteInspectTemplateRequest\032\026.google.prot" + + "obuf.Empty\"\336\001\332A\004name\202\323\344\223\002\320\001*4/v2/{name=p" + + "rojects/*/locations/*/inspectTemplates/*}Z;*9/v2/{name=organizations/*/locations" + + "/*/inspectTemplates/*}Z**(/v2/{name=proj" + + "ects/*/inspectTemplates/*}Z/*-/v2/{name=organizations/*/inspectTemplates/*}\022\214\003\n" + + "\030CreateDeidentifyTemplate\0226.google.privac" + + "y.dlp.v2.CreateDeidentifyTemplateRequest\032).google.privacy.dlp.v2.DeidentifyTempl" + + "ate\"\214\002\332A\032parent,deidentify_template\202\323\344\223\002" + + "\350\001\"0/v2/{parent=organizations/*}/deident" + + "ifyTemplates:\001*ZA\"\022\022*\"9/v2/{par" + + "ent=organizations/*/locations/*}/discoveryConfigs:\001*\022\232\002\n" + + "\025UpdateDiscoveryConfig\0223.google.privacy.dlp.v2.UpdateDiscoveryCo" + "nfigRequest\032&.google.privacy.dlp.v2.Disc" - + "overyConfig\"\200\001\332A\004name\202\323\344\223\002s\0224/v2/{name=p" - + "rojects/*/locations/*/discoveryConfigs/*" - + "}Z;\0229/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\022\204\002\n" - + "\024ListDiscoveryConfigs\0222.google.privacy.dlp.v2.ListDisc" - + "overyConfigsRequest\0323.google.privacy.dlp" - + ".v2.ListDiscoveryConfigsResponse\"\202\001\332A\006pa" - + "rent\202\323\344\223\002s\0224/v2/{parent=projects/*/locat" - + "ions/*}/discoveryConfigsZ;\0229/v2/{parent=" - + "organizations/*/locations/*}/discoveryConfigs\022\347\001\n" - + "\025DeleteDiscoveryConfig\0223.google", - ".privacy.dlp.v2.DeleteDiscoveryConfigReq" - + "uest\032\026.google.protobuf.Empty\"\200\001\332A\004name\202\323" - + "\344\223\002s*4/v2/{name=projects/*/locations/*/d" - + "iscoveryConfigs/*}Z;*9/v2/{name=organiza" - + "tions/*/locations/*/discoveryConfigs/*}\022" - + "\337\001\n\014CreateDlpJob\022*.google.privacy.dlp.v2" - + ".CreateDlpJobRequest\032\035.google.privacy.dl" - + "p.v2.DlpJob\"\203\001\332A\022parent,inspect_job\332A\017pa" - + "rent,risk_job\202\323\344\223\002V\"\037/v2/{parent=project" - + "s/*}/dlpJobs:\001*Z0\"+/v2/{parent=projects/" - + "*/locations/*}/dlpJobs:\001*\022\373\001\n\013ListDlpJob" - + "s\022).google.privacy.dlp.v2.ListDlpJobsReq" - + "uest\032*.google.privacy.dlp.v2.ListDlpJobs" - + "Response\"\224\001\332A\006parent\202\323\344\223\002\204\001\022\037/v2/{parent" - + "=projects/*}/dlpJobsZ-\022+/v2/{parent=proj" - + "ects/*/locations/*}/dlpJobsZ2\0220/v2/{pare" - + "nt=organizations/*/locations/*}/dlpJobs\022" - + "\262\001\n\tGetDlpJob\022\'.google.privacy.dlp.v2.Ge" - + "tDlpJobRequest\032\035.google.privacy.dlp.v2.D" - + "lpJob\"]\332A\004name\202\323\344\223\002P\022\037/v2/{name=projects" - + "/*/dlpJobs/*}Z-\022+/v2/{name=projects/*/lo" - + "cations/*/dlpJobs/*}\022\261\001\n\014DeleteDlpJob\022*." - + "google.privacy.dlp.v2.DeleteDlpJobReques" - + "t\032\026.google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P" - + "*\037/v2/{name=projects/*/dlpJobs/*}Z-*+/v2" - + "/{name=projects/*/locations/*/dlpJobs/*}" - + "\022\276\001\n\014CancelDlpJob\022*.google.privacy.dlp.v" - + "2.CancelDlpJobRequest\032\026.google.protobuf." - + "Empty\"j\202\323\344\223\002d\"&/v2/{name=projects/*/dlpJ" - + "obs/*}:cancel:\001*Z7\"2/v2/{name=projects/*" - + "/locations/*/dlpJobs/*}:cancel:\001*\022\343\002\n\024Cr" - + "eateStoredInfoType\0222.google.privacy.dlp." - + "v2.CreateStoredInfoTypeRequest\032%.google." - + "privacy.dlp.v2.StoredInfoType\"\357\001\332A\rparen" - + "t,config\202\323\344\223\002\330\001\",/v2/{parent=organizatio" - + "ns/*}/storedInfoTypes:\001*Z=\"8/v2/{parent=" - + "organizations/*/locations/*}/storedInfoT" - + "ypes:\001*Z,\"\'/v2/{parent=projects/*}/store" - + "dInfoTypes:\001*Z8\"3/v2/{parent=projects/*/" - + "locations/*}/storedInfoTypes:\001*\022\355\002\n\024Upda" - + "teStoredInfoType\0222.google.privacy.dlp.v2" - + ".UpdateStoredInfoTypeRequest\032%.google.pr" - + "ivacy.dlp.v2.StoredInfoType\"\371\001\332A\027name,co" - + "nfig,update_mask\202\323\344\223\002\330\0012,/v2/{name=organ" - + "izations/*/storedInfoTypes/*}:\001*Z=28/v2/" - + "{name=organizations/*/locations/*/stored" - + "InfoTypes/*}:\001*Z,2\'/v2/{name=projects/*/" - + "storedInfoTypes/*}:\001*Z823/v2/{name=proje" - + "cts/*/locations/*/storedInfoTypes/*}:\001*\022" - + "\310\002\n\021GetStoredInfoType\022/.google.privacy.d" - + "lp.v2.GetStoredInfoTypeRequest\032%.google." - + "privacy.dlp.v2.StoredInfoType\"\332\001\332A\004name\202" - + "\323\344\223\002\314\001\022,/v2/{name=organizations/*/stored" - + "InfoTypes/*}Z:\0228/v2/{name=organizations/" - + "*/locations/*/storedInfoTypes/*}Z)\022\'/v2/" - + "{name=projects/*/storedInfoTypes/*}Z5\0223/" - + "v2/{name=projects/*/locations/*/storedIn" - + "foTypes/*}\022\333\002\n\023ListStoredInfoTypes\0221.goo" - + "gle.privacy.dlp.v2.ListStoredInfoTypesRe" - + "quest\0322.google.privacy.dlp.v2.ListStored" - + "InfoTypesResponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v" - + "2/{parent=organizations/*}/storedInfoTyp" - + "esZ:\0228/v2/{parent=organizations/*/locati" - + "ons/*}/storedInfoTypesZ)\022\'/v2/{parent=pr" - + "ojects/*}/storedInfoTypesZ5\0223/v2/{parent" - + "=projects/*/locations/*}/storedInfoTypes" - + "\022\277\002\n\024DeleteStoredInfoType\0222.google.priva" - + "cy.dlp.v2.DeleteStoredInfoTypeRequest\032\026." - + "google.protobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*," - + "/v2/{name=organizations/*/storedInfoType" - + "s/*}Z:*8/v2/{name=organizations/*/locati" - + "ons/*/storedInfoTypes/*}Z)*\'/v2/{name=pr" - + "ojects/*/storedInfoTypes/*}Z5*3/v2/{name" - + "=projects/*/locations/*/storedInfoTypes/" - + "*}\022\223\002\n\027ListProjectDataProfiles\0225.google." - + "privacy.dlp.v2.ListProjectDataProfilesRe" - + "quest\0326.google.privacy.dlp.v2.ListProjec" - + "tDataProfilesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022" - + "/v2/{parent=organizations/*/locatio" - + "ns/*}/fileStoreDataProfilesZ;\0229/v2/{pare" - + "nt=projects/*/locations/*}/fileStoreData" - + "Profiles\022\212\002\n\027GetFileStoreDataProfile\0225.g" - + "oogle.privacy.dlp.v2.GetFileStoreDataPro" - + "fileRequest\032+.google.privacy.dlp.v2.File" - + "StoreDataProfile\"\212\001\332A\004name\202\323\344\223\002}\022>/v2/{n" - + "ame=organizations/*/locations/*/fileStor" - + "eDataProfiles/*}Z;\0229/v2/{name=projects/*" - + "/locations/*/fileStoreDataProfiles/*}\022\373\001" - + "\n\032DeleteFileStoreDataProfile\0228.google.pr" - + "ivacy.dlp.v2.DeleteFileStoreDataProfileR" - + "equest\032\026.google.protobuf.Empty\"\212\001\332A\004name" - + "\202\323\344\223\002}*>/v2/{name=organizations/*/locati" - + "ons/*/fileStoreDataProfiles/*}Z;*9/v2/{n" - + "ame=projects/*/locations/*/fileStoreData" - + "Profiles/*}\022\366\001\n\023GetTableDataProfile\0221.go" - + "ogle.privacy.dlp.v2.GetTableDataProfileR" - + "equest\032\'.google.privacy.dlp.v2.TableData" - + "Profile\"\202\001\332A\004name\202\323\344\223\002u\022:/v2/{name=organ" - + "izations/*/locations/*/tableDataProfiles" - + "/*}Z7\0225/v2/{name=projects/*/locations/*/" - + "tableDataProfiles/*}\022\373\001\n\024GetColumnDataPr" - + "ofile\0222.google.privacy.dlp.v2.GetColumnD" - + "ataProfileRequest\032(.google.privacy.dlp.v" - + "2.ColumnDataProfile\"\204\001\332A\004name\202\323\344\223\002w\022;/v2" - + "/{name=organizations/*/locations/*/colum" - + "nDataProfiles/*}Z8\0226/v2/{name=projects/*" - + "/locations/*/columnDataProfiles/*}\022\353\001\n\026D" - + "eleteTableDataProfile\0224.google.privacy.d" - + "lp.v2.DeleteTableDataProfileRequest\032\026.go" - + "ogle.protobuf.Empty\"\202\001\332A\004name\202\323\344\223\002u*:/v2" - + "/{name=organizations/*/locations/*/table" - + "DataProfiles/*}Z7*5/v2/{name=projects/*/" - + "locations/*/tableDataProfiles/*}\022\303\001\n\023Hyb" - + "ridInspectDlpJob\0221.google.privacy.dlp.v2" - + ".HybridInspectDlpJobRequest\032,.google.pri" - + "vacy.dlp.v2.HybridInspectResponse\"K\332A\004na" - + "me\202\323\344\223\002>\"9/v2/{name=projects/*/locations" - + "/*/dlpJobs/*}:hybridInspect:\001*\022\221\001\n\014Finis" - + "hDlpJob\022*.google.privacy.dlp.v2.FinishDl" - + "pJobRequest\032\026.google.protobuf.Empty\"=\202\323\344" - + "\223\0027\"2/v2/{name=projects/*/locations/*/dl" - + "pJobs/*}:finish:\001*\022\362\001\n\020CreateConnection\022" - + "..google.privacy.dlp.v2.CreateConnection" - + "Request\032!.google.privacy.dlp.v2.Connecti" - + "on\"\212\001\332A\022parent, connection\202\323\344\223\002o\"//v2/{p" - + "arent=projects/*/locations/*}/connection" - + "s:\001*Z9\"4/v2/{parent=organizations/*/loca" - + "tions/*}/connections:\001*\022\327\001\n\rGetConnectio" - + "n\022+.google.privacy.dlp.v2.GetConnectionR" + + "overyConfig\"\243\001\332A!name,discovery_config,u" + + "pdate_mask\202\323\344\223\002y24/v2/{name=projects/*/l" + + "ocations/*/discoveryConfigs/*}:\001*Z>29/v2" + + "/{name=organizations/*/locations/*/discoveryConfigs/*}:\001*\022\361\001\n" + + "\022GetDiscoveryConfig\0220.google.privacy.dlp.v2.GetDiscoveryCon" + + "figRequest\032&.google.privacy.dlp.v2.Disco" + + "veryConfig\"\200\001\332A\004name\202\323\344\223\002s\0224/v2/{name=pr" + + "ojects/*/locations/*/discoveryConfigs/*}" + + "Z;\0229/v2/{name=organizations/*/locations/*/discoveryConfigs/*}\022\204\002\n" + + "\024ListDiscoveryConfigs\0222.google.privacy.dlp.v2.ListDisco" + + "veryConfigsRequest\0323.google.privacy.dlp." + + "v2.ListDiscoveryConfigsResponse\"\202\001\332A\006par" + + "ent\202\323\344\223\002s\0224/v2/{parent=projects/*/locati" + + "ons/*}/discoveryConfigsZ;\0229/v2/{parent=o" + + "rganizations/*/locations/*}/discoveryConfigs\022\347\001\n" + + "\025DeleteDiscoveryConfig\0223.google.", + "privacy.dlp.v2.DeleteDiscoveryConfigRequ" + + "est\032\026.google.protobuf.Empty\"\200\001\332A\004name\202\323\344" + + "\223\002s*4/v2/{name=projects/*/locations/*/di" + + "scoveryConfigs/*}Z;*9/v2/{name=organizat" + + "ions/*/locations/*/discoveryConfigs/*}\022\337" + + "\001\n\014CreateDlpJob\022*.google.privacy.dlp.v2." + + "CreateDlpJobRequest\032\035.google.privacy.dlp" + + ".v2.DlpJob\"\203\001\332A\022parent,inspect_job\332A\017par" + + "ent,risk_job\202\323\344\223\002V\"\037/v2/{parent=projects" + + "/*}/dlpJobs:\001*Z0\"+/v2/{parent=projects/*" + + "/locations/*}/dlpJobs:\001*\022\373\001\n\013ListDlpJobs" + + "\022).google.privacy.dlp.v2.ListDlpJobsRequ" + + "est\032*.google.privacy.dlp.v2.ListDlpJobsR" + + "esponse\"\224\001\332A\006parent\202\323\344\223\002\204\001\022\037/v2/{parent=" + + "projects/*}/dlpJobsZ-\022+/v2/{parent=proje" + + "cts/*/locations/*}/dlpJobsZ2\0220/v2/{paren" + + "t=organizations/*/locations/*}/dlpJobs\022\262" + + "\001\n\tGetDlpJob\022\'.google.privacy.dlp.v2.Get" + + "DlpJobRequest\032\035.google.privacy.dlp.v2.Dl" + + "pJob\"]\332A\004name\202\323\344\223\002P\022\037/v2/{name=projects/" + + "*/dlpJobs/*}Z-\022+/v2/{name=projects/*/loc" + + "ations/*/dlpJobs/*}\022\261\001\n\014DeleteDlpJob\022*.g" + + "oogle.privacy.dlp.v2.DeleteDlpJobRequest" + + "\032\026.google.protobuf.Empty\"]\332A\004name\202\323\344\223\002P*" + + "\037/v2/{name=projects/*/dlpJobs/*}Z-*+/v2/" + + "{name=projects/*/locations/*/dlpJobs/*}\022" + + "\276\001\n\014CancelDlpJob\022*.google.privacy.dlp.v2" + + ".CancelDlpJobRequest\032\026.google.protobuf.E" + + "mpty\"j\202\323\344\223\002d\"&/v2/{name=projects/*/dlpJo" + + "bs/*}:cancel:\001*Z7\"2/v2/{name=projects/*/" + + "locations/*/dlpJobs/*}:cancel:\001*\022\343\002\n\024Cre" + + "ateStoredInfoType\0222.google.privacy.dlp.v" + + "2.CreateStoredInfoTypeRequest\032%.google.p" + + "rivacy.dlp.v2.StoredInfoType\"\357\001\332A\rparent" + + ",config\202\323\344\223\002\330\001\",/v2/{parent=organization" + + "s/*}/storedInfoTypes:\001*Z=\"8/v2/{parent=o" + + "rganizations/*/locations/*}/storedInfoTy" + + "pes:\001*Z,\"\'/v2/{parent=projects/*}/stored" + + "InfoTypes:\001*Z8\"3/v2/{parent=projects/*/l" + + "ocations/*}/storedInfoTypes:\001*\022\355\002\n\024Updat" + + "eStoredInfoType\0222.google.privacy.dlp.v2." + + "UpdateStoredInfoTypeRequest\032%.google.pri" + + "vacy.dlp.v2.StoredInfoType\"\371\001\332A\027name,con" + + "fig,update_mask\202\323\344\223\002\330\0012,/v2/{name=organi" + + "zations/*/storedInfoTypes/*}:\001*Z=28/v2/{" + + "name=organizations/*/locations/*/storedI" + + "nfoTypes/*}:\001*Z,2\'/v2/{name=projects/*/s" + + "toredInfoTypes/*}:\001*Z823/v2/{name=projec" + + "ts/*/locations/*/storedInfoTypes/*}:\001*\022\310" + + "\002\n\021GetStoredInfoType\022/.google.privacy.dl" + + "p.v2.GetStoredInfoTypeRequest\032%.google.p" + + "rivacy.dlp.v2.StoredInfoType\"\332\001\332A\004name\202\323" + + "\344\223\002\314\001\022,/v2/{name=organizations/*/storedI" + + "nfoTypes/*}Z:\0228/v2/{name=organizations/*" + + "/locations/*/storedInfoTypes/*}Z)\022\'/v2/{" + + "name=projects/*/storedInfoTypes/*}Z5\0223/v" + + "2/{name=projects/*/locations/*/storedInf" + + "oTypes/*}\022\333\002\n\023ListStoredInfoTypes\0221.goog" + + "le.privacy.dlp.v2.ListStoredInfoTypesReq" + + "uest\0322.google.privacy.dlp.v2.ListStoredI" + + "nfoTypesResponse\"\334\001\332A\006parent\202\323\344\223\002\314\001\022,/v2" + + "/{parent=organizations/*}/storedInfoType" + + "sZ:\0228/v2/{parent=organizations/*/locatio" + + "ns/*}/storedInfoTypesZ)\022\'/v2/{parent=pro" + + "jects/*}/storedInfoTypesZ5\0223/v2/{parent=" + + "projects/*/locations/*}/storedInfoTypes\022" + + "\277\002\n\024DeleteStoredInfoType\0222.google.privac" + + "y.dlp.v2.DeleteStoredInfoTypeRequest\032\026.g" + + "oogle.protobuf.Empty\"\332\001\332A\004name\202\323\344\223\002\314\001*,/" + + "v2/{name=organizations/*/storedInfoTypes" + + "/*}Z:*8/v2/{name=organizations/*/locatio" + + "ns/*/storedInfoTypes/*}Z)*\'/v2/{name=pro" + + "jects/*/storedInfoTypes/*}Z5*3/v2/{name=" + + "projects/*/locations/*/storedInfoTypes/*" + + "}\022\223\002\n\027ListProjectDataProfiles\0225.google.p" + + "rivacy.dlp.v2.ListProjectDataProfilesReq" + + "uest\0326.google.privacy.dlp.v2.ListProject" + + "DataProfilesResponse\"\210\001\332A\006parent\202\323\344\223\002y\022<" + + "/v2/{parent=organizations/*/locations/*}" + + "/projectDataProfilesZ9\0227/v2/{parent=proj" + + "ects/*/locations/*}/projectDataProfiles\022" + + "\211\002\n\025ListTableDataProfiles\0223.google.priva" + + "cy.dlp.v2.ListTableDataProfilesRequest\0324" + + ".google.privacy.dlp.v2.ListTableDataProf" + + "ilesResponse\"\204\001\332A\006parent\202\323\344\223\002u\022:/v2/{par" + + "ent=organizations/*/locations/*}/tableDa" + + "taProfilesZ7\0225/v2/{parent=projects/*/loc" + + "ations/*}/tableDataProfiles\022\216\002\n\026ListColu" + + "mnDataProfiles\0224.google.privacy.dlp.v2.L" + + "istColumnDataProfilesRequest\0325.google.pr" + + "ivacy.dlp.v2.ListColumnDataProfilesRespo" + + "nse\"\206\001\332A\006parent\202\323\344\223\002w\022;/v2/{parent=organ" + + "izations/*/locations/*}/columnDataProfil" + + "esZ8\0226/v2/{parent=projects/*/locations/*" + + "}/columnDataProfiles\022\200\002\n\025GetProjectDataP" + + "rofile\0223.google.privacy.dlp.v2.GetProjec" + + "tDataProfileRequest\032).google.privacy.dlp" + + ".v2.ProjectDataProfile\"\206\001\332A\004name\202\323\344\223\002y\022<" + + "/v2/{name=organizations/*/locations/*/pr" + + "ojectDataProfiles/*}Z9\0227/v2/{name=projec" + + "ts/*/locations/*/projectDataProfiles/*}\022" + + "\235\002\n\031ListFileStoreDataProfiles\0227.google.p" + + "rivacy.dlp.v2.ListFileStoreDataProfilesR" + + "equest\0328.google.privacy.dlp.v2.ListFileS" + + "toreDataProfilesResponse\"\214\001\332A\006parent\202\323\344\223" + + "\002}\022>/v2/{parent=organizations/*/location" + + "s/*}/fileStoreDataProfilesZ;\0229/v2/{paren" + + "t=projects/*/locations/*}/fileStoreDataP" + + "rofiles\022\212\002\n\027GetFileStoreDataProfile\0225.go" + + "ogle.privacy.dlp.v2.GetFileStoreDataProf" + + "ileRequest\032+.google.privacy.dlp.v2.FileS" + + "toreDataProfile\"\212\001\332A\004name\202\323\344\223\002}\022>/v2/{na" + + "me=organizations/*/locations/*/fileStore" + + "DataProfiles/*}Z;\0229/v2/{name=projects/*/" + + "locations/*/fileStoreDataProfiles/*}\022\373\001\n" + + "\032DeleteFileStoreDataProfile\0228.google.pri" + + "vacy.dlp.v2.DeleteFileStoreDataProfileRe" + + "quest\032\026.google.protobuf.Empty\"\212\001\332A\004name\202" + + "\323\344\223\002}*>/v2/{name=organizations/*/locatio" + + "ns/*/fileStoreDataProfiles/*}Z;*9/v2/{na" + + "me=projects/*/locations/*/fileStoreDataP" + + "rofiles/*}\022\366\001\n\023GetTableDataProfile\0221.goo" + + "gle.privacy.dlp.v2.GetTableDataProfileRe" + + "quest\032\'.google.privacy.dlp.v2.TableDataP" + + "rofile\"\202\001\332A\004name\202\323\344\223\002u\022:/v2/{name=organi" + + "zations/*/locations/*/tableDataProfiles/" + + "*}Z7\0225/v2/{name=projects/*/locations/*/t" + + "ableDataProfiles/*}\022\373\001\n\024GetColumnDataPro" + + "file\0222.google.privacy.dlp.v2.GetColumnDa" + + "taProfileRequest\032(.google.privacy.dlp.v2" + + ".ColumnDataProfile\"\204\001\332A\004name\202\323\344\223\002w\022;/v2/" + + "{name=organizations/*/locations/*/column" + + "DataProfiles/*}Z8\0226/v2/{name=projects/*/" + + "locations/*/columnDataProfiles/*}\022\353\001\n\026De" + + "leteTableDataProfile\0224.google.privacy.dl" + + "p.v2.DeleteTableDataProfileRequest\032\026.goo" + + "gle.protobuf.Empty\"\202\001\332A\004name\202\323\344\223\002u*:/v2/" + + "{name=organizations/*/locations/*/tableD" + + "ataProfiles/*}Z7*5/v2/{name=projects/*/l" + + "ocations/*/tableDataProfiles/*}\022\303\001\n\023Hybr" + + "idInspectDlpJob\0221.google.privacy.dlp.v2." + + "HybridInspectDlpJobRequest\032,.google.priv" + + "acy.dlp.v2.HybridInspectResponse\"K\332A\004nam" + + "e\202\323\344\223\002>\"9/v2/{name=projects/*/locations/" + + "*/dlpJobs/*}:hybridInspect:\001*\022\221\001\n\014Finish" + + "DlpJob\022*.google.privacy.dlp.v2.FinishDlp" + + "JobRequest\032\026.google.protobuf.Empty\"=\202\323\344\223" + + "\0027\"2/v2/{name=projects/*/locations/*/dlp" + + "Jobs/*}:finish:\001*\022\362\001\n\020CreateConnection\022." + + ".google.privacy.dlp.v2.CreateConnectionR" + "equest\032!.google.privacy.dlp.v2.Connectio" - + "n\"v\332A\004name\202\323\344\223\002i\022//v2/{name=projects/*/l" - + "ocations/*/connections/*}Z6\0224/v2/{name=o" - + "rganizations/*/locations/*/connections/*" - + "}\022\352\001\n\017ListConnections\022-.google.privacy.d" - + "lp.v2.ListConnectionsRequest\032..google.pr" - + "ivacy.dlp.v2.ListConnectionsResponse\"x\332A" - + "\006parent\202\323\344\223\002i\022//v2/{parent=projects/*/lo" - + "cations/*}/connectionsZ6\0224/v2/{parent=or" - + "ganizations/*/locations/*}/connections\022\377" - + "\001\n\021SearchConnections\022/.google.privacy.dl" - + "p.v2.SearchConnectionsRequest\0320.google.p" - + "rivacy.dlp.v2.SearchConnectionsResponse\"" - + "\206\001\332A\006parent\202\323\344\223\002w\0226/v2/{parent=projects/" - + "*/locations/*}/connections:searchZ=\022;/v2" - + "/{parent=organizations/*/locations/*}/co" - + "nnections:search\022\322\001\n\020DeleteConnection\022.." - + "google.privacy.dlp.v2.DeleteConnectionRe" - + "quest\032\026.google.protobuf.Empty\"v\332A\004name\202\323" - + "\344\223\002i*//v2/{name=projects/*/locations/*/c" - + "onnections/*}Z6*4/v2/{name=organizations" - + "/*/locations/*/connections/*}\022\343\001\n\020Update" - + "Connection\022..google.privacy.dlp.v2.Updat" - + "eConnectionRequest\032!.google.privacy.dlp." - + "v2.Connection\"|\332A\004name\202\323\344\223\002o2//v2/{name=" - + "projects/*/locations/*/connections/*}:\001*" - + "Z924/v2/{name=organizations/*/locations/" - + "*/connections/*}:\001*\032F\312A\022dlp.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\353\002\n\031com.google.privacy.dlp.v" - + "2B\010DlpProtoP\001Z)cloud.google.com/go/dlp/a" - + "piv2/dlppb;dlppb\252\002\023Google.Cloud.Dlp.V2\312\002" - + "\023Google\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dl" - + "p::V2\352Ar\n\035dlp.googleapis.com/DlpContent\022" - + "\035projects/{project}/dlpContent\0222projects" - + "/{project}/locations/{location}/dlpConte" - + "nt\352A\\\n\'dlp.googleapis.com/OrganizationLo" - + "cation\0221organizations/{organization}/loc" - + "ations/{location}b\006proto3" + + "n\"\212\001\332A\022parent, connection\202\323\344\223\002o\"//v2/{pa" + + "rent=projects/*/locations/*}/connections" + + ":\001*Z9\"4/v2/{parent=organizations/*/locat" + + "ions/*}/connections:\001*\022\327\001\n\rGetConnection" + + "\022+.google.privacy.dlp.v2.GetConnectionRe" + + "quest\032!.google.privacy.dlp.v2.Connection" + + "\"v\332A\004name\202\323\344\223\002i\022//v2/{name=projects/*/lo" + + "cations/*/connections/*}Z6\0224/v2/{name=or" + + "ganizations/*/locations/*/connections/*}" + + "\022\352\001\n\017ListConnections\022-.google.privacy.dl" + + "p.v2.ListConnectionsRequest\032..google.pri" + + "vacy.dlp.v2.ListConnectionsResponse\"x\332A\006" + + "parent\202\323\344\223\002i\022//v2/{parent=projects/*/loc" + + "ations/*}/connectionsZ6\0224/v2/{parent=org" + + "anizations/*/locations/*}/connections\022\377\001" + + "\n\021SearchConnections\022/.google.privacy.dlp" + + ".v2.SearchConnectionsRequest\0320.google.pr" + + "ivacy.dlp.v2.SearchConnectionsResponse\"\206" + + "\001\332A\006parent\202\323\344\223\002w\0226/v2/{parent=projects/*" + + "/locations/*}/connections:searchZ=\022;/v2/" + + "{parent=organizations/*/locations/*}/con" + + "nections:search\022\322\001\n\020DeleteConnection\022..g" + + "oogle.privacy.dlp.v2.DeleteConnectionReq" + + "uest\032\026.google.protobuf.Empty\"v\332A\004name\202\323\344" + + "\223\002i*//v2/{name=projects/*/locations/*/co" + + "nnections/*}Z6*4/v2/{name=organizations/" + + "*/locations/*/connections/*}\022\343\001\n\020UpdateC" + + "onnection\022..google.privacy.dlp.v2.Update" + + "ConnectionRequest\032!.google.privacy.dlp.v" + + "2.Connection\"|\332A\004name\202\323\344\223\002o2//v2/{name=p" + + "rojects/*/locations/*/connections/*}:\001*Z" + + "924/v2/{name=organizations/*/locations/*" + + "/connections/*}:\001*\032F\312A\022dlp.googleapis.co" + + "m\322A.https://www.googleapis.com/auth/clou" + + "d-platformB\353\002\n\031com.google.privacy.dlp.v2" + + "B\010DlpProtoP\001Z)cloud.google.com/go/dlp/ap" + + "iv2/dlppb;dlppb\252\002\023Google.Cloud.Dlp.V2\312\002\023" + + "Google\\Cloud\\Dlp\\V2\352\002\026Google::Cloud::Dlp" + + "::V2\352Ar\n\035dlp.googleapis.com/DlpContent\022\035" + + "projects/{project}/dlpContent\0222projects/" + + "{project}/locations/{location}/dlpConten" + + "t\352A\\\n\'dlp.googleapis.com/OrganizationLoc" + + "ation\0221organizations/{organization}/loca" + + "tions/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java index 50367cdc93d2..186edfe5744b 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummary.java @@ -125,7 +125,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7843 + * google/privacy/dlp/v2/dlp.proto;l=7849 * @return The estimatedPrevalence. */ @java.lang.Override @@ -723,7 +723,7 @@ public com.google.privacy.dlp.v2.InfoTypeOrBuilder getInfoTypeOrBuilder() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7843 + * google/privacy/dlp/v2/dlp.proto;l=7849 * @return The estimatedPrevalence. */ @java.lang.Override @@ -742,7 +742,7 @@ public int getEstimatedPrevalence() { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7843 + * google/privacy/dlp/v2/dlp.proto;l=7849 * @param value The estimatedPrevalence to set. * @return This builder for chaining. */ @@ -765,7 +765,7 @@ public Builder setEstimatedPrevalence(int value) { * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7843 + * google/privacy/dlp/v2/dlp.proto;l=7849 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java index f772e292458f..47bd471fe9b7 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/InfoTypeSummaryOrBuilder.java @@ -71,7 +71,7 @@ public interface InfoTypeSummaryOrBuilder * int32 estimated_prevalence = 2 [deprecated = true]; * * @deprecated google.privacy.dlp.v2.InfoTypeSummary.estimated_prevalence is deprecated. See - * google/privacy/dlp/v2/dlp.proto;l=7843 + * google/privacy/dlp/v2/dlp.proto;l=7849 * @return The estimatedPrevalence. */ @java.lang.Deprecated diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java index 126e7a6f6d95..2e91a16b2a33 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/MatchingType.java @@ -25,7 +25,7 @@ *
  * Type of the match which can be applied to different ways of matching, like
  * Dictionary, regular expression and intersecting with findings of another
- * info type.
+ * infoType.
  * 
* * Protobuf enum {@code google.privacy.dlp.v2.MatchingType} @@ -47,9 +47,9 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { *
    * Full match.
    *
-   * - Dictionary: join of Dictionary results matched complete finding quote
-   * - Regex: all regex matches fill a finding quote start to end
-   * - Exclude info type: completely inside affecting info types findings
+   * - Dictionary: join of Dictionary results matched the complete finding quote
+   * - Regex: all regex matches fill a finding quote from start to end
+   * - Exclude infoType: completely inside affecting infoTypes findings
    * 
* * MATCHING_TYPE_FULL_MATCH = 1; @@ -63,7 +63,7 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { * * - Dictionary: at least one of the tokens in the finding matches * - Regex: substring of the finding matches - * - Exclude info type: intersects with affecting info types findings + * - Exclude infoType: intersects with affecting infoTypes findings *
* * MATCHING_TYPE_PARTIAL_MATCH = 2; @@ -77,7 +77,7 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { * * - Dictionary: no tokens in the finding match the dictionary * - Regex: finding doesn't match the regex - * - Exclude info type: no intersection with affecting info types findings + * - Exclude infoType: no intersection with affecting infoTypes findings * * * MATCHING_TYPE_INVERSE_MATCH = 3; @@ -103,9 +103,9 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { *
    * Full match.
    *
-   * - Dictionary: join of Dictionary results matched complete finding quote
-   * - Regex: all regex matches fill a finding quote start to end
-   * - Exclude info type: completely inside affecting info types findings
+   * - Dictionary: join of Dictionary results matched the complete finding quote
+   * - Regex: all regex matches fill a finding quote from start to end
+   * - Exclude infoType: completely inside affecting infoTypes findings
    * 
* * MATCHING_TYPE_FULL_MATCH = 1; @@ -120,7 +120,7 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { * * - Dictionary: at least one of the tokens in the finding matches * - Regex: substring of the finding matches - * - Exclude info type: intersects with affecting info types findings + * - Exclude infoType: intersects with affecting infoTypes findings * * * MATCHING_TYPE_PARTIAL_MATCH = 2; @@ -135,7 +135,7 @@ public enum MatchingType implements com.google.protobuf.ProtocolMessageEnum { * * - Dictionary: no tokens in the finding match the dictionary * - Regex: finding doesn't match the regex - * - Exclude info type: no intersection with affecting info types findings + * - Exclude infoType: no intersection with affecting infoTypes findings * * * MATCHING_TYPE_INVERSE_MATCH = 3; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReference.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReference.java index c8b610f12a6e..c53948d68631 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReference.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReference.java @@ -23,7 +23,8 @@ * * *
- * Identifies a single Vertex AI dataset.
+ * Identifies a single Vertex AI resource. Only datasets are
+ * supported.
  * 
* * Protobuf type {@code google.privacy.dlp.v2.VertexDatasetResourceReference} @@ -74,8 +75,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The name of the dataset resource. If set within a project-level
+   * Required. The name of the Vertex AI resource. If set within a project-level
    * configuration, the specified resource must be within the project.
+   * Examples:
+   *
+   * * `projects/{project}/locations/{location}/datasets/{dataset}`
    * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -99,8 +103,11 @@ public java.lang.String getDatasetResourceName() { * * *
-   * Required. The name of the dataset resource. If set within a project-level
+   * Required. The name of the Vertex AI resource. If set within a project-level
    * configuration, the specified resource must be within the project.
+   * Examples:
+   *
+   * * `projects/{project}/locations/{location}/datasets/{dataset}`
    * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -285,7 +292,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Identifies a single Vertex AI dataset.
+   * Identifies a single Vertex AI resource. Only datasets are
+   * supported.
    * 
* * Protobuf type {@code google.privacy.dlp.v2.VertexDatasetResourceReference} @@ -470,8 +478,11 @@ public Builder mergeFrom( * * *
-     * Required. The name of the dataset resource. If set within a project-level
+     * Required. The name of the Vertex AI resource. If set within a project-level
      * configuration, the specified resource must be within the project.
+     * Examples:
+     *
+     * * `projects/{project}/locations/{location}/datasets/{dataset}`
      * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -494,8 +505,11 @@ public java.lang.String getDatasetResourceName() { * * *
-     * Required. The name of the dataset resource. If set within a project-level
+     * Required. The name of the Vertex AI resource. If set within a project-level
      * configuration, the specified resource must be within the project.
+     * Examples:
+     *
+     * * `projects/{project}/locations/{location}/datasets/{dataset}`
      * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -518,8 +532,11 @@ public com.google.protobuf.ByteString getDatasetResourceNameBytes() { * * *
-     * Required. The name of the dataset resource. If set within a project-level
+     * Required. The name of the Vertex AI resource. If set within a project-level
      * configuration, the specified resource must be within the project.
+     * Examples:
+     *
+     * * `projects/{project}/locations/{location}/datasets/{dataset}`
      * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -541,8 +558,11 @@ public Builder setDatasetResourceName(java.lang.String value) { * * *
-     * Required. The name of the dataset resource. If set within a project-level
+     * Required. The name of the Vertex AI resource. If set within a project-level
      * configuration, the specified resource must be within the project.
+     * Examples:
+     *
+     * * `projects/{project}/locations/{location}/datasets/{dataset}`
      * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -560,8 +580,11 @@ public Builder clearDatasetResourceName() { * * *
-     * Required. The name of the dataset resource. If set within a project-level
+     * Required. The name of the Vertex AI resource. If set within a project-level
      * configuration, the specified resource must be within the project.
+     * Examples:
+     *
+     * * `projects/{project}/locations/{location}/datasets/{dataset}`
      * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReferenceOrBuilder.java b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReferenceOrBuilder.java index 186ecc02ea6a..dc2629768112 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReferenceOrBuilder.java +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/java/com/google/privacy/dlp/v2/VertexDatasetResourceReferenceOrBuilder.java @@ -28,8 +28,11 @@ public interface VertexDatasetResourceReferenceOrBuilder * * *
-   * Required. The name of the dataset resource. If set within a project-level
+   * Required. The name of the Vertex AI resource. If set within a project-level
    * configuration, the specified resource must be within the project.
+   * Examples:
+   *
+   * * `projects/{project}/locations/{location}/datasets/{dataset}`
    * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; @@ -42,8 +45,11 @@ public interface VertexDatasetResourceReferenceOrBuilder * * *
-   * Required. The name of the dataset resource. If set within a project-level
+   * Required. The name of the Vertex AI resource. If set within a project-level
    * configuration, the specified resource must be within the project.
+   * Examples:
+   *
+   * * `projects/{project}/locations/{location}/datasets/{dataset}`
    * 
* * string dataset_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; diff --git a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto index 84337cb698e3..dd98d7ce7bcb 100644 --- a/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto +++ b/java-dlp/proto-google-cloud-dlp-v2/src/main/proto/google/privacy/dlp/v2/dlp.proto @@ -4394,9 +4394,11 @@ message Action { // Publish summary to Cloud Security Command Center (Alpha). PublishSummaryToCscc publish_summary_to_cscc = 3; - // Publish findings to Cloud Datahub. - PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = - 5; + // Deprecated because Data Catalog is being turned down. Use + // publish_findings_to_dataplex_catalog to publish findings to Dataplex + // Universal Catalog. + PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5 + [deprecated = true]; // Publish findings as an aspect to Dataplex Universal Catalog. PublishFindingsToDataplexCatalog publish_findings_to_dataplex_catalog = 10; @@ -6460,10 +6462,14 @@ message VertexDatasetRegex { string project_id_regex = 1; } -// Identifies a single Vertex AI dataset. +// Identifies a single Vertex AI resource. Only datasets are +// supported. message VertexDatasetResourceReference { - // Required. The name of the dataset resource. If set within a project-level + // Required. The name of the Vertex AI resource. If set within a project-level // configuration, the specified resource must be within the project. + // Examples: + // + // * `projects/{project}/locations/{location}/datasets/{dataset}` string dataset_resource_name = 1 [(google.api.field_behavior) = REQUIRED]; } @@ -7239,30 +7245,30 @@ enum RelationalOperator { // Type of the match which can be applied to different ways of matching, like // Dictionary, regular expression and intersecting with findings of another -// info type. +// infoType. enum MatchingType { // Invalid. MATCHING_TYPE_UNSPECIFIED = 0; // Full match. // - // - Dictionary: join of Dictionary results matched complete finding quote - // - Regex: all regex matches fill a finding quote start to end - // - Exclude info type: completely inside affecting info types findings + // - Dictionary: join of Dictionary results matched the complete finding quote + // - Regex: all regex matches fill a finding quote from start to end + // - Exclude infoType: completely inside affecting infoTypes findings MATCHING_TYPE_FULL_MATCH = 1; // Partial match. // // - Dictionary: at least one of the tokens in the finding matches // - Regex: substring of the finding matches - // - Exclude info type: intersects with affecting info types findings + // - Exclude infoType: intersects with affecting infoTypes findings MATCHING_TYPE_PARTIAL_MATCH = 2; // Inverse match. // // - Dictionary: no tokens in the finding match the dictionary // - Regex: finding doesn't match the regex - // - Exclude info type: no intersection with affecting info types findings + // - Exclude infoType: no intersection with affecting infoTypes findings MATCHING_TYPE_INVERSE_MATCH = 3; } @@ -8780,14 +8786,14 @@ message DeleteTableDataProfileRequest { // Message used to identify the type of resource being profiled. message DataSourceType { - // Output only. An identifying string to the type of resource being profiled. + // A string that identifies the type of resource being profiled. // Current values: // // * google/bigquery/table // * google/project // * google/sql/table // * google/gcs/bucket - string data_source = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string data_source = 1; } // Message used to identify file cluster type being profiled. diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 9440f12124cb..921119752303 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -182,6 +182,20 @@ * * * + *

QueryData + *

Queries data from a natural language user query. + * + *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryData(QueryDataRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • queryDataCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. * @@ -1061,6 +1075,68 @@ public final UnaryCallable listMessag return stub.listMessagesCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries data from a natural language user query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
+   *   QueryDataRequest request =
+   *       QueryDataRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrompt("prompt-979805852")
+   *           .setContext(QueryDataContext.newBuilder().build())
+   *           .setGenerationOptions(GenerationOptions.newBuilder().build())
+   *           .build();
+   *   QueryDataResponse response = dataChatServiceClient.queryData(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 QueryDataResponse queryData(QueryDataRequest request) { + return queryDataCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries data from a natural language user query. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) {
+   *   QueryDataRequest request =
+   *       QueryDataRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPrompt("prompt-979805852")
+   *           .setContext(QueryDataContext.newBuilder().build())
+   *           .setGenerationOptions(GenerationOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       dataChatServiceClient.queryDataCallable().futureCall(request);
+   *   // Do something.
+   *   QueryDataResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable queryDataCallable() { + return stub.queryDataCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java index 40b2a593cec8..d71601a299ee 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceSettings.java @@ -131,6 +131,11 @@ public UnaryCallSettings getConversationSe return ((DataChatServiceStubSettings) getStubSettings()).listMessagesSettings(); } + /** Returns the object with the settings used for calls to queryData. */ + public UnaryCallSettings queryDataSettings() { + return ((DataChatServiceStubSettings) getStubSettings()).queryDataSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -291,6 +296,11 @@ public ServerStreamingCallSettings.Builder chatSettings() return getStubSettingsBuilder().listMessagesSettings(); } + /** Returns the builder for the settings used for calls to queryData. */ + public UnaryCallSettings.Builder queryDataSettings() { + return getStubSettingsBuilder().queryDataSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json index 2319e37cfc04..1ec7f8c0ad97 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json @@ -72,6 +72,9 @@ }, "ListMessages": { "methods": ["listMessages", "listMessages", "listMessages", "listMessagesPagedCallable", "listMessagesCallable"] + }, + "QueryData": { + "methods": ["queryData", "queryDataCallable"] } } } diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java index de2cc88b09fe..29e5d04592c7 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStub.java @@ -34,6 +34,8 @@ import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; import com.google.cloud.geminidataanalytics.v1beta.Message; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -85,6 +87,10 @@ public UnaryCallable listMessagesCall throw new UnsupportedOperationException("Not implemented: listMessagesCallable()"); } + public UnaryCallable queryDataCallable() { + throw new UnsupportedOperationException("Not implemented: queryDataCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java index b7984d5f4bbb..e5bce3f36d81 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataChatServiceStubSettings.java @@ -57,6 +57,8 @@ import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; import com.google.cloud.geminidataanalytics.v1beta.Message; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; import com.google.cloud.geminidataanalytics.v1beta.StorageMessage; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; @@ -141,6 +143,7 @@ public class DataChatServiceStubSettings extends StubSettings listMessagesSettings; + private final UnaryCallSettings queryDataSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -341,6 +344,11 @@ public UnaryCallSettings getConversationSe return listMessagesSettings; } + /** Returns the object with the settings used for calls to queryData. */ + public UnaryCallSettings queryDataSettings() { + return queryDataSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -469,6 +477,7 @@ protected DataChatServiceStubSettings(Builder settingsBuilder) throws IOExceptio getConversationSettings = settingsBuilder.getConversationSettings().build(); listConversationsSettings = settingsBuilder.listConversationsSettings().build(); listMessagesSettings = settingsBuilder.listMessagesSettings().build(); + queryDataSettings = settingsBuilder.queryDataSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -489,6 +498,7 @@ public static class Builder extends StubSettings.Builder listMessagesSettings; + private final UnaryCallSettings.Builder queryDataSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -537,6 +547,7 @@ protected Builder(ClientContext clientContext) { getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); listMessagesSettings = PagedCallSettings.newBuilder(LIST_MESSAGES_PAGE_STR_FACT); + queryDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -547,6 +558,7 @@ protected Builder(ClientContext clientContext) { getConversationSettings, listConversationsSettings, listMessagesSettings, + queryDataSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -561,6 +573,7 @@ protected Builder(DataChatServiceStubSettings settings) { getConversationSettings = settings.getConversationSettings.toBuilder(); listConversationsSettings = settings.listConversationsSettings.toBuilder(); listMessagesSettings = settings.listMessagesSettings.toBuilder(); + queryDataSettings = settings.queryDataSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -571,6 +584,7 @@ protected Builder(DataChatServiceStubSettings settings) { getConversationSettings, listConversationsSettings, listMessagesSettings, + queryDataSettings, listLocationsSettings, getLocationSettings); } @@ -630,6 +644,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .queryDataSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -695,6 +714,11 @@ public ServerStreamingCallSettings.Builder chatSettings() return listMessagesSettings; } + /** Returns the builder for the settings used for calls to queryData. */ + public UnaryCallSettings.Builder queryDataSettings() { + return queryDataSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java index 8c5e2c391b60..b6570d000ca0 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataChatServiceStub.java @@ -39,6 +39,8 @@ import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; import com.google.cloud.geminidataanalytics.v1beta.Message; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -130,6 +132,17 @@ public class GrpcDataChatServiceStub extends DataChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + queryDataMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.geminidataanalytics.v1beta.DataChatService/QueryData") + .setRequestMarshaller(ProtoUtils.marshaller(QueryDataRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(QueryDataResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -162,6 +175,7 @@ public class GrpcDataChatServiceStub extends DataChatServiceStub { private final UnaryCallable listMessagesCallable; private final UnaryCallable listMessagesPagedCallable; + private final UnaryCallable queryDataCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -272,6 +286,16 @@ protected GrpcDataChatServiceStub( return builder.build(); }) .build(); + GrpcCallSettings queryDataTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryDataMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -325,6 +349,9 @@ protected GrpcDataChatServiceStub( this.listMessagesPagedCallable = callableFactory.createPagedCallable( listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); + this.queryDataCallable = + callableFactory.createUnaryCallable( + queryDataTransportSettings, settings.queryDataSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -385,6 +412,11 @@ public UnaryCallable listMessage return listMessagesPagedCallable; } + @Override + public UnaryCallable queryDataCallable() { + return queryDataCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java index 4f5d1a39b091..78212b036842 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataChatServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest; import com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse; import com.google.cloud.geminidataanalytics.v1beta.Message; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -290,6 +292,44 @@ public class HttpJsonDataChatServiceStub extends DataChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + queryDataMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.geminidataanalytics.v1beta.DataChatService/QueryData") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}:queryData", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryDataResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -369,6 +409,7 @@ public class HttpJsonDataChatServiceStub extends DataChatServiceStub { private final UnaryCallable listMessagesCallable; private final UnaryCallable listMessagesPagedCallable; + private final UnaryCallable queryDataCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -484,6 +525,17 @@ protected HttpJsonDataChatServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings queryDataTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryDataMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -540,6 +592,9 @@ protected HttpJsonDataChatServiceStub( this.listMessagesPagedCallable = callableFactory.createPagedCallable( listMessagesTransportSettings, settings.listMessagesSettings(), clientContext); + this.queryDataCallable = + callableFactory.createUnaryCallable( + queryDataTransportSettings, settings.queryDataSettings(), clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -563,6 +618,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getConversationMethodDescriptor); methodDescriptors.add(listConversationsMethodDescriptor); methodDescriptors.add(listMessagesMethodDescriptor); + methodDescriptors.add(queryDataMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -610,6 +666,11 @@ public UnaryCallable listMessage return listMessagesPagedCallable; } + @Override + public UnaryCallable queryDataCallable() { + return queryDataCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index eeec2b14cb7a..8f7f0d912c96 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -458,6 +458,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AgentContextReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AgentContextReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.AnalysisEvent", "queryAllDeclaredConstructors": true, @@ -782,6 +836,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference$Engine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Context", "queryAllDeclaredConstructors": true, @@ -1241,6 +1340,78 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Column", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Column$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Row", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Row$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Value", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult$Value$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Field", "queryAllDeclaredConstructors": true, @@ -1259,6 +1430,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest", "queryAllDeclaredConstructors": true, @@ -1646,6 +1835,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataContext", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataContext$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Schema", "queryAllDeclaredConstructors": true, @@ -1718,6 +1961,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference$Engine", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1beta.SpannerReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1beta.StorageMessage", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java index b91a7322cdf2..2ec644c88406 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientHttpJsonTest.java @@ -578,6 +578,66 @@ public void listMessagesExceptionTest2() throws Exception { } } + @Test + public void queryDataTest() throws Exception { + QueryDataResponse expectedResponse = + QueryDataResponse.newBuilder() + .setGeneratedQuery("generatedQuery-1655820167") + .setIntentExplanation("intentExplanation-258914851") + .setQueryResult(ExecutedQueryResult.newBuilder().build()) + .setNaturalLanguageAnswer("naturalLanguageAnswer425313727") + .addAllDisambiguationQuestion(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + + QueryDataResponse actualResponse = client.queryData(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryDataExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + client.queryData(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java index 78f0b8a9ae9e..b9b631d44020 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClientTest.java @@ -571,6 +571,63 @@ public void listMessagesExceptionTest2() throws Exception { } } + @Test + public void queryDataTest() throws Exception { + QueryDataResponse expectedResponse = + QueryDataResponse.newBuilder() + .setGeneratedQuery("generatedQuery-1655820167") + .setIntentExplanation("intentExplanation-258914851") + .setQueryResult(ExecutedQueryResult.newBuilder().build()) + .setNaturalLanguageAnswer("naturalLanguageAnswer425313727") + .addAllDisambiguationQuestion(new ArrayList()) + .build(); + mockDataChatService.addResponse(expectedResponse); + + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + + QueryDataResponse actualResponse = client.queryData(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDataChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryDataRequest actualRequest = ((QueryDataRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getPrompt(), actualRequest.getPrompt()); + Assert.assertEquals(request.getContext(), actualRequest.getContext()); + Assert.assertEquals(request.getGenerationOptions(), actualRequest.getGenerationOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryDataExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDataChatService.addException(exception); + + try { + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + client.queryData(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java index e4b1d3de53cb..6ad9e088bbf9 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataChatServiceImpl.java @@ -184,4 +184,25 @@ public void listMessages( Exception.class.getName()))); } } + + @Override + public void queryData( + QueryDataRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryDataResponse) { + requests.add(request); + responseObserver.onNext(((QueryDataResponse) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method QueryData, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryDataResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java index 100f97ba51da..4a094f0a6c3f 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java @@ -317,6 +317,52 @@ private DataChatServiceGrpc() {} return getListMessagesMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse> + getQueryDataMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryData", + requestType = com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.class, + responseType = com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse> + getQueryDataMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse> + getQueryDataMethod; + if ((getQueryDataMethod = DataChatServiceGrpc.getQueryDataMethod) == null) { + synchronized (DataChatServiceGrpc.class) { + if ((getQueryDataMethod = DataChatServiceGrpc.getQueryDataMethod) == null) { + DataChatServiceGrpc.getQueryDataMethod = + getQueryDataMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryData")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse + .getDefaultInstance())) + .setSchemaDescriptor(new DataChatServiceMethodDescriptorSupplier("QueryData")) + .build(); + } + } + } + return getQueryDataMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static DataChatServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -473,6 +519,20 @@ default void listMessages( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getListMessagesMethod(), responseObserver); } + + /** + * + * + *
+     * Queries data from a natural language user query.
+     * 
+ */ + default void queryData( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryDataMethod(), responseObserver); + } } /** @@ -615,6 +675,21 @@ public void listMessages( request, responseObserver); } + + /** + * + * + *
+     * Queries data from a natural language user query.
+     * 
+ */ + public void queryData( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryDataMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -724,6 +799,20 @@ public com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse listMess return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Queries data from a natural language user query.
+     * 
+ */ + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse queryData( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryDataMethod(), getCallOptions(), request); + } } /** @@ -826,6 +915,19 @@ public com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse listMess return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListMessagesMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Queries data from a natural language user query.
+     * 
+ */ + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse queryData( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryDataMethod(), getCallOptions(), request); + } } /** @@ -922,6 +1024,20 @@ protected DataChatServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListMessagesMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Queries data from a natural language user query.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse> + queryData(com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryDataMethod(), getCallOptions()), request); + } } private static final int METHODID_CHAT = 0; @@ -930,6 +1046,7 @@ protected DataChatServiceFutureStub build( private static final int METHODID_GET_CONVERSATION = 3; private static final int METHODID_LIST_CONVERSATIONS = 4; private static final int METHODID_LIST_MESSAGES = 5; + private static final int METHODID_QUERY_DATA = 6; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -987,6 +1104,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse>) responseObserver); break; + case METHODID_QUERY_DATA: + serviceImpl.queryData( + (com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -1045,6 +1169,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.geminidataanalytics.v1beta.ListMessagesRequest, com.google.cloud.geminidataanalytics.v1beta.ListMessagesResponse>( service, METHODID_LIST_MESSAGES))) + .addMethod( + getQueryDataMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse>( + service, METHODID_QUERY_DATA))) .build(); } @@ -1102,6 +1233,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetConversationMethod()) .addMethod(getListConversationsMethod()) .addMethod(getListMessagesMethod()) + .addMethod(getQueryDataMethod()) .build(); } } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextProto.java new file mode 100644 index 000000000000..e552139f88bb --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextProto.java @@ -0,0 +1,81 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/agent_context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public final class AgentContextProto { + private AgentContextProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n;google/cloud/geminidataanalytics/v1bet" + + "a/agent_context.proto\022\'google.cloud.gemi" + + "nidataanalytics.v1beta\032\037google/api/field" + + "_behavior.proto\"4\n\025AgentContextReference" + + "\022\033\n\016context_set_id\030\001 \001(\tB\003\340A\002B\242\002\n+com.go" + + "ogle.cloud.geminidataanalytics.v1betaB\021A" + + "gentContextProtoP\001Z]cloud.google.com/go/" + + "geminidataanalytics/apiv1beta/geminidata" + + "analyticspb;geminidataanalyticspb\252\002\'Goog" + + "le.Cloud.GeminiDataAnalytics.V1Beta\312\002\'Go" + + "ogle\\Cloud\\GeminiDataAnalytics\\V1beta\352\002*" + + "Google::Cloud::GeminiDataAnalytics::V1be" + + "tab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor, + new java.lang.String[] { + "ContextSetId", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReference.java new file mode 100644 index 000000000000..63370a484a67 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReference.java @@ -0,0 +1,644 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/agent_context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing a reference to Agent Context.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentContextReference} + */ +public final class AgentContextReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentContextReference) + AgentContextReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AgentContextReference.newBuilder() to construct. + private AgentContextReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AgentContextReference() { + contextSetId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AgentContextReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.class, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder.class); + } + + public static final int CONTEXT_SET_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextSetId_ = ""; + + /** + * + * + *
+   * Required. Context set ID to retrieve.
+   * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The contextSetId. + */ + @java.lang.Override + public java.lang.String getContextSetId() { + java.lang.Object ref = contextSetId_; + 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(); + contextSetId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Context set ID to retrieve.
+   * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for contextSetId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextSetIdBytes() { + java.lang.Object ref = contextSetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextSetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextSetId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contextSetId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contextSetId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, contextSetId_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.AgentContextReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference other = + (com.google.cloud.geminidataanalytics.v1beta.AgentContextReference) obj; + + if (!getContextSetId().equals(other.getContextSetId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CONTEXT_SET_ID_FIELD_NUMBER; + hash = (53 * hash) + getContextSetId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference 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.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference 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.cloud.geminidataanalytics.v1beta.AgentContextReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + 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.cloud.geminidataanalytics.v1beta.AgentContextReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference 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.cloud.geminidataanalytics.v1beta.AgentContextReference 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; + } + + /** + * + * + *
+   * Message representing a reference to Agent Context.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentContextReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentContextReference) + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.class, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + contextSetId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AgentContextReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference build() { + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference result = + new com.google.cloud.geminidataanalytics.v1beta.AgentContextReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.contextSetId_ = contextSetId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentContextReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentContextReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance()) + return this; + if (!other.getContextSetId().isEmpty()) { + contextSetId_ = other.contextSetId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + contextSetId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object contextSetId_ = ""; + + /** + * + * + *
+     * Required. Context set ID to retrieve.
+     * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The contextSetId. + */ + public java.lang.String getContextSetId() { + java.lang.Object ref = contextSetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextSetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Context set ID to retrieve.
+     * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for contextSetId. + */ + public com.google.protobuf.ByteString getContextSetIdBytes() { + java.lang.Object ref = contextSetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextSetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Context set ID to retrieve.
+     * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The contextSetId to set. + * @return This builder for chaining. + */ + public Builder setContextSetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextSetId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Context set ID to retrieve.
+     * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearContextSetId() { + contextSetId_ = getDefaultInstance().getContextSetId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Context set ID to retrieve.
+     * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for contextSetId to set. + * @return This builder for chaining. + */ + public Builder setContextSetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextSetId_ = value; + bitField0_ |= 0x00000001; + 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.cloud.geminidataanalytics.v1beta.AgentContextReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentContextReference) + private static final com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentContextReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentContextReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReferenceOrBuilder.java new file mode 100644 index 000000000000..922f8a02d006 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentContextReferenceOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/agent_context.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface AgentContextReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentContextReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Context set ID to retrieve.
+   * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The contextSetId. + */ + java.lang.String getContextSetId(); + + /** + * + * + *
+   * Required. Context set ID to retrieve.
+   * 
+ * + * string context_set_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for contextSetId. + */ + com.google.protobuf.ByteString getContextSetIdBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReference.java new file mode 100644 index 000000000000..3ba6d69227ca --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReference.java @@ -0,0 +1,1692 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing a reference to a single AlloyDB database.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference} + */ +public final class AlloyDbDatabaseReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) + AlloyDbDatabaseReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AlloyDbDatabaseReference.newBuilder() to construct. + private AlloyDbDatabaseReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlloyDbDatabaseReference() { + projectId_ = ""; + region_ = ""; + clusterId_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlloyDbDatabaseReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLUSTER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object clusterId_ = ""; + + /** + * + * + *
+   * Required. The cluster id.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + @java.lang.Override + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + 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(); + clusterId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The cluster id.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + 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(); + instanceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + 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(); + databaseId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_IDS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + return tableIds_; + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseId_); + } + for (int i = 0; i < tableIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, tableIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(clusterId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clusterId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseId_); + } + { + int dataSize = 0; + for (int i = 0; i < tableIds_.size(); i++) { + dataSize += computeStringSizeNoTag(tableIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTableIdsList().size(); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference other = + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) obj; + + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getClusterId().equals(other.getClusterId())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getTableIdsList().equals(other.getTableIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + CLUSTER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClusterId().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + if (getTableIdsCount() > 0) { + hash = (37 * hash) + TABLE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTableIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference 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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference 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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + 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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference 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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference 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; + } + + /** + * + * + *
+   * Message representing a reference to a single AlloyDB database.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + projectId_ = ""; + region_ = ""; + clusterId_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference build() { + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference result = + new com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clusterId_ = clusterId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.databaseId_ = databaseId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + tableIds_.makeImmutable(); + result.tableIds_ = tableIds_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + .getDefaultInstance()) return this; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getClusterId().isEmpty()) { + clusterId_ = other.clusterId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.tableIds_.isEmpty()) { + if (tableIds_.isEmpty()) { + tableIds_ = other.tableIds_; + bitField0_ |= 0x00000020; + } else { + ensureTableIdsIsMutable(); + tableIds_.addAll(other.tableIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + clusterId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTableIdsIsMutable(); + tableIds_.add(s); + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object projectId_ = ""; + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object clusterId_ = ""; + + /** + * + * + *
+     * Required. The cluster id.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + public java.lang.String getClusterId() { + java.lang.Object ref = clusterId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clusterId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The cluster id.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + public com.google.protobuf.ByteString getClusterIdBytes() { + java.lang.Object ref = clusterId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clusterId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The cluster id.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The cluster id.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearClusterId() { + clusterId_ = getDefaultInstance().getClusterId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The cluster id.
+     * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. + */ + public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clusterId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instanceId_ = ""; + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object databaseId_ = ""; + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTableIdsIsMutable() { + if (!tableIds_.isModifiable()) { + tableIds_ = new com.google.protobuf.LazyStringArrayList(tableIds_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + tableIds_.makeImmutable(); + return tableIds_; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tableIds to set. + * @return This builder for chaining. + */ + public Builder setTableIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tableIds to add. + * @return This builder for chaining. + */ + public Builder addAllTableIds(java.lang.Iterable values) { + ensureTableIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableIds_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTableIds() { + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + 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.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) + private static final com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbDatabaseReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReferenceOrBuilder.java new file mode 100644 index 000000000000..a6c8e1b5f865 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbDatabaseReferenceOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface AlloyDbDatabaseReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Required. The cluster id.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. + */ + java.lang.String getClusterId(); + + /** + * + * + *
+   * Required. The cluster id.
+   * 
+ * + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. + */ + com.google.protobuf.ByteString getClusterIdBytes(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + java.lang.String getInstanceId(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString getInstanceIdBytes(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + java.util.List getTableIdsList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + int getTableIdsCount(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + java.lang.String getTableIds(int index); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + com.google.protobuf.ByteString getTableIdsBytes(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReference.java new file mode 100644 index 000000000000..f37b5399ed48 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReference.java @@ -0,0 +1,1113 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing reference to an AlloyDB database and agent context.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AlloyDbReference} + */ +public final class AlloyDbReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AlloyDbReference) + AlloyDbReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use AlloyDbReference.newBuilder() to construct. + private AlloyDbReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AlloyDbReference() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AlloyDbReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.class, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder.class); + } + + private int bitField0_; + public static final int DATABASE_REFERENCE_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference databaseReference_; + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + @java.lang.Override + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + getDatabaseReference() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + public static final int AGENT_CONTEXT_REFERENCE_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference agentContextReference_; + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + @java.lang.Override + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getAgentContextReference()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAgentContextReference()); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.AlloyDbReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference other = + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) obj; + + if (hasDatabaseReference() != other.hasDatabaseReference()) return false; + if (hasDatabaseReference()) { + if (!getDatabaseReference().equals(other.getDatabaseReference())) return false; + } + if (hasAgentContextReference() != other.hasAgentContextReference()) return false; + if (hasAgentContextReference()) { + if (!getAgentContextReference().equals(other.getAgentContextReference())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatabaseReference()) { + hash = (37 * hash) + DATABASE_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseReference().hashCode(); + } + if (hasAgentContextReference()) { + hash = (37 * hash) + AGENT_CONTEXT_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getAgentContextReference().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference 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.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference 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.cloud.geminidataanalytics.v1beta.AlloyDbReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference 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.cloud.geminidataanalytics.v1beta.AlloyDbReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference 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.cloud.geminidataanalytics.v1beta.AlloyDbReference 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; + } + + /** + * + * + *
+   * Message representing reference to an AlloyDB database and agent context.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AlloyDbReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AlloyDbReference) + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.class, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatabaseReferenceFieldBuilder(); + getAgentContextReferenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference build() { + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference result = + new com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.databaseReference_ = + databaseReferenceBuilder_ == null + ? databaseReference_ + : databaseReferenceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentContextReference_ = + agentContextReferenceBuilder_ == null + ? agentContextReference_ + : agentContextReferenceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance()) + return this; + if (other.hasDatabaseReference()) { + mergeDatabaseReference(other.getDatabaseReference()); + } + if (other.hasAgentContextReference()) { + mergeAgentContextReference(other.getAgentContextReference()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDatabaseReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + input.readMessage( + getAgentContextReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference databaseReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder> + databaseReferenceBuilder_; + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + getDatabaseReference() { + if (databaseReferenceBuilder_ == null) { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + .getDefaultInstance() + : databaseReference_; + } else { + return databaseReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseReference_ = value; + } else { + databaseReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder + builderForValue) { + if (databaseReferenceBuilder_ == null) { + databaseReference_ = builderForValue.build(); + } else { + databaseReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && databaseReference_ != null + && databaseReference_ + != com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + .getDefaultInstance()) { + getDatabaseReferenceBuilder().mergeFrom(value); + } else { + databaseReference_ = value; + } + } else { + databaseReferenceBuilder_.mergeFrom(value); + } + if (databaseReference_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatabaseReference() { + bitField0_ = (bitField0_ & ~0x00000001); + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder + getDatabaseReferenceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatabaseReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + if (databaseReferenceBuilder_ != null) { + return databaseReferenceBuilder_.getMessageOrBuilder(); + } else { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference + .getDefaultInstance() + : databaseReference_; + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder> + getDatabaseReferenceFieldBuilder() { + if (databaseReferenceBuilder_ == null) { + databaseReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder>( + getDatabaseReference(), getParentForChildren(), isClean()); + databaseReference_ = null; + } + return databaseReferenceBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + agentContextReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + agentContextReferenceBuilder_; + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + if (agentContextReferenceBuilder_ == null) { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } else { + return agentContextReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentContextReference_ = value; + } else { + agentContextReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder builderForValue) { + if (agentContextReferenceBuilder_ == null) { + agentContextReference_ = builderForValue.build(); + } else { + agentContextReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && agentContextReference_ != null + && agentContextReference_ + != com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + .getDefaultInstance()) { + getAgentContextReferenceBuilder().mergeFrom(value); + } else { + agentContextReference_ = value; + } + } else { + agentContextReferenceBuilder_.mergeFrom(value); + } + if (agentContextReference_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentContextReference() { + bitField0_ = (bitField0_ & ~0x00000002); + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder + getAgentContextReferenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAgentContextReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + if (agentContextReferenceBuilder_ != null) { + return agentContextReferenceBuilder_.getMessageOrBuilder(); + } else { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + getAgentContextReferenceFieldBuilder() { + if (agentContextReferenceBuilder_ == null) { + agentContextReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder>( + getAgentContextReference(), getParentForChildren(), isClean()); + agentContextReference_ = null; + } + return agentContextReferenceBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.AlloyDbReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AlloyDbReference) + private static final com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AlloyDbReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReferenceOrBuilder.java new file mode 100644 index 000000000000..ab95d26a54dc --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AlloyDbReferenceOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface AlloyDbReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AlloyDbReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + boolean hasDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference getDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + boolean hasAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference getAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java index 71955464c5f0..257c28a5556c 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java @@ -409,7 +409,7 @@ public boolean hasClientManagedResourceContext() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The project. */ @java.lang.Override @@ -438,7 +438,7 @@ public java.lang.String getProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The bytes for project. */ @java.lang.Override @@ -2283,7 +2283,7 @@ public Builder clearClientManagedResourceContext() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The project. */ @java.lang.Deprecated @@ -2311,7 +2311,7 @@ public java.lang.String getProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The bytes for project. */ @java.lang.Deprecated @@ -2339,7 +2339,7 @@ public com.google.protobuf.ByteString getProjectBytes() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @param value The project to set. * @return This builder for chaining. */ @@ -2366,7 +2366,7 @@ public Builder setProject(java.lang.String value) { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return This builder for chaining. */ @java.lang.Deprecated @@ -2389,7 +2389,7 @@ public Builder clearProject() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @param value The bytes for project to set. * @return This builder for chaining. */ diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java index df7b6be6e7a3..7ea7d4241d83 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequestOrBuilder.java @@ -233,7 +233,7 @@ public interface ChatRequestOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The project. */ @java.lang.Deprecated @@ -251,7 +251,7 @@ public interface ChatRequestOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.ChatRequest.project is deprecated. See - * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=181 + * google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=316 * @return The bytes for project. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReference.java new file mode 100644 index 000000000000..3e18afe516e6 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReference.java @@ -0,0 +1,1848 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing a reference to a single CloudSQL database.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference} + */ +public final class CloudSqlDatabaseReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) + CloudSqlDatabaseReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudSqlDatabaseReference.newBuilder() to construct. + private CloudSqlDatabaseReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudSqlDatabaseReference() { + engine_ = 0; + projectId_ = ""; + region_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudSqlDatabaseReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder.class); + } + + /** + * + * + *
+   * The database engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine} + */ + public enum Engine implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Engine is not specified.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + ENGINE_UNSPECIFIED(0), + /** + * + * + *
+     * PostgreSQL
+     * 
+ * + * POSTGRESQL = 1; + */ + POSTGRESQL(1), + /** + * + * + *
+     * MySQL
+     * 
+ * + * MYSQL = 2; + */ + MYSQL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Engine is not specified.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + public static final int ENGINE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * PostgreSQL
+     * 
+ * + * POSTGRESQL = 1; + */ + public static final int POSTGRESQL_VALUE = 1; + + /** + * + * + *
+     * MySQL
+     * 
+ * + * MYSQL = 2; + */ + public static final int MYSQL_VALUE = 2; + + 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 Engine 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 Engine forNumber(int value) { + switch (value) { + case 0: + return ENGINE_UNSPECIFIED; + case 1: + return POSTGRESQL; + case 2: + return MYSQL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Engine findValueByNumber(int number) { + return Engine.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Engine[] VALUES = values(); + + public static Engine valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Engine(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine) + } + + public static final int ENGINE_FIELD_NUMBER = 1; + private int engine_ = 0; + + /** + * + * + *
+   * Required. The engine of the Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+   * Required. The engine of the Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine getEngine() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine result = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine.forNumber( + engine_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine.UNRECOGNIZED + : result; + } + + public static final int PROJECT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + 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(); + instanceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + 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(); + databaseId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_IDS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + return tableIds_; + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (engine_ + != com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine + .ENGINE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, databaseId_); + } + for (int i = 0; i < tableIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tableIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (engine_ + != com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine + .ENGINE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, engine_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, databaseId_); + } + { + int dataSize = 0; + for (int i = 0; i < tableIds_.size(); i++) { + dataSize += computeStringSizeNoTag(tableIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTableIdsList().size(); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference other = + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) obj; + + if (engine_ != other.engine_) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getTableIdsList().equals(other.getTableIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + engine_; + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + if (getTableIdsCount() > 0) { + hash = (37 * hash) + TABLE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTableIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference 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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference 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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + 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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference 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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference 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; + } + + /** + * + * + *
+   * Message representing a reference to a single CloudSQL database.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + engine_ = 0; + projectId_ = ""; + region_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference build() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference result = + new com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.databaseId_ = databaseId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + tableIds_.makeImmutable(); + result.tableIds_ = tableIds_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + .getDefaultInstance()) return this; + if (other.engine_ != 0) { + setEngineValue(other.getEngineValue()); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.tableIds_.isEmpty()) { + if (tableIds_.isEmpty()) { + tableIds_ = other.tableIds_; + bitField0_ |= 0x00000020; + } else { + ensureTableIdsIsMutable(); + tableIds_.addAll(other.tableIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + engine_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTableIdsIsMutable(); + tableIds_.add(s); + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int engine_ = 0; + + /** + * + * + *
+     * Required. The engine of the Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+     * Required. The engine of the Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineValue(int value) { + engine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The engine of the Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine + getEngine() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine result = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine.forNumber( + engine_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The engine of the Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + engine_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The engine of the Cloud SQL instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + bitField0_ = (bitField0_ & ~0x00000001); + engine_ = 0; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instanceId_ = ""; + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object databaseId_ = ""; + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTableIdsIsMutable() { + if (!tableIds_.isModifiable()) { + tableIds_ = new com.google.protobuf.LazyStringArrayList(tableIds_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + tableIds_.makeImmutable(); + return tableIds_; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tableIds to set. + * @return This builder for chaining. + */ + public Builder setTableIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tableIds to add. + * @return This builder for chaining. + */ + public Builder addAllTableIds(java.lang.Iterable values) { + ensureTableIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableIds_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTableIds() { + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + 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.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) + private static final com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlDatabaseReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReferenceOrBuilder.java new file mode 100644 index 000000000000..5a9944d2d29a --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlDatabaseReferenceOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface CloudSqlDatabaseReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The engine of the Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + int getEngineValue(); + + /** + * + * + *
+   * Required. The engine of the Cloud SQL instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Engine getEngine(); + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + java.lang.String getInstanceId(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString getInstanceIdBytes(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + java.util.List getTableIdsList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + int getTableIdsCount(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + java.lang.String getTableIds(int index); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + com.google.protobuf.ByteString getTableIdsBytes(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReference.java new file mode 100644 index 000000000000..25f367ccf999 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReference.java @@ -0,0 +1,1114 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing reference to a CloudSQL database and agent context.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.CloudSqlReference} + */ +public final class CloudSqlReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.CloudSqlReference) + CloudSqlReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use CloudSqlReference.newBuilder() to construct. + private CloudSqlReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CloudSqlReference() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudSqlReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.class, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder.class); + } + + private int bitField0_; + public static final int DATABASE_REFERENCE_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference databaseReference_; + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + @java.lang.Override + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + getDatabaseReference() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + public static final int AGENT_CONTEXT_REFERENCE_FIELD_NUMBER = 2; + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference agentContextReference_; + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + @java.lang.Override + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAgentContextReference()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAgentContextReference()); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.CloudSqlReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference other = + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) obj; + + if (hasDatabaseReference() != other.hasDatabaseReference()) return false; + if (hasDatabaseReference()) { + if (!getDatabaseReference().equals(other.getDatabaseReference())) return false; + } + if (hasAgentContextReference() != other.hasAgentContextReference()) return false; + if (hasAgentContextReference()) { + if (!getAgentContextReference().equals(other.getAgentContextReference())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatabaseReference()) { + hash = (37 * hash) + DATABASE_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseReference().hashCode(); + } + if (hasAgentContextReference()) { + hash = (37 * hash) + AGENT_CONTEXT_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getAgentContextReference().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference 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.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference 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.cloud.geminidataanalytics.v1beta.CloudSqlReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference 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.cloud.geminidataanalytics.v1beta.CloudSqlReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference 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.cloud.geminidataanalytics.v1beta.CloudSqlReference 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; + } + + /** + * + * + *
+   * Message representing reference to a CloudSQL database and agent context.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.CloudSqlReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.CloudSqlReference) + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.class, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatabaseReferenceFieldBuilder(); + getAgentContextReferenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference build() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference result = + new com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.databaseReference_ = + databaseReferenceBuilder_ == null + ? databaseReference_ + : databaseReferenceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentContextReference_ = + agentContextReferenceBuilder_ == null + ? agentContextReference_ + : agentContextReferenceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance()) + return this; + if (other.hasDatabaseReference()) { + mergeDatabaseReference(other.getDatabaseReference()); + } + if (other.hasAgentContextReference()) { + mergeAgentContextReference(other.getAgentContextReference()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDatabaseReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getAgentContextReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + databaseReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder> + databaseReferenceBuilder_; + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + getDatabaseReference() { + if (databaseReferenceBuilder_ == null) { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + .getDefaultInstance() + : databaseReference_; + } else { + return databaseReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseReference_ = value; + } else { + databaseReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder + builderForValue) { + if (databaseReferenceBuilder_ == null) { + databaseReference_ = builderForValue.build(); + } else { + databaseReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && databaseReference_ != null + && databaseReference_ + != com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + .getDefaultInstance()) { + getDatabaseReferenceBuilder().mergeFrom(value); + } else { + databaseReference_ = value; + } + } else { + databaseReferenceBuilder_.mergeFrom(value); + } + if (databaseReference_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatabaseReference() { + bitField0_ = (bitField0_ & ~0x00000001); + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder + getDatabaseReferenceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatabaseReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + if (databaseReferenceBuilder_ != null) { + return databaseReferenceBuilder_.getMessageOrBuilder(); + } else { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference + .getDefaultInstance() + : databaseReference_; + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder> + getDatabaseReferenceFieldBuilder() { + if (databaseReferenceBuilder_ == null) { + databaseReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder>( + getDatabaseReference(), getParentForChildren(), isClean()); + databaseReference_ = null; + } + return databaseReferenceBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + agentContextReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + agentContextReferenceBuilder_; + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + if (agentContextReferenceBuilder_ == null) { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } else { + return agentContextReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentContextReference_ = value; + } else { + agentContextReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder builderForValue) { + if (agentContextReferenceBuilder_ == null) { + agentContextReference_ = builderForValue.build(); + } else { + agentContextReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && agentContextReference_ != null + && agentContextReference_ + != com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + .getDefaultInstance()) { + getAgentContextReferenceBuilder().mergeFrom(value); + } else { + agentContextReference_ = value; + } + } else { + agentContextReferenceBuilder_.mergeFrom(value); + } + if (agentContextReference_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentContextReference() { + bitField0_ = (bitField0_ & ~0x00000002); + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder + getAgentContextReferenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAgentContextReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + if (agentContextReferenceBuilder_ != null) { + return agentContextReferenceBuilder_.getMessageOrBuilder(); + } else { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + getAgentContextReferenceFieldBuilder() { + if (agentContextReferenceBuilder_ == null) { + agentContextReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder>( + getAgentContextReference(), getParentForChildren(), isClean()); + agentContextReference_ = null; + } + return agentContextReferenceBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.CloudSqlReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.CloudSqlReference) + private static final com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudSqlReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReferenceOrBuilder.java new file mode 100644 index 000000000000..bde15a9a0da9 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/CloudSqlReferenceOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface CloudSqlReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.CloudSqlReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + boolean hasDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference getDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + boolean hasAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference getAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java index 7cd1b78a3014..81623c814001 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceProto.java @@ -28,6 +28,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -162,7 +194,46 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ogle/cloud/geminidataanalytics/v1beta/conversation.proto\0329google/cloud/geminidat" + "aanalytics/v1beta/credentials.proto\0328google/cloud/geminidataanalytics/v1beta/dat" + "asource.proto\032\033google/protobuf/empty.pro" - + "to\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\244\001\n" + + "to\032\034google/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\220\002\n" + + "\020QueryDataRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022\023\n" + + "\006prompt\030\002 \001(\tB\003\340A\002\022O\n" + + "\007context\030\003 \001(\01329.google.cloud.g" + + "eminidataanalytics.v1beta.QueryDataContextB\003\340A\002\022[\n" + + "\022generation_options\030\004 \001(\0132:.go" + + "ogle.cloud.geminidataanalytics.v1beta.GenerationOptionsB\003\340A\001\"\270\001\n" + + "\021GenerationOptions\022\"\n" + + "\025generate_query_result\030\001 \001(\010B\003\340A\001\022-\n" + + " generate_natural_language_answer\030\002 \001(\010B\003\340A\001\022!\n" + + "\024generate_explanation\030\003 \001(\010B\003\340A\001\022-\n" + + " generate_disambiguation_question\030\004 \001(\010B\003\340A\001\"u\n" + + "\020QueryDataContext\022a\n" + + "\025datasource_references\030\001 \001(\0132=.google.cloud.gemini" + + "dataanalytics.v1beta.DatasourceReferencesB\003\340A\002\"\336\001\n" + + "\021QueryDataResponse\022\027\n" + + "\017generated_query\030\001 \001(\t\022\032\n" + + "\022intent_explanation\030\002 \001(\t\022R\n" + + "\014query_result\030\003 \001(\0132<.google.cloud.g" + + "eminidataanalytics.v1beta.ExecutedQueryResult\022\037\n" + + "\027natural_language_answer\030\004 \001(\t\022\037\n" + + "\027disambiguation_question\030\005 \003(\t\"\244\003\n" + + "\023ExecutedQueryResult\022T\n" + + "\007columns\030\001 \003(\0132C.googl" + + "e.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column\022N\n" + + "\004rows\030\002 \003(\0132@.go" + + "ogle.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row\022\027\n" + + "\017total_row_count\030\003 \001(\003\022\026\n" + + "\016partial_result\030\004 \001(\010\022\035\n" + + "\025query_execution_error\030\005 \001(\t\032$\n" + + "\006Column\022\014\n" + + "\004name\030\001 \001(\t\022\014\n" + + "\004type\030\002 \001(\t\032\026\n" + + "\005Value\022\r\n" + + "\005value\030\001 \001(\t\032Y\n" + + "\003Row\022R\n" + + "\006values\030\001 \003(\0132B.google.clou" + + "d.geminidataanalytics.v1beta.ExecutedQueryResult.Value\"\244\001\n" + "\023ListMessagesRequest\022G\n" + "\006parent\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022\026\n" @@ -170,35 +241,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"z\n" + "\024ListMessagesResponse\022I\n" - + "\010messages\030\001 \003(\01327.goo" - + "gle.cloud.geminidataanalytics.v1beta.StorageMessage\022\027\n" + + "\010messages\030\001 \003(\01327.google.cloud.g" + + "eminidataanalytics.v1beta.StorageMessage\022\027\n" + "\017next_page_token\030\002 \001(\t\"g\n" + "\016StorageMessage\022\022\n\n" + "message_id\030\001 \001(\t\022A\n" - + "\007message\030\002" - + " \001(\01320.google.cloud.geminidataanalytics.v1beta.Message\"\324\004\n" + + "\007message\030\002 \001(\013" + + "20.google.cloud.geminidataanalytics.v1beta.Message\"\324\004\n" + "\013ChatRequest\022O\n" - + "\016inline_context\030e \001(\01320.google.cloud.gem" - + "inidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" - + "\026conversation_reference\030g \001(\0132>.google." - + "cloud.geminidataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" - + "\022data_agent_context\030h" - + " \001(\01329.google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\001H\000\022u\n" - + "\037client_managed_resource_context\030i \001(\0132E.g" - + "oogle.cloud.geminidataanalytics.v1beta.ClientManagedResourceContextB\003\340A\001H\000\022F\n" + + "\016inline_context\030e" + + " \001(\01320.google.cloud.geminidataanalytics.v1beta.ContextB\003\340A\001H\000\022e\n" + + "\026conversation_reference\030g \001(\0132>.google.cloud.gemin" + + "idataanalytics.v1beta.ConversationReferenceB\003\340A\001H\000\022\\\n" + + "\022data_agent_context\030h \001(\01329" + + ".google.cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\001H\000\022u\n" + + "\037client_managed_resource_context\030i \001(\0132E.google.cloud" + + ".geminidataanalytics.v1beta.ClientManagedResourceContextB\003\340A\001H\000\022F\n" + "\007project\030\001 \001(\tB5\030\001\340A\001\372A-\n" + "+cloudresourcemanager.googleapis.com/Project\022\023\n" + "\006parent\030\003 \001(\tB\003\340A\002\022G\n" - + "\010messages\030\002 \003(\01320.google.cloud" - + ".geminidataanalytics.v1beta.MessageB\003\340A\002B\022\n" + + "\010messages\030\002" + + " \003(\01320.google.cloud.geminidataanalytics.v1beta.MessageB\003\340A\002B\022\n" + "\020context_provider\"\343\002\n" + "\020DataAgentContext\022H\n\n" + "data_agent\030\001 \001(\tB4\340A\002\372A.\n" + ",geminidataanalytics.googleapis.com/DataAgent\022N\n" + "\013credentials\030\002" + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\022f\n" - + "\017context_version\030\003 \001(\0162H.google.cloud.gemi" - + "nidataanalytics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + + "\017context_version\030\003 \001(\0162H.google.cloud.geminidataanaly" + + "tics.v1beta.DataAgentContext.ContextVersionB\003\340A\001\"M\n" + "\016ContextVersion\022\037\n" + "\033CONTEXT_VERSION_UNSPECIFIED\020\000\022\013\n" + "\007STAGING\020\001\022\r\n" @@ -206,81 +277,81 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ConversationReference\022M\n" + "\014conversation\030\001 \001(\tB7\340A\002\372A1\n" + "/geminidataanalytics.googleapis.com/Conversation\022Z\n" - + "\022data_agent_context\030\003 \001(\01329.google" - + ".cloud.geminidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\242\001\n" + + "\022data_agent_context\030\003 \001(\01329.google.cloud.gemi" + + "nidataanalytics.v1beta.DataAgentContextB\003\340A\002\"\242\001\n" + "\034ClientManagedResourceContext\022M\n" - + "\016inline_context\030\001 \001(\01320.googl" - + "e.cloud.geminidataanalytics.v1beta.ContextB\003\340A\002\022\034\n" + + "\016inline_context\030\001" + + " \001(\01320.google.cloud.geminidataanalytics.v1beta.ContextB\003\340A\002\022\034\n" + "\017conversation_id\030\002 \001(\tB\003\340A\001\022\025\n" + "\010agent_id\030\003 \001(\tB\003\340A\001\"\376\001\n" + "\007Message\022L\n" - + "\014user_message\030\002" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.UserMessageH\000\022P\n" - + "\016system_message\030\003" - + " \001(\01326.google.cloud.geminidataanalytics.v1beta.SystemMessageH\000\0222\n" + + "\014user_message\030\002 " + + "\001(\01324.google.cloud.geminidataanalytics.v1beta.UserMessageH\000\022P\n" + + "\016system_message\030\003 " + + "\001(\01326.google.cloud.geminidataanalytics.v1beta.SystemMessageH\000\0222\n" + "\ttimestamp\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\027\n\n" + "message_id\030\004 \001(\tB\003\340A\001B\006\n" + "\004kind\"%\n" + "\013UserMessage\022\016\n" + "\004text\030\001 \001(\tH\000B\006\n" - + "\004kind\"\310\004\n" - + "\r" + + "\004kind\"\310\004\n\r" + "SystemMessage\022D\n" - + "\004text\030\001 \001(\01324.google.cl" - + "oud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" - + "\006schema\030\002 \001(\01326.google.cloud.gemi" - + "nidataanalytics.v1beta.SchemaMessageH\000\022D\n" - + "\004data\030\003" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.DataMessageH\000\022L\n" - + "\010analysis\030\004" - + " \001(\01328.google.cloud.geminidataanalytics.v1beta.AnalysisMessageH\000\022F\n" - + "\005chart\030\005 \001(" - + "\01325.google.cloud.geminidataanalytics.v1beta.ChartMessageH\000\022F\n" - + "\005error\030\006 \001(\01325.goog" - + "le.cloud.geminidataanalytics.v1beta.ErrorMessageH\000\022W\n" + + "\004text\030\001" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.TextMessageH\000\022H\n" + + "\006schema\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.SchemaMessageH\000\022D\n" + + "\004data\030\003 \001(" + + "\01324.google.cloud.geminidataanalytics.v1beta.DataMessageH\000\022L\n" + + "\010analysis\030\004 \001(\01328.go" + + "ogle.cloud.geminidataanalytics.v1beta.AnalysisMessageH\000\022F\n" + + "\005chart\030\005 \001(\01325.google." + + "cloud.geminidataanalytics.v1beta.ChartMessageH\000\022F\n" + + "\005error\030\006 \001(\01325.google.cloud.ge" + + "minidataanalytics.v1beta.ErrorMessageH\000\022W\n" + "\017example_queries\030\r" - + " \001(\01327.go" - + "ogle.cloud.geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n" + + " \001(\01327.google.cloud." + + "geminidataanalytics.v1beta.ExampleQueriesB\003\340A\001H\000\022\025\n" + "\010group_id\030\014 \001(\005H\001\210\001\001B\006\n" + "\004kindB\013\n" + "\t_group_id\"\316\001\n" + "\013TextMessage\022\022\n" + "\005parts\030\001 \003(\tB\003\340A\001\022U\n" - + "\ttext_type\030\002 \001(\0162=" - + ".google.cloud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n" + + "\ttext_type\030\002 \001(\0162=.google.clo" + + "ud.geminidataanalytics.v1beta.TextMessage.TextTypeB\003\340A\001\"T\n" + "\010TextType\022\031\n" + "\025TEXT_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016FINAL_RESPONSE\020\001\022\013\n" + "\007THOUGHT\020\002\022\014\n" + "\010PROGRESS\020\003\"\247\001\n\r" + "SchemaMessage\022E\n" - + "\005query\030\001 \001(\01324.google.cloud" - + ".geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" + + "\005query\030\001" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.SchemaQueryH\000\022G\n" + "\006result\030\002" + " \001(\01325.google.cloud.geminidataanalytics.v1beta.SchemaResultH\000B\006\n" + "\004kind\"$\n" + "\013SchemaQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\"]\n" + "\014SchemaResult\022M\n" - + "\013datasources\030\001 \003(\01323." - + "google.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + + "\013datasources\030\001 \003(\01323.google.clou" + + "d.geminidataanalytics.v1beta.DatasourceB\003\340A\001\"\345\002\n" + "\013DataMessage\022C\n" - + "\005query\030\001" - + " \001(\01322.google.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + + "\005query\030\001 \001(\01322.go" + + "ogle.cloud.geminidataanalytics.v1beta.DataQueryH\000\022\027\n\r" + "generated_sql\030\002 \001(\tH\000\022E\n" + "\006result\030\003" + " \001(\01323.google.cloud.geminidataanalytics.v1beta.DataResultH\000\022Z\n" - + "\026generated_looker_query\030\004 \001(\01324.google.cl" - + "oud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n\r" - + "big_query_job\030\005 \001(\01324.google" - + ".cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + + "\026generated_looker_query\030\004" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.LookerQueryB\002\030\001H\000\022M\n" + + "\r" + + "big_query_job\030\005" + + " \001(\01324.google.cloud.geminidataanalytics.v1beta.BigQueryJobH\000B\006\n" + "\004kind\"\210\002\n" + "\013LookerQuery\022\022\n" + "\005model\030\001 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\002 \001(\tB\003\340A\002\022\023\n" + "\006fields\030\003 \003(\tB\003\340A\001\022Q\n" - + "\007filters\030\004 \003(\0132;.google" - + ".cloud.geminidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + + "\007filters\030\004 \003(\0132;.google.cloud.gemi" + + "nidataanalytics.v1beta.LookerQuery.FilterB\003\340A\001\022\022\n" + "\005sorts\030\005 \003(\tB\003\340A\001\022\027\n" + "\005limit\030\006 \001(\tB\003\340A\001H\000\210\001\001\0320\n" + "\006Filter\022\022\n" @@ -288,31 +359,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\tB\003\340A\002B\010\n" + "\006_limit\"\337\001\n" + "\tDataQuery\022K\n" - + "\006looker\030\004 \001(\01324.googl" - + "e.cloud.geminidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + + "\006looker\030\004 \001(\01324.google.cloud.gem" + + "inidataanalytics.v1beta.LookerQueryB\003\340A\001H\000\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022M\n" - + "\013datasources\030\002 \003(\01323.g" - + "oogle.cloud.geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + + "\013datasources\030\002 \003(\01323.google.cloud" + + ".geminidataanalytics.v1beta.DatasourceB\003\340A\001B\014\n\n" + "query_type\"\221\001\n\n" + "DataResult\022\021\n" + "\004name\030\003 \001(\tB\003\340A\001\022D\n" - + "\006schema\030\005 \001(\0132/" - + ".google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + + "\006schema\030\005 \001(\0132/.google.clo" + + "ud.geminidataanalytics.v1beta.SchemaB\003\340A\001\022*\n" + "\004data\030\002 \003(\0132\027.google.protobuf.StructB\003\340A\001\"\371\001\n" + "\013BigQueryJob\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + "\006job_id\030\002 \001(\tB\003\340A\002\022\025\n" + "\010location\030\005 \001(\tB\003\340A\001\022_\n" - + "\021destination_table\030\003 \001(\0132?.google.cloud.geminidataanalyt" - + "ics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" - + "\006schema\030\007" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + + "\021destination_table\030\003 \001(\0132?." + + "google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\001\022D\n" + + "\006schema\030\007 " + + "\001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"\264\001\n" + "\017AnalysisMessage\022G\n" - + "\005query\030\001 \001(\01326.google.cloud.g" - + "eminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" - + "\016progress_event\030\002 \001(\01326.google.cloud" - + ".geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + + "\005query\030\001" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisQueryH\000\022P\n" + + "\016progress_event\030\002" + + " \001(\01326.google.cloud.geminidataanalytics.v1beta.AnalysisEventH\000B\006\n" + "\004kind\"F\n\r" + "AnalysisQuery\022\025\n" + "\010question\030\001 \001(\tB\003\340A\001\022\036\n" @@ -333,8 +404,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014ChartMessage\022D\n" + "\005query\030\001" + " \001(\01323.google.cloud.geminidataanalytics.v1beta.ChartQueryH\000\022F\n" - + "\006result\030\002" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + + "\006result\030\002 \001(\01324.g" + + "oogle.cloud.geminidataanalytics.v1beta.ChartResultH\000B\006\n" + "\004kind\"F\n\n" + "ChartQuery\022\031\n" + "\014instructions\030\001 \001(\tB\003\340A\001\022\035\n" @@ -346,42 +417,49 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014ErrorMessage\022\021\n" + "\004text\030\001 \001(\tB\003\340A\003\"e\n" + "\016ExampleQueries\022S\n" - + "\017example_queries\030\001 \003(\01325.go" - + "ogle.cloud.geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + + "\017example_queries\030\001 \003(\01325.google.cloud." + + "geminidataanalytics.v1beta.ExampleQueryB\003\340A\001\"1\n" + "\004Blob\022\026\n" + "\tmime_type\030\001 \001(\tB\003\340A\002\022\021\n" - + "\004data\030\002 \001(\014B\003\340A\0022\353\n\n" + + "\004data\030\002 \001(\014B\003\340A\0022\256\014\n" + "\017DataChatService\022\251\001\n" - + "\004Chat\0224.google.cloud.geminidataanalytics.v1beta.ChatRequest\0320.google.c" - + "loud.geminidataanalytics.v1beta.Message\"" - + "7\202\323\344\223\0021\",/v1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" - + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1b" - + "eta.CreateConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversa" - + "tion\"q\332A#parent,conversation,conversatio" - + "n_id\202\323\344\223\002E\"5/v1beta/{parent=projects/*/l" - + "ocations/*}/conversations:\014conversation\022\266\001\n" - + "\022DeleteConversation\022B.google.cloud.geminidataanalytics.v1beta.DeleteConversat" - + "ionRequest\032\026.google.protobuf.Empty\"D\332A\004n" - + "ame\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" - + "\017GetConversation\022?.google.cloud.geminidataanalytics." - + "v1beta.GetConversationRequest\0325.google.cloud.geminidataanalytics.v1beta.Conversa" - + "tion\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" - + "\021ListConversations\022A.google.cloud.geminida" - + "taanalytics.v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v" - + "1beta.ListConversationsResponse\"F\332A\006pare" - + "nt\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" - + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1be" - + "ta.ListMessagesRequest\032=.google.cloud.geminidataanalytics.v1beta.ListMessagesRes" - + "ponse\"Q\332A\006parent\202\323\344\223\002B\022@/v1beta/{parent=" - + "projects/*/locations/*/conversations/*}/" - + "messages\032V\312A\"geminidataanalytics.googlea" - + "pis.com\322A.https://www.googleapis.com/auth/cloud-platformB\245\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServic" - + "eProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticsp" - + "b;geminidataanalyticspb\252\002\'Google.Cloud.G" - + "eminiDataAnalytics.V1Beta\312\002\'Google\\Cloud" - + "\\GeminiDataAnalytics\\V1beta\352\002*Google::Cl" - + "oud::GeminiDataAnalytics::V1betab\006proto3" + + "\004Chat\0224.google.cloud.geminidataanalytics." + + "v1beta.ChatRequest\0320.google.cloud.gemini" + + "dataanalytics.v1beta.Message\"7\202\323\344\223\0021\",/v" + + "1beta/{parent=projects/*/locations/*}:chat:\001*0\001\022\202\002\n" + + "\022CreateConversation\022B.google.cloud.geminidataanalytics.v1beta.CreateC" + + "onversationRequest\0325.google.cloud.gemini" + + "dataanalytics.v1beta.Conversation\"q\332A#pa" + + "rent,conversation,conversation_id\202\323\344\223\002E\"" + + "5/v1beta/{parent=projects/*/locations/*}/conversations:\014conversation\022\266\001\n" + + "\022DeleteConversation\022B.google.cloud.geminidataana" + + "lytics.v1beta.DeleteConversationRequest\032" + + "\026.google.protobuf.Empty\"D\332A\004name\202\323\344\223\0027*5" + + "/v1beta/{name=projects/*/locations/*/conversations/*}\022\317\001\n" + + "\017GetConversation\022?.google.cloud.geminidataanalytics.v1beta.GetC" + + "onversationRequest\0325.google.cloud.gemini" + + "dataanalytics.v1beta.Conversation\"D\332A\004na" + + "me\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/conversations/*}\022\342\001\n" + + "\021ListConversations\022A.google.cloud.geminidataanalytics" + + ".v1beta.ListConversationsRequest\032B.google.cloud.geminidataanalytics.v1beta.ListC" + + "onversationsResponse\"F\332A\006parent\202\323\344\223\0027\0225/" + + "v1beta/{parent=projects/*/locations/*}/conversations\022\336\001\n" + + "\014ListMessages\022<.google.cloud.geminidataanalytics.v1beta.ListMess" + + "agesRequest\032=.google.cloud.geminidataana" + + "lytics.v1beta.ListMessagesResponse\"Q\332A\006p" + + "arent\202\323\344\223\002B\022@/v1beta/{parent=projects/*/" + + "locations/*/conversations/*}/messages\022\300\001\n" + + "\tQueryData\0229.google.cloud.geminidataanalytics.v1beta.QueryDataRequest\032:.google." + + "cloud.geminidataanalytics.v1beta.QueryDa" + + "taResponse\"<\202\323\344\223\0026\"1/v1beta/{parent=proj" + + "ects/*/locations/*}:queryData:\001*\032V\312A\"gem" + + "inidataanalytics.googleapis.com\322A.https:" + + "//www.googleapis.com/auth/cloud-platformB\245\002\n" + + "+com.google.cloud.geminidataanalytics.v1betaB\024DataChatServiceProtoP\001Z]cloud." + + "google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanal" + + "yticspb\252\002\'Google.Cloud.GeminiDataAnalyti" + + "cs.V1Beta\312\002\'Google\\Cloud\\GeminiDataAnaly" + + "tics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -399,8 +477,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), }); - internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesRequest_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor, + new java.lang.String[] { + "Parent", "Prompt", "Context", "GenerationOptions", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor, + new java.lang.String[] { + "GenerateQueryResult", + "GenerateNaturalLanguageAnswer", + "GenerateExplanation", + "GenerateDisambiguationQuestion", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor, + new java.lang.String[] { + "DatasourceReferences", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor, + new java.lang.String[] { + "GeneratedQuery", + "IntentExplanation", + "QueryResult", + "NaturalLanguageAnswer", + "DisambiguationQuestion", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor, + new java.lang.String[] { + "Columns", "Rows", "TotalRowCount", "PartialResult", "QueryExecutionError", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesRequest_descriptor = + getDescriptor().getMessageTypes().get(5); internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesRequest_descriptor, @@ -408,7 +563,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesResponse_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ListMessagesResponse_descriptor, @@ -416,7 +571,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "NextPageToken", }); internal_static_google_cloud_geminidataanalytics_v1beta_StorageMessage_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_geminidataanalytics_v1beta_StorageMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_StorageMessage_descriptor, @@ -424,7 +579,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageId", "Message", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChatRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_geminidataanalytics_v1beta_ChatRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChatRequest_descriptor, @@ -439,7 +594,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ContextProvider", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataAgentContext_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_geminidataanalytics_v1beta_DataAgentContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataAgentContext_descriptor, @@ -447,7 +602,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DataAgent", "Credentials", "ContextVersion", }); internal_static_google_cloud_geminidataanalytics_v1beta_ConversationReference_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_geminidataanalytics_v1beta_ConversationReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ConversationReference_descriptor, @@ -455,7 +610,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conversation", "DataAgentContext", }); internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ClientManagedResourceContext_descriptor, @@ -463,7 +618,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InlineContext", "ConversationId", "AgentId", }); internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_geminidataanalytics_v1beta_Message_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Message_descriptor, @@ -471,7 +626,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UserMessage", "SystemMessage", "Timestamp", "MessageId", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_UserMessage_descriptor, @@ -479,7 +634,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SystemMessage_descriptor, @@ -495,7 +650,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_TextMessage_descriptor, @@ -503,7 +658,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parts", "TextType", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaMessage_descriptor, @@ -511,7 +666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "Result", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaQuery_descriptor, @@ -519,7 +674,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Question", }); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SchemaResult_descriptor, @@ -527,7 +682,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Datasources", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataMessage_descriptor, @@ -535,7 +690,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "GeneratedSql", "Result", "GeneratedLookerQuery", "BigQueryJob", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerQuery_descriptor, @@ -553,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Field", "Value", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataQuery_descriptor, @@ -561,7 +716,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Looker", "Question", "Name", "Datasources", "QueryType", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataResult_descriptor, @@ -569,7 +724,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Schema", "Data", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryJob_descriptor, @@ -577,7 +732,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "JobId", "Location", "DestinationTable", "Schema", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisMessage_descriptor, @@ -585,7 +740,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "ProgressEvent", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisQuery_descriptor, @@ -593,7 +748,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Question", "DataResultNames", }); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AnalysisEvent_descriptor, @@ -611,7 +766,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartMessage_descriptor, @@ -619,7 +774,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "Result", "Kind", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartQuery_descriptor, @@ -627,7 +782,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instructions", "DataResultName", }); internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ChartResult_descriptor, @@ -635,7 +790,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VegaConfig", "Image", }); internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ErrorMessage_descriptor, @@ -643,7 +798,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", }); internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_ExampleQueries_descriptor, @@ -651,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExampleQueries", }); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_geminidataanalytics_v1beta_Blob_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Blob_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java index a9176a750703..c62dd316eb88 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessage.java @@ -318,7 +318,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -340,7 +340,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return The generatedLookerQuery. */ @java.lang.Override @@ -1539,7 +1539,7 @@ public com.google.cloud.geminidataanalytics.v1beta.DataResultOrBuilder getResult * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Override @@ -1561,7 +1561,7 @@ public boolean hasGeneratedLookerQuery() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return The generatedLookerQuery. */ @java.lang.Override diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java index d0f494ef670d..b561a5b89002 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataMessageOrBuilder.java @@ -150,7 +150,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return Whether the generatedLookerQuery field is set. */ @java.lang.Deprecated @@ -169,7 +169,7 @@ public interface DataMessageOrBuilder * * * @deprecated google.cloud.geminidataanalytics.v1beta.DataMessage.generated_looker_query is - * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=402 + * deprecated. See google/cloud/geminidataanalytics/v1beta/data_chat_service.proto;l=537 * @return The generatedLookerQuery. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java index 1039332dc1df..92d44a74bd6f 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Datasource.java @@ -75,6 +75,9 @@ public enum ReferenceCase BIGQUERY_TABLE_REFERENCE(1), STUDIO_DATASOURCE_ID(2), LOOKER_EXPLORE_REFERENCE(4), + ALLOY_DB_REFERENCE(12), + SPANNER_REFERENCE(13), + CLOUD_SQL_REFERENCE(14), REFERENCE_NOT_SET(0); private final int value; @@ -100,6 +103,12 @@ public static ReferenceCase forNumber(int value) { return STUDIO_DATASOURCE_ID; case 4: return LOOKER_EXPLORE_REFERENCE; + case 12: + return ALLOY_DB_REFERENCE; + case 13: + return SPANNER_REFERENCE; + case 14: + return CLOUD_SQL_REFERENCE; case 0: return REFERENCE_NOT_SET; default: @@ -313,6 +322,174 @@ public boolean hasLookerExploreReference() { return com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference.getDefaultInstance(); } + public static final int ALLOY_DB_REFERENCE_FIELD_NUMBER = 12; + + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * @return Whether the alloyDbReference field is set. + */ + @java.lang.Override + public boolean hasAlloyDbReference() { + return referenceCase_ == 12; + } + + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * @return The alloyDbReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloyDbReference() { + if (referenceCase_ == 12) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder + getAlloyDbReferenceOrBuilder() { + if (referenceCase_ == 12) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + + public static final int SPANNER_REFERENCE_FIELD_NUMBER = 13; + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * @return Whether the spannerReference field is set. + */ + @java.lang.Override + public boolean hasSpannerReference() { + return referenceCase_ == 13; + } + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * @return The spannerReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference() { + if (referenceCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder() { + if (referenceCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + + public static final int CLOUD_SQL_REFERENCE_FIELD_NUMBER = 14; + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return Whether the cloudSqlReference field is set. + */ + @java.lang.Override + public boolean hasCloudSqlReference() { + return referenceCase_ == 14; + } + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return The cloudSqlReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference() { + if (referenceCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder() { + if (referenceCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + public static final int SCHEMA_FIELD_NUMBER = 7; private com.google.cloud.geminidataanalytics.v1beta.Schema schema_; @@ -470,6 +647,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(10, getStructSchema()); } + if (referenceCase_ == 12) { + output.writeMessage( + 12, (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_); + } + if (referenceCase_ == 13) { + output.writeMessage( + 13, (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_); + } + if (referenceCase_ == 14) { + output.writeMessage( + 14, (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_); + } getUnknownFields().writeTo(output); } @@ -498,6 +687,21 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getStructSchema()); } + if (referenceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_); + } + if (referenceCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_); + } + if (referenceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -533,6 +737,15 @@ public boolean equals(final java.lang.Object obj) { case 4: if (!getLookerExploreReference().equals(other.getLookerExploreReference())) return false; break; + case 12: + if (!getAlloyDbReference().equals(other.getAlloyDbReference())) return false; + break; + case 13: + if (!getSpannerReference().equals(other.getSpannerReference())) return false; + break; + case 14: + if (!getCloudSqlReference().equals(other.getCloudSqlReference())) return false; + break; case 0: default: } @@ -568,6 +781,18 @@ public int hashCode() { hash = (37 * hash) + LOOKER_EXPLORE_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getLookerExploreReference().hashCode(); break; + case 12: + hash = (37 * hash) + ALLOY_DB_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getAlloyDbReference().hashCode(); + break; + case 13: + hash = (37 * hash) + SPANNER_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getSpannerReference().hashCode(); + break; + case 14: + hash = (37 * hash) + CLOUD_SQL_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudSqlReference().hashCode(); + break; case 0: default: } @@ -728,6 +953,15 @@ public Builder clear() { if (lookerExploreReferenceBuilder_ != null) { lookerExploreReferenceBuilder_.clear(); } + if (alloyDbReferenceBuilder_ != null) { + alloyDbReferenceBuilder_.clear(); + } + if (spannerReferenceBuilder_ != null) { + spannerReferenceBuilder_.clear(); + } + if (cloudSqlReferenceBuilder_ != null) { + cloudSqlReferenceBuilder_.clear(); + } schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); @@ -778,11 +1012,11 @@ public com.google.cloud.geminidataanalytics.v1beta.Datasource buildPartial() { private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Datasource result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.structSchema_ = structSchemaBuilder_ == null ? structSchema_ : structSchemaBuilder_.build(); to_bitField0_ |= 0x00000002; @@ -799,6 +1033,15 @@ private void buildPartialOneofs(com.google.cloud.geminidataanalytics.v1beta.Data if (referenceCase_ == 4 && lookerExploreReferenceBuilder_ != null) { result.reference_ = lookerExploreReferenceBuilder_.build(); } + if (referenceCase_ == 12 && alloyDbReferenceBuilder_ != null) { + result.reference_ = alloyDbReferenceBuilder_.build(); + } + if (referenceCase_ == 13 && spannerReferenceBuilder_ != null) { + result.reference_ = spannerReferenceBuilder_.build(); + } + if (referenceCase_ == 14 && cloudSqlReferenceBuilder_ != null) { + result.reference_ = cloudSqlReferenceBuilder_.build(); + } } @java.lang.Override @@ -871,6 +1114,21 @@ public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Datasource mergeLookerExploreReference(other.getLookerExploreReference()); break; } + case ALLOY_DB_REFERENCE: + { + mergeAlloyDbReference(other.getAlloyDbReference()); + break; + } + case SPANNER_REFERENCE: + { + mergeSpannerReference(other.getSpannerReference()); + break; + } + case CLOUD_SQL_REFERENCE: + { + mergeCloudSqlReference(other.getCloudSqlReference()); + break; + } case REFERENCE_NOT_SET: { break; @@ -926,15 +1184,36 @@ public Builder mergeFrom( case 58: { input.readMessage(getSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; break; } // case 58 case 82: { input.readMessage(getStructSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; break; } // case 82 + case 98: + { + input.readMessage( + getAlloyDbReferenceFieldBuilder().getBuilder(), extensionRegistry); + referenceCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getSpannerReferenceFieldBuilder().getBuilder(), extensionRegistry); + referenceCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage( + getCloudSqlReferenceFieldBuilder().getBuilder(), extensionRegistry); + referenceCase_ = 14; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1607,6 +1886,708 @@ public Builder clearLookerExploreReference() { return lookerExploreReferenceBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder> + alloyDbReferenceBuilder_; + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * + * @return Whether the alloyDbReference field is set. + */ + @java.lang.Override + public boolean hasAlloyDbReference() { + return referenceCase_ == 12; + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * + * @return The alloyDbReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloyDbReference() { + if (alloyDbReferenceBuilder_ == null) { + if (referenceCase_ == 12) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } else { + if (referenceCase_ == 12) { + return alloyDbReferenceBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + public Builder setAlloyDbReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference value) { + if (alloyDbReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + alloyDbReferenceBuilder_.setMessage(value); + } + referenceCase_ = 12; + return this; + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + public Builder setAlloyDbReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder builderForValue) { + if (alloyDbReferenceBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + alloyDbReferenceBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 12; + return this; + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + public Builder mergeAlloyDbReference( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference value) { + if (alloyDbReferenceBuilder_ == null) { + if (referenceCase_ == 12 + && reference_ + != com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference + .getDefaultInstance()) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_) + .mergeFrom(value) + .buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 12) { + alloyDbReferenceBuilder_.mergeFrom(value); + } else { + alloyDbReferenceBuilder_.setMessage(value); + } + } + referenceCase_ = 12; + return this; + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + public Builder clearAlloyDbReference() { + if (alloyDbReferenceBuilder_ == null) { + if (referenceCase_ == 12) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 12) { + referenceCase_ = 0; + reference_ = null; + } + alloyDbReferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder + getAlloyDbReferenceBuilder() { + return getAlloyDbReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder + getAlloyDbReferenceOrBuilder() { + if ((referenceCase_ == 12) && (alloyDbReferenceBuilder_ != null)) { + return alloyDbReferenceBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 12) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder> + getAlloyDbReferenceFieldBuilder() { + if (alloyDbReferenceBuilder_ == null) { + if (!(referenceCase_ == 12)) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + alloyDbReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 12; + onChanged(); + return alloyDbReferenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder> + spannerReferenceBuilder_; + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * + * @return Whether the spannerReference field is set. + */ + @java.lang.Override + public boolean hasSpannerReference() { + return referenceCase_ == 13; + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * + * @return The spannerReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference() { + if (spannerReferenceBuilder_ == null) { + if (referenceCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } else { + if (referenceCase_ == 13) { + return spannerReferenceBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + public Builder setSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference value) { + if (spannerReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + spannerReferenceBuilder_.setMessage(value); + } + referenceCase_ = 13; + return this; + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + public Builder setSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder builderForValue) { + if (spannerReferenceBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + spannerReferenceBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 13; + return this; + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + public Builder mergeSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference value) { + if (spannerReferenceBuilder_ == null) { + if (referenceCase_ == 13 + && reference_ + != com.google.cloud.geminidataanalytics.v1beta.SpannerReference + .getDefaultInstance()) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_) + .mergeFrom(value) + .buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 13) { + spannerReferenceBuilder_.mergeFrom(value); + } else { + spannerReferenceBuilder_.setMessage(value); + } + } + referenceCase_ = 13; + return this; + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + public Builder clearSpannerReference() { + if (spannerReferenceBuilder_ == null) { + if (referenceCase_ == 13) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 13) { + referenceCase_ = 0; + reference_ = null; + } + spannerReferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder + getSpannerReferenceBuilder() { + return getSpannerReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder() { + if ((referenceCase_ == 13) && (spannerReferenceBuilder_ != null)) { + return spannerReferenceBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 13) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder> + getSpannerReferenceFieldBuilder() { + if (spannerReferenceBuilder_ == null) { + if (!(referenceCase_ == 13)) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + spannerReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 13; + onChanged(); + return spannerReferenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder> + cloudSqlReferenceBuilder_; + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return Whether the cloudSqlReference field is set. + */ + @java.lang.Override + public boolean hasCloudSqlReference() { + return referenceCase_ == 14; + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return The cloudSqlReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference() { + if (cloudSqlReferenceBuilder_ == null) { + if (referenceCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } else { + if (referenceCase_ == 14) { + return cloudSqlReferenceBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + public Builder setCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference value) { + if (cloudSqlReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + onChanged(); + } else { + cloudSqlReferenceBuilder_.setMessage(value); + } + referenceCase_ = 14; + return this; + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + public Builder setCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder builderForValue) { + if (cloudSqlReferenceBuilder_ == null) { + reference_ = builderForValue.build(); + onChanged(); + } else { + cloudSqlReferenceBuilder_.setMessage(builderForValue.build()); + } + referenceCase_ = 14; + return this; + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + public Builder mergeCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference value) { + if (cloudSqlReferenceBuilder_ == null) { + if (referenceCase_ == 14 + && reference_ + != com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference + .getDefaultInstance()) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_) + .mergeFrom(value) + .buildPartial(); + } else { + reference_ = value; + } + onChanged(); + } else { + if (referenceCase_ == 14) { + cloudSqlReferenceBuilder_.mergeFrom(value); + } else { + cloudSqlReferenceBuilder_.setMessage(value); + } + } + referenceCase_ = 14; + return this; + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + public Builder clearCloudSqlReference() { + if (cloudSqlReferenceBuilder_ == null) { + if (referenceCase_ == 14) { + referenceCase_ = 0; + reference_ = null; + onChanged(); + } + } else { + if (referenceCase_ == 14) { + referenceCase_ = 0; + reference_ = null; + } + cloudSqlReferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder + getCloudSqlReferenceBuilder() { + return getCloudSqlReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder() { + if ((referenceCase_ == 14) && (cloudSqlReferenceBuilder_ != null)) { + return cloudSqlReferenceBuilder_.getMessageOrBuilder(); + } else { + if (referenceCase_ == 14) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * A reference to a CloudSQL database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder> + getCloudSqlReferenceFieldBuilder() { + if (cloudSqlReferenceBuilder_ == null) { + if (!(referenceCase_ == 14)) { + reference_ = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + cloudSqlReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) reference_, + getParentForChildren(), + isClean()); + reference_ = null; + } + referenceCase_ = 14; + onChanged(); + return cloudSqlReferenceBuilder_; + } + private com.google.cloud.geminidataanalytics.v1beta.Schema schema_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.geminidataanalytics.v1beta.Schema, @@ -1628,7 +2609,7 @@ public Builder clearLookerExploreReference() { * @return Whether the schema field is set. */ public boolean hasSchema() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1674,7 +2655,7 @@ public Builder setSchema(com.google.cloud.geminidataanalytics.v1beta.Schema valu } else { schemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1697,7 +2678,7 @@ public Builder setSchema( } else { schemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1715,7 +2696,7 @@ public Builder setSchema( */ public Builder mergeSchema(com.google.cloud.geminidataanalytics.v1beta.Schema value) { if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000040) != 0) && schema_ != null && schema_ != com.google.cloud.geminidataanalytics.v1beta.Schema.getDefaultInstance()) { getSchemaBuilder().mergeFrom(value); @@ -1726,7 +2707,7 @@ public Builder mergeSchema(com.google.cloud.geminidataanalytics.v1beta.Schema va schemaBuilder_.mergeFrom(value); } if (schema_ != null) { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1744,7 +2725,7 @@ public Builder mergeSchema(com.google.cloud.geminidataanalytics.v1beta.Schema va * */ public Builder clearSchema() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000040); schema_ = null; if (schemaBuilder_ != null) { schemaBuilder_.dispose(); @@ -1766,7 +2747,7 @@ public Builder clearSchema() { * */ public com.google.cloud.geminidataanalytics.v1beta.Schema.Builder getSchemaBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000040; onChanged(); return getSchemaFieldBuilder().getBuilder(); } @@ -1845,7 +2826,7 @@ public com.google.cloud.geminidataanalytics.v1beta.SchemaOrBuilder getSchemaOrBu * @return Whether the structSchema field is set. */ public boolean hasStructSchema() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -1899,7 +2880,7 @@ public Builder setStructSchema(com.google.protobuf.Struct value) { } else { structSchemaBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1925,7 +2906,7 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu } else { structSchemaBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1947,7 +2928,7 @@ public Builder setStructSchema(com.google.protobuf.Struct.Builder builderForValu */ public Builder mergeStructSchema(com.google.protobuf.Struct value) { if (structSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000080) != 0) && structSchema_ != null && structSchema_ != com.google.protobuf.Struct.getDefaultInstance()) { getStructSchemaBuilder().mergeFrom(value); @@ -1958,7 +2939,7 @@ public Builder mergeStructSchema(com.google.protobuf.Struct value) { structSchemaBuilder_.mergeFrom(value); } if (structSchema_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -1980,7 +2961,7 @@ public Builder mergeStructSchema(com.google.protobuf.Struct value) { * */ public Builder clearStructSchema() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000080); structSchema_ = null; if (structSchemaBuilder_ != null) { structSchemaBuilder_.dispose(); @@ -2006,7 +2987,7 @@ public Builder clearStructSchema() { * */ public com.google.protobuf.Struct.Builder getStructSchemaBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000080; onChanged(); return getStructSchemaFieldBuilder().getBuilder(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java index 5699f4b4598a..c7182150ab54 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceOrBuilder.java @@ -151,6 +151,123 @@ public interface DatasourceOrBuilder com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceOrBuilder getLookerExploreReferenceOrBuilder(); + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * @return Whether the alloyDbReference field is set. + */ + boolean hasAlloyDbReference(); + + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + * + * @return The alloyDbReference. + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloyDbReference(); + + /** + * + * + *
+   * A reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloy_db_reference = 12; + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder + getAlloyDbReferenceOrBuilder(); + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * @return Whether the spannerReference field is set. + */ + boolean hasSpannerReference(); + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + * + * @return The spannerReference. + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference(); + + /** + * + * + *
+   * A reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 13; + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder(); + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return Whether the cloudSqlReference field is set. + */ + boolean hasCloudSqlReference(); + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + * + * @return The cloudSqlReference. + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference(); + + /** + * + * + *
+   * A reference to a CloudSQL database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 14; + * + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder(); + /** * * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java index b1c94cd69f54..06dd9e94d424 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceProto.java @@ -48,6 +48,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReference_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -88,40 +112,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "8google/cloud/geminidataanalytics/v1beta/datasource.proto\022\'google.cloud.geminid" + "ataanalytics.v1beta\032\037google/api/field_be" - + "havior.proto\0329google/cloud/geminidataana" - + "lytics/v1beta/credentials.proto\032\034google/protobuf/struct.proto\"\237\002\n" + + "havior.proto\032;google/cloud/geminidataanalytics/v1beta/agent_context.proto\0329googl" + + "e/cloud/geminidataanalytics/v1beta/crede" + + "ntials.proto\032\034google/protobuf/struct.proto\"\240\004\n" + "\024DatasourceReferences\022N\n" - + "\002bq\030\001 \001(\0132@.google.cloud.gemini" - + "dataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" - + "\006studio\030\002 \001(\0132C.google.cloud.ge" - + "minidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" - + "\006looker\030\003 \001(\0132@.google.c" - + "loud.geminidataanalytics.v1beta.LookerExploreReferencesH\000B\014\n\n" + + "\002bq\030\001 \001(\0132" + + "@.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferencesH\000\022U\n" + + "\006studio\030\002 " + + "\001(\0132C.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReferencesH\000\022R\n" + + "\006looker\030\003 \001(\0132@.google.cloud.geminidataanal" + + "ytics.v1beta.LookerExploreReferencesH\000\022L\n" + + "\007alloydb\030\010" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + + "\021spanner_reference\030\t \001(\01329.google.cloud.g" + + "eminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" + + "\023cloud_sql_reference\030\n" + + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\000B\014\n\n" + "references\"y\n" + "\027BigQueryTableReferences\022^\n" - + "\020table_references\030\001" - + " \003(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\002\"\247\001\n" + + "\020table_references\030\001 \003" + + "(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceB\003\340A\002\"\247\001\n" + "\026BigQueryTableReference\022\027\n\n" + "project_id\030\001 \001(\tB\003\340A\002\022\027\n\n" + "dataset_id\030\003 \001(\tB\003\340A\002\022\025\n" + "\010table_id\030\004 \001(\tB\003\340A\002\022D\n" - + "\006schema\030\006 \001(\0132/.google." - + "cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + + "\006schema\030\006 \001(\0132/.google.cl" + + "oud.geminidataanalytics.v1beta.SchemaB\003\340A\001\"{\n" + "\032StudioDatasourceReferences\022]\n" - + "\021studio_references\030\002 \003(\0132B.google.cloud.gem" - + "inidataanalytics.v1beta.StudioDatasourceReference\"7\n" + + "\021studio_references\030\002 \003(\0132B.google.cloud.gemin" + + "idataanalytics.v1beta.StudioDatasourceReference\"7\n" + "\031StudioDatasourceReference\022\032\n\r" - + "datasource_id\030\001 \001(\tB\003\340A\002\"\313\001\n" + + "datasource_id\030\001 \001(\tB\003\340A\002\"\334\001\n" + + "\020AlloyDbReference\022b\n" + + "\022database_reference\030\001 \001(\0132A.goog" + + "le.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\003 \001(\0132>.google.cloud.gemini" + + "dataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\255\001\n" + + "\030AlloyDbDatabaseReference\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\002 \001(\tB\003\340A\002\022\027\n\n" + + "cluster_id\030\003 \001(\tB\003\340A\002\022\030\n" + + "\013instance_id\030\004 \001(\tB\003\340A\002\022\030\n" + + "\013database_id\030\005 \001(\tB\003\340A\002\022\026\n" + + "\ttable_ids\030\006 \003(\tB\003\340A\001\"\334\001\n" + + "\020SpannerReference\022b\n" + + "\022database_reference\030\001 \001(\0132A.googl" + + "e.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\002 \001(\0132>.google.cloud.geminid" + + "ataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\265\002\n" + + "\030SpannerDatabaseReference\022]\n" + + "\006engine\030\006 \001(\0162H.google.cloud.geminidataana" + + "lytics.v1beta.SpannerDatabaseReference.EngineB\003\340A\002\022\027\n\n" + + "project_id\030\001 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\002 \001(\tB\003\340A\002\022\030\n" + + "\013instance_id\030\003 \001(\tB\003\340A\002\022\030\n" + + "\013database_id\030\004 \001(\tB\003\340A\002\022\026\n" + + "\ttable_ids\030\005 \003(\tB\003\340A\001\"@\n" + + "\006Engine\022\026\n" + + "\022ENGINE_UNSPECIFIED\020\000\022\016\n\n" + + "GOOGLE_SQL\020\001\022\016\n\n" + + "POSTGRESQL\020\002\"\336\001\n" + + "\021CloudSqlReference\022c\n" + + "\022database_reference\030\001 \001(\0132B.google.cloud.geminidataanalyt" + + "ics.v1beta.CloudSqlDatabaseReferenceB\003\340A\002\022d\n" + + "\027agent_context_reference\030\002 \001(\0132>.goo" + + "gle.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\003\340A\001\"\262\002\n" + + "\031CloudSqlDatabaseReference\022^\n" + + "\006engine\030\001 \001(\0162I.google.c" + + "loud.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\003\340A\002\022\027\n\n" + + "project_id\030\002 \001(\tB\003\340A\002\022\023\n" + + "\006region\030\003 \001(\tB\003\340A\002\022\030\n" + + "\013instance_id\030\004 \001(\tB\003\340A\002\022\030\n" + + "\013database_id\030\005 \001(\tB\003\340A\002\022\026\n" + + "\ttable_ids\030\007 \003(\tB\003\340A\001\";\n" + + "\006Engine\022\026\n" + + "\022ENGINE_UNSPECIFIED\020\000\022\016\n\n" + + "POSTGRESQL\020\001\022\t\n" + + "\005MYSQL\020\002\"\313\001\n" + "\027LookerExploreReferences\022`\n" - + "\022explore_references\030\001 \003" - + "(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" - + "\013credentials\030\002" - + " \001(\01324.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + + "\022explore_references\030\001 \003(\0132?.google.cl" + + "oud.geminidataanalytics.v1beta.LookerExploreReferenceB\003\340A\002\022N\n" + + "\013credentials\030\002 \001(\0132" + + "4.google.cloud.geminidataanalytics.v1beta.CredentialsB\003\340A\001\"\246\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022j\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132B.google.cloud.geminidataanalyt" - + "ics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + + " \001(\0132B.goo" + + "gle.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\000\022\031\n" + "\014lookml_model\030\004 \001(\tB\003\340A\002\022\024\n" + "\007explore\030\005 \001(\tB\003\340A\002\022D\n" + "\006schema\030\010" @@ -129,27 +206,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010instance\"W\n" + "\031PrivateLookerInstanceInfo\022\032\n" + "\022looker_instance_id\030\001 \001(\t\022\036\n" - + "\026service_directory_name\030\002 \001(\t\"\376\002\n\n" + + "\026service_directory_name\030\002 \001(\t\"\212\005\n\n" + "Datasource\022c\n" - + "\030bigquery_table_reference\030\001 \001(\0132?.google.clo" - + "ud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001 \001(\0132?.google.cloud.geminidataa" + + "nalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022c\n" - + "\030looker_explore_reference\030\004 \001(\013" - + "2?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022D\n" - + "\006schema\030\007 " - + "\001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\0223\n\r" + + "\030looker_explore_reference\030\004 \001(\0132?.google.clou" + + "d.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022W\n" + + "\022alloy_db_reference\030\014 \001(" + + "\01329.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + + "\021spanner_reference\030\r" + + " \001(\01329.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" + + "\023cloud_sql_reference\030\016 \001(\0132:.google.cloud.gemin" + + "idataanalytics.v1beta.CloudSqlReferenceH\000\022D\n" + + "\006schema\030\007" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\003\340A\001\0223\n\r" + "struct_schema\030\n" + " \001(\0132\027.google.protobuf.StructB\003\340A\001B\013\n" + "\treference\"\367\001\n" + "\006Schema\022C\n" - + "\006fields\030\001 \003(\0132..google." - + "cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\030\n" + + "\006fields\030\001" + + " \003(\0132..google.cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\025\n" + "\010synonyms\030\003 \003(\tB\003\340A\001\022\021\n" + "\004tags\030\004 \003(\tB\003\340A\001\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\001\022I\n" - + "\007filters\030\006 \003(\01323.go" - + "ogle.cloud.geminidataanalytics.v1beta.DataFilterB\003\340A\001\"\231\002\n" + + "\007filters\030\006" + + " \003(\01323.google.cloud.geminidataanalytics.v1beta.DataFilterB\003\340A\001\"\231\002\n" + "\005Field\022\021\n" + "\004name\030\001 \001(\tB\003\340A\001\022\021\n" + "\004type\030\002 \001(\tB\003\340A\001\022\030\n" @@ -158,31 +241,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\006 \003(\tB\003\340A\001\022\021\n" + "\004tags\030\007 \003(\tB\003\340A\001\022\031\n" + "\014display_name\030\010 \001(\tB\003\340A\001\022F\n" - + "\tsubfields\030\t \003(\0132..goo" - + "gle.cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\025\n" + + "\tsubfields\030\t" + + " \003(\0132..google.cloud.geminidataanalytics.v1beta.FieldB\003\340A\001\022\025\n" + "\010category\030\n" + " \001(\tB\003\340A\001\022\031\n" + "\014value_format\030\013 \001(\tB\003\340A\001\"\200\001\n\n" + "DataFilter\022\022\n" + "\005field\030\001 \001(\tB\003\340A\001\022\022\n" + "\005value\030\002 \001(\tB\003\340A\001\022J\n" - + "\004type\030\003" - + " \001(\01627.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + + "\004type\030\003 \001(\01627.google.cloud.gemi" + + "nidataanalytics.v1beta.DataFilterTypeB\003\340A\001*E\n" + "\016DataFilterType\022 \n" + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + "ALWAYS_FILTER\020\001B\240\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\017DatasourceP" - + "rotoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;" - + "geminidataanalyticspb\252\002\'Google.Cloud.Gem" - + "iniDataAnalytics.V1Beta\312\002\'Google\\Cloud\\G" - + "eminiDataAnalytics\\V1beta\352\002*Google::Clou" - + "d::GeminiDataAnalytics::V1betab\006proto3" + + "+com.google.cloud.geminidataanalytics.v1bet" + + "aB\017DatasourceProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminida" + + "taanalyticspb;geminidataanalyticspb\252\002\'Go" + + "ogle.Cloud.GeminiDataAnalytics.V1Beta\312\002\'" + + "Google\\Cloud\\GeminiDataAnalytics\\V1beta\352" + + "\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.geminidataanalytics.v1beta.AgentContextProto.getDescriptor(), com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); @@ -192,7 +276,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DatasourceReferences_descriptor, new java.lang.String[] { - "Bq", "Studio", "Looker", "References", + "Bq", + "Studio", + "Looker", + "Alloydb", + "SpannerReference", + "CloudSqlReference", + "References", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryTableReferences_descriptor = getDescriptor().getMessageTypes().get(1); @@ -226,8 +316,56 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "DatasourceId", }); - internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor = getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor, + new java.lang.String[] { + "DatabaseReference", "AgentContextReference", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor, + new java.lang.String[] { + "ProjectId", "Region", "ClusterId", "InstanceId", "DatabaseId", "TableIds", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor, + new java.lang.String[] { + "DatabaseReference", "AgentContextReference", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor, + new java.lang.String[] { + "Engine", "ProjectId", "Region", "InstanceId", "DatabaseId", "TableIds", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor, + new java.lang.String[] { + "DatabaseReference", "AgentContextReference", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor, + new java.lang.String[] { + "Engine", "ProjectId", "Region", "InstanceId", "DatabaseId", "TableIds", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor = + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor, @@ -235,7 +373,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExploreReferences", "Credentials", }); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_descriptor, @@ -248,7 +386,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", }); internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_descriptor, @@ -256,7 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LookerInstanceId", "ServiceDirectoryName", }); internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_descriptor, @@ -264,12 +402,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BigqueryTableReference", "StudioDatasourceId", "LookerExploreReference", + "AlloyDbReference", + "SpannerReference", + "CloudSqlReference", "Schema", "StructSchema", "Reference", }); internal_static_google_cloud_geminidataanalytics_v1beta_Schema_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_geminidataanalytics_v1beta_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Schema_descriptor, @@ -277,7 +418,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Fields", "Description", "Synonyms", "Tags", "DisplayName", "Filters", }); internal_static_google_cloud_geminidataanalytics_v1beta_Field_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_geminidataanalytics_v1beta_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Field_descriptor, @@ -294,7 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValueFormat", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_descriptor, @@ -307,6 +448,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.geminidataanalytics.v1beta.AgentContextProto.getDescriptor(); com.google.cloud.geminidataanalytics.v1beta.CredentialsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferences.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferences.java index 91fdc13a1938..8eaeefc7d8b7 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferences.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferences.java @@ -74,6 +74,9 @@ public enum ReferencesCase BQ(1), STUDIO(2), LOOKER(3), + ALLOYDB(8), + SPANNER_REFERENCE(9), + CLOUD_SQL_REFERENCE(10), REFERENCES_NOT_SET(0); private final int value; @@ -99,6 +102,12 @@ public static ReferencesCase forNumber(int value) { return STUDIO; case 3: return LOOKER; + case 8: + return ALLOYDB; + case 9: + return SPANNER_REFERENCE; + case 10: + return CLOUD_SQL_REFERENCE; case 0: return REFERENCES_NOT_SET; default: @@ -282,6 +291,174 @@ public com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences getLo return com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.getDefaultInstance(); } + public static final int ALLOYDB_FIELD_NUMBER = 8; + + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return Whether the alloydb field is set. + */ + @java.lang.Override + public boolean hasAlloydb() { + return referencesCase_ == 8; + } + + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return The alloydb. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloydb() { + if (referencesCase_ == 8) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder + getAlloydbOrBuilder() { + if (referencesCase_ == 8) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + + public static final int SPANNER_REFERENCE_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return Whether the spannerReference field is set. + */ + @java.lang.Override + public boolean hasSpannerReference() { + return referencesCase_ == 9; + } + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return The spannerReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference() { + if (referencesCase_ == 9) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder() { + if (referencesCase_ == 9) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + + public static final int CLOUD_SQL_REFERENCE_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return Whether the cloudSqlReference field is set. + */ + @java.lang.Override + public boolean hasCloudSqlReference() { + return referencesCase_ == 10; + } + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return The cloudSqlReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference() { + if (referencesCase_ == 10) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder() { + if (referencesCase_ == 10) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -308,6 +485,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 3, (com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences) references_); } + if (referencesCase_ == 8) { + output.writeMessage( + 8, (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_); + } + if (referencesCase_ == 9) { + output.writeMessage( + 9, (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_); + } + if (referencesCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_); + } getUnknownFields().writeTo(output); } @@ -333,6 +522,21 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, (com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferences) references_); } + if (referencesCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_); + } + if (referencesCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_); + } + if (referencesCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -360,6 +564,15 @@ public boolean equals(final java.lang.Object obj) { case 3: if (!getLooker().equals(other.getLooker())) return false; break; + case 8: + if (!getAlloydb().equals(other.getAlloydb())) return false; + break; + case 9: + if (!getSpannerReference().equals(other.getSpannerReference())) return false; + break; + case 10: + if (!getCloudSqlReference().equals(other.getCloudSqlReference())) return false; + break; case 0: default: } @@ -387,6 +600,18 @@ public int hashCode() { hash = (37 * hash) + LOOKER_FIELD_NUMBER; hash = (53 * hash) + getLooker().hashCode(); break; + case 8: + hash = (37 * hash) + ALLOYDB_FIELD_NUMBER; + hash = (53 * hash) + getAlloydb().hashCode(); + break; + case 9: + hash = (37 * hash) + SPANNER_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getSpannerReference().hashCode(); + break; + case 10: + hash = (37 * hash) + CLOUD_SQL_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getCloudSqlReference().hashCode(); + break; case 0: default: } @@ -540,6 +765,15 @@ public Builder clear() { if (lookerBuilder_ != null) { lookerBuilder_.clear(); } + if (alloydbBuilder_ != null) { + alloydbBuilder_.clear(); + } + if (spannerReferenceBuilder_ != null) { + spannerReferenceBuilder_.clear(); + } + if (cloudSqlReferenceBuilder_ != null) { + cloudSqlReferenceBuilder_.clear(); + } referencesCase_ = 0; references_ = null; return this; @@ -596,6 +830,15 @@ private void buildPartialOneofs( if (referencesCase_ == 3 && lookerBuilder_ != null) { result.references_ = lookerBuilder_.build(); } + if (referencesCase_ == 8 && alloydbBuilder_ != null) { + result.references_ = alloydbBuilder_.build(); + } + if (referencesCase_ == 9 && spannerReferenceBuilder_ != null) { + result.references_ = spannerReferenceBuilder_.build(); + } + if (referencesCase_ == 10 && cloudSqlReferenceBuilder_ != null) { + result.references_ = cloudSqlReferenceBuilder_.build(); + } } @java.lang.Override @@ -662,6 +905,21 @@ public Builder mergeFrom( mergeLooker(other.getLooker()); break; } + case ALLOYDB: + { + mergeAlloydb(other.getAlloydb()); + break; + } + case SPANNER_REFERENCE: + { + mergeSpannerReference(other.getSpannerReference()); + break; + } + case CLOUD_SQL_REFERENCE: + { + mergeCloudSqlReference(other.getCloudSqlReference()); + break; + } case REFERENCES_NOT_SET: { break; @@ -711,6 +969,26 @@ public Builder mergeFrom( referencesCase_ = 3; break; } // case 26 + case 66: + { + input.readMessage(getAlloydbFieldBuilder().getBuilder(), extensionRegistry); + referencesCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getSpannerReferenceFieldBuilder().getBuilder(), extensionRegistry); + referencesCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getCloudSqlReferenceFieldBuilder().getBuilder(), extensionRegistry); + referencesCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1440,6 +1718,689 @@ public Builder clearLooker() { return lookerBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder> + alloydbBuilder_; + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return Whether the alloydb field is set. + */ + @java.lang.Override + public boolean hasAlloydb() { + return referencesCase_ == 8; + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return The alloydb. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloydb() { + if (alloydbBuilder_ == null) { + if (referencesCase_ == 8) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } else { + if (referencesCase_ == 8) { + return alloydbBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + public Builder setAlloydb(com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference value) { + if (alloydbBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + references_ = value; + onChanged(); + } else { + alloydbBuilder_.setMessage(value); + } + referencesCase_ = 8; + return this; + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + public Builder setAlloydb( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder builderForValue) { + if (alloydbBuilder_ == null) { + references_ = builderForValue.build(); + onChanged(); + } else { + alloydbBuilder_.setMessage(builderForValue.build()); + } + referencesCase_ = 8; + return this; + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + public Builder mergeAlloydb( + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference value) { + if (alloydbBuilder_ == null) { + if (referencesCase_ == 8 + && references_ + != com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference + .getDefaultInstance()) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_) + .mergeFrom(value) + .buildPartial(); + } else { + references_ = value; + } + onChanged(); + } else { + if (referencesCase_ == 8) { + alloydbBuilder_.mergeFrom(value); + } else { + alloydbBuilder_.setMessage(value); + } + } + referencesCase_ = 8; + return this; + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + public Builder clearAlloydb() { + if (alloydbBuilder_ == null) { + if (referencesCase_ == 8) { + referencesCase_ = 0; + references_ = null; + onChanged(); + } + } else { + if (referencesCase_ == 8) { + referencesCase_ = 0; + references_ = null; + } + alloydbBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder + getAlloydbBuilder() { + return getAlloydbFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder + getAlloydbOrBuilder() { + if ((referencesCase_ == 8) && (alloydbBuilder_ != null)) { + return alloydbBuilder_.getMessageOrBuilder(); + } else { + if (referencesCase_ == 8) { + return (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to an AlloyDB database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder> + getAlloydbFieldBuilder() { + if (alloydbBuilder_ == null) { + if (!(referencesCase_ == 8)) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.getDefaultInstance(); + } + alloydbBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference) references_, + getParentForChildren(), + isClean()); + references_ = null; + } + referencesCase_ = 8; + onChanged(); + return alloydbBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder> + spannerReferenceBuilder_; + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return Whether the spannerReference field is set. + */ + @java.lang.Override + public boolean hasSpannerReference() { + return referencesCase_ == 9; + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return The spannerReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference() { + if (spannerReferenceBuilder_ == null) { + if (referencesCase_ == 9) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } else { + if (referencesCase_ == 9) { + return spannerReferenceBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + public Builder setSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference value) { + if (spannerReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + references_ = value; + onChanged(); + } else { + spannerReferenceBuilder_.setMessage(value); + } + referencesCase_ = 9; + return this; + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + public Builder setSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder builderForValue) { + if (spannerReferenceBuilder_ == null) { + references_ = builderForValue.build(); + onChanged(); + } else { + spannerReferenceBuilder_.setMessage(builderForValue.build()); + } + referencesCase_ = 9; + return this; + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + public Builder mergeSpannerReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference value) { + if (spannerReferenceBuilder_ == null) { + if (referencesCase_ == 9 + && references_ + != com.google.cloud.geminidataanalytics.v1beta.SpannerReference + .getDefaultInstance()) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_) + .mergeFrom(value) + .buildPartial(); + } else { + references_ = value; + } + onChanged(); + } else { + if (referencesCase_ == 9) { + spannerReferenceBuilder_.mergeFrom(value); + } else { + spannerReferenceBuilder_.setMessage(value); + } + } + referencesCase_ = 9; + return this; + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + public Builder clearSpannerReference() { + if (spannerReferenceBuilder_ == null) { + if (referencesCase_ == 9) { + referencesCase_ = 0; + references_ = null; + onChanged(); + } + } else { + if (referencesCase_ == 9) { + referencesCase_ = 0; + references_ = null; + } + spannerReferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder + getSpannerReferenceBuilder() { + return getSpannerReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder() { + if ((referencesCase_ == 9) && (spannerReferenceBuilder_ != null)) { + return spannerReferenceBuilder_.getMessageOrBuilder(); + } else { + if (referencesCase_ == 9) { + return (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to a Spanner database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder> + getSpannerReferenceFieldBuilder() { + if (spannerReferenceBuilder_ == null) { + if (!(referencesCase_ == 9)) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + spannerReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) references_, + getParentForChildren(), + isClean()); + references_ = null; + } + referencesCase_ = 9; + onChanged(); + return spannerReferenceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder> + cloudSqlReferenceBuilder_; + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return Whether the cloudSqlReference field is set. + */ + @java.lang.Override + public boolean hasCloudSqlReference() { + return referencesCase_ == 10; + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return The cloudSqlReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference() { + if (cloudSqlReferenceBuilder_ == null) { + if (referencesCase_ == 10) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } else { + if (referencesCase_ == 10) { + return cloudSqlReferenceBuilder_.getMessage(); + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + public Builder setCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference value) { + if (cloudSqlReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + references_ = value; + onChanged(); + } else { + cloudSqlReferenceBuilder_.setMessage(value); + } + referencesCase_ = 10; + return this; + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + public Builder setCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder builderForValue) { + if (cloudSqlReferenceBuilder_ == null) { + references_ = builderForValue.build(); + onChanged(); + } else { + cloudSqlReferenceBuilder_.setMessage(builderForValue.build()); + } + referencesCase_ = 10; + return this; + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + public Builder mergeCloudSqlReference( + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference value) { + if (cloudSqlReferenceBuilder_ == null) { + if (referencesCase_ == 10 + && references_ + != com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference + .getDefaultInstance()) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.newBuilder( + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_) + .mergeFrom(value) + .buildPartial(); + } else { + references_ = value; + } + onChanged(); + } else { + if (referencesCase_ == 10) { + cloudSqlReferenceBuilder_.mergeFrom(value); + } else { + cloudSqlReferenceBuilder_.setMessage(value); + } + } + referencesCase_ = 10; + return this; + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + public Builder clearCloudSqlReference() { + if (cloudSqlReferenceBuilder_ == null) { + if (referencesCase_ == 10) { + referencesCase_ = 0; + references_ = null; + onChanged(); + } + } else { + if (referencesCase_ == 10) { + referencesCase_ = 0; + references_ = null; + } + cloudSqlReferenceBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder + getCloudSqlReferenceBuilder() { + return getCloudSqlReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder() { + if ((referencesCase_ == 10) && (cloudSqlReferenceBuilder_ != null)) { + return cloudSqlReferenceBuilder_.getMessageOrBuilder(); + } else { + if (referencesCase_ == 10) { + return (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_; + } + return com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Reference to a CloudSql database.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder> + getCloudSqlReferenceFieldBuilder() { + if (cloudSqlReferenceBuilder_ == null) { + if (!(referencesCase_ == 10)) { + references_ = + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.getDefaultInstance(); + } + cloudSqlReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder>( + (com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference) references_, + getParentForChildren(), + isClean()); + references_ = null; + } + referencesCase_ = 10; + onChanged(); + return cloudSqlReferenceBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferencesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferencesOrBuilder.java index 92bbc6c09e97..df88fb24eb70 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferencesOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DatasourceReferencesOrBuilder.java @@ -136,6 +136,122 @@ public interface DatasourceReferencesOrBuilder */ com.google.cloud.geminidataanalytics.v1beta.LookerExploreReferencesOrBuilder getLookerOrBuilder(); + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return Whether the alloydb field is set. + */ + boolean hasAlloydb(); + + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + * + * @return The alloydb. + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReference getAlloydb(); + + /** + * + * + *
+   * Reference to an AlloyDB database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.AlloyDbReference alloydb = 8; + */ + com.google.cloud.geminidataanalytics.v1beta.AlloyDbReferenceOrBuilder getAlloydbOrBuilder(); + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return Whether the spannerReference field is set. + */ + boolean hasSpannerReference(); + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + * + * @return The spannerReference. + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerReference getSpannerReference(); + + /** + * + * + *
+   * Reference to a Spanner database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.SpannerReference spanner_reference = 9; + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder + getSpannerReferenceOrBuilder(); + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return Whether the cloudSqlReference field is set. + */ + boolean hasCloudSqlReference(); + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + * + * @return The cloudSqlReference. + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReference getCloudSqlReference(); + + /** + * + * + *
+   * Reference to a CloudSql database.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.CloudSqlReference cloud_sql_reference = 10; + * + */ + com.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceOrBuilder + getCloudSqlReferenceOrBuilder(); + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.ReferencesCase getReferencesCase(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResult.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResult.java new file mode 100644 index 000000000000..d3b4d1cb1653 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResult.java @@ -0,0 +1,4688 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * The result of a query execution. The design is generic for all dialects.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult} + */ +public final class ExecutedQueryResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) + ExecutedQueryResultOrBuilder { + private static final long serialVersionUID = 0L; + + // Use ExecutedQueryResult.newBuilder() to construct. + private ExecutedQueryResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExecutedQueryResult() { + columns_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + queryExecutionError_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExecutedQueryResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder.class); + } + + public interface ColumnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The name of the column.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+     * The name of the column.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+     * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
+     * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + } + + /** + * + * + *
+   * Describes a single column in the result set.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column} + */ + public static final class Column extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) + ColumnOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Column.newBuilder() to construct. + private Column(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Column() { + name_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Column(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+     * The name of the column.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+     * The name of the column.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
+     * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+     * 
+ * + * string type = 2; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + * + * + *
+     * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+     * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column other = + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) obj; + + if (!getName().equals(other.getName())) return false; + if (!getType().equals(other.getType())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Describes a single column in the result set.
+     * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + .class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + type_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Column_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column build() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column result = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+       * The name of the column.
+       * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The name of the column.
+       * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The name of the column.
+       * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the column.
+       * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The name of the column.
+       * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
+       * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+       * 
+ * + * string type = 2; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+       * 
+ * + * string type = 2; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+       * 
+ * + * string type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+       * 
+ * + * string type = 2; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP").
+       * 
+ * + * string type = 2; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000002; + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column) + private static final com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Column parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The cell value, represented in a string format.
+     * Timestamps could be formatted, for example, using RFC3339Nano.
+     * This field is used if the value is not null.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + + /** + * + * + *
+     * The cell value, represented in a string format.
+     * Timestamps could be formatted, for example, using RFC3339Nano.
+     * This field is used if the value is not null.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + + /** + * + * + *
+   * Represents a single value within a row.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value} + */ + public static final class Value extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) + ValueOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Value.newBuilder() to construct. + private Value(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Value() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Value(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + + /** + * + * + *
+     * The cell value, represented in a string format.
+     * Timestamps could be formatted, for example, using RFC3339Nano.
+     * This field is used if the value is not null.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + 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(); + value_ = s; + return s; + } + } + + /** + * + * + *
+     * The cell value, represented in a string format.
+     * Timestamps could be formatted, for example, using RFC3339Nano.
+     * This field is used if the value is not null.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value other = + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value 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; + } + + /** + * + * + *
+     * Represents a single value within a row.
+     * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + .class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Value_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value build() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value result = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + .getDefaultInstance()) return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + + /** + * + * + *
+       * The cell value, represented in a string format.
+       * Timestamps could be formatted, for example, using RFC3339Nano.
+       * This field is used if the value is not null.
+       * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * The cell value, represented in a string format.
+       * Timestamps could be formatted, for example, using RFC3339Nano.
+       * This field is used if the value is not null.
+       * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * The cell value, represented in a string format.
+       * Timestamps could be formatted, for example, using RFC3339Nano.
+       * This field is used if the value is not null.
+       * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The cell value, represented in a string format.
+       * Timestamps could be formatted, for example, using RFC3339Nano.
+       * This field is used if the value is not null.
+       * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * The cell value, represented in a string format.
+       * Timestamps could be formatted, for example, using RFC3339Nano.
+       * This field is used if the value is not null.
+       * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000001; + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value) + private static final com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Value parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface RowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + java.util.List + getValuesList(); + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value getValues(int index); + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + int getValuesCount(); + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + java.util.List< + ? extends + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder> + getValuesOrBuilderList(); + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder + getValuesOrBuilder(int index); + } + + /** + * + * + *
+   * Represents a single row in the result set.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row} + */ + public static final class Row extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) + RowOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Row.newBuilder() to construct. + private Row(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Row() { + values_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Row(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + values_; + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + @java.lang.Override + public java.util.List + getValuesList() { + return values_; + } + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder> + getValuesOrBuilderList() { + return values_; + } + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + @java.lang.Override + public int getValuesCount() { + return values_.size(); + } + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value getValues( + int index) { + return values_.get(index); + } + + /** + * + * + *
+     * The values in the row, corresponding positionally to the columns.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder + getValuesOrBuilder(int index) { + return values_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + output.writeMessage(1, values_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, values_.get(i)); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row other = + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row 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; + } + + /** + * + * + *
+     * Represents a single row in the result set.
+     * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + } else { + values_ = null; + valuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_Row_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row build() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row result = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row result) { + if (valuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + values_ = java.util.Collections.unmodifiableList(values_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.values_ = values_; + } else { + result.values_ = valuesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + .getDefaultInstance()) return this; + if (valuesBuilder_ == null) { + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + } else { + if (!other.values_.isEmpty()) { + if (valuesBuilder_.isEmpty()) { + valuesBuilder_.dispose(); + valuesBuilder_ = null; + values_ = other.values_; + bitField0_ = (bitField0_ & ~0x00000001); + valuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getValuesFieldBuilder() + : null; + } else { + valuesBuilder_.addAllMessages(other.values_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + .parser(), + extensionRegistry); + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(m); + } else { + valuesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + values_ = java.util.Collections.emptyList(); + + private void ensureValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + values_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value>(values_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder> + valuesBuilder_; + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public java.util.List + getValuesList() { + if (valuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(values_); + } else { + return valuesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public int getValuesCount() { + if (valuesBuilder_ == null) { + return values_.size(); + } else { + return valuesBuilder_.getCount(); + } + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value getValues( + int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder setValues( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + onChanged(); + } else { + valuesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder setValues( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.set(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder addValues( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + onChanged(); + } else { + valuesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder addValues( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value value) { + if (valuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(index, value); + onChanged(); + } else { + valuesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder addValues( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder addValues( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + builderForValue) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.add(index, builderForValue.build()); + onChanged(); + } else { + valuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder addAllValues( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value> + values) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + onChanged(); + } else { + valuesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder clearValues() { + if (valuesBuilder_ == null) { + values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + valuesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public Builder removeValues(int index) { + if (valuesBuilder_ == null) { + ensureValuesIsMutable(); + values_.remove(index); + onChanged(); + } else { + valuesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + getValuesBuilder(int index) { + return getValuesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder + getValuesOrBuilder(int index) { + if (valuesBuilder_ == null) { + return values_.get(index); + } else { + return valuesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder> + getValuesOrBuilderList() { + if (valuesBuilder_ != null) { + return valuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(values_); + } + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + addValuesBuilder() { + return getValuesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + .getDefaultInstance()); + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder + addValuesBuilder(int index) { + return getValuesFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value + .getDefaultInstance()); + } + + /** + * + * + *
+       * The values in the row, corresponding positionally to the columns.
+       * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value values = 1; + * + */ + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder> + getValuesBuilderList() { + return getValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder> + getValuesFieldBuilder() { + if (valuesBuilder_ == null) { + valuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Value.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ValueOrBuilder>( + values_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + values_ = null; + } + return valuesBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row) + private static final com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Row parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int COLUMNS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + columns_; + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + @java.lang.Override + public java.util.List + getColumnsList() { + return columns_; + } + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder> + getColumnsOrBuilderList() { + return columns_; + } + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + @java.lang.Override + public int getColumnsCount() { + return columns_.size(); + } + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column getColumns( + int index) { + return columns_.get(index); + } + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder + getColumnsOrBuilder(int index) { + return columns_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rows_; + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + @java.lang.Override + public java.util.List + getRowsList() { + return rows_; + } + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder> + getRowsOrBuilderList() { + return rows_; + } + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row getRows(int index) { + return rows_.get(index); + } + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder + getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int TOTAL_ROW_COUNT_FIELD_NUMBER = 3; + private long totalRowCount_ = 0L; + + /** + * + * + *
+   * The total number of rows in the full result set, if known.
+   * This may be an estimate or an exact count.
+   * 
+ * + * int64 total_row_count = 3; + * + * @return The totalRowCount. + */ + @java.lang.Override + public long getTotalRowCount() { + return totalRowCount_; + } + + public static final int PARTIAL_RESULT_FIELD_NUMBER = 4; + private boolean partialResult_ = false; + + /** + * + * + *
+   * Set to true if the returned rows in `query_result` are a subset of the
+   * full result. This can happen, for example, if the query execution hits a
+   * row limit. When true, the `query_result` does not contain all
+   * rows. To retrieve the complete result, consider using the
+   * `generated_query` in `QueryDataResponse` and executing it in your own
+   * environment.
+   * 
+ * + * bool partial_result = 4; + * + * @return The partialResult. + */ + @java.lang.Override + public boolean getPartialResult() { + return partialResult_; + } + + public static final int QUERY_EXECUTION_ERROR_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object queryExecutionError_ = ""; + + /** + * + * + *
+   * The error message if the query execution failed.
+   * 
+ * + * string query_execution_error = 5; + * + * @return The queryExecutionError. + */ + @java.lang.Override + public java.lang.String getQueryExecutionError() { + java.lang.Object ref = queryExecutionError_; + 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(); + queryExecutionError_ = s; + return s; + } + } + + /** + * + * + *
+   * The error message if the query execution failed.
+   * 
+ * + * string query_execution_error = 5; + * + * @return The bytes for queryExecutionError. + */ + @java.lang.Override + public com.google.protobuf.ByteString getQueryExecutionErrorBytes() { + java.lang.Object ref = queryExecutionError_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryExecutionError_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < columns_.size(); i++) { + output.writeMessage(1, columns_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(2, rows_.get(i)); + } + if (totalRowCount_ != 0L) { + output.writeInt64(3, totalRowCount_); + } + if (partialResult_ != false) { + output.writeBool(4, partialResult_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryExecutionError_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, queryExecutionError_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < columns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, columns_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rows_.get(i)); + } + if (totalRowCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, totalRowCount_); + } + if (partialResult_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, partialResult_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(queryExecutionError_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, queryExecutionError_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult other = + (com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) obj; + + if (!getColumnsList().equals(other.getColumnsList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (getTotalRowCount() != other.getTotalRowCount()) return false; + if (getPartialResult() != other.getPartialResult()) return false; + if (!getQueryExecutionError().equals(other.getQueryExecutionError())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getColumnsCount() > 0) { + hash = (37 * hash) + COLUMNS_FIELD_NUMBER; + hash = (53 * hash) + getColumnsList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (37 * hash) + TOTAL_ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getTotalRowCount()); + hash = (37 * hash) + PARTIAL_RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPartialResult()); + hash = (37 * hash) + QUERY_EXECUTION_ERROR_FIELD_NUMBER; + hash = (53 * hash) + getQueryExecutionError().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The result of a query execution. The design is generic for all dialects.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.class, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + } else { + columns_ = null; + columnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + totalRowCount_ = 0L; + partialResult_ = false; + queryExecutionError_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_ExecutedQueryResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult build() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult result = + new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult result) { + if (columnsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + columns_ = java.util.Collections.unmodifiableList(columns_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.columns_ = columns_; + } else { + result.columns_ = columnsBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalRowCount_ = totalRowCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.partialResult_ = partialResult_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.queryExecutionError_ = queryExecutionError_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance()) + return this; + if (columnsBuilder_ == null) { + if (!other.columns_.isEmpty()) { + if (columns_.isEmpty()) { + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureColumnsIsMutable(); + columns_.addAll(other.columns_); + } + onChanged(); + } + } else { + if (!other.columns_.isEmpty()) { + if (columnsBuilder_.isEmpty()) { + columnsBuilder_.dispose(); + columnsBuilder_ = null; + columns_ = other.columns_; + bitField0_ = (bitField0_ & ~0x00000001); + columnsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getColumnsFieldBuilder() + : null; + } else { + columnsBuilder_.addAllMessages(other.columns_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000002); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (other.getTotalRowCount() != 0L) { + setTotalRowCount(other.getTotalRowCount()); + } + if (other.getPartialResult() != false) { + setPartialResult(other.getPartialResult()); + } + if (!other.getQueryExecutionError().isEmpty()) { + queryExecutionError_ = other.queryExecutionError_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + .parser(), + extensionRegistry); + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(m); + } else { + columnsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + .parser(), + extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + totalRowCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + partialResult_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + queryExecutionError_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + columns_ = java.util.Collections.emptyList(); + + private void ensureColumnsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + columns_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column>(columns_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder> + columnsBuilder_; + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public java.util.List + getColumnsList() { + if (columnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(columns_); + } else { + return columnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public int getColumnsCount() { + if (columnsBuilder_ == null) { + return columns_.size(); + } else { + return columnsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column getColumns( + int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder setColumns( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.set(index, value); + onChanged(); + } else { + columnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder setColumns( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.set(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder addColumns( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(value); + onChanged(); + } else { + columnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder addColumns( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column value) { + if (columnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureColumnsIsMutable(); + columns_.add(index, value); + onChanged(); + } else { + columnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder addColumns( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder addColumns( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + builderForValue) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.add(index, builderForValue.build()); + onChanged(); + } else { + columnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder addAllColumns( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column> + values) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); + onChanged(); + } else { + columnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder clearColumns() { + if (columnsBuilder_ == null) { + columns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + columnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public Builder removeColumns(int index) { + if (columnsBuilder_ == null) { + ensureColumnsIsMutable(); + columns_.remove(index); + onChanged(); + } else { + columnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + getColumnsBuilder(int index) { + return getColumnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder + getColumnsOrBuilder(int index) { + if (columnsBuilder_ == null) { + return columns_.get(index); + } else { + return columnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public java.util.List< + ? extends + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder> + getColumnsOrBuilderList() { + if (columnsBuilder_ != null) { + return columnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(columns_); + } + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + addColumnsBuilder() { + return getColumnsFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + .getDefaultInstance()); + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder + addColumnsBuilder(int index) { + return getColumnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column + .getDefaultInstance()); + } + + /** + * + * + *
+     * The columns in the result set, in order.
+     * 
+ * + * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder> + getColumnsBuilderList() { + return getColumnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder> + getColumnsFieldBuilder() { + if (columnsBuilder_ == null) { + columnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder>( + columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + columns_ = null; + } + return columnsBuilder_; + } + + private java.util.List + rows_ = java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rows_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row>(rows_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public java.util.List + getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder setRows( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder setRows( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder addRows( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder addRows( + int index, com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder addRows( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder addRows( + int index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder addAllRows( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row> + values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder + getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder> + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + .getDefaultInstance()); + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder + addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row + .getDefaultInstance()); + } + + /** + * + * + *
+     * The rows returned by the query.
+     * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder> + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder>( + rows_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private long totalRowCount_; + + /** + * + * + *
+     * The total number of rows in the full result set, if known.
+     * This may be an estimate or an exact count.
+     * 
+ * + * int64 total_row_count = 3; + * + * @return The totalRowCount. + */ + @java.lang.Override + public long getTotalRowCount() { + return totalRowCount_; + } + + /** + * + * + *
+     * The total number of rows in the full result set, if known.
+     * This may be an estimate or an exact count.
+     * 
+ * + * int64 total_row_count = 3; + * + * @param value The totalRowCount to set. + * @return This builder for chaining. + */ + public Builder setTotalRowCount(long value) { + + totalRowCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The total number of rows in the full result set, if known.
+     * This may be an estimate or an exact count.
+     * 
+ * + * int64 total_row_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearTotalRowCount() { + bitField0_ = (bitField0_ & ~0x00000004); + totalRowCount_ = 0L; + onChanged(); + return this; + } + + private boolean partialResult_; + + /** + * + * + *
+     * Set to true if the returned rows in `query_result` are a subset of the
+     * full result. This can happen, for example, if the query execution hits a
+     * row limit. When true, the `query_result` does not contain all
+     * rows. To retrieve the complete result, consider using the
+     * `generated_query` in `QueryDataResponse` and executing it in your own
+     * environment.
+     * 
+ * + * bool partial_result = 4; + * + * @return The partialResult. + */ + @java.lang.Override + public boolean getPartialResult() { + return partialResult_; + } + + /** + * + * + *
+     * Set to true if the returned rows in `query_result` are a subset of the
+     * full result. This can happen, for example, if the query execution hits a
+     * row limit. When true, the `query_result` does not contain all
+     * rows. To retrieve the complete result, consider using the
+     * `generated_query` in `QueryDataResponse` and executing it in your own
+     * environment.
+     * 
+ * + * bool partial_result = 4; + * + * @param value The partialResult to set. + * @return This builder for chaining. + */ + public Builder setPartialResult(boolean value) { + + partialResult_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Set to true if the returned rows in `query_result` are a subset of the
+     * full result. This can happen, for example, if the query execution hits a
+     * row limit. When true, the `query_result` does not contain all
+     * rows. To retrieve the complete result, consider using the
+     * `generated_query` in `QueryDataResponse` and executing it in your own
+     * environment.
+     * 
+ * + * bool partial_result = 4; + * + * @return This builder for chaining. + */ + public Builder clearPartialResult() { + bitField0_ = (bitField0_ & ~0x00000008); + partialResult_ = false; + onChanged(); + return this; + } + + private java.lang.Object queryExecutionError_ = ""; + + /** + * + * + *
+     * The error message if the query execution failed.
+     * 
+ * + * string query_execution_error = 5; + * + * @return The queryExecutionError. + */ + public java.lang.String getQueryExecutionError() { + java.lang.Object ref = queryExecutionError_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + queryExecutionError_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The error message if the query execution failed.
+     * 
+ * + * string query_execution_error = 5; + * + * @return The bytes for queryExecutionError. + */ + public com.google.protobuf.ByteString getQueryExecutionErrorBytes() { + java.lang.Object ref = queryExecutionError_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + queryExecutionError_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The error message if the query execution failed.
+     * 
+ * + * string query_execution_error = 5; + * + * @param value The queryExecutionError to set. + * @return This builder for chaining. + */ + public Builder setQueryExecutionError(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + queryExecutionError_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The error message if the query execution failed.
+     * 
+ * + * string query_execution_error = 5; + * + * @return This builder for chaining. + */ + public Builder clearQueryExecutionError() { + queryExecutionError_ = getDefaultInstance().getQueryExecutionError(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The error message if the query execution failed.
+     * 
+ * + * string query_execution_error = 5; + * + * @param value The bytes for queryExecutionError to set. + * @return This builder for chaining. + */ + public Builder setQueryExecutionErrorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + queryExecutionError_ = value; + bitField0_ |= 0x00000010; + 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.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) + private static final com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExecutedQueryResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResultOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResultOrBuilder.java new file mode 100644 index 000000000000..6de7893d65d5 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ExecutedQueryResultOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface ExecutedQueryResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + java.util.List + getColumnsList(); + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column getColumns(int index); + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + int getColumnsCount(); + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder> + getColumnsOrBuilderList(); + + /** + * + * + *
+   * The columns in the result set, in order.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Column columns = 1; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.ColumnOrBuilder + getColumnsOrBuilder(int index); + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + java.util.List getRowsList(); + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row getRows(int index); + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + int getRowsCount(); + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder> + getRowsOrBuilderList(); + + /** + * + * + *
+   * The rows returned by the query.
+   * 
+ * + * repeated .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Row rows = 2; + * + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.RowOrBuilder getRowsOrBuilder( + int index); + + /** + * + * + *
+   * The total number of rows in the full result set, if known.
+   * This may be an estimate or an exact count.
+   * 
+ * + * int64 total_row_count = 3; + * + * @return The totalRowCount. + */ + long getTotalRowCount(); + + /** + * + * + *
+   * Set to true if the returned rows in `query_result` are a subset of the
+   * full result. This can happen, for example, if the query execution hits a
+   * row limit. When true, the `query_result` does not contain all
+   * rows. To retrieve the complete result, consider using the
+   * `generated_query` in `QueryDataResponse` and executing it in your own
+   * environment.
+   * 
+ * + * bool partial_result = 4; + * + * @return The partialResult. + */ + boolean getPartialResult(); + + /** + * + * + *
+   * The error message if the query execution failed.
+   * 
+ * + * string query_execution_error = 5; + * + * @return The queryExecutionError. + */ + java.lang.String getQueryExecutionError(); + + /** + * + * + *
+   * The error message if the query execution failed.
+   * 
+ * + * string query_execution_error = 5; + * + * @return The bytes for queryExecutionError. + */ + com.google.protobuf.ByteString getQueryExecutionErrorBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptions.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptions.java new file mode 100644 index 000000000000..15b2985b2701 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptions.java @@ -0,0 +1,867 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Options to control query generation, execution, and response format.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GenerationOptions} + */ +public final class GenerationOptions extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.GenerationOptions) + GenerationOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + // Use GenerationOptions.newBuilder() to construct. + private GenerationOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GenerationOptions() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GenerationOptions(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.class, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder.class); + } + + public static final int GENERATE_QUERY_RESULT_FIELD_NUMBER = 1; + private boolean generateQueryResult_ = false; + + /** + * + * + *
+   * Optional. If true, the generated query will be executed, and the result
+   * data will be returned in the response.
+   * 
+ * + * bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateQueryResult. + */ + @java.lang.Override + public boolean getGenerateQueryResult() { + return generateQueryResult_; + } + + public static final int GENERATE_NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER = 2; + private boolean generateNaturalLanguageAnswer_ = false; + + /** + * + * + *
+   * Optional. If true, a natural language answer based on the query execution
+   * result will be generated and returned in the response.
+   * 
+ * + * bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateNaturalLanguageAnswer. + */ + @java.lang.Override + public boolean getGenerateNaturalLanguageAnswer() { + return generateNaturalLanguageAnswer_; + } + + public static final int GENERATE_EXPLANATION_FIELD_NUMBER = 3; + private boolean generateExplanation_ = false; + + /** + * + * + *
+   * Optional. If true, an explanation of the generated query will be returned
+   * in the response.
+   * 
+ * + * bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateExplanation. + */ + @java.lang.Override + public boolean getGenerateExplanation() { + return generateExplanation_; + } + + public static final int GENERATE_DISAMBIGUATION_QUESTION_FIELD_NUMBER = 4; + private boolean generateDisambiguationQuestion_ = false; + + /** + * + * + *
+   * Optional. If true (default to false), the service may return a
+   * clarifying_question if the input query is ambiguous.
+   * 
+ * + * bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateDisambiguationQuestion. + */ + @java.lang.Override + public boolean getGenerateDisambiguationQuestion() { + return generateDisambiguationQuestion_; + } + + 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 (generateQueryResult_ != false) { + output.writeBool(1, generateQueryResult_); + } + if (generateNaturalLanguageAnswer_ != false) { + output.writeBool(2, generateNaturalLanguageAnswer_); + } + if (generateExplanation_ != false) { + output.writeBool(3, generateExplanation_); + } + if (generateDisambiguationQuestion_ != false) { + output.writeBool(4, generateDisambiguationQuestion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (generateQueryResult_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, generateQueryResult_); + } + if (generateNaturalLanguageAnswer_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, generateNaturalLanguageAnswer_); + } + if (generateExplanation_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, generateExplanation_); + } + if (generateDisambiguationQuestion_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(4, generateDisambiguationQuestion_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.GenerationOptions)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions other = + (com.google.cloud.geminidataanalytics.v1beta.GenerationOptions) obj; + + if (getGenerateQueryResult() != other.getGenerateQueryResult()) return false; + if (getGenerateNaturalLanguageAnswer() != other.getGenerateNaturalLanguageAnswer()) + return false; + if (getGenerateExplanation() != other.getGenerateExplanation()) return false; + if (getGenerateDisambiguationQuestion() != other.getGenerateDisambiguationQuestion()) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + GENERATE_QUERY_RESULT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateQueryResult()); + hash = (37 * hash) + GENERATE_NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateNaturalLanguageAnswer()); + hash = (37 * hash) + GENERATE_EXPLANATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateExplanation()); + hash = (37 * hash) + GENERATE_DISAMBIGUATION_QUESTION_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getGenerateDisambiguationQuestion()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions 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.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions 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.cloud.geminidataanalytics.v1beta.GenerationOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions 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.cloud.geminidataanalytics.v1beta.GenerationOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions 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.cloud.geminidataanalytics.v1beta.GenerationOptions 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; + } + + /** + * + * + *
+   * Options to control query generation, execution, and response format.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GenerationOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.GenerationOptions) + com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.class, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generateQueryResult_ = false; + generateNaturalLanguageAnswer_ = false; + generateExplanation_ = false; + generateDisambiguationQuestion_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_GenerationOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions build() { + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions result = + new com.google.cloud.geminidataanalytics.v1beta.GenerationOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generateQueryResult_ = generateQueryResult_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.generateNaturalLanguageAnswer_ = generateNaturalLanguageAnswer_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.generateExplanation_ = generateExplanation_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generateDisambiguationQuestion_ = generateDisambiguationQuestion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.GenerationOptions) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.GenerationOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.GenerationOptions other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance()) + return this; + if (other.getGenerateQueryResult() != false) { + setGenerateQueryResult(other.getGenerateQueryResult()); + } + if (other.getGenerateNaturalLanguageAnswer() != false) { + setGenerateNaturalLanguageAnswer(other.getGenerateNaturalLanguageAnswer()); + } + if (other.getGenerateExplanation() != false) { + setGenerateExplanation(other.getGenerateExplanation()); + } + if (other.getGenerateDisambiguationQuestion() != false) { + setGenerateDisambiguationQuestion(other.getGenerateDisambiguationQuestion()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + generateQueryResult_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + generateNaturalLanguageAnswer_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + generateExplanation_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + generateDisambiguationQuestion_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean generateQueryResult_; + + /** + * + * + *
+     * Optional. If true, the generated query will be executed, and the result
+     * data will be returned in the response.
+     * 
+ * + * bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateQueryResult. + */ + @java.lang.Override + public boolean getGenerateQueryResult() { + return generateQueryResult_; + } + + /** + * + * + *
+     * Optional. If true, the generated query will be executed, and the result
+     * data will be returned in the response.
+     * 
+ * + * bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The generateQueryResult to set. + * @return This builder for chaining. + */ + public Builder setGenerateQueryResult(boolean value) { + + generateQueryResult_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, the generated query will be executed, and the result
+     * data will be returned in the response.
+     * 
+ * + * bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGenerateQueryResult() { + bitField0_ = (bitField0_ & ~0x00000001); + generateQueryResult_ = false; + onChanged(); + return this; + } + + private boolean generateNaturalLanguageAnswer_; + + /** + * + * + *
+     * Optional. If true, a natural language answer based on the query execution
+     * result will be generated and returned in the response.
+     * 
+ * + * bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateNaturalLanguageAnswer. + */ + @java.lang.Override + public boolean getGenerateNaturalLanguageAnswer() { + return generateNaturalLanguageAnswer_; + } + + /** + * + * + *
+     * Optional. If true, a natural language answer based on the query execution
+     * result will be generated and returned in the response.
+     * 
+ * + * bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The generateNaturalLanguageAnswer to set. + * @return This builder for chaining. + */ + public Builder setGenerateNaturalLanguageAnswer(boolean value) { + + generateNaturalLanguageAnswer_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, a natural language answer based on the query execution
+     * result will be generated and returned in the response.
+     * 
+ * + * bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGenerateNaturalLanguageAnswer() { + bitField0_ = (bitField0_ & ~0x00000002); + generateNaturalLanguageAnswer_ = false; + onChanged(); + return this; + } + + private boolean generateExplanation_; + + /** + * + * + *
+     * Optional. If true, an explanation of the generated query will be returned
+     * in the response.
+     * 
+ * + * bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateExplanation. + */ + @java.lang.Override + public boolean getGenerateExplanation() { + return generateExplanation_; + } + + /** + * + * + *
+     * Optional. If true, an explanation of the generated query will be returned
+     * in the response.
+     * 
+ * + * bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The generateExplanation to set. + * @return This builder for chaining. + */ + public Builder setGenerateExplanation(boolean value) { + + generateExplanation_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true, an explanation of the generated query will be returned
+     * in the response.
+     * 
+ * + * bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGenerateExplanation() { + bitField0_ = (bitField0_ & ~0x00000004); + generateExplanation_ = false; + onChanged(); + return this; + } + + private boolean generateDisambiguationQuestion_; + + /** + * + * + *
+     * Optional. If true (default to false), the service may return a
+     * clarifying_question if the input query is ambiguous.
+     * 
+ * + * bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateDisambiguationQuestion. + */ + @java.lang.Override + public boolean getGenerateDisambiguationQuestion() { + return generateDisambiguationQuestion_; + } + + /** + * + * + *
+     * Optional. If true (default to false), the service may return a
+     * clarifying_question if the input query is ambiguous.
+     * 
+ * + * bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The generateDisambiguationQuestion to set. + * @return This builder for chaining. + */ + public Builder setGenerateDisambiguationQuestion(boolean value) { + + generateDisambiguationQuestion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. If true (default to false), the service may return a
+     * clarifying_question if the input query is ambiguous.
+     * 
+ * + * bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearGenerateDisambiguationQuestion() { + bitField0_ = (bitField0_ & ~0x00000008); + generateDisambiguationQuestion_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.GenerationOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.GenerationOptions) + private static final com.google.cloud.geminidataanalytics.v1beta.GenerationOptions + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.GenerationOptions(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.GenerationOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerationOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptionsOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptionsOrBuilder.java new file mode 100644 index 000000000000..940433d43caa --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GenerationOptionsOrBuilder.java @@ -0,0 +1,84 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface GenerationOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.GenerationOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. If true, the generated query will be executed, and the result
+   * data will be returned in the response.
+   * 
+ * + * bool generate_query_result = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateQueryResult. + */ + boolean getGenerateQueryResult(); + + /** + * + * + *
+   * Optional. If true, a natural language answer based on the query execution
+   * result will be generated and returned in the response.
+   * 
+ * + * bool generate_natural_language_answer = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateNaturalLanguageAnswer. + */ + boolean getGenerateNaturalLanguageAnswer(); + + /** + * + * + *
+   * Optional. If true, an explanation of the generated query will be returned
+   * in the response.
+   * 
+ * + * bool generate_explanation = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The generateExplanation. + */ + boolean getGenerateExplanation(); + + /** + * + * + *
+   * Optional. If true (default to false), the service may return a
+   * clarifying_question if the input query is ambiguous.
+   * 
+ * + * bool generate_disambiguation_question = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generateDisambiguationQuestion. + */ + boolean getGenerateDisambiguationQuestion(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContext.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContext.java new file mode 100644 index 000000000000..eb01f9b01407 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContext.java @@ -0,0 +1,779 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * References to data sources and context to use for the query.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataContext} + */ +public final class QueryDataContext extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.QueryDataContext) + QueryDataContextOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryDataContext.newBuilder() to construct. + private QueryDataContext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryDataContext() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryDataContext(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder.class); + } + + private int bitField0_; + public static final int DATASOURCE_REFERENCES_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasourceReferences field is set. + */ + @java.lang.Override + public boolean hasDatasourceReferences() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasourceReferences. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + getDatasourceReferences() { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder + getDatasourceReferencesOrBuilder() { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDatasourceReferences()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatasourceReferences()); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.QueryDataContext)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext other = + (com.google.cloud.geminidataanalytics.v1beta.QueryDataContext) obj; + + if (hasDatasourceReferences() != other.hasDatasourceReferences()) return false; + if (hasDatasourceReferences()) { + if (!getDatasourceReferences().equals(other.getDatasourceReferences())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatasourceReferences()) { + hash = (37 * hash) + DATASOURCE_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getDatasourceReferences().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext 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.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext 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.cloud.geminidataanalytics.v1beta.QueryDataContext parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext 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.cloud.geminidataanalytics.v1beta.QueryDataContext parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext 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.cloud.geminidataanalytics.v1beta.QueryDataContext 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; + } + + /** + * + * + *
+   * References to data sources and context to use for the query.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataContext} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.QueryDataContext) + com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatasourceReferencesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + datasourceReferences_ = null; + if (datasourceReferencesBuilder_ != null) { + datasourceReferencesBuilder_.dispose(); + datasourceReferencesBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataContext_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext build() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext result = + new com.google.cloud.geminidataanalytics.v1beta.QueryDataContext(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.datasourceReferences_ = + datasourceReferencesBuilder_ == null + ? datasourceReferences_ + : datasourceReferencesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.QueryDataContext) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.QueryDataContext) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.QueryDataContext other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance()) + return this; + if (other.hasDatasourceReferences()) { + mergeDatasourceReferences(other.getDatasourceReferences()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDatasourceReferencesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasourceReferences_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> + datasourceReferencesBuilder_; + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasourceReferences field is set. + */ + public boolean hasDatasourceReferences() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasourceReferences. + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + getDatasourceReferences() { + if (datasourceReferencesBuilder_ == null) { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } else { + return datasourceReferencesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { + if (datasourceReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datasourceReferences_ = value; + } else { + datasourceReferencesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder builderForValue) { + if (datasourceReferencesBuilder_ == null) { + datasourceReferences_ = builderForValue.build(); + } else { + datasourceReferencesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatasourceReferences( + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences value) { + if (datasourceReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && datasourceReferences_ != null + && datasourceReferences_ + != com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences + .getDefaultInstance()) { + getDatasourceReferencesBuilder().mergeFrom(value); + } else { + datasourceReferences_ = value; + } + } else { + datasourceReferencesBuilder_.mergeFrom(value); + } + if (datasourceReferences_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatasourceReferences() { + bitField0_ = (bitField0_ & ~0x00000001); + datasourceReferences_ = null; + if (datasourceReferencesBuilder_ != null) { + datasourceReferencesBuilder_.dispose(); + datasourceReferencesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder + getDatasourceReferencesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatasourceReferencesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder + getDatasourceReferencesOrBuilder() { + if (datasourceReferencesBuilder_ != null) { + return datasourceReferencesBuilder_.getMessageOrBuilder(); + } else { + return datasourceReferences_ == null + ? com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.getDefaultInstance() + : datasourceReferences_; + } + } + + /** + * + * + *
+     * Required. The datasource references to use for the query.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder> + getDatasourceReferencesFieldBuilder() { + if (datasourceReferencesBuilder_ == null) { + datasourceReferencesBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences.Builder, + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder>( + getDatasourceReferences(), getParentForChildren(), isClean()); + datasourceReferences_ = null; + } + return datasourceReferencesBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.QueryDataContext) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.QueryDataContext) + private static final com.google.cloud.geminidataanalytics.v1beta.QueryDataContext + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.QueryDataContext(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataContext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryDataContext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContextOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContextOrBuilder.java new file mode 100644 index 000000000000..1c0f190ea4db --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataContextOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface QueryDataContextOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.QueryDataContext) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the datasourceReferences field is set. + */ + boolean hasDatasourceReferences(); + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The datasourceReferences. + */ + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferences getDatasourceReferences(); + + /** + * + * + *
+   * Required. The datasource references to use for the query.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.DatasourceReferences datasource_references = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.DatasourceReferencesOrBuilder + getDatasourceReferencesOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequest.java new file mode 100644 index 000000000000..2ab4b758f996 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequest.java @@ -0,0 +1,1506 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Request to query data from a natural language query.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataRequest} + */ +public final class QueryDataRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.QueryDataRequest) + QueryDataRequestOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryDataRequest.newBuilder() to construct. + private QueryDataRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryDataRequest() { + parent_ = ""; + prompt_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryDataRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource to generate the query for.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.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 to generate the query for.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.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; + } + } + + public static final int PROMPT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object prompt_ = ""; + + /** + * + * + *
+   * Required. The natural language query for which to generate query.
+   * Example: "What are the top 5 best selling products this month?"
+   * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + @java.lang.Override + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + 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(); + prompt_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The natural language query for which to generate query.
+   * Example: "What are the top 5 best selling products this month?"
+   * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.QueryDataContext context_; + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext getContext() { + return context_ == null + ? com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance() + : context_; + } + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder + getContextOrBuilder() { + return context_ == null + ? com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance() + : context_; + } + + public static final int GENERATION_OPTIONS_FIELD_NUMBER = 4; + private com.google.cloud.geminidataanalytics.v1beta.GenerationOptions generationOptions_; + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationOptions field is set. + */ + @java.lang.Override + public boolean hasGenerationOptions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationOptions. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions getGenerationOptions() { + return generationOptions_ == null + ? com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance() + : generationOptions_; + } + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder + getGenerationOptionsOrBuilder() { + return generationOptions_ == null + ? com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance() + : generationOptions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prompt_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, prompt_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getContext()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getGenerationOptions()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prompt_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, prompt_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContext()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationOptions()); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.QueryDataRequest)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest other = + (com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getPrompt().equals(other.getPrompt())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext().equals(other.getContext())) return false; + } + if (hasGenerationOptions() != other.hasGenerationOptions()) return false; + if (hasGenerationOptions()) { + if (!getGenerationOptions().equals(other.getGenerationOptions())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + if (hasGenerationOptions()) { + hash = (37 * hash) + GENERATION_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getGenerationOptions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest 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.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest 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.cloud.geminidataanalytics.v1beta.QueryDataRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest 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.cloud.geminidataanalytics.v1beta.QueryDataRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest 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.cloud.geminidataanalytics.v1beta.QueryDataRequest 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 to query data from a natural language query.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.QueryDataRequest) + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getContextFieldBuilder(); + getGenerationOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + prompt_ = ""; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + generationOptions_ = null; + if (generationOptionsBuilder_ != null) { + generationOptionsBuilder_.dispose(); + generationOptionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest build() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest result = + new com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.prompt_ = prompt_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.context_ = contextBuilder_ == null ? context_ : contextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationOptions_ = + generationOptionsBuilder_ == null + ? generationOptions_ + : generationOptionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPrompt().isEmpty()) { + prompt_ = other.prompt_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasContext()) { + mergeContext(other.getContext()); + } + if (other.hasGenerationOptions()) { + mergeGenerationOptions(other.getGenerationOptions()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + prompt_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getContextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getGenerationOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource to generate the query for.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.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 to generate the query for.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.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 to generate the query for.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource to generate the query for.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource to generate the query for.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object prompt_ = ""; + + /** + * + * + *
+     * Required. The natural language query for which to generate query.
+     * Example: "What are the top 5 best selling products this month?"
+     * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + public java.lang.String getPrompt() { + java.lang.Object ref = prompt_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prompt_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The natural language query for which to generate query.
+     * Example: "What are the top 5 best selling products this month?"
+     * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + public com.google.protobuf.ByteString getPromptBytes() { + java.lang.Object ref = prompt_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + prompt_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The natural language query for which to generate query.
+     * Example: "What are the top 5 best selling products this month?"
+     * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The prompt to set. + * @return This builder for chaining. + */ + public Builder setPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The natural language query for which to generate query.
+     * Example: "What are the top 5 best selling products this month?"
+     * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrompt() { + prompt_ = getDefaultInstance().getPrompt(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The natural language query for which to generate query.
+     * Example: "What are the top 5 best selling products this month?"
+     * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for prompt to set. + * @return This builder for chaining. + */ + public Builder setPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + prompt_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.geminidataanalytics.v1beta.QueryDataContext context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder> + contextBuilder_; + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + public boolean hasContext() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext getContext() { + if (contextBuilder_ == null) { + return context_ == null + ? com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance() + : context_; + } else { + return contextBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext(com.google.cloud.geminidataanalytics.v1beta.QueryDataContext value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + } else { + contextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContext( + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContext( + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext value) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && context_ != null + && context_ + != com.google.cloud.geminidataanalytics.v1beta.QueryDataContext + .getDefaultInstance()) { + getContextBuilder().mergeFrom(value); + } else { + context_ = value; + } + } else { + contextBuilder_.mergeFrom(value); + } + if (context_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContext() { + bitField0_ = (bitField0_ & ~0x00000004); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder + getContextBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder + getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null + ? com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.getDefaultInstance() + : context_; + } + } + + /** + * + * + *
+     * Required. The context for the data query, including the data sources to
+     * use.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext.Builder, + com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder>( + getContext(), getParentForChildren(), isClean()); + context_ = null; + } + return contextBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.GenerationOptions generationOptions_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder> + generationOptionsBuilder_; + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationOptions field is set. + */ + public boolean hasGenerationOptions() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationOptions. + */ + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions getGenerationOptions() { + if (generationOptionsBuilder_ == null) { + return generationOptions_ == null + ? com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance() + : generationOptions_; + } else { + return generationOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationOptions( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions value) { + if (generationOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationOptions_ = value; + } else { + generationOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationOptions( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder builderForValue) { + if (generationOptionsBuilder_ == null) { + generationOptions_ = builderForValue.build(); + } else { + generationOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationOptions( + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions value) { + if (generationOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationOptions_ != null + && generationOptions_ + != com.google.cloud.geminidataanalytics.v1beta.GenerationOptions + .getDefaultInstance()) { + getGenerationOptionsBuilder().mergeFrom(value); + } else { + generationOptions_ = value; + } + } else { + generationOptionsBuilder_.mergeFrom(value); + } + if (generationOptions_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationOptions() { + bitField0_ = (bitField0_ & ~0x00000008); + generationOptions_ = null; + if (generationOptionsBuilder_ != null) { + generationOptionsBuilder_.dispose(); + generationOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder + getGenerationOptionsBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getGenerationOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder + getGenerationOptionsOrBuilder() { + if (generationOptionsBuilder_ != null) { + return generationOptionsBuilder_.getMessageOrBuilder(); + } else { + return generationOptions_ == null + ? com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.getDefaultInstance() + : generationOptions_; + } + } + + /** + * + * + *
+     * Optional. Options to control query generation and execution behavior.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder> + getGenerationOptionsFieldBuilder() { + if (generationOptionsBuilder_ == null) { + generationOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions.Builder, + com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder>( + getGenerationOptions(), getParentForChildren(), isClean()); + generationOptions_ = null; + } + return generationOptionsBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.QueryDataRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.QueryDataRequest) + private static final com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryDataRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequestOrBuilder.java new file mode 100644 index 000000000000..cdfa21b707bc --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataRequestOrBuilder.java @@ -0,0 +1,176 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface QueryDataRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.QueryDataRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource to generate the query for.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource to generate the query for.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The natural language query for which to generate query.
+   * Example: "What are the top 5 best selling products this month?"
+   * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The prompt. + */ + java.lang.String getPrompt(); + + /** + * + * + *
+   * Required. The natural language query for which to generate query.
+   * Example: "What are the top 5 best selling products this month?"
+   * 
+ * + * string prompt = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for prompt. + */ + com.google.protobuf.ByteString getPromptBytes(); + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the context field is set. + */ + boolean hasContext(); + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The context. + */ + com.google.cloud.geminidataanalytics.v1beta.QueryDataContext getContext(); + + /** + * + * + *
+   * Required. The context for the data query, including the data sources to
+   * use.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.QueryDataContext context = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.QueryDataContextOrBuilder getContextOrBuilder(); + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationOptions field is set. + */ + boolean hasGenerationOptions(); + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationOptions. + */ + com.google.cloud.geminidataanalytics.v1beta.GenerationOptions getGenerationOptions(); + + /** + * + * + *
+   * Optional. Options to control query generation and execution behavior.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.GenerationOptions generation_options = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.GenerationOptionsOrBuilder + getGenerationOptionsOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponse.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponse.java new file mode 100644 index 000000000000..77ed16774950 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponse.java @@ -0,0 +1,1713 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Response containing the generated query and related information.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataResponse} + */ +public final class QueryDataResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.QueryDataResponse) + QueryDataResponseOrBuilder { + private static final long serialVersionUID = 0L; + + // Use QueryDataResponse.newBuilder() to construct. + private QueryDataResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private QueryDataResponse() { + generatedQuery_ = ""; + intentExplanation_ = ""; + naturalLanguageAnswer_ = ""; + disambiguationQuestion_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new QueryDataResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.Builder.class); + } + + private int bitField0_; + public static final int GENERATED_QUERY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object generatedQuery_ = ""; + + /** + * + * + *
+   * Generated query for the given user prompt.
+   * 
+ * + * string generated_query = 1; + * + * @return The generatedQuery. + */ + @java.lang.Override + public java.lang.String getGeneratedQuery() { + java.lang.Object ref = generatedQuery_; + 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(); + generatedQuery_ = s; + return s; + } + } + + /** + * + * + *
+   * Generated query for the given user prompt.
+   * 
+ * + * string generated_query = 1; + * + * @return The bytes for generatedQuery. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGeneratedQueryBytes() { + java.lang.Object ref = generatedQuery_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTENT_EXPLANATION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object intentExplanation_ = ""; + + /** + * + * + *
+   * A natural language explanation of the generated query.
+   * Populated if options.generate_explanation was true in the request.
+   * 
+ * + * string intent_explanation = 2; + * + * @return The intentExplanation. + */ + @java.lang.Override + public java.lang.String getIntentExplanation() { + java.lang.Object ref = intentExplanation_; + 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(); + intentExplanation_ = s; + return s; + } + } + + /** + * + * + *
+   * A natural language explanation of the generated query.
+   * Populated if options.generate_explanation was true in the request.
+   * 
+ * + * string intent_explanation = 2; + * + * @return The bytes for intentExplanation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIntentExplanationBytes() { + java.lang.Object ref = intentExplanation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intentExplanation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUERY_RESULT_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult queryResult_; + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return Whether the queryResult field is set. + */ + @java.lang.Override + public boolean hasQueryResult() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return The queryResult. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult getQueryResult() { + return queryResult_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance() + : queryResult_; + } + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder + getQueryResultOrBuilder() { + return queryResult_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance() + : queryResult_; + } + + public static final int NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object naturalLanguageAnswer_ = ""; + + /** + * + * + *
+   * A natural language answer to the query, based on the query_result.
+   * Populated if options.generate_natural_language_answer was true in the
+   * request and query execution was successful based in the response from
+   * executeSql API.
+   * 
+ * + * string natural_language_answer = 4; + * + * @return The naturalLanguageAnswer. + */ + @java.lang.Override + public java.lang.String getNaturalLanguageAnswer() { + java.lang.Object ref = naturalLanguageAnswer_; + 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(); + naturalLanguageAnswer_ = s; + return s; + } + } + + /** + * + * + *
+   * A natural language answer to the query, based on the query_result.
+   * Populated if options.generate_natural_language_answer was true in the
+   * request and query execution was successful based in the response from
+   * executeSql API.
+   * 
+ * + * string natural_language_answer = 4; + * + * @return The bytes for naturalLanguageAnswer. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNaturalLanguageAnswerBytes() { + java.lang.Object ref = naturalLanguageAnswer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + naturalLanguageAnswer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISAMBIGUATION_QUESTION_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList disambiguationQuestion_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @return A list containing the disambiguationQuestion. + */ + public com.google.protobuf.ProtocolStringList getDisambiguationQuestionList() { + return disambiguationQuestion_; + } + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @return The count of disambiguationQuestion. + */ + public int getDisambiguationQuestionCount() { + return disambiguationQuestion_.size(); + } + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the element to return. + * @return The disambiguationQuestion at the given index. + */ + public java.lang.String getDisambiguationQuestion(int index) { + return disambiguationQuestion_.get(index); + } + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the value to return. + * @return The bytes of the disambiguationQuestion at the given index. + */ + public com.google.protobuf.ByteString getDisambiguationQuestionBytes(int index) { + return disambiguationQuestion_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generatedQuery_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, generatedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intentExplanation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, intentExplanation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getQueryResult()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(naturalLanguageAnswer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, naturalLanguageAnswer_); + } + for (int i = 0; i < disambiguationQuestion_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, disambiguationQuestion_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(generatedQuery_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, generatedQuery_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(intentExplanation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, intentExplanation_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getQueryResult()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(naturalLanguageAnswer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, naturalLanguageAnswer_); + } + { + int dataSize = 0; + for (int i = 0; i < disambiguationQuestion_.size(); i++) { + dataSize += computeStringSizeNoTag(disambiguationQuestion_.getRaw(i)); + } + size += dataSize; + size += 1 * getDisambiguationQuestionList().size(); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.QueryDataResponse)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse other = + (com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse) obj; + + if (!getGeneratedQuery().equals(other.getGeneratedQuery())) return false; + if (!getIntentExplanation().equals(other.getIntentExplanation())) return false; + if (hasQueryResult() != other.hasQueryResult()) return false; + if (hasQueryResult()) { + if (!getQueryResult().equals(other.getQueryResult())) return false; + } + if (!getNaturalLanguageAnswer().equals(other.getNaturalLanguageAnswer())) return false; + if (!getDisambiguationQuestionList().equals(other.getDisambiguationQuestionList())) + return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + GENERATED_QUERY_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedQuery().hashCode(); + hash = (37 * hash) + INTENT_EXPLANATION_FIELD_NUMBER; + hash = (53 * hash) + getIntentExplanation().hashCode(); + if (hasQueryResult()) { + hash = (37 * hash) + QUERY_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getQueryResult().hashCode(); + } + hash = (37 * hash) + NATURAL_LANGUAGE_ANSWER_FIELD_NUMBER; + hash = (53 * hash) + getNaturalLanguageAnswer().hashCode(); + if (getDisambiguationQuestionCount() > 0) { + hash = (37 * hash) + DISAMBIGUATION_QUESTION_FIELD_NUMBER; + hash = (53 * hash) + getDisambiguationQuestionList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse 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.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse 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.cloud.geminidataanalytics.v1beta.QueryDataResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse 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.cloud.geminidataanalytics.v1beta.QueryDataResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse 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.cloud.geminidataanalytics.v1beta.QueryDataResponse 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; + } + + /** + * + * + *
+   * Response containing the generated query and related information.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.QueryDataResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.QueryDataResponse) + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.class, + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getQueryResultFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + generatedQuery_ = ""; + intentExplanation_ = ""; + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); + queryResultBuilder_ = null; + } + naturalLanguageAnswer_ = ""; + disambiguationQuestion_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DataChatServiceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_QueryDataResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse build() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse result = + new com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.generatedQuery_ = generatedQuery_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.intentExplanation_ = intentExplanation_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryResult_ = + queryResultBuilder_ == null ? queryResult_ : queryResultBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.naturalLanguageAnswer_ = naturalLanguageAnswer_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + disambiguationQuestion_.makeImmutable(); + result.disambiguationQuestion_ = disambiguationQuestion_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse.getDefaultInstance()) + return this; + if (!other.getGeneratedQuery().isEmpty()) { + generatedQuery_ = other.generatedQuery_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIntentExplanation().isEmpty()) { + intentExplanation_ = other.intentExplanation_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasQueryResult()) { + mergeQueryResult(other.getQueryResult()); + } + if (!other.getNaturalLanguageAnswer().isEmpty()) { + naturalLanguageAnswer_ = other.naturalLanguageAnswer_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.disambiguationQuestion_.isEmpty()) { + if (disambiguationQuestion_.isEmpty()) { + disambiguationQuestion_ = other.disambiguationQuestion_; + bitField0_ |= 0x00000010; + } else { + ensureDisambiguationQuestionIsMutable(); + disambiguationQuestion_.addAll(other.disambiguationQuestion_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + generatedQuery_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + intentExplanation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getQueryResultFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + naturalLanguageAnswer_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDisambiguationQuestionIsMutable(); + disambiguationQuestion_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object generatedQuery_ = ""; + + /** + * + * + *
+     * Generated query for the given user prompt.
+     * 
+ * + * string generated_query = 1; + * + * @return The generatedQuery. + */ + public java.lang.String getGeneratedQuery() { + java.lang.Object ref = generatedQuery_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + generatedQuery_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Generated query for the given user prompt.
+     * 
+ * + * string generated_query = 1; + * + * @return The bytes for generatedQuery. + */ + public com.google.protobuf.ByteString getGeneratedQueryBytes() { + java.lang.Object ref = generatedQuery_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + generatedQuery_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Generated query for the given user prompt.
+     * 
+ * + * string generated_query = 1; + * + * @param value The generatedQuery to set. + * @return This builder for chaining. + */ + public Builder setGeneratedQuery(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + generatedQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Generated query for the given user prompt.
+     * 
+ * + * string generated_query = 1; + * + * @return This builder for chaining. + */ + public Builder clearGeneratedQuery() { + generatedQuery_ = getDefaultInstance().getGeneratedQuery(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Generated query for the given user prompt.
+     * 
+ * + * string generated_query = 1; + * + * @param value The bytes for generatedQuery to set. + * @return This builder for chaining. + */ + public Builder setGeneratedQueryBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + generatedQuery_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object intentExplanation_ = ""; + + /** + * + * + *
+     * A natural language explanation of the generated query.
+     * Populated if options.generate_explanation was true in the request.
+     * 
+ * + * string intent_explanation = 2; + * + * @return The intentExplanation. + */ + public java.lang.String getIntentExplanation() { + java.lang.Object ref = intentExplanation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + intentExplanation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A natural language explanation of the generated query.
+     * Populated if options.generate_explanation was true in the request.
+     * 
+ * + * string intent_explanation = 2; + * + * @return The bytes for intentExplanation. + */ + public com.google.protobuf.ByteString getIntentExplanationBytes() { + java.lang.Object ref = intentExplanation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + intentExplanation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A natural language explanation of the generated query.
+     * Populated if options.generate_explanation was true in the request.
+     * 
+ * + * string intent_explanation = 2; + * + * @param value The intentExplanation to set. + * @return This builder for chaining. + */ + public Builder setIntentExplanation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + intentExplanation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A natural language explanation of the generated query.
+     * Populated if options.generate_explanation was true in the request.
+     * 
+ * + * string intent_explanation = 2; + * + * @return This builder for chaining. + */ + public Builder clearIntentExplanation() { + intentExplanation_ = getDefaultInstance().getIntentExplanation(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A natural language explanation of the generated query.
+     * Populated if options.generate_explanation was true in the request.
+     * 
+ * + * string intent_explanation = 2; + * + * @param value The bytes for intentExplanation to set. + * @return This builder for chaining. + */ + public Builder setIntentExplanationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + intentExplanation_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult queryResult_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder> + queryResultBuilder_; + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return Whether the queryResult field is set. + */ + public boolean hasQueryResult() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return The queryResult. + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult getQueryResult() { + if (queryResultBuilder_ == null) { + return queryResult_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance() + : queryResult_; + } else { + return queryResultBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public Builder setQueryResult( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult value) { + if (queryResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queryResult_ = value; + } else { + queryResultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public Builder setQueryResult( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder builderForValue) { + if (queryResultBuilder_ == null) { + queryResult_ = builderForValue.build(); + } else { + queryResultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public Builder mergeQueryResult( + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult value) { + if (queryResultBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && queryResult_ != null + && queryResult_ + != com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult + .getDefaultInstance()) { + getQueryResultBuilder().mergeFrom(value); + } else { + queryResult_ = value; + } + } else { + queryResultBuilder_.mergeFrom(value); + } + if (queryResult_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public Builder clearQueryResult() { + bitField0_ = (bitField0_ & ~0x00000004); + queryResult_ = null; + if (queryResultBuilder_ != null) { + queryResultBuilder_.dispose(); + queryResultBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder + getQueryResultBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getQueryResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + public com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder + getQueryResultOrBuilder() { + if (queryResultBuilder_ != null) { + return queryResultBuilder_.getMessageOrBuilder(); + } else { + return queryResult_ == null + ? com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.getDefaultInstance() + : queryResult_; + } + } + + /** + * + * + *
+     * The result of executing the query.
+     * Populated if options.generate_query_result or
+     * options.generate_natural_language_answer was true in the request, and
+     * execution was successful or attempted.
+     * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder> + getQueryResultFieldBuilder() { + if (queryResultBuilder_ == null) { + queryResultBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult.Builder, + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder>( + getQueryResult(), getParentForChildren(), isClean()); + queryResult_ = null; + } + return queryResultBuilder_; + } + + private java.lang.Object naturalLanguageAnswer_ = ""; + + /** + * + * + *
+     * A natural language answer to the query, based on the query_result.
+     * Populated if options.generate_natural_language_answer was true in the
+     * request and query execution was successful based in the response from
+     * executeSql API.
+     * 
+ * + * string natural_language_answer = 4; + * + * @return The naturalLanguageAnswer. + */ + public java.lang.String getNaturalLanguageAnswer() { + java.lang.Object ref = naturalLanguageAnswer_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + naturalLanguageAnswer_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * A natural language answer to the query, based on the query_result.
+     * Populated if options.generate_natural_language_answer was true in the
+     * request and query execution was successful based in the response from
+     * executeSql API.
+     * 
+ * + * string natural_language_answer = 4; + * + * @return The bytes for naturalLanguageAnswer. + */ + public com.google.protobuf.ByteString getNaturalLanguageAnswerBytes() { + java.lang.Object ref = naturalLanguageAnswer_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + naturalLanguageAnswer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * A natural language answer to the query, based on the query_result.
+     * Populated if options.generate_natural_language_answer was true in the
+     * request and query execution was successful based in the response from
+     * executeSql API.
+     * 
+ * + * string natural_language_answer = 4; + * + * @param value The naturalLanguageAnswer to set. + * @return This builder for chaining. + */ + public Builder setNaturalLanguageAnswer(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + naturalLanguageAnswer_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * A natural language answer to the query, based on the query_result.
+     * Populated if options.generate_natural_language_answer was true in the
+     * request and query execution was successful based in the response from
+     * executeSql API.
+     * 
+ * + * string natural_language_answer = 4; + * + * @return This builder for chaining. + */ + public Builder clearNaturalLanguageAnswer() { + naturalLanguageAnswer_ = getDefaultInstance().getNaturalLanguageAnswer(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * A natural language answer to the query, based on the query_result.
+     * Populated if options.generate_natural_language_answer was true in the
+     * request and query execution was successful based in the response from
+     * executeSql API.
+     * 
+ * + * string natural_language_answer = 4; + * + * @param value The bytes for naturalLanguageAnswer to set. + * @return This builder for chaining. + */ + public Builder setNaturalLanguageAnswerBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + naturalLanguageAnswer_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList disambiguationQuestion_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDisambiguationQuestionIsMutable() { + if (!disambiguationQuestion_.isModifiable()) { + disambiguationQuestion_ = + new com.google.protobuf.LazyStringArrayList(disambiguationQuestion_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @return A list containing the disambiguationQuestion. + */ + public com.google.protobuf.ProtocolStringList getDisambiguationQuestionList() { + disambiguationQuestion_.makeImmutable(); + return disambiguationQuestion_; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @return The count of disambiguationQuestion. + */ + public int getDisambiguationQuestionCount() { + return disambiguationQuestion_.size(); + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the element to return. + * @return The disambiguationQuestion at the given index. + */ + public java.lang.String getDisambiguationQuestion(int index) { + return disambiguationQuestion_.get(index); + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the value to return. + * @return The bytes of the disambiguationQuestion at the given index. + */ + public com.google.protobuf.ByteString getDisambiguationQuestionBytes(int index) { + return disambiguationQuestion_.getByteString(index); + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index to set the value at. + * @param value The disambiguationQuestion to set. + * @return This builder for chaining. + */ + public Builder setDisambiguationQuestion(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisambiguationQuestionIsMutable(); + disambiguationQuestion_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param value The disambiguationQuestion to add. + * @return This builder for chaining. + */ + public Builder addDisambiguationQuestion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisambiguationQuestionIsMutable(); + disambiguationQuestion_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param values The disambiguationQuestion to add. + * @return This builder for chaining. + */ + public Builder addAllDisambiguationQuestion(java.lang.Iterable values) { + ensureDisambiguationQuestionIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, disambiguationQuestion_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @return This builder for chaining. + */ + public Builder clearDisambiguationQuestion() { + disambiguationQuestion_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * If ambiguity was detected in the natural language query and
+     * options.generate_disambiguation_question was true, this field contains a
+     * question to the user for clarification. The returned represents the
+     * service's best effort based on the ambiguous input.
+     * 
+ * + * repeated string disambiguation_question = 5; + * + * @param value The bytes of the disambiguationQuestion to add. + * @return This builder for chaining. + */ + public Builder addDisambiguationQuestionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDisambiguationQuestionIsMutable(); + disambiguationQuestion_.add(value); + bitField0_ |= 0x00000010; + 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.cloud.geminidataanalytics.v1beta.QueryDataResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.QueryDataResponse) + private static final com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryDataResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponseOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponseOrBuilder.java new file mode 100644 index 000000000000..aa1c4b1414ec --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/QueryDataResponseOrBuilder.java @@ -0,0 +1,225 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/data_chat_service.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface QueryDataResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.QueryDataResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Generated query for the given user prompt.
+   * 
+ * + * string generated_query = 1; + * + * @return The generatedQuery. + */ + java.lang.String getGeneratedQuery(); + + /** + * + * + *
+   * Generated query for the given user prompt.
+   * 
+ * + * string generated_query = 1; + * + * @return The bytes for generatedQuery. + */ + com.google.protobuf.ByteString getGeneratedQueryBytes(); + + /** + * + * + *
+   * A natural language explanation of the generated query.
+   * Populated if options.generate_explanation was true in the request.
+   * 
+ * + * string intent_explanation = 2; + * + * @return The intentExplanation. + */ + java.lang.String getIntentExplanation(); + + /** + * + * + *
+   * A natural language explanation of the generated query.
+   * Populated if options.generate_explanation was true in the request.
+   * 
+ * + * string intent_explanation = 2; + * + * @return The bytes for intentExplanation. + */ + com.google.protobuf.ByteString getIntentExplanationBytes(); + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return Whether the queryResult field is set. + */ + boolean hasQueryResult(); + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + * + * @return The queryResult. + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult getQueryResult(); + + /** + * + * + *
+   * The result of executing the query.
+   * Populated if options.generate_query_result or
+   * options.generate_natural_language_answer was true in the request, and
+   * execution was successful or attempted.
+   * 
+ * + * .google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult query_result = 3; + */ + com.google.cloud.geminidataanalytics.v1beta.ExecutedQueryResultOrBuilder + getQueryResultOrBuilder(); + + /** + * + * + *
+   * A natural language answer to the query, based on the query_result.
+   * Populated if options.generate_natural_language_answer was true in the
+   * request and query execution was successful based in the response from
+   * executeSql API.
+   * 
+ * + * string natural_language_answer = 4; + * + * @return The naturalLanguageAnswer. + */ + java.lang.String getNaturalLanguageAnswer(); + + /** + * + * + *
+   * A natural language answer to the query, based on the query_result.
+   * Populated if options.generate_natural_language_answer was true in the
+   * request and query execution was successful based in the response from
+   * executeSql API.
+   * 
+ * + * string natural_language_answer = 4; + * + * @return The bytes for naturalLanguageAnswer. + */ + com.google.protobuf.ByteString getNaturalLanguageAnswerBytes(); + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @return A list containing the disambiguationQuestion. + */ + java.util.List getDisambiguationQuestionList(); + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @return The count of disambiguationQuestion. + */ + int getDisambiguationQuestionCount(); + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the element to return. + * @return The disambiguationQuestion at the given index. + */ + java.lang.String getDisambiguationQuestion(int index); + + /** + * + * + *
+   * If ambiguity was detected in the natural language query and
+   * options.generate_disambiguation_question was true, this field contains a
+   * question to the user for clarification. The returned represents the
+   * service's best effort based on the ambiguous input.
+   * 
+ * + * repeated string disambiguation_question = 5; + * + * @param index The index of the value to return. + * @return The bytes of the disambiguationQuestion at the given index. + */ + com.google.protobuf.ByteString getDisambiguationQuestionBytes(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java new file mode 100644 index 000000000000..03900bf0ae70 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java @@ -0,0 +1,1846 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing a reference to a single Spanner database.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference} + */ +public final class SpannerDatabaseReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) + SpannerDatabaseReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SpannerDatabaseReference.newBuilder() to construct. + private SpannerDatabaseReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpannerDatabaseReference() { + engine_ = 0; + projectId_ = ""; + region_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpannerDatabaseReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder.class); + } + + /** + * + * + *
+   * The database engine.
+   * 
+ * + * Protobuf enum {@code google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine} + */ + public enum Engine implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Engine is not specified.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + ENGINE_UNSPECIFIED(0), + /** + * + * + *
+     * Google SQL
+     * 
+ * + * GOOGLE_SQL = 1; + */ + GOOGLE_SQL(1), + /** + * + * + *
+     * PostgreSQL
+     * 
+ * + * POSTGRESQL = 2; + */ + POSTGRESQL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Engine is not specified.
+     * 
+ * + * ENGINE_UNSPECIFIED = 0; + */ + public static final int ENGINE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Google SQL
+     * 
+ * + * GOOGLE_SQL = 1; + */ + public static final int GOOGLE_SQL_VALUE = 1; + + /** + * + * + *
+     * PostgreSQL
+     * 
+ * + * POSTGRESQL = 2; + */ + public static final int POSTGRESQL_VALUE = 2; + + 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 Engine 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 Engine forNumber(int value) { + switch (value) { + case 0: + return ENGINE_UNSPECIFIED; + case 1: + return GOOGLE_SQL; + case 2: + return POSTGRESQL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Engine findValueByNumber(int number) { + return Engine.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Engine[] VALUES = values(); + + public static Engine valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Engine(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine) + } + + public static final int ENGINE_FIELD_NUMBER = 6; + private int engine_ = 0; + + /** + * + * + *
+   * Required. The engine of the Spanner instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+   * Required. The engine of the Spanner instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine getEngine() { + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine result = + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine.forNumber( + engine_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine.UNRECOGNIZED + : result; + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + @java.lang.Override + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + 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(); + projectId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object region_ = ""; + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + @java.lang.Override + public java.lang.String getRegion() { + java.lang.Object ref = region_; + 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(); + region_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + @java.lang.Override + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + 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(); + instanceId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATABASE_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object databaseId_ = ""; + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + @java.lang.Override + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + 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(); + databaseId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_IDS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + return tableIds_; + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_); + } + for (int i = 0; i < tableIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, tableIds_.getRaw(i)); + } + if (engine_ + != com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine + .ENGINE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, engine_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(region_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, region_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, instanceId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_); + } + { + int dataSize = 0; + for (int i = 0; i < tableIds_.size(); i++) { + dataSize += computeStringSizeNoTag(tableIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getTableIdsList().size(); + } + if (engine_ + != com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine + .ENGINE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, engine_); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference other = + (com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) obj; + + if (engine_ != other.engine_) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getRegion().equals(other.getRegion())) return false; + if (!getInstanceId().equals(other.getInstanceId())) return false; + if (!getDatabaseId().equals(other.getDatabaseId())) return false; + if (!getTableIdsList().equals(other.getTableIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + ENGINE_FIELD_NUMBER; + hash = (53 * hash) + engine_; + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + REGION_FIELD_NUMBER; + hash = (53 * hash) + getRegion().hashCode(); + hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER; + hash = (53 * hash) + getInstanceId().hashCode(); + hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseId().hashCode(); + if (getTableIdsCount() > 0) { + hash = (37 * hash) + TABLE_IDS_FIELD_NUMBER; + hash = (53 * hash) + getTableIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference 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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference 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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + 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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference 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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference 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; + } + + /** + * + * + *
+   * Message representing a reference to a single Spanner database.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.class, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder.class); + } + + // Construct using + // com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + engine_ = 0; + projectId_ = ""; + region_ = ""; + instanceId_ = ""; + databaseId_ = ""; + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference build() { + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference result = + new com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.engine_ = engine_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.projectId_ = projectId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.region_ = region_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instanceId_ = instanceId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.databaseId_ = databaseId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + tableIds_.makeImmutable(); + result.tableIds_ = tableIds_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) { + return mergeFrom( + (com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + .getDefaultInstance()) return this; + if (other.engine_ != 0) { + setEngineValue(other.getEngineValue()); + } + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRegion().isEmpty()) { + region_ = other.region_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstanceId().isEmpty()) { + instanceId_ = other.instanceId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDatabaseId().isEmpty()) { + databaseId_ = other.databaseId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.tableIds_.isEmpty()) { + if (tableIds_.isEmpty()) { + tableIds_ = other.tableIds_; + bitField0_ |= 0x00000020; + } else { + ensureTableIdsIsMutable(); + tableIds_.addAll(other.tableIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + projectId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + region_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + instanceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + databaseId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureTableIdsIsMutable(); + tableIds_.add(s); + break; + } // case 42 + case 48: + { + engine_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int engine_ = 0; + + /** + * + * + *
+     * Required. The engine of the Spanner instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + @java.lang.Override + public int getEngineValue() { + return engine_; + } + + /** + * + * + *
+     * Required. The engine of the Spanner instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for engine to set. + * @return This builder for chaining. + */ + public Builder setEngineValue(int value) { + engine_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The engine of the Spanner instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine getEngine() { + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine result = + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine.forNumber( + engine_); + return result == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. The engine of the Spanner instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The engine to set. + * @return This builder for chaining. + */ + public Builder setEngine( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + engine_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The engine of the Spanner instance.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEngine() { + bitField0_ = (bitField0_ & ~0x00000001); + engine_ = 0; + onChanged(); + return this; + } + + private java.lang.Object projectId_ = ""; + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + public java.lang.String getProjectId() { + java.lang.Object ref = projectId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + projectId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + public com.google.protobuf.ByteString getProjectIdBytes() { + java.lang.Object ref = projectId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + projectId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The project the instance belongs to.
+     * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. + */ + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + projectId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object region_ = ""; + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + public java.lang.String getRegion() { + java.lang.Object ref = region_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + region_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + public com.google.protobuf.ByteString getRegionBytes() { + java.lang.Object ref = region_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + region_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The region to set. + * @return This builder for chaining. + */ + public Builder setRegion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRegion() { + region_ = getDefaultInstance().getRegion(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The region of the instance.
+     * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for region to set. + * @return This builder for chaining. + */ + public Builder setRegionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instanceId_ = ""; + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + public java.lang.String getInstanceId() { + java.lang.Object ref = instanceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instanceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + public com.google.protobuf.ByteString getInstanceIdBytes() { + java.lang.Object ref = instanceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instanceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearInstanceId() { + instanceId_ = getDefaultInstance().getInstanceId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The instance id.
+     * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for instanceId to set. + * @return This builder for chaining. + */ + public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instanceId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object databaseId_ = ""; + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + public java.lang.String getDatabaseId() { + java.lang.Object ref = databaseId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + databaseId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + public com.google.protobuf.ByteString getDatabaseIdBytes() { + java.lang.Object ref = databaseId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + databaseId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDatabaseId() { + databaseId_ = getDefaultInstance().getDatabaseId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The database id.
+     * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for databaseId to set. + * @return This builder for chaining. + */ + public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + databaseId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList tableIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureTableIdsIsMutable() { + if (!tableIds_.isModifiable()) { + tableIds_ = new com.google.protobuf.LazyStringArrayList(tableIds_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + public com.google.protobuf.ProtocolStringList getTableIdsList() { + tableIds_.makeImmutable(); + return tableIds_; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + public int getTableIdsCount() { + return tableIds_.size(); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + public java.lang.String getTableIds(int index) { + return tableIds_.get(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + public com.google.protobuf.ByteString getTableIdsBytes(int index) { + return tableIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The tableIds to set. + * @return This builder for chaining. + */ + public Builder setTableIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The tableIds to add. + * @return This builder for chaining. + */ + public Builder addAllTableIds(java.lang.Iterable values) { + ensureTableIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tableIds_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTableIds() { + tableIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The table ids. Denotes all tables if unset.
+     * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the tableIds to add. + * @return This builder for chaining. + */ + public Builder addTableIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureTableIdsIsMutable(); + tableIds_.add(value); + bitField0_ |= 0x00000020; + 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.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) + private static final com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerDatabaseReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java new file mode 100644 index 000000000000..9068e234c290 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface SpannerDatabaseReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The engine of the Spanner instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for engine. + */ + int getEngineValue(); + + /** + * + * + *
+   * Required. The engine of the Spanner instance.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine engine = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The engine. + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Engine getEngine(); + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. + */ + java.lang.String getProjectId(); + + /** + * + * + *
+   * Required. The project the instance belongs to.
+   * 
+ * + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. + */ + com.google.protobuf.ByteString getProjectIdBytes(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The region. + */ + java.lang.String getRegion(); + + /** + * + * + *
+   * Required. The region of the instance.
+   * 
+ * + * string region = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for region. + */ + com.google.protobuf.ByteString getRegionBytes(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The instanceId. + */ + java.lang.String getInstanceId(); + + /** + * + * + *
+   * Required. The instance id.
+   * 
+ * + * string instance_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for instanceId. + */ + com.google.protobuf.ByteString getInstanceIdBytes(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The databaseId. + */ + java.lang.String getDatabaseId(); + + /** + * + * + *
+   * Required. The database id.
+   * 
+ * + * string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for databaseId. + */ + com.google.protobuf.ByteString getDatabaseIdBytes(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the tableIds. + */ + java.util.List getTableIdsList(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of tableIds. + */ + int getTableIdsCount(); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The tableIds at the given index. + */ + java.lang.String getTableIds(int index); + + /** + * + * + *
+   * Optional. The table ids. Denotes all tables if unset.
+   * 
+ * + * repeated string table_ids = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the tableIds at the given index. + */ + com.google.protobuf.ByteString getTableIdsBytes(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReference.java new file mode 100644 index 000000000000..3f0af5b2c9c7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReference.java @@ -0,0 +1,1113 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
+ * Message representing reference to a Spanner database and agent context.
+ * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SpannerReference} + */ +public final class SpannerReference extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SpannerReference) + SpannerReferenceOrBuilder { + private static final long serialVersionUID = 0L; + + // Use SpannerReference.newBuilder() to construct. + private SpannerReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SpannerReference() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SpannerReference(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.class, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder.class); + } + + private int bitField0_; + public static final int DATABASE_REFERENCE_FIELD_NUMBER = 1; + private com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference databaseReference_; + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + @java.lang.Override + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + getDatabaseReference() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.getDefaultInstance() + : databaseReference_; + } + + public static final int AGENT_CONTEXT_REFERENCE_FIELD_NUMBER = 2; + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference agentContextReference_; + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + @java.lang.Override + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAgentContextReference()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDatabaseReference()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAgentContextReference()); + } + size += getUnknownFields().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.cloud.geminidataanalytics.v1beta.SpannerReference)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.SpannerReference other = + (com.google.cloud.geminidataanalytics.v1beta.SpannerReference) obj; + + if (hasDatabaseReference() != other.hasDatabaseReference()) return false; + if (hasDatabaseReference()) { + if (!getDatabaseReference().equals(other.getDatabaseReference())) return false; + } + if (hasAgentContextReference() != other.hasAgentContextReference()) return false; + if (hasAgentContextReference()) { + if (!getAgentContextReference().equals(other.getAgentContextReference())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDatabaseReference()) { + hash = (37 * hash) + DATABASE_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getDatabaseReference().hashCode(); + } + if (hasAgentContextReference()) { + hash = (37 * hash) + AGENT_CONTEXT_REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getAgentContextReference().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference 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.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference 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.cloud.geminidataanalytics.v1beta.SpannerReference parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference 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.cloud.geminidataanalytics.v1beta.SpannerReference parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference 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.cloud.geminidataanalytics.v1beta.SpannerReference 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; + } + + /** + * + * + *
+   * Message representing reference to a Spanner database and agent context.
+   * 
+ * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SpannerReference} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SpannerReference) + com.google.cloud.geminidataanalytics.v1beta.SpannerReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.class, + com.google.cloud.geminidataanalytics.v1beta.SpannerReference.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.SpannerReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDatabaseReferenceFieldBuilder(); + getAgentContextReferenceFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference build() { + com.google.cloud.geminidataanalytics.v1beta.SpannerReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.SpannerReference result = + new com.google.cloud.geminidataanalytics.v1beta.SpannerReference(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1beta.SpannerReference result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.databaseReference_ = + databaseReferenceBuilder_ == null + ? databaseReference_ + : databaseReferenceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentContextReference_ = + agentContextReferenceBuilder_ == null + ? agentContextReference_ + : agentContextReferenceBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SpannerReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.SpannerReference) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SpannerReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1beta.SpannerReference.getDefaultInstance()) + return this; + if (other.hasDatabaseReference()) { + mergeDatabaseReference(other.getDatabaseReference()); + } + if (other.hasAgentContextReference()) { + mergeAgentContextReference(other.getAgentContextReference()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDatabaseReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getAgentContextReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference databaseReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder> + databaseReferenceBuilder_; + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + public boolean hasDatabaseReference() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + getDatabaseReference() { + if (databaseReferenceBuilder_ == null) { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + .getDefaultInstance() + : databaseReference_; + } else { + return databaseReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + databaseReference_ = value; + } else { + databaseReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder + builderForValue) { + if (databaseReferenceBuilder_ == null) { + databaseReference_ = builderForValue.build(); + } else { + databaseReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDatabaseReference( + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference value) { + if (databaseReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && databaseReference_ != null + && databaseReference_ + != com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + .getDefaultInstance()) { + getDatabaseReferenceBuilder().mergeFrom(value); + } else { + databaseReference_ = value; + } + } else { + databaseReferenceBuilder_.mergeFrom(value); + } + if (databaseReference_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDatabaseReference() { + bitField0_ = (bitField0_ & ~0x00000001); + databaseReference_ = null; + if (databaseReferenceBuilder_ != null) { + databaseReferenceBuilder_.dispose(); + databaseReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder + getDatabaseReferenceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDatabaseReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder() { + if (databaseReferenceBuilder_ != null) { + return databaseReferenceBuilder_.getMessageOrBuilder(); + } else { + return databaseReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference + .getDefaultInstance() + : databaseReference_; + } + } + + /** + * + * + *
+     * Required. Singular proto that supports specifying which database and tables
+     * to include.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder> + getDatabaseReferenceFieldBuilder() { + if (databaseReferenceBuilder_ == null) { + databaseReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder>( + getDatabaseReference(), getParentForChildren(), isClean()); + databaseReference_ = null; + } + return databaseReferenceBuilder_; + } + + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + agentContextReference_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + agentContextReferenceBuilder_; + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + public boolean hasAgentContextReference() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + getAgentContextReference() { + if (agentContextReferenceBuilder_ == null) { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } else { + return agentContextReferenceBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentContextReference_ = value; + } else { + agentContextReferenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder builderForValue) { + if (agentContextReferenceBuilder_ == null) { + agentContextReference_ = builderForValue.build(); + } else { + agentContextReferenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentContextReference( + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { + if (agentContextReferenceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && agentContextReference_ != null + && agentContextReference_ + != com.google.cloud.geminidataanalytics.v1beta.AgentContextReference + .getDefaultInstance()) { + getAgentContextReferenceBuilder().mergeFrom(value); + } else { + agentContextReference_ = value; + } + } else { + agentContextReferenceBuilder_.mergeFrom(value); + } + if (agentContextReference_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentContextReference() { + bitField0_ = (bitField0_ & ~0x00000002); + agentContextReference_ = null; + if (agentContextReferenceBuilder_ != null) { + agentContextReferenceBuilder_.dispose(); + agentContextReferenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder + getAgentContextReferenceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAgentContextReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder() { + if (agentContextReferenceBuilder_ != null) { + return agentContextReferenceBuilder_.getMessageOrBuilder(); + } else { + return agentContextReference_ == null + ? com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.getDefaultInstance() + : agentContextReference_; + } + } + + /** + * + * + *
+     * Optional. Parameters for retrieving data from Agent Context.
+     * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder> + getAgentContextReferenceFieldBuilder() { + if (agentContextReferenceBuilder_ == null) { + agentContextReferenceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder>( + getAgentContextReference(), getParentForChildren(), isClean()); + agentContextReference_ = null; + } + return agentContextReferenceBuilder_; + } + + @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.cloud.geminidataanalytics.v1beta.SpannerReference) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SpannerReference) + private static final com.google.cloud.geminidataanalytics.v1beta.SpannerReference + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SpannerReference(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SpannerReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SpannerReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SpannerReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReferenceOrBuilder.java new file mode 100644 index 000000000000..25080cbfafc5 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerReferenceOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2025 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/cloud/geminidataanalytics/v1beta/datasource.proto + +// Protobuf Java Version: 3.25.8 +package com.google.cloud.geminidataanalytics.v1beta; + +public interface SpannerReferenceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SpannerReference) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the databaseReference field is set. + */ + boolean hasDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The databaseReference. + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference getDatabaseReference(); + + /** + * + * + *
+   * Required. Singular proto that supports specifying which database and tables
+   * to include.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference database_reference = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReferenceOrBuilder + getDatabaseReferenceOrBuilder(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentContextReference field is set. + */ + boolean hasAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentContextReference. + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReference getAgentContextReference(); + + /** + * + * + *
+   * Optional. Parameters for retrieving data from Agent Context.
+   * 
+ * + * + * .google.cloud.geminidataanalytics.v1beta.AgentContextReference agent_context_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceOrBuilder + getAgentContextReferenceOrBuilder(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/agent_context.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/agent_context.proto new file mode 100644 index 000000000000..61b925a2510f --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/agent_context.proto @@ -0,0 +1,33 @@ +// Copyright 2025 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.geminidataanalytics.v1beta; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.GeminiDataAnalytics.V1Beta"; +option go_package = "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb"; +option java_multiple_files = true; +option java_outer_classname = "AgentContextProto"; +option java_package = "com.google.cloud.geminidataanalytics.v1beta"; +option php_namespace = "Google\\Cloud\\GeminiDataAnalytics\\V1beta"; +option ruby_package = "Google::Cloud::GeminiDataAnalytics::V1beta"; + +// Message representing a reference to Agent Context. +message AgentContextReference { + // Required. Context set ID to retrieve. + string context_set_id = 1 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto index ba3a683c223e..44c826f007f2 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto @@ -97,6 +97,141 @@ service DataChatService { }; option (google.api.method_signature) = "parent"; } + + // Queries data from a natural language user query. + rpc QueryData(QueryDataRequest) returns (QueryDataResponse) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}:queryData" + body: "*" + }; + } +} + +// Request to query data from a natural language query. +message QueryDataRequest { + // Required. The parent resource to generate the query for. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The natural language query for which to generate query. + // Example: "What are the top 5 best selling products this month?" + string prompt = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The context for the data query, including the data sources to + // use. + QueryDataContext context = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Options to control query generation and execution behavior. + GenerationOptions generation_options = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Options to control query generation, execution, and response format. +message GenerationOptions { + // Optional. If true, the generated query will be executed, and the result + // data will be returned in the response. + bool generate_query_result = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, a natural language answer based on the query execution + // result will be generated and returned in the response. + bool generate_natural_language_answer = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, an explanation of the generated query will be returned + // in the response. + bool generate_explanation = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true (default to false), the service may return a + // clarifying_question if the input query is ambiguous. + bool generate_disambiguation_question = 4 + [(google.api.field_behavior) = OPTIONAL]; +} + +// References to data sources and context to use for the query. +message QueryDataContext { + // Required. The datasource references to use for the query. + DatasourceReferences datasource_references = 1 + [(google.api.field_behavior) = REQUIRED]; +} + +// Response containing the generated query and related information. +message QueryDataResponse { + // Generated query for the given user prompt. + string generated_query = 1; + + // A natural language explanation of the generated query. + // Populated if options.generate_explanation was true in the request. + string intent_explanation = 2; + + // The result of executing the query. + // Populated if options.generate_query_result or + // options.generate_natural_language_answer was true in the request, and + // execution was successful or attempted. + ExecutedQueryResult query_result = 3; + + // A natural language answer to the query, based on the query_result. + // Populated if options.generate_natural_language_answer was true in the + // request and query execution was successful based in the response from + // executeSql API. + string natural_language_answer = 4; + + // If ambiguity was detected in the natural language query and + // options.generate_disambiguation_question was true, this field contains a + // question to the user for clarification. The returned represents the + // service's best effort based on the ambiguous input. + repeated string disambiguation_question = 5; +} + +// The result of a query execution. The design is generic for all dialects. +message ExecutedQueryResult { + // Describes a single column in the result set. + message Column { + // The name of the column. + string name = 1; + + // The type of the column (e.g., "VARCHAR", "INT64", "TIMESTAMP"). + string type = 2; + } + + // Represents a single value within a row. + message Value { + // The cell value, represented in a string format. + // Timestamps could be formatted, for example, using RFC3339Nano. + // This field is used if the value is not null. + string value = 1; + } + + // Represents a single row in the result set. + message Row { + // The values in the row, corresponding positionally to the columns. + repeated Value values = 1; + } + + // The columns in the result set, in order. + repeated Column columns = 1; + + // The rows returned by the query. + repeated Row rows = 2; + + // The total number of rows in the full result set, if known. + // This may be an estimate or an exact count. + int64 total_row_count = 3; + + // Set to true if the returned rows in `query_result` are a subset of the + // full result. This can happen, for example, if the query execution hits a + // row limit. When true, the `query_result` does not contain all + // rows. To retrieve the complete result, consider using the + // `generated_query` in `QueryDataResponse` and executing it in your own + // environment. + bool partial_result = 4; + + // The error message if the query execution failed. + string query_execution_error = 5; } // Request for listing chat messages based on parent and conversation_id. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto index 14ecfc2a29b3..8b3e388a4d42 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package google.cloud.geminidataanalytics.v1beta; import "google/api/field_behavior.proto"; +import "google/cloud/geminidataanalytics/v1beta/agent_context.proto"; import "google/cloud/geminidataanalytics/v1beta/credentials.proto"; import "google/protobuf/struct.proto"; @@ -51,6 +52,15 @@ message DatasourceReferences { // References to Looker Explores. LookerExploreReferences looker = 3; + + // Reference to an AlloyDB database. + AlloyDbReference alloydb = 8; + + // Reference to a Spanner database. + SpannerReference spanner_reference = 9; + + // Reference to a CloudSql database. + CloudSqlReference cloud_sql_reference = 10; } } @@ -88,6 +98,129 @@ message StudioDatasourceReference { string datasource_id = 1 [(google.api.field_behavior) = REQUIRED]; } +// Message representing reference to an AlloyDB database and agent context. +message AlloyDbReference { + // Required. Singular proto that supports specifying which database and tables + // to include. + AlloyDbDatabaseReference database_reference = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Parameters for retrieving data from Agent Context. + AgentContextReference agent_context_reference = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing a reference to a single AlloyDB database. +message AlloyDbDatabaseReference { + // Required. The project the instance belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The region of the instance. + string region = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The cluster id. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The instance id. + string instance_id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The database id. + string database_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The table ids. Denotes all tables if unset. + repeated string table_ids = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing reference to a Spanner database and agent context. +message SpannerReference { + // Required. Singular proto that supports specifying which database and tables + // to include. + SpannerDatabaseReference database_reference = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Parameters for retrieving data from Agent Context. + AgentContextReference agent_context_reference = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing a reference to a single Spanner database. +message SpannerDatabaseReference { + // The database engine. + enum Engine { + // Engine is not specified. + ENGINE_UNSPECIFIED = 0; + + // Google SQL + GOOGLE_SQL = 1; + + // PostgreSQL + POSTGRESQL = 2; + } + + // Required. The engine of the Spanner instance. + Engine engine = 6 [(google.api.field_behavior) = REQUIRED]; + + // Required. The project the instance belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The region of the instance. + string region = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The instance id. + string instance_id = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The database id. + string database_id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The table ids. Denotes all tables if unset. + repeated string table_ids = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing reference to a CloudSQL database and agent context. +message CloudSqlReference { + // Required. Singular proto that supports specifying which database and tables + // to include. + CloudSqlDatabaseReference database_reference = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. Parameters for retrieving data from Agent Context. + AgentContextReference agent_context_reference = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message representing a reference to a single CloudSQL database. +message CloudSqlDatabaseReference { + // The database engine. + enum Engine { + // Engine is not specified. + ENGINE_UNSPECIFIED = 0; + + // PostgreSQL + POSTGRESQL = 1; + + // MySQL + MYSQL = 2; + } + + // Required. The engine of the Cloud SQL instance. + Engine engine = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The project the instance belongs to. + string project_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The region of the instance. + string region = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. The instance id. + string instance_id = 4 [(google.api.field_behavior) = REQUIRED]; + + // Required. The database id. + string database_id = 5 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The table ids. Denotes all tables if unset. + repeated string table_ids = 7 [(google.api.field_behavior) = OPTIONAL]; +} + // Message representing references to Looker explores. message LookerExploreReferences { // Required. References to Looker explores. @@ -152,6 +285,15 @@ message Datasource { // A reference to a Looker explore. LookerExploreReference looker_explore_reference = 4; + + // A reference to an AlloyDB database. + AlloyDbReference alloy_db_reference = 12; + + // A reference to a Spanner database. + SpannerReference spanner_reference = 13; + + // A reference to a CloudSQL database. + CloudSqlReference cloud_sql_reference = 14; } // Optional. The schema of the datasource. diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java new file mode 100644 index 000000000000..fd530830380c --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/AsyncQueryData.java @@ -0,0 +1,55 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_QueryData_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.cloud.geminidataanalytics.v1beta.GenerationOptions; +import com.google.cloud.geminidataanalytics.v1beta.LocationName; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataContext; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; + +public class AsyncQueryData { + + public static void main(String[] args) throws Exception { + asyncQueryData(); + } + + public static void asyncQueryData() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + ApiFuture future = + dataChatServiceClient.queryDataCallable().futureCall(request); + // Do something. + QueryDataResponse response = future.get(); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java new file mode 100644 index 000000000000..d1610173df10 --- /dev/null +++ b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/datachatservice/querydata/SyncQueryData.java @@ -0,0 +1,51 @@ +/* + * Copyright 2025 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.geminidataanalytics.v1beta.samples; + +// [START geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync] +import com.google.cloud.geminidataanalytics.v1beta.DataChatServiceClient; +import com.google.cloud.geminidataanalytics.v1beta.GenerationOptions; +import com.google.cloud.geminidataanalytics.v1beta.LocationName; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataContext; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataRequest; +import com.google.cloud.geminidataanalytics.v1beta.QueryDataResponse; + +public class SyncQueryData { + + public static void main(String[] args) throws Exception { + syncQueryData(); + } + + public static void syncQueryData() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (DataChatServiceClient dataChatServiceClient = DataChatServiceClient.create()) { + QueryDataRequest request = + QueryDataRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPrompt("prompt-979805852") + .setContext(QueryDataContext.newBuilder().build()) + .setGenerationOptions(GenerationOptions.newBuilder().build()) + .build(); + QueryDataResponse response = dataChatServiceClient.queryData(request); + } + } +} +// [END geminidataanalytics_v1beta_generated_DataChatService_QueryData_sync]