• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package com.google.analytics.admin.v1alpha;
18 
19 import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStub;
20 import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings;
21 import com.google.api.core.ApiFuture;
22 import com.google.api.core.ApiFutures;
23 import com.google.api.core.BetaApi;
24 import com.google.api.gax.core.BackgroundResource;
25 import com.google.api.gax.paging.AbstractFixedSizeCollection;
26 import com.google.api.gax.paging.AbstractPage;
27 import com.google.api.gax.paging.AbstractPagedListResponse;
28 import com.google.api.gax.rpc.PageContext;
29 import com.google.api.gax.rpc.UnaryCallable;
30 import com.google.common.util.concurrent.MoreExecutors;
31 import com.google.protobuf.Empty;
32 import com.google.protobuf.FieldMask;
33 import java.io.IOException;
34 import java.util.List;
35 import java.util.concurrent.TimeUnit;
36 import javax.annotation.Generated;
37 
38 // AUTO-GENERATED DOCUMENTATION AND CLASS.
39 /**
40  * Service Description: Service Interface for the Analytics Admin API (GA4).
41  *
42  * <p>This class provides the ability to make remote calls to the backing service through method
43  * calls that map to API methods. Sample code to get started:
44  *
45  * <pre>{@code
46  * // This snippet has been automatically generated and should be regarded as a code template only.
47  * // It will require modifications to work:
48  * // - It may require correct/in-range values for request initialization.
49  * // - It may require specifying regional endpoints when creating the service client as shown in
50  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
51  * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
52  *     AnalyticsAdminServiceClient.create()) {
53  *   AccountName name = AccountName.of("[ACCOUNT]");
54  *   Account response = analyticsAdminServiceClient.getAccount(name);
55  * }
56  * }</pre>
57  *
58  * <p>Note: close() needs to be called on the AnalyticsAdminServiceClient object to clean up
59  * resources such as threads. In the example above, try-with-resources is used, which automatically
60  * calls close().
61  *
62  * <p>The surface of this class includes several types of Java methods for each of the API's
63  * methods:
64  *
65  * <ol>
66  *   <li>A "flattened" method. With this type of method, the fields of the request type have been
67  *       converted into function parameters. It may be the case that not all fields are available as
68  *       parameters, and not every API method will have a flattened method entry point.
69  *   <li>A "request object" method. This type of method only takes one parameter, a request object,
70  *       which must be constructed before the call. Not every API method will have a request object
71  *       method.
72  *   <li>A "callable" method. This type of method takes no parameters and returns an immutable API
73  *       callable object, which can be used to initiate calls to the service.
74  * </ol>
75  *
76  * <p>See the individual methods for example code.
77  *
78  * <p>Many parameters require resource names to be formatted in a particular way. To assist with
79  * these names, this class includes a format method for each type of name, and additionally a parse
80  * method to extract the individual identifiers contained within names that are returned.
81  *
82  * <p>This class can be customized by passing in a custom instance of AnalyticsAdminServiceSettings
83  * to create(). For example:
84  *
85  * <p>To customize credentials:
86  *
87  * <pre>{@code
88  * // This snippet has been automatically generated and should be regarded as a code template only.
89  * // It will require modifications to work:
90  * // - It may require correct/in-range values for request initialization.
91  * // - It may require specifying regional endpoints when creating the service client as shown in
92  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
93  * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
94  *     AnalyticsAdminServiceSettings.newBuilder()
95  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
96  *         .build();
97  * AnalyticsAdminServiceClient analyticsAdminServiceClient =
98  *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
99  * }</pre>
100  *
101  * <p>To customize the endpoint:
102  *
103  * <pre>{@code
104  * // This snippet has been automatically generated and should be regarded as a code template only.
105  * // It will require modifications to work:
106  * // - It may require correct/in-range values for request initialization.
107  * // - It may require specifying regional endpoints when creating the service client as shown in
108  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
109  * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
110  *     AnalyticsAdminServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
111  * AnalyticsAdminServiceClient analyticsAdminServiceClient =
112  *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
113  * }</pre>
114  *
115  * <p>To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over
116  * the wire:
117  *
118  * <pre>{@code
119  * // This snippet has been automatically generated and should be regarded as a code template only.
120  * // It will require modifications to work:
121  * // - It may require correct/in-range values for request initialization.
122  * // - It may require specifying regional endpoints when creating the service client as shown in
123  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
124  * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
125  *     AnalyticsAdminServiceSettings.newHttpJsonBuilder().build();
126  * AnalyticsAdminServiceClient analyticsAdminServiceClient =
127  *     AnalyticsAdminServiceClient.create(analyticsAdminServiceSettings);
128  * }</pre>
129  *
130  * <p>Please refer to the GitHub repository's samples for more quickstart code snippets.
131  */
132 @BetaApi
133 @Generated("by gapic-generator-java")
134 public class AnalyticsAdminServiceClient implements BackgroundResource {
135   private final AnalyticsAdminServiceSettings settings;
136   private final AnalyticsAdminServiceStub stub;
137 
138   /** Constructs an instance of AnalyticsAdminServiceClient with default settings. */
create()139   public static final AnalyticsAdminServiceClient create() throws IOException {
140     return create(AnalyticsAdminServiceSettings.newBuilder().build());
141   }
142 
143   /**
144    * Constructs an instance of AnalyticsAdminServiceClient, using the given settings. The channels
145    * are created based on the settings passed in, or defaults for any settings that are not set.
146    */
create(AnalyticsAdminServiceSettings settings)147   public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceSettings settings)
148       throws IOException {
149     return new AnalyticsAdminServiceClient(settings);
150   }
151 
152   /**
153    * Constructs an instance of AnalyticsAdminServiceClient, using the given stub for making calls.
154    * This is for advanced usage - prefer using create(AnalyticsAdminServiceSettings).
155    */
create(AnalyticsAdminServiceStub stub)156   public static final AnalyticsAdminServiceClient create(AnalyticsAdminServiceStub stub) {
157     return new AnalyticsAdminServiceClient(stub);
158   }
159 
160   /**
161    * Constructs an instance of AnalyticsAdminServiceClient, using the given settings. This is
162    * protected so that it is easy to make a subclass, but otherwise, the static factory methods
163    * should be preferred.
164    */
AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings)165   protected AnalyticsAdminServiceClient(AnalyticsAdminServiceSettings settings) throws IOException {
166     this.settings = settings;
167     this.stub = ((AnalyticsAdminServiceStubSettings) settings.getStubSettings()).createStub();
168   }
169 
AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub)170   protected AnalyticsAdminServiceClient(AnalyticsAdminServiceStub stub) {
171     this.settings = null;
172     this.stub = stub;
173   }
174 
getSettings()175   public final AnalyticsAdminServiceSettings getSettings() {
176     return settings;
177   }
178 
getStub()179   public AnalyticsAdminServiceStub getStub() {
180     return stub;
181   }
182 
183   // AUTO-GENERATED DOCUMENTATION AND METHOD.
184   /**
185    * Lookup for a single Account.
186    *
187    * <p>Sample code:
188    *
189    * <pre>{@code
190    * // This snippet has been automatically generated and should be regarded as a code template only.
191    * // It will require modifications to work:
192    * // - It may require correct/in-range values for request initialization.
193    * // - It may require specifying regional endpoints when creating the service client as shown in
194    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
195    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
196    *     AnalyticsAdminServiceClient.create()) {
197    *   AccountName name = AccountName.of("[ACCOUNT]");
198    *   Account response = analyticsAdminServiceClient.getAccount(name);
199    * }
200    * }</pre>
201    *
202    * @param name Required. The name of the account to lookup. Format: accounts/{account} Example:
203    *     "accounts/100"
204    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
205    */
getAccount(AccountName name)206   public final Account getAccount(AccountName name) {
207     GetAccountRequest request =
208         GetAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build();
209     return getAccount(request);
210   }
211 
212   // AUTO-GENERATED DOCUMENTATION AND METHOD.
213   /**
214    * Lookup for a single Account.
215    *
216    * <p>Sample code:
217    *
218    * <pre>{@code
219    * // This snippet has been automatically generated and should be regarded as a code template only.
220    * // It will require modifications to work:
221    * // - It may require correct/in-range values for request initialization.
222    * // - It may require specifying regional endpoints when creating the service client as shown in
223    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
224    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
225    *     AnalyticsAdminServiceClient.create()) {
226    *   String name = AccountName.of("[ACCOUNT]").toString();
227    *   Account response = analyticsAdminServiceClient.getAccount(name);
228    * }
229    * }</pre>
230    *
231    * @param name Required. The name of the account to lookup. Format: accounts/{account} Example:
232    *     "accounts/100"
233    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
234    */
getAccount(String name)235   public final Account getAccount(String name) {
236     GetAccountRequest request = GetAccountRequest.newBuilder().setName(name).build();
237     return getAccount(request);
238   }
239 
240   // AUTO-GENERATED DOCUMENTATION AND METHOD.
241   /**
242    * Lookup for a single Account.
243    *
244    * <p>Sample code:
245    *
246    * <pre>{@code
247    * // This snippet has been automatically generated and should be regarded as a code template only.
248    * // It will require modifications to work:
249    * // - It may require correct/in-range values for request initialization.
250    * // - It may require specifying regional endpoints when creating the service client as shown in
251    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
252    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
253    *     AnalyticsAdminServiceClient.create()) {
254    *   GetAccountRequest request =
255    *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
256    *   Account response = analyticsAdminServiceClient.getAccount(request);
257    * }
258    * }</pre>
259    *
260    * @param request The request object containing all of the parameters for the API call.
261    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
262    */
getAccount(GetAccountRequest request)263   public final Account getAccount(GetAccountRequest request) {
264     return getAccountCallable().call(request);
265   }
266 
267   // AUTO-GENERATED DOCUMENTATION AND METHOD.
268   /**
269    * Lookup for a single Account.
270    *
271    * <p>Sample code:
272    *
273    * <pre>{@code
274    * // This snippet has been automatically generated and should be regarded as a code template only.
275    * // It will require modifications to work:
276    * // - It may require correct/in-range values for request initialization.
277    * // - It may require specifying regional endpoints when creating the service client as shown in
278    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
279    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
280    *     AnalyticsAdminServiceClient.create()) {
281    *   GetAccountRequest request =
282    *       GetAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
283    *   ApiFuture<Account> future =
284    *       analyticsAdminServiceClient.getAccountCallable().futureCall(request);
285    *   // Do something.
286    *   Account response = future.get();
287    * }
288    * }</pre>
289    */
getAccountCallable()290   public final UnaryCallable<GetAccountRequest, Account> getAccountCallable() {
291     return stub.getAccountCallable();
292   }
293 
294   // AUTO-GENERATED DOCUMENTATION AND METHOD.
295   /**
296    * Returns all accounts accessible by the caller.
297    *
298    * <p>Note that these accounts might not currently have GA4 properties. Soft-deleted (ie:
299    * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are
300    * found.
301    *
302    * <p>Sample code:
303    *
304    * <pre>{@code
305    * // This snippet has been automatically generated and should be regarded as a code template only.
306    * // It will require modifications to work:
307    * // - It may require correct/in-range values for request initialization.
308    * // - It may require specifying regional endpoints when creating the service client as shown in
309    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
310    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
311    *     AnalyticsAdminServiceClient.create()) {
312    *   ListAccountsRequest request =
313    *       ListAccountsRequest.newBuilder()
314    *           .setPageSize(883849137)
315    *           .setPageToken("pageToken873572522")
316    *           .setShowDeleted(true)
317    *           .build();
318    *   for (Account element : analyticsAdminServiceClient.listAccounts(request).iterateAll()) {
319    *     // doThingsWith(element);
320    *   }
321    * }
322    * }</pre>
323    *
324    * @param request The request object containing all of the parameters for the API call.
325    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
326    */
listAccounts(ListAccountsRequest request)327   public final ListAccountsPagedResponse listAccounts(ListAccountsRequest request) {
328     return listAccountsPagedCallable().call(request);
329   }
330 
331   // AUTO-GENERATED DOCUMENTATION AND METHOD.
332   /**
333    * Returns all accounts accessible by the caller.
334    *
335    * <p>Note that these accounts might not currently have GA4 properties. Soft-deleted (ie:
336    * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are
337    * found.
338    *
339    * <p>Sample code:
340    *
341    * <pre>{@code
342    * // This snippet has been automatically generated and should be regarded as a code template only.
343    * // It will require modifications to work:
344    * // - It may require correct/in-range values for request initialization.
345    * // - It may require specifying regional endpoints when creating the service client as shown in
346    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
347    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
348    *     AnalyticsAdminServiceClient.create()) {
349    *   ListAccountsRequest request =
350    *       ListAccountsRequest.newBuilder()
351    *           .setPageSize(883849137)
352    *           .setPageToken("pageToken873572522")
353    *           .setShowDeleted(true)
354    *           .build();
355    *   ApiFuture<Account> future =
356    *       analyticsAdminServiceClient.listAccountsPagedCallable().futureCall(request);
357    *   // Do something.
358    *   for (Account element : future.get().iterateAll()) {
359    *     // doThingsWith(element);
360    *   }
361    * }
362    * }</pre>
363    */
364   public final UnaryCallable<ListAccountsRequest, ListAccountsPagedResponse>
listAccountsPagedCallable()365       listAccountsPagedCallable() {
366     return stub.listAccountsPagedCallable();
367   }
368 
369   // AUTO-GENERATED DOCUMENTATION AND METHOD.
370   /**
371    * Returns all accounts accessible by the caller.
372    *
373    * <p>Note that these accounts might not currently have GA4 properties. Soft-deleted (ie:
374    * "trashed") accounts are excluded by default. Returns an empty list if no relevant accounts are
375    * found.
376    *
377    * <p>Sample code:
378    *
379    * <pre>{@code
380    * // This snippet has been automatically generated and should be regarded as a code template only.
381    * // It will require modifications to work:
382    * // - It may require correct/in-range values for request initialization.
383    * // - It may require specifying regional endpoints when creating the service client as shown in
384    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
385    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
386    *     AnalyticsAdminServiceClient.create()) {
387    *   ListAccountsRequest request =
388    *       ListAccountsRequest.newBuilder()
389    *           .setPageSize(883849137)
390    *           .setPageToken("pageToken873572522")
391    *           .setShowDeleted(true)
392    *           .build();
393    *   while (true) {
394    *     ListAccountsResponse response =
395    *         analyticsAdminServiceClient.listAccountsCallable().call(request);
396    *     for (Account element : response.getAccountsList()) {
397    *       // doThingsWith(element);
398    *     }
399    *     String nextPageToken = response.getNextPageToken();
400    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
401    *       request = request.toBuilder().setPageToken(nextPageToken).build();
402    *     } else {
403    *       break;
404    *     }
405    *   }
406    * }
407    * }</pre>
408    */
listAccountsCallable()409   public final UnaryCallable<ListAccountsRequest, ListAccountsResponse> listAccountsCallable() {
410     return stub.listAccountsCallable();
411   }
412 
413   // AUTO-GENERATED DOCUMENTATION AND METHOD.
414   /**
415    * Marks target Account as soft-deleted (ie: "trashed") and returns it.
416    *
417    * <p>This API does not have a method to restore soft-deleted accounts. However, they can be
418    * restored using the Trash Can UI.
419    *
420    * <p>If the accounts are not restored before the expiration time, the account and all child
421    * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
422    * https://support.google.com/analytics/answer/6154772
423    *
424    * <p>Returns an error if the target is not found.
425    *
426    * <p>Sample code:
427    *
428    * <pre>{@code
429    * // This snippet has been automatically generated and should be regarded as a code template only.
430    * // It will require modifications to work:
431    * // - It may require correct/in-range values for request initialization.
432    * // - It may require specifying regional endpoints when creating the service client as shown in
433    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
434    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
435    *     AnalyticsAdminServiceClient.create()) {
436    *   AccountName name = AccountName.of("[ACCOUNT]");
437    *   analyticsAdminServiceClient.deleteAccount(name);
438    * }
439    * }</pre>
440    *
441    * @param name Required. The name of the Account to soft-delete. Format: accounts/{account}
442    *     Example: "accounts/100"
443    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
444    */
deleteAccount(AccountName name)445   public final void deleteAccount(AccountName name) {
446     DeleteAccountRequest request =
447         DeleteAccountRequest.newBuilder().setName(name == null ? null : name.toString()).build();
448     deleteAccount(request);
449   }
450 
451   // AUTO-GENERATED DOCUMENTATION AND METHOD.
452   /**
453    * Marks target Account as soft-deleted (ie: "trashed") and returns it.
454    *
455    * <p>This API does not have a method to restore soft-deleted accounts. However, they can be
456    * restored using the Trash Can UI.
457    *
458    * <p>If the accounts are not restored before the expiration time, the account and all child
459    * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
460    * https://support.google.com/analytics/answer/6154772
461    *
462    * <p>Returns an error if the target is not found.
463    *
464    * <p>Sample code:
465    *
466    * <pre>{@code
467    * // This snippet has been automatically generated and should be regarded as a code template only.
468    * // It will require modifications to work:
469    * // - It may require correct/in-range values for request initialization.
470    * // - It may require specifying regional endpoints when creating the service client as shown in
471    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
472    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
473    *     AnalyticsAdminServiceClient.create()) {
474    *   String name = AccountName.of("[ACCOUNT]").toString();
475    *   analyticsAdminServiceClient.deleteAccount(name);
476    * }
477    * }</pre>
478    *
479    * @param name Required. The name of the Account to soft-delete. Format: accounts/{account}
480    *     Example: "accounts/100"
481    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
482    */
deleteAccount(String name)483   public final void deleteAccount(String name) {
484     DeleteAccountRequest request = DeleteAccountRequest.newBuilder().setName(name).build();
485     deleteAccount(request);
486   }
487 
488   // AUTO-GENERATED DOCUMENTATION AND METHOD.
489   /**
490    * Marks target Account as soft-deleted (ie: "trashed") and returns it.
491    *
492    * <p>This API does not have a method to restore soft-deleted accounts. However, they can be
493    * restored using the Trash Can UI.
494    *
495    * <p>If the accounts are not restored before the expiration time, the account and all child
496    * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
497    * https://support.google.com/analytics/answer/6154772
498    *
499    * <p>Returns an error if the target is not found.
500    *
501    * <p>Sample code:
502    *
503    * <pre>{@code
504    * // This snippet has been automatically generated and should be regarded as a code template only.
505    * // It will require modifications to work:
506    * // - It may require correct/in-range values for request initialization.
507    * // - It may require specifying regional endpoints when creating the service client as shown in
508    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
509    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
510    *     AnalyticsAdminServiceClient.create()) {
511    *   DeleteAccountRequest request =
512    *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
513    *   analyticsAdminServiceClient.deleteAccount(request);
514    * }
515    * }</pre>
516    *
517    * @param request The request object containing all of the parameters for the API call.
518    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
519    */
deleteAccount(DeleteAccountRequest request)520   public final void deleteAccount(DeleteAccountRequest request) {
521     deleteAccountCallable().call(request);
522   }
523 
524   // AUTO-GENERATED DOCUMENTATION AND METHOD.
525   /**
526    * Marks target Account as soft-deleted (ie: "trashed") and returns it.
527    *
528    * <p>This API does not have a method to restore soft-deleted accounts. However, they can be
529    * restored using the Trash Can UI.
530    *
531    * <p>If the accounts are not restored before the expiration time, the account and all child
532    * resources (eg: Properties, GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
533    * https://support.google.com/analytics/answer/6154772
534    *
535    * <p>Returns an error if the target is not found.
536    *
537    * <p>Sample code:
538    *
539    * <pre>{@code
540    * // This snippet has been automatically generated and should be regarded as a code template only.
541    * // It will require modifications to work:
542    * // - It may require correct/in-range values for request initialization.
543    * // - It may require specifying regional endpoints when creating the service client as shown in
544    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
545    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
546    *     AnalyticsAdminServiceClient.create()) {
547    *   DeleteAccountRequest request =
548    *       DeleteAccountRequest.newBuilder().setName(AccountName.of("[ACCOUNT]").toString()).build();
549    *   ApiFuture<Empty> future =
550    *       analyticsAdminServiceClient.deleteAccountCallable().futureCall(request);
551    *   // Do something.
552    *   future.get();
553    * }
554    * }</pre>
555    */
deleteAccountCallable()556   public final UnaryCallable<DeleteAccountRequest, Empty> deleteAccountCallable() {
557     return stub.deleteAccountCallable();
558   }
559 
560   // AUTO-GENERATED DOCUMENTATION AND METHOD.
561   /**
562    * Updates an account.
563    *
564    * <p>Sample code:
565    *
566    * <pre>{@code
567    * // This snippet has been automatically generated and should be regarded as a code template only.
568    * // It will require modifications to work:
569    * // - It may require correct/in-range values for request initialization.
570    * // - It may require specifying regional endpoints when creating the service client as shown in
571    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
572    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
573    *     AnalyticsAdminServiceClient.create()) {
574    *   Account account = Account.newBuilder().build();
575    *   FieldMask updateMask = FieldMask.newBuilder().build();
576    *   Account response = analyticsAdminServiceClient.updateAccount(account, updateMask);
577    * }
578    * }</pre>
579    *
580    * @param account Required. The account to update. The account's `name` field is used to identify
581    *     the account.
582    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
583    *     (for example, "field_to_update"). Omitted fields will not be updated. To replace the entire
584    *     entity, use one path with the string "&#42;" to match all fields.
585    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
586    */
updateAccount(Account account, FieldMask updateMask)587   public final Account updateAccount(Account account, FieldMask updateMask) {
588     UpdateAccountRequest request =
589         UpdateAccountRequest.newBuilder().setAccount(account).setUpdateMask(updateMask).build();
590     return updateAccount(request);
591   }
592 
593   // AUTO-GENERATED DOCUMENTATION AND METHOD.
594   /**
595    * Updates an account.
596    *
597    * <p>Sample code:
598    *
599    * <pre>{@code
600    * // This snippet has been automatically generated and should be regarded as a code template only.
601    * // It will require modifications to work:
602    * // - It may require correct/in-range values for request initialization.
603    * // - It may require specifying regional endpoints when creating the service client as shown in
604    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
605    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
606    *     AnalyticsAdminServiceClient.create()) {
607    *   UpdateAccountRequest request =
608    *       UpdateAccountRequest.newBuilder()
609    *           .setAccount(Account.newBuilder().build())
610    *           .setUpdateMask(FieldMask.newBuilder().build())
611    *           .build();
612    *   Account response = analyticsAdminServiceClient.updateAccount(request);
613    * }
614    * }</pre>
615    *
616    * @param request The request object containing all of the parameters for the API call.
617    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
618    */
updateAccount(UpdateAccountRequest request)619   public final Account updateAccount(UpdateAccountRequest request) {
620     return updateAccountCallable().call(request);
621   }
622 
623   // AUTO-GENERATED DOCUMENTATION AND METHOD.
624   /**
625    * Updates an account.
626    *
627    * <p>Sample code:
628    *
629    * <pre>{@code
630    * // This snippet has been automatically generated and should be regarded as a code template only.
631    * // It will require modifications to work:
632    * // - It may require correct/in-range values for request initialization.
633    * // - It may require specifying regional endpoints when creating the service client as shown in
634    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
635    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
636    *     AnalyticsAdminServiceClient.create()) {
637    *   UpdateAccountRequest request =
638    *       UpdateAccountRequest.newBuilder()
639    *           .setAccount(Account.newBuilder().build())
640    *           .setUpdateMask(FieldMask.newBuilder().build())
641    *           .build();
642    *   ApiFuture<Account> future =
643    *       analyticsAdminServiceClient.updateAccountCallable().futureCall(request);
644    *   // Do something.
645    *   Account response = future.get();
646    * }
647    * }</pre>
648    */
updateAccountCallable()649   public final UnaryCallable<UpdateAccountRequest, Account> updateAccountCallable() {
650     return stub.updateAccountCallable();
651   }
652 
653   // AUTO-GENERATED DOCUMENTATION AND METHOD.
654   /**
655    * Requests a ticket for creating an account.
656    *
657    * <p>Sample code:
658    *
659    * <pre>{@code
660    * // This snippet has been automatically generated and should be regarded as a code template only.
661    * // It will require modifications to work:
662    * // - It may require correct/in-range values for request initialization.
663    * // - It may require specifying regional endpoints when creating the service client as shown in
664    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
665    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
666    *     AnalyticsAdminServiceClient.create()) {
667    *   ProvisionAccountTicketRequest request =
668    *       ProvisionAccountTicketRequest.newBuilder()
669    *           .setAccount(Account.newBuilder().build())
670    *           .setRedirectUri("redirectUri1970337776")
671    *           .build();
672    *   ProvisionAccountTicketResponse response =
673    *       analyticsAdminServiceClient.provisionAccountTicket(request);
674    * }
675    * }</pre>
676    *
677    * @param request The request object containing all of the parameters for the API call.
678    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
679    */
provisionAccountTicket( ProvisionAccountTicketRequest request)680   public final ProvisionAccountTicketResponse provisionAccountTicket(
681       ProvisionAccountTicketRequest request) {
682     return provisionAccountTicketCallable().call(request);
683   }
684 
685   // AUTO-GENERATED DOCUMENTATION AND METHOD.
686   /**
687    * Requests a ticket for creating an account.
688    *
689    * <p>Sample code:
690    *
691    * <pre>{@code
692    * // This snippet has been automatically generated and should be regarded as a code template only.
693    * // It will require modifications to work:
694    * // - It may require correct/in-range values for request initialization.
695    * // - It may require specifying regional endpoints when creating the service client as shown in
696    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
697    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
698    *     AnalyticsAdminServiceClient.create()) {
699    *   ProvisionAccountTicketRequest request =
700    *       ProvisionAccountTicketRequest.newBuilder()
701    *           .setAccount(Account.newBuilder().build())
702    *           .setRedirectUri("redirectUri1970337776")
703    *           .build();
704    *   ApiFuture<ProvisionAccountTicketResponse> future =
705    *       analyticsAdminServiceClient.provisionAccountTicketCallable().futureCall(request);
706    *   // Do something.
707    *   ProvisionAccountTicketResponse response = future.get();
708    * }
709    * }</pre>
710    */
711   public final UnaryCallable<ProvisionAccountTicketRequest, ProvisionAccountTicketResponse>
provisionAccountTicketCallable()712       provisionAccountTicketCallable() {
713     return stub.provisionAccountTicketCallable();
714   }
715 
716   // AUTO-GENERATED DOCUMENTATION AND METHOD.
717   /**
718    * Returns summaries of all accounts accessible by the caller.
719    *
720    * <p>Sample code:
721    *
722    * <pre>{@code
723    * // This snippet has been automatically generated and should be regarded as a code template only.
724    * // It will require modifications to work:
725    * // - It may require correct/in-range values for request initialization.
726    * // - It may require specifying regional endpoints when creating the service client as shown in
727    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
728    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
729    *     AnalyticsAdminServiceClient.create()) {
730    *   ListAccountSummariesRequest request =
731    *       ListAccountSummariesRequest.newBuilder()
732    *           .setPageSize(883849137)
733    *           .setPageToken("pageToken873572522")
734    *           .build();
735    *   for (AccountSummary element :
736    *       analyticsAdminServiceClient.listAccountSummaries(request).iterateAll()) {
737    *     // doThingsWith(element);
738    *   }
739    * }
740    * }</pre>
741    *
742    * @param request The request object containing all of the parameters for the API call.
743    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
744    */
listAccountSummaries( ListAccountSummariesRequest request)745   public final ListAccountSummariesPagedResponse listAccountSummaries(
746       ListAccountSummariesRequest request) {
747     return listAccountSummariesPagedCallable().call(request);
748   }
749 
750   // AUTO-GENERATED DOCUMENTATION AND METHOD.
751   /**
752    * Returns summaries of all accounts accessible by the caller.
753    *
754    * <p>Sample code:
755    *
756    * <pre>{@code
757    * // This snippet has been automatically generated and should be regarded as a code template only.
758    * // It will require modifications to work:
759    * // - It may require correct/in-range values for request initialization.
760    * // - It may require specifying regional endpoints when creating the service client as shown in
761    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
762    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
763    *     AnalyticsAdminServiceClient.create()) {
764    *   ListAccountSummariesRequest request =
765    *       ListAccountSummariesRequest.newBuilder()
766    *           .setPageSize(883849137)
767    *           .setPageToken("pageToken873572522")
768    *           .build();
769    *   ApiFuture<AccountSummary> future =
770    *       analyticsAdminServiceClient.listAccountSummariesPagedCallable().futureCall(request);
771    *   // Do something.
772    *   for (AccountSummary element : future.get().iterateAll()) {
773    *     // doThingsWith(element);
774    *   }
775    * }
776    * }</pre>
777    */
778   public final UnaryCallable<ListAccountSummariesRequest, ListAccountSummariesPagedResponse>
listAccountSummariesPagedCallable()779       listAccountSummariesPagedCallable() {
780     return stub.listAccountSummariesPagedCallable();
781   }
782 
783   // AUTO-GENERATED DOCUMENTATION AND METHOD.
784   /**
785    * Returns summaries of all accounts accessible by the caller.
786    *
787    * <p>Sample code:
788    *
789    * <pre>{@code
790    * // This snippet has been automatically generated and should be regarded as a code template only.
791    * // It will require modifications to work:
792    * // - It may require correct/in-range values for request initialization.
793    * // - It may require specifying regional endpoints when creating the service client as shown in
794    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
795    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
796    *     AnalyticsAdminServiceClient.create()) {
797    *   ListAccountSummariesRequest request =
798    *       ListAccountSummariesRequest.newBuilder()
799    *           .setPageSize(883849137)
800    *           .setPageToken("pageToken873572522")
801    *           .build();
802    *   while (true) {
803    *     ListAccountSummariesResponse response =
804    *         analyticsAdminServiceClient.listAccountSummariesCallable().call(request);
805    *     for (AccountSummary element : response.getAccountSummariesList()) {
806    *       // doThingsWith(element);
807    *     }
808    *     String nextPageToken = response.getNextPageToken();
809    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
810    *       request = request.toBuilder().setPageToken(nextPageToken).build();
811    *     } else {
812    *       break;
813    *     }
814    *   }
815    * }
816    * }</pre>
817    */
818   public final UnaryCallable<ListAccountSummariesRequest, ListAccountSummariesResponse>
listAccountSummariesCallable()819       listAccountSummariesCallable() {
820     return stub.listAccountSummariesCallable();
821   }
822 
823   // AUTO-GENERATED DOCUMENTATION AND METHOD.
824   /**
825    * Lookup for a single "GA4" Property.
826    *
827    * <p>Sample code:
828    *
829    * <pre>{@code
830    * // This snippet has been automatically generated and should be regarded as a code template only.
831    * // It will require modifications to work:
832    * // - It may require correct/in-range values for request initialization.
833    * // - It may require specifying regional endpoints when creating the service client as shown in
834    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
835    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
836    *     AnalyticsAdminServiceClient.create()) {
837    *   PropertyName name = PropertyName.of("[PROPERTY]");
838    *   Property response = analyticsAdminServiceClient.getProperty(name);
839    * }
840    * }</pre>
841    *
842    * @param name Required. The name of the property to lookup. Format: properties/{property_id}
843    *     Example: "properties/1000"
844    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
845    */
getProperty(PropertyName name)846   public final Property getProperty(PropertyName name) {
847     GetPropertyRequest request =
848         GetPropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build();
849     return getProperty(request);
850   }
851 
852   // AUTO-GENERATED DOCUMENTATION AND METHOD.
853   /**
854    * Lookup for a single "GA4" Property.
855    *
856    * <p>Sample code:
857    *
858    * <pre>{@code
859    * // This snippet has been automatically generated and should be regarded as a code template only.
860    * // It will require modifications to work:
861    * // - It may require correct/in-range values for request initialization.
862    * // - It may require specifying regional endpoints when creating the service client as shown in
863    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
864    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
865    *     AnalyticsAdminServiceClient.create()) {
866    *   String name = PropertyName.of("[PROPERTY]").toString();
867    *   Property response = analyticsAdminServiceClient.getProperty(name);
868    * }
869    * }</pre>
870    *
871    * @param name Required. The name of the property to lookup. Format: properties/{property_id}
872    *     Example: "properties/1000"
873    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
874    */
getProperty(String name)875   public final Property getProperty(String name) {
876     GetPropertyRequest request = GetPropertyRequest.newBuilder().setName(name).build();
877     return getProperty(request);
878   }
879 
880   // AUTO-GENERATED DOCUMENTATION AND METHOD.
881   /**
882    * Lookup for a single "GA4" Property.
883    *
884    * <p>Sample code:
885    *
886    * <pre>{@code
887    * // This snippet has been automatically generated and should be regarded as a code template only.
888    * // It will require modifications to work:
889    * // - It may require correct/in-range values for request initialization.
890    * // - It may require specifying regional endpoints when creating the service client as shown in
891    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
892    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
893    *     AnalyticsAdminServiceClient.create()) {
894    *   GetPropertyRequest request =
895    *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
896    *   Property response = analyticsAdminServiceClient.getProperty(request);
897    * }
898    * }</pre>
899    *
900    * @param request The request object containing all of the parameters for the API call.
901    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
902    */
getProperty(GetPropertyRequest request)903   public final Property getProperty(GetPropertyRequest request) {
904     return getPropertyCallable().call(request);
905   }
906 
907   // AUTO-GENERATED DOCUMENTATION AND METHOD.
908   /**
909    * Lookup for a single "GA4" Property.
910    *
911    * <p>Sample code:
912    *
913    * <pre>{@code
914    * // This snippet has been automatically generated and should be regarded as a code template only.
915    * // It will require modifications to work:
916    * // - It may require correct/in-range values for request initialization.
917    * // - It may require specifying regional endpoints when creating the service client as shown in
918    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
919    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
920    *     AnalyticsAdminServiceClient.create()) {
921    *   GetPropertyRequest request =
922    *       GetPropertyRequest.newBuilder().setName(PropertyName.of("[PROPERTY]").toString()).build();
923    *   ApiFuture<Property> future =
924    *       analyticsAdminServiceClient.getPropertyCallable().futureCall(request);
925    *   // Do something.
926    *   Property response = future.get();
927    * }
928    * }</pre>
929    */
getPropertyCallable()930   public final UnaryCallable<GetPropertyRequest, Property> getPropertyCallable() {
931     return stub.getPropertyCallable();
932   }
933 
934   // AUTO-GENERATED DOCUMENTATION AND METHOD.
935   /**
936    * Returns child Properties under the specified parent Account.
937    *
938    * <p>Only "GA4" properties will be returned. Properties will be excluded if the caller does not
939    * have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty
940    * list if no relevant properties are found.
941    *
942    * <p>Sample code:
943    *
944    * <pre>{@code
945    * // This snippet has been automatically generated and should be regarded as a code template only.
946    * // It will require modifications to work:
947    * // - It may require correct/in-range values for request initialization.
948    * // - It may require specifying regional endpoints when creating the service client as shown in
949    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
950    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
951    *     AnalyticsAdminServiceClient.create()) {
952    *   ListPropertiesRequest request =
953    *       ListPropertiesRequest.newBuilder()
954    *           .setFilter("filter-1274492040")
955    *           .setPageSize(883849137)
956    *           .setPageToken("pageToken873572522")
957    *           .setShowDeleted(true)
958    *           .build();
959    *   for (Property element : analyticsAdminServiceClient.listProperties(request).iterateAll()) {
960    *     // doThingsWith(element);
961    *   }
962    * }
963    * }</pre>
964    *
965    * @param request The request object containing all of the parameters for the API call.
966    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
967    */
listProperties(ListPropertiesRequest request)968   public final ListPropertiesPagedResponse listProperties(ListPropertiesRequest request) {
969     return listPropertiesPagedCallable().call(request);
970   }
971 
972   // AUTO-GENERATED DOCUMENTATION AND METHOD.
973   /**
974    * Returns child Properties under the specified parent Account.
975    *
976    * <p>Only "GA4" properties will be returned. Properties will be excluded if the caller does not
977    * have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty
978    * list if no relevant properties are found.
979    *
980    * <p>Sample code:
981    *
982    * <pre>{@code
983    * // This snippet has been automatically generated and should be regarded as a code template only.
984    * // It will require modifications to work:
985    * // - It may require correct/in-range values for request initialization.
986    * // - It may require specifying regional endpoints when creating the service client as shown in
987    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
988    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
989    *     AnalyticsAdminServiceClient.create()) {
990    *   ListPropertiesRequest request =
991    *       ListPropertiesRequest.newBuilder()
992    *           .setFilter("filter-1274492040")
993    *           .setPageSize(883849137)
994    *           .setPageToken("pageToken873572522")
995    *           .setShowDeleted(true)
996    *           .build();
997    *   ApiFuture<Property> future =
998    *       analyticsAdminServiceClient.listPropertiesPagedCallable().futureCall(request);
999    *   // Do something.
1000    *   for (Property element : future.get().iterateAll()) {
1001    *     // doThingsWith(element);
1002    *   }
1003    * }
1004    * }</pre>
1005    */
1006   public final UnaryCallable<ListPropertiesRequest, ListPropertiesPagedResponse>
listPropertiesPagedCallable()1007       listPropertiesPagedCallable() {
1008     return stub.listPropertiesPagedCallable();
1009   }
1010 
1011   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1012   /**
1013    * Returns child Properties under the specified parent Account.
1014    *
1015    * <p>Only "GA4" properties will be returned. Properties will be excluded if the caller does not
1016    * have access. Soft-deleted (ie: "trashed") properties are excluded by default. Returns an empty
1017    * list if no relevant properties are found.
1018    *
1019    * <p>Sample code:
1020    *
1021    * <pre>{@code
1022    * // This snippet has been automatically generated and should be regarded as a code template only.
1023    * // It will require modifications to work:
1024    * // - It may require correct/in-range values for request initialization.
1025    * // - It may require specifying regional endpoints when creating the service client as shown in
1026    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1027    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1028    *     AnalyticsAdminServiceClient.create()) {
1029    *   ListPropertiesRequest request =
1030    *       ListPropertiesRequest.newBuilder()
1031    *           .setFilter("filter-1274492040")
1032    *           .setPageSize(883849137)
1033    *           .setPageToken("pageToken873572522")
1034    *           .setShowDeleted(true)
1035    *           .build();
1036    *   while (true) {
1037    *     ListPropertiesResponse response =
1038    *         analyticsAdminServiceClient.listPropertiesCallable().call(request);
1039    *     for (Property element : response.getPropertiesList()) {
1040    *       // doThingsWith(element);
1041    *     }
1042    *     String nextPageToken = response.getNextPageToken();
1043    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
1044    *       request = request.toBuilder().setPageToken(nextPageToken).build();
1045    *     } else {
1046    *       break;
1047    *     }
1048    *   }
1049    * }
1050    * }</pre>
1051    */
1052   public final UnaryCallable<ListPropertiesRequest, ListPropertiesResponse>
listPropertiesCallable()1053       listPropertiesCallable() {
1054     return stub.listPropertiesCallable();
1055   }
1056 
1057   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1058   /**
1059    * Creates an "GA4" property with the specified location and attributes.
1060    *
1061    * <p>Sample code:
1062    *
1063    * <pre>{@code
1064    * // This snippet has been automatically generated and should be regarded as a code template only.
1065    * // It will require modifications to work:
1066    * // - It may require correct/in-range values for request initialization.
1067    * // - It may require specifying regional endpoints when creating the service client as shown in
1068    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1069    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1070    *     AnalyticsAdminServiceClient.create()) {
1071    *   Property property = Property.newBuilder().build();
1072    *   Property response = analyticsAdminServiceClient.createProperty(property);
1073    * }
1074    * }</pre>
1075    *
1076    * @param property Required. The property to create. Note: the supplied property must specify its
1077    *     parent.
1078    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1079    */
createProperty(Property property)1080   public final Property createProperty(Property property) {
1081     CreatePropertyRequest request =
1082         CreatePropertyRequest.newBuilder().setProperty(property).build();
1083     return createProperty(request);
1084   }
1085 
1086   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1087   /**
1088    * Creates an "GA4" property with the specified location and attributes.
1089    *
1090    * <p>Sample code:
1091    *
1092    * <pre>{@code
1093    * // This snippet has been automatically generated and should be regarded as a code template only.
1094    * // It will require modifications to work:
1095    * // - It may require correct/in-range values for request initialization.
1096    * // - It may require specifying regional endpoints when creating the service client as shown in
1097    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1098    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1099    *     AnalyticsAdminServiceClient.create()) {
1100    *   CreatePropertyRequest request =
1101    *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
1102    *   Property response = analyticsAdminServiceClient.createProperty(request);
1103    * }
1104    * }</pre>
1105    *
1106    * @param request The request object containing all of the parameters for the API call.
1107    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1108    */
createProperty(CreatePropertyRequest request)1109   public final Property createProperty(CreatePropertyRequest request) {
1110     return createPropertyCallable().call(request);
1111   }
1112 
1113   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1114   /**
1115    * Creates an "GA4" property with the specified location and attributes.
1116    *
1117    * <p>Sample code:
1118    *
1119    * <pre>{@code
1120    * // This snippet has been automatically generated and should be regarded as a code template only.
1121    * // It will require modifications to work:
1122    * // - It may require correct/in-range values for request initialization.
1123    * // - It may require specifying regional endpoints when creating the service client as shown in
1124    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1125    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1126    *     AnalyticsAdminServiceClient.create()) {
1127    *   CreatePropertyRequest request =
1128    *       CreatePropertyRequest.newBuilder().setProperty(Property.newBuilder().build()).build();
1129    *   ApiFuture<Property> future =
1130    *       analyticsAdminServiceClient.createPropertyCallable().futureCall(request);
1131    *   // Do something.
1132    *   Property response = future.get();
1133    * }
1134    * }</pre>
1135    */
createPropertyCallable()1136   public final UnaryCallable<CreatePropertyRequest, Property> createPropertyCallable() {
1137     return stub.createPropertyCallable();
1138   }
1139 
1140   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1141   /**
1142    * Marks target Property as soft-deleted (ie: "trashed") and returns it.
1143    *
1144    * <p>This API does not have a method to restore soft-deleted properties. However, they can be
1145    * restored using the Trash Can UI.
1146    *
1147    * <p>If the properties are not restored before the expiration time, the Property and all child
1148    * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
1149    * https://support.google.com/analytics/answer/6154772
1150    *
1151    * <p>Returns an error if the target is not found, or is not a GA4 Property.
1152    *
1153    * <p>Sample code:
1154    *
1155    * <pre>{@code
1156    * // This snippet has been automatically generated and should be regarded as a code template only.
1157    * // It will require modifications to work:
1158    * // - It may require correct/in-range values for request initialization.
1159    * // - It may require specifying regional endpoints when creating the service client as shown in
1160    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1161    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1162    *     AnalyticsAdminServiceClient.create()) {
1163    *   PropertyName name = PropertyName.of("[PROPERTY]");
1164    *   Property response = analyticsAdminServiceClient.deleteProperty(name);
1165    * }
1166    * }</pre>
1167    *
1168    * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id}
1169    *     Example: "properties/1000"
1170    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1171    */
deleteProperty(PropertyName name)1172   public final Property deleteProperty(PropertyName name) {
1173     DeletePropertyRequest request =
1174         DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build();
1175     return deleteProperty(request);
1176   }
1177 
1178   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1179   /**
1180    * Marks target Property as soft-deleted (ie: "trashed") and returns it.
1181    *
1182    * <p>This API does not have a method to restore soft-deleted properties. However, they can be
1183    * restored using the Trash Can UI.
1184    *
1185    * <p>If the properties are not restored before the expiration time, the Property and all child
1186    * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
1187    * https://support.google.com/analytics/answer/6154772
1188    *
1189    * <p>Returns an error if the target is not found, or is not a GA4 Property.
1190    *
1191    * <p>Sample code:
1192    *
1193    * <pre>{@code
1194    * // This snippet has been automatically generated and should be regarded as a code template only.
1195    * // It will require modifications to work:
1196    * // - It may require correct/in-range values for request initialization.
1197    * // - It may require specifying regional endpoints when creating the service client as shown in
1198    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1199    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1200    *     AnalyticsAdminServiceClient.create()) {
1201    *   String name = PropertyName.of("[PROPERTY]").toString();
1202    *   Property response = analyticsAdminServiceClient.deleteProperty(name);
1203    * }
1204    * }</pre>
1205    *
1206    * @param name Required. The name of the Property to soft-delete. Format: properties/{property_id}
1207    *     Example: "properties/1000"
1208    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1209    */
deleteProperty(String name)1210   public final Property deleteProperty(String name) {
1211     DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build();
1212     return deleteProperty(request);
1213   }
1214 
1215   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1216   /**
1217    * Marks target Property as soft-deleted (ie: "trashed") and returns it.
1218    *
1219    * <p>This API does not have a method to restore soft-deleted properties. However, they can be
1220    * restored using the Trash Can UI.
1221    *
1222    * <p>If the properties are not restored before the expiration time, the Property and all child
1223    * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
1224    * https://support.google.com/analytics/answer/6154772
1225    *
1226    * <p>Returns an error if the target is not found, or is not a GA4 Property.
1227    *
1228    * <p>Sample code:
1229    *
1230    * <pre>{@code
1231    * // This snippet has been automatically generated and should be regarded as a code template only.
1232    * // It will require modifications to work:
1233    * // - It may require correct/in-range values for request initialization.
1234    * // - It may require specifying regional endpoints when creating the service client as shown in
1235    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1236    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1237    *     AnalyticsAdminServiceClient.create()) {
1238    *   DeletePropertyRequest request =
1239    *       DeletePropertyRequest.newBuilder()
1240    *           .setName(PropertyName.of("[PROPERTY]").toString())
1241    *           .build();
1242    *   Property response = analyticsAdminServiceClient.deleteProperty(request);
1243    * }
1244    * }</pre>
1245    *
1246    * @param request The request object containing all of the parameters for the API call.
1247    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1248    */
deleteProperty(DeletePropertyRequest request)1249   public final Property deleteProperty(DeletePropertyRequest request) {
1250     return deletePropertyCallable().call(request);
1251   }
1252 
1253   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1254   /**
1255    * Marks target Property as soft-deleted (ie: "trashed") and returns it.
1256    *
1257    * <p>This API does not have a method to restore soft-deleted properties. However, they can be
1258    * restored using the Trash Can UI.
1259    *
1260    * <p>If the properties are not restored before the expiration time, the Property and all child
1261    * resources (eg: GoogleAdsLinks, Streams, UserLinks) will be permanently purged.
1262    * https://support.google.com/analytics/answer/6154772
1263    *
1264    * <p>Returns an error if the target is not found, or is not a GA4 Property.
1265    *
1266    * <p>Sample code:
1267    *
1268    * <pre>{@code
1269    * // This snippet has been automatically generated and should be regarded as a code template only.
1270    * // It will require modifications to work:
1271    * // - It may require correct/in-range values for request initialization.
1272    * // - It may require specifying regional endpoints when creating the service client as shown in
1273    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1274    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1275    *     AnalyticsAdminServiceClient.create()) {
1276    *   DeletePropertyRequest request =
1277    *       DeletePropertyRequest.newBuilder()
1278    *           .setName(PropertyName.of("[PROPERTY]").toString())
1279    *           .build();
1280    *   ApiFuture<Property> future =
1281    *       analyticsAdminServiceClient.deletePropertyCallable().futureCall(request);
1282    *   // Do something.
1283    *   Property response = future.get();
1284    * }
1285    * }</pre>
1286    */
deletePropertyCallable()1287   public final UnaryCallable<DeletePropertyRequest, Property> deletePropertyCallable() {
1288     return stub.deletePropertyCallable();
1289   }
1290 
1291   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1292   /**
1293    * Updates a property.
1294    *
1295    * <p>Sample code:
1296    *
1297    * <pre>{@code
1298    * // This snippet has been automatically generated and should be regarded as a code template only.
1299    * // It will require modifications to work:
1300    * // - It may require correct/in-range values for request initialization.
1301    * // - It may require specifying regional endpoints when creating the service client as shown in
1302    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1303    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1304    *     AnalyticsAdminServiceClient.create()) {
1305    *   Property property = Property.newBuilder().build();
1306    *   FieldMask updateMask = FieldMask.newBuilder().build();
1307    *   Property response = analyticsAdminServiceClient.updateProperty(property, updateMask);
1308    * }
1309    * }</pre>
1310    *
1311    * @param property Required. The property to update. The property's `name` field is used to
1312    *     identify the property to be updated.
1313    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
1314    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
1315    *     entity, use one path with the string "&#42;" to match all fields.
1316    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1317    */
updateProperty(Property property, FieldMask updateMask)1318   public final Property updateProperty(Property property, FieldMask updateMask) {
1319     UpdatePropertyRequest request =
1320         UpdatePropertyRequest.newBuilder().setProperty(property).setUpdateMask(updateMask).build();
1321     return updateProperty(request);
1322   }
1323 
1324   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1325   /**
1326    * Updates a property.
1327    *
1328    * <p>Sample code:
1329    *
1330    * <pre>{@code
1331    * // This snippet has been automatically generated and should be regarded as a code template only.
1332    * // It will require modifications to work:
1333    * // - It may require correct/in-range values for request initialization.
1334    * // - It may require specifying regional endpoints when creating the service client as shown in
1335    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1336    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1337    *     AnalyticsAdminServiceClient.create()) {
1338    *   UpdatePropertyRequest request =
1339    *       UpdatePropertyRequest.newBuilder()
1340    *           .setProperty(Property.newBuilder().build())
1341    *           .setUpdateMask(FieldMask.newBuilder().build())
1342    *           .build();
1343    *   Property response = analyticsAdminServiceClient.updateProperty(request);
1344    * }
1345    * }</pre>
1346    *
1347    * @param request The request object containing all of the parameters for the API call.
1348    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1349    */
updateProperty(UpdatePropertyRequest request)1350   public final Property updateProperty(UpdatePropertyRequest request) {
1351     return updatePropertyCallable().call(request);
1352   }
1353 
1354   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1355   /**
1356    * Updates a property.
1357    *
1358    * <p>Sample code:
1359    *
1360    * <pre>{@code
1361    * // This snippet has been automatically generated and should be regarded as a code template only.
1362    * // It will require modifications to work:
1363    * // - It may require correct/in-range values for request initialization.
1364    * // - It may require specifying regional endpoints when creating the service client as shown in
1365    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1366    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1367    *     AnalyticsAdminServiceClient.create()) {
1368    *   UpdatePropertyRequest request =
1369    *       UpdatePropertyRequest.newBuilder()
1370    *           .setProperty(Property.newBuilder().build())
1371    *           .setUpdateMask(FieldMask.newBuilder().build())
1372    *           .build();
1373    *   ApiFuture<Property> future =
1374    *       analyticsAdminServiceClient.updatePropertyCallable().futureCall(request);
1375    *   // Do something.
1376    *   Property response = future.get();
1377    * }
1378    * }</pre>
1379    */
updatePropertyCallable()1380   public final UnaryCallable<UpdatePropertyRequest, Property> updatePropertyCallable() {
1381     return stub.updatePropertyCallable();
1382   }
1383 
1384   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1385   /**
1386    * Gets information about a user's link to an account or property.
1387    *
1388    * <p>Sample code:
1389    *
1390    * <pre>{@code
1391    * // This snippet has been automatically generated and should be regarded as a code template only.
1392    * // It will require modifications to work:
1393    * // - It may require correct/in-range values for request initialization.
1394    * // - It may require specifying regional endpoints when creating the service client as shown in
1395    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1396    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1397    *     AnalyticsAdminServiceClient.create()) {
1398    *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
1399    *   UserLink response = analyticsAdminServiceClient.getUserLink(name);
1400    * }
1401    * }</pre>
1402    *
1403    * @param name Required. Example format: accounts/1234/userLinks/5678
1404    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1405    */
getUserLink(UserLinkName name)1406   public final UserLink getUserLink(UserLinkName name) {
1407     GetUserLinkRequest request =
1408         GetUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
1409     return getUserLink(request);
1410   }
1411 
1412   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1413   /**
1414    * Gets information about a user's link to an account or property.
1415    *
1416    * <p>Sample code:
1417    *
1418    * <pre>{@code
1419    * // This snippet has been automatically generated and should be regarded as a code template only.
1420    * // It will require modifications to work:
1421    * // - It may require correct/in-range values for request initialization.
1422    * // - It may require specifying regional endpoints when creating the service client as shown in
1423    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1424    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1425    *     AnalyticsAdminServiceClient.create()) {
1426    *   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
1427    *   UserLink response = analyticsAdminServiceClient.getUserLink(name);
1428    * }
1429    * }</pre>
1430    *
1431    * @param name Required. Example format: accounts/1234/userLinks/5678
1432    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1433    */
getUserLink(String name)1434   public final UserLink getUserLink(String name) {
1435     GetUserLinkRequest request = GetUserLinkRequest.newBuilder().setName(name).build();
1436     return getUserLink(request);
1437   }
1438 
1439   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1440   /**
1441    * Gets information about a user's link to an account or property.
1442    *
1443    * <p>Sample code:
1444    *
1445    * <pre>{@code
1446    * // This snippet has been automatically generated and should be regarded as a code template only.
1447    * // It will require modifications to work:
1448    * // - It may require correct/in-range values for request initialization.
1449    * // - It may require specifying regional endpoints when creating the service client as shown in
1450    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1451    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1452    *     AnalyticsAdminServiceClient.create()) {
1453    *   GetUserLinkRequest request =
1454    *       GetUserLinkRequest.newBuilder()
1455    *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
1456    *           .build();
1457    *   UserLink response = analyticsAdminServiceClient.getUserLink(request);
1458    * }
1459    * }</pre>
1460    *
1461    * @param request The request object containing all of the parameters for the API call.
1462    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1463    */
getUserLink(GetUserLinkRequest request)1464   public final UserLink getUserLink(GetUserLinkRequest request) {
1465     return getUserLinkCallable().call(request);
1466   }
1467 
1468   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1469   /**
1470    * Gets information about a user's link to an account or property.
1471    *
1472    * <p>Sample code:
1473    *
1474    * <pre>{@code
1475    * // This snippet has been automatically generated and should be regarded as a code template only.
1476    * // It will require modifications to work:
1477    * // - It may require correct/in-range values for request initialization.
1478    * // - It may require specifying regional endpoints when creating the service client as shown in
1479    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1480    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1481    *     AnalyticsAdminServiceClient.create()) {
1482    *   GetUserLinkRequest request =
1483    *       GetUserLinkRequest.newBuilder()
1484    *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
1485    *           .build();
1486    *   ApiFuture<UserLink> future =
1487    *       analyticsAdminServiceClient.getUserLinkCallable().futureCall(request);
1488    *   // Do something.
1489    *   UserLink response = future.get();
1490    * }
1491    * }</pre>
1492    */
getUserLinkCallable()1493   public final UnaryCallable<GetUserLinkRequest, UserLink> getUserLinkCallable() {
1494     return stub.getUserLinkCallable();
1495   }
1496 
1497   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1498   /**
1499    * Gets information about multiple users' links to an account or property.
1500    *
1501    * <p>Sample code:
1502    *
1503    * <pre>{@code
1504    * // This snippet has been automatically generated and should be regarded as a code template only.
1505    * // It will require modifications to work:
1506    * // - It may require correct/in-range values for request initialization.
1507    * // - It may require specifying regional endpoints when creating the service client as shown in
1508    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1509    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1510    *     AnalyticsAdminServiceClient.create()) {
1511    *   BatchGetUserLinksRequest request =
1512    *       BatchGetUserLinksRequest.newBuilder()
1513    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1514    *           .addAllNames(new ArrayList<String>())
1515    *           .build();
1516    *   BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request);
1517    * }
1518    * }</pre>
1519    *
1520    * @param request The request object containing all of the parameters for the API call.
1521    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1522    */
batchGetUserLinks(BatchGetUserLinksRequest request)1523   public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksRequest request) {
1524     return batchGetUserLinksCallable().call(request);
1525   }
1526 
1527   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1528   /**
1529    * Gets information about multiple users' links to an account or property.
1530    *
1531    * <p>Sample code:
1532    *
1533    * <pre>{@code
1534    * // This snippet has been automatically generated and should be regarded as a code template only.
1535    * // It will require modifications to work:
1536    * // - It may require correct/in-range values for request initialization.
1537    * // - It may require specifying regional endpoints when creating the service client as shown in
1538    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1539    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1540    *     AnalyticsAdminServiceClient.create()) {
1541    *   BatchGetUserLinksRequest request =
1542    *       BatchGetUserLinksRequest.newBuilder()
1543    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1544    *           .addAllNames(new ArrayList<String>())
1545    *           .build();
1546    *   ApiFuture<BatchGetUserLinksResponse> future =
1547    *       analyticsAdminServiceClient.batchGetUserLinksCallable().futureCall(request);
1548    *   // Do something.
1549    *   BatchGetUserLinksResponse response = future.get();
1550    * }
1551    * }</pre>
1552    */
1553   public final UnaryCallable<BatchGetUserLinksRequest, BatchGetUserLinksResponse>
batchGetUserLinksCallable()1554       batchGetUserLinksCallable() {
1555     return stub.batchGetUserLinksCallable();
1556   }
1557 
1558   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1559   /**
1560    * Lists all user links on an account or property.
1561    *
1562    * <p>Sample code:
1563    *
1564    * <pre>{@code
1565    * // This snippet has been automatically generated and should be regarded as a code template only.
1566    * // It will require modifications to work:
1567    * // - It may require correct/in-range values for request initialization.
1568    * // - It may require specifying regional endpoints when creating the service client as shown in
1569    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1570    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1571    *     AnalyticsAdminServiceClient.create()) {
1572    *   AccountName parent = AccountName.of("[ACCOUNT]");
1573    *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
1574    *     // doThingsWith(element);
1575    *   }
1576    * }
1577    * }</pre>
1578    *
1579    * @param parent Required. Example format: accounts/1234
1580    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1581    */
listUserLinks(AccountName parent)1582   public final ListUserLinksPagedResponse listUserLinks(AccountName parent) {
1583     ListUserLinksRequest request =
1584         ListUserLinksRequest.newBuilder()
1585             .setParent(parent == null ? null : parent.toString())
1586             .build();
1587     return listUserLinks(request);
1588   }
1589 
1590   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1591   /**
1592    * Lists all user links on an account or property.
1593    *
1594    * <p>Sample code:
1595    *
1596    * <pre>{@code
1597    * // This snippet has been automatically generated and should be regarded as a code template only.
1598    * // It will require modifications to work:
1599    * // - It may require correct/in-range values for request initialization.
1600    * // - It may require specifying regional endpoints when creating the service client as shown in
1601    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1602    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1603    *     AnalyticsAdminServiceClient.create()) {
1604    *   PropertyName parent = PropertyName.of("[PROPERTY]");
1605    *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
1606    *     // doThingsWith(element);
1607    *   }
1608    * }
1609    * }</pre>
1610    *
1611    * @param parent Required. Example format: accounts/1234
1612    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1613    */
listUserLinks(PropertyName parent)1614   public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) {
1615     ListUserLinksRequest request =
1616         ListUserLinksRequest.newBuilder()
1617             .setParent(parent == null ? null : parent.toString())
1618             .build();
1619     return listUserLinks(request);
1620   }
1621 
1622   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1623   /**
1624    * Lists all user links on an account or property.
1625    *
1626    * <p>Sample code:
1627    *
1628    * <pre>{@code
1629    * // This snippet has been automatically generated and should be regarded as a code template only.
1630    * // It will require modifications to work:
1631    * // - It may require correct/in-range values for request initialization.
1632    * // - It may require specifying regional endpoints when creating the service client as shown in
1633    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1634    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1635    *     AnalyticsAdminServiceClient.create()) {
1636    *   String parent = AccountName.of("[ACCOUNT]").toString();
1637    *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
1638    *     // doThingsWith(element);
1639    *   }
1640    * }
1641    * }</pre>
1642    *
1643    * @param parent Required. Example format: accounts/1234
1644    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1645    */
listUserLinks(String parent)1646   public final ListUserLinksPagedResponse listUserLinks(String parent) {
1647     ListUserLinksRequest request = ListUserLinksRequest.newBuilder().setParent(parent).build();
1648     return listUserLinks(request);
1649   }
1650 
1651   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1652   /**
1653    * Lists all user links on an account or property.
1654    *
1655    * <p>Sample code:
1656    *
1657    * <pre>{@code
1658    * // This snippet has been automatically generated and should be regarded as a code template only.
1659    * // It will require modifications to work:
1660    * // - It may require correct/in-range values for request initialization.
1661    * // - It may require specifying regional endpoints when creating the service client as shown in
1662    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1663    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1664    *     AnalyticsAdminServiceClient.create()) {
1665    *   ListUserLinksRequest request =
1666    *       ListUserLinksRequest.newBuilder()
1667    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1668    *           .setPageSize(883849137)
1669    *           .setPageToken("pageToken873572522")
1670    *           .build();
1671    *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(request).iterateAll()) {
1672    *     // doThingsWith(element);
1673    *   }
1674    * }
1675    * }</pre>
1676    *
1677    * @param request The request object containing all of the parameters for the API call.
1678    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1679    */
listUserLinks(ListUserLinksRequest request)1680   public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest request) {
1681     return listUserLinksPagedCallable().call(request);
1682   }
1683 
1684   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1685   /**
1686    * Lists all user links on an account or property.
1687    *
1688    * <p>Sample code:
1689    *
1690    * <pre>{@code
1691    * // This snippet has been automatically generated and should be regarded as a code template only.
1692    * // It will require modifications to work:
1693    * // - It may require correct/in-range values for request initialization.
1694    * // - It may require specifying regional endpoints when creating the service client as shown in
1695    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1696    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1697    *     AnalyticsAdminServiceClient.create()) {
1698    *   ListUserLinksRequest request =
1699    *       ListUserLinksRequest.newBuilder()
1700    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1701    *           .setPageSize(883849137)
1702    *           .setPageToken("pageToken873572522")
1703    *           .build();
1704    *   ApiFuture<UserLink> future =
1705    *       analyticsAdminServiceClient.listUserLinksPagedCallable().futureCall(request);
1706    *   // Do something.
1707    *   for (UserLink element : future.get().iterateAll()) {
1708    *     // doThingsWith(element);
1709    *   }
1710    * }
1711    * }</pre>
1712    */
1713   public final UnaryCallable<ListUserLinksRequest, ListUserLinksPagedResponse>
listUserLinksPagedCallable()1714       listUserLinksPagedCallable() {
1715     return stub.listUserLinksPagedCallable();
1716   }
1717 
1718   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1719   /**
1720    * Lists all user links on an account or property.
1721    *
1722    * <p>Sample code:
1723    *
1724    * <pre>{@code
1725    * // This snippet has been automatically generated and should be regarded as a code template only.
1726    * // It will require modifications to work:
1727    * // - It may require correct/in-range values for request initialization.
1728    * // - It may require specifying regional endpoints when creating the service client as shown in
1729    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1730    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1731    *     AnalyticsAdminServiceClient.create()) {
1732    *   ListUserLinksRequest request =
1733    *       ListUserLinksRequest.newBuilder()
1734    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1735    *           .setPageSize(883849137)
1736    *           .setPageToken("pageToken873572522")
1737    *           .build();
1738    *   while (true) {
1739    *     ListUserLinksResponse response =
1740    *         analyticsAdminServiceClient.listUserLinksCallable().call(request);
1741    *     for (UserLink element : response.getUserLinksList()) {
1742    *       // doThingsWith(element);
1743    *     }
1744    *     String nextPageToken = response.getNextPageToken();
1745    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
1746    *       request = request.toBuilder().setPageToken(nextPageToken).build();
1747    *     } else {
1748    *       break;
1749    *     }
1750    *   }
1751    * }
1752    * }</pre>
1753    */
listUserLinksCallable()1754   public final UnaryCallable<ListUserLinksRequest, ListUserLinksResponse> listUserLinksCallable() {
1755     return stub.listUserLinksCallable();
1756   }
1757 
1758   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1759   /**
1760    * Lists all user links on an account or property, including implicit ones that come from
1761    * effective permissions granted by groups or organization admin roles.
1762    *
1763    * <p>If a returned user link does not have direct permissions, they cannot be removed from the
1764    * account or property directly with the DeleteUserLink command. They have to be removed from the
1765    * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or
1766    * GMP UIs.
1767    *
1768    * <p>Sample code:
1769    *
1770    * <pre>{@code
1771    * // This snippet has been automatically generated and should be regarded as a code template only.
1772    * // It will require modifications to work:
1773    * // - It may require correct/in-range values for request initialization.
1774    * // - It may require specifying regional endpoints when creating the service client as shown in
1775    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1776    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1777    *     AnalyticsAdminServiceClient.create()) {
1778    *   AuditUserLinksRequest request =
1779    *       AuditUserLinksRequest.newBuilder()
1780    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1781    *           .setPageSize(883849137)
1782    *           .setPageToken("pageToken873572522")
1783    *           .build();
1784    *   for (AuditUserLink element :
1785    *       analyticsAdminServiceClient.auditUserLinks(request).iterateAll()) {
1786    *     // doThingsWith(element);
1787    *   }
1788    * }
1789    * }</pre>
1790    *
1791    * @param request The request object containing all of the parameters for the API call.
1792    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1793    */
auditUserLinks(AuditUserLinksRequest request)1794   public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest request) {
1795     return auditUserLinksPagedCallable().call(request);
1796   }
1797 
1798   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1799   /**
1800    * Lists all user links on an account or property, including implicit ones that come from
1801    * effective permissions granted by groups or organization admin roles.
1802    *
1803    * <p>If a returned user link does not have direct permissions, they cannot be removed from the
1804    * account or property directly with the DeleteUserLink command. They have to be removed from the
1805    * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or
1806    * GMP UIs.
1807    *
1808    * <p>Sample code:
1809    *
1810    * <pre>{@code
1811    * // This snippet has been automatically generated and should be regarded as a code template only.
1812    * // It will require modifications to work:
1813    * // - It may require correct/in-range values for request initialization.
1814    * // - It may require specifying regional endpoints when creating the service client as shown in
1815    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1816    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1817    *     AnalyticsAdminServiceClient.create()) {
1818    *   AuditUserLinksRequest request =
1819    *       AuditUserLinksRequest.newBuilder()
1820    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1821    *           .setPageSize(883849137)
1822    *           .setPageToken("pageToken873572522")
1823    *           .build();
1824    *   ApiFuture<AuditUserLink> future =
1825    *       analyticsAdminServiceClient.auditUserLinksPagedCallable().futureCall(request);
1826    *   // Do something.
1827    *   for (AuditUserLink element : future.get().iterateAll()) {
1828    *     // doThingsWith(element);
1829    *   }
1830    * }
1831    * }</pre>
1832    */
1833   public final UnaryCallable<AuditUserLinksRequest, AuditUserLinksPagedResponse>
auditUserLinksPagedCallable()1834       auditUserLinksPagedCallable() {
1835     return stub.auditUserLinksPagedCallable();
1836   }
1837 
1838   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1839   /**
1840    * Lists all user links on an account or property, including implicit ones that come from
1841    * effective permissions granted by groups or organization admin roles.
1842    *
1843    * <p>If a returned user link does not have direct permissions, they cannot be removed from the
1844    * account or property directly with the DeleteUserLink command. They have to be removed from the
1845    * group/etc that gives them permissions, which is currently only usable/discoverable in the GA or
1846    * GMP UIs.
1847    *
1848    * <p>Sample code:
1849    *
1850    * <pre>{@code
1851    * // This snippet has been automatically generated and should be regarded as a code template only.
1852    * // It will require modifications to work:
1853    * // - It may require correct/in-range values for request initialization.
1854    * // - It may require specifying regional endpoints when creating the service client as shown in
1855    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1856    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1857    *     AnalyticsAdminServiceClient.create()) {
1858    *   AuditUserLinksRequest request =
1859    *       AuditUserLinksRequest.newBuilder()
1860    *           .setParent(AccountName.of("[ACCOUNT]").toString())
1861    *           .setPageSize(883849137)
1862    *           .setPageToken("pageToken873572522")
1863    *           .build();
1864    *   while (true) {
1865    *     AuditUserLinksResponse response =
1866    *         analyticsAdminServiceClient.auditUserLinksCallable().call(request);
1867    *     for (AuditUserLink element : response.getUserLinksList()) {
1868    *       // doThingsWith(element);
1869    *     }
1870    *     String nextPageToken = response.getNextPageToken();
1871    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
1872    *       request = request.toBuilder().setPageToken(nextPageToken).build();
1873    *     } else {
1874    *       break;
1875    *     }
1876    *   }
1877    * }
1878    * }</pre>
1879    */
1880   public final UnaryCallable<AuditUserLinksRequest, AuditUserLinksResponse>
auditUserLinksCallable()1881       auditUserLinksCallable() {
1882     return stub.auditUserLinksCallable();
1883   }
1884 
1885   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1886   /**
1887    * Creates a user link on an account or property.
1888    *
1889    * <p>If the user with the specified email already has permissions on the account or property,
1890    * then the user's existing permissions will be unioned with the permissions specified in the new
1891    * UserLink.
1892    *
1893    * <p>Sample code:
1894    *
1895    * <pre>{@code
1896    * // This snippet has been automatically generated and should be regarded as a code template only.
1897    * // It will require modifications to work:
1898    * // - It may require correct/in-range values for request initialization.
1899    * // - It may require specifying regional endpoints when creating the service client as shown in
1900    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1901    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1902    *     AnalyticsAdminServiceClient.create()) {
1903    *   AccountName parent = AccountName.of("[ACCOUNT]");
1904    *   UserLink userLink = UserLink.newBuilder().build();
1905    *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
1906    * }
1907    * }</pre>
1908    *
1909    * @param parent Required. Example format: accounts/1234
1910    * @param userLink Required. The user link to create.
1911    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1912    */
createUserLink(AccountName parent, UserLink userLink)1913   public final UserLink createUserLink(AccountName parent, UserLink userLink) {
1914     CreateUserLinkRequest request =
1915         CreateUserLinkRequest.newBuilder()
1916             .setParent(parent == null ? null : parent.toString())
1917             .setUserLink(userLink)
1918             .build();
1919     return createUserLink(request);
1920   }
1921 
1922   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1923   /**
1924    * Creates a user link on an account or property.
1925    *
1926    * <p>If the user with the specified email already has permissions on the account or property,
1927    * then the user's existing permissions will be unioned with the permissions specified in the new
1928    * UserLink.
1929    *
1930    * <p>Sample code:
1931    *
1932    * <pre>{@code
1933    * // This snippet has been automatically generated and should be regarded as a code template only.
1934    * // It will require modifications to work:
1935    * // - It may require correct/in-range values for request initialization.
1936    * // - It may require specifying regional endpoints when creating the service client as shown in
1937    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1938    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1939    *     AnalyticsAdminServiceClient.create()) {
1940    *   PropertyName parent = PropertyName.of("[PROPERTY]");
1941    *   UserLink userLink = UserLink.newBuilder().build();
1942    *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
1943    * }
1944    * }</pre>
1945    *
1946    * @param parent Required. Example format: accounts/1234
1947    * @param userLink Required. The user link to create.
1948    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1949    */
createUserLink(PropertyName parent, UserLink userLink)1950   public final UserLink createUserLink(PropertyName parent, UserLink userLink) {
1951     CreateUserLinkRequest request =
1952         CreateUserLinkRequest.newBuilder()
1953             .setParent(parent == null ? null : parent.toString())
1954             .setUserLink(userLink)
1955             .build();
1956     return createUserLink(request);
1957   }
1958 
1959   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1960   /**
1961    * Creates a user link on an account or property.
1962    *
1963    * <p>If the user with the specified email already has permissions on the account or property,
1964    * then the user's existing permissions will be unioned with the permissions specified in the new
1965    * UserLink.
1966    *
1967    * <p>Sample code:
1968    *
1969    * <pre>{@code
1970    * // This snippet has been automatically generated and should be regarded as a code template only.
1971    * // It will require modifications to work:
1972    * // - It may require correct/in-range values for request initialization.
1973    * // - It may require specifying regional endpoints when creating the service client as shown in
1974    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
1975    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
1976    *     AnalyticsAdminServiceClient.create()) {
1977    *   String parent = AccountName.of("[ACCOUNT]").toString();
1978    *   UserLink userLink = UserLink.newBuilder().build();
1979    *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
1980    * }
1981    * }</pre>
1982    *
1983    * @param parent Required. Example format: accounts/1234
1984    * @param userLink Required. The user link to create.
1985    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
1986    */
createUserLink(String parent, UserLink userLink)1987   public final UserLink createUserLink(String parent, UserLink userLink) {
1988     CreateUserLinkRequest request =
1989         CreateUserLinkRequest.newBuilder().setParent(parent).setUserLink(userLink).build();
1990     return createUserLink(request);
1991   }
1992 
1993   // AUTO-GENERATED DOCUMENTATION AND METHOD.
1994   /**
1995    * Creates a user link on an account or property.
1996    *
1997    * <p>If the user with the specified email already has permissions on the account or property,
1998    * then the user's existing permissions will be unioned with the permissions specified in the new
1999    * UserLink.
2000    *
2001    * <p>Sample code:
2002    *
2003    * <pre>{@code
2004    * // This snippet has been automatically generated and should be regarded as a code template only.
2005    * // It will require modifications to work:
2006    * // - It may require correct/in-range values for request initialization.
2007    * // - It may require specifying regional endpoints when creating the service client as shown in
2008    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2009    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2010    *     AnalyticsAdminServiceClient.create()) {
2011    *   CreateUserLinkRequest request =
2012    *       CreateUserLinkRequest.newBuilder()
2013    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2014    *           .setNotifyNewUser(true)
2015    *           .setUserLink(UserLink.newBuilder().build())
2016    *           .build();
2017    *   UserLink response = analyticsAdminServiceClient.createUserLink(request);
2018    * }
2019    * }</pre>
2020    *
2021    * @param request The request object containing all of the parameters for the API call.
2022    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2023    */
createUserLink(CreateUserLinkRequest request)2024   public final UserLink createUserLink(CreateUserLinkRequest request) {
2025     return createUserLinkCallable().call(request);
2026   }
2027 
2028   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2029   /**
2030    * Creates a user link on an account or property.
2031    *
2032    * <p>If the user with the specified email already has permissions on the account or property,
2033    * then the user's existing permissions will be unioned with the permissions specified in the new
2034    * UserLink.
2035    *
2036    * <p>Sample code:
2037    *
2038    * <pre>{@code
2039    * // This snippet has been automatically generated and should be regarded as a code template only.
2040    * // It will require modifications to work:
2041    * // - It may require correct/in-range values for request initialization.
2042    * // - It may require specifying regional endpoints when creating the service client as shown in
2043    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2044    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2045    *     AnalyticsAdminServiceClient.create()) {
2046    *   CreateUserLinkRequest request =
2047    *       CreateUserLinkRequest.newBuilder()
2048    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2049    *           .setNotifyNewUser(true)
2050    *           .setUserLink(UserLink.newBuilder().build())
2051    *           .build();
2052    *   ApiFuture<UserLink> future =
2053    *       analyticsAdminServiceClient.createUserLinkCallable().futureCall(request);
2054    *   // Do something.
2055    *   UserLink response = future.get();
2056    * }
2057    * }</pre>
2058    */
createUserLinkCallable()2059   public final UnaryCallable<CreateUserLinkRequest, UserLink> createUserLinkCallable() {
2060     return stub.createUserLinkCallable();
2061   }
2062 
2063   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2064   /**
2065    * Creates information about multiple users' links to an account or property.
2066    *
2067    * <p>This method is transactional. If any UserLink cannot be created, none of the UserLinks will
2068    * be created.
2069    *
2070    * <p>Sample code:
2071    *
2072    * <pre>{@code
2073    * // This snippet has been automatically generated and should be regarded as a code template only.
2074    * // It will require modifications to work:
2075    * // - It may require correct/in-range values for request initialization.
2076    * // - It may require specifying regional endpoints when creating the service client as shown in
2077    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2078    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2079    *     AnalyticsAdminServiceClient.create()) {
2080    *   BatchCreateUserLinksRequest request =
2081    *       BatchCreateUserLinksRequest.newBuilder()
2082    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2083    *           .setNotifyNewUsers(true)
2084    *           .addAllRequests(new ArrayList<CreateUserLinkRequest>())
2085    *           .build();
2086    *   BatchCreateUserLinksResponse response =
2087    *       analyticsAdminServiceClient.batchCreateUserLinks(request);
2088    * }
2089    * }</pre>
2090    *
2091    * @param request The request object containing all of the parameters for the API call.
2092    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2093    */
batchCreateUserLinks( BatchCreateUserLinksRequest request)2094   public final BatchCreateUserLinksResponse batchCreateUserLinks(
2095       BatchCreateUserLinksRequest request) {
2096     return batchCreateUserLinksCallable().call(request);
2097   }
2098 
2099   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2100   /**
2101    * Creates information about multiple users' links to an account or property.
2102    *
2103    * <p>This method is transactional. If any UserLink cannot be created, none of the UserLinks will
2104    * be created.
2105    *
2106    * <p>Sample code:
2107    *
2108    * <pre>{@code
2109    * // This snippet has been automatically generated and should be regarded as a code template only.
2110    * // It will require modifications to work:
2111    * // - It may require correct/in-range values for request initialization.
2112    * // - It may require specifying regional endpoints when creating the service client as shown in
2113    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2114    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2115    *     AnalyticsAdminServiceClient.create()) {
2116    *   BatchCreateUserLinksRequest request =
2117    *       BatchCreateUserLinksRequest.newBuilder()
2118    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2119    *           .setNotifyNewUsers(true)
2120    *           .addAllRequests(new ArrayList<CreateUserLinkRequest>())
2121    *           .build();
2122    *   ApiFuture<BatchCreateUserLinksResponse> future =
2123    *       analyticsAdminServiceClient.batchCreateUserLinksCallable().futureCall(request);
2124    *   // Do something.
2125    *   BatchCreateUserLinksResponse response = future.get();
2126    * }
2127    * }</pre>
2128    */
2129   public final UnaryCallable<BatchCreateUserLinksRequest, BatchCreateUserLinksResponse>
batchCreateUserLinksCallable()2130       batchCreateUserLinksCallable() {
2131     return stub.batchCreateUserLinksCallable();
2132   }
2133 
2134   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2135   /**
2136    * Updates a user link on an account or property.
2137    *
2138    * <p>Sample code:
2139    *
2140    * <pre>{@code
2141    * // This snippet has been automatically generated and should be regarded as a code template only.
2142    * // It will require modifications to work:
2143    * // - It may require correct/in-range values for request initialization.
2144    * // - It may require specifying regional endpoints when creating the service client as shown in
2145    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2146    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2147    *     AnalyticsAdminServiceClient.create()) {
2148    *   UserLink userLink = UserLink.newBuilder().build();
2149    *   UserLink response = analyticsAdminServiceClient.updateUserLink(userLink);
2150    * }
2151    * }</pre>
2152    *
2153    * @param userLink Required. The user link to update.
2154    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2155    */
updateUserLink(UserLink userLink)2156   public final UserLink updateUserLink(UserLink userLink) {
2157     UpdateUserLinkRequest request =
2158         UpdateUserLinkRequest.newBuilder().setUserLink(userLink).build();
2159     return updateUserLink(request);
2160   }
2161 
2162   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2163   /**
2164    * Updates a user link on an account or property.
2165    *
2166    * <p>Sample code:
2167    *
2168    * <pre>{@code
2169    * // This snippet has been automatically generated and should be regarded as a code template only.
2170    * // It will require modifications to work:
2171    * // - It may require correct/in-range values for request initialization.
2172    * // - It may require specifying regional endpoints when creating the service client as shown in
2173    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2174    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2175    *     AnalyticsAdminServiceClient.create()) {
2176    *   UpdateUserLinkRequest request =
2177    *       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
2178    *   UserLink response = analyticsAdminServiceClient.updateUserLink(request);
2179    * }
2180    * }</pre>
2181    *
2182    * @param request The request object containing all of the parameters for the API call.
2183    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2184    */
updateUserLink(UpdateUserLinkRequest request)2185   public final UserLink updateUserLink(UpdateUserLinkRequest request) {
2186     return updateUserLinkCallable().call(request);
2187   }
2188 
2189   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2190   /**
2191    * Updates a user link on an account or property.
2192    *
2193    * <p>Sample code:
2194    *
2195    * <pre>{@code
2196    * // This snippet has been automatically generated and should be regarded as a code template only.
2197    * // It will require modifications to work:
2198    * // - It may require correct/in-range values for request initialization.
2199    * // - It may require specifying regional endpoints when creating the service client as shown in
2200    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2201    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2202    *     AnalyticsAdminServiceClient.create()) {
2203    *   UpdateUserLinkRequest request =
2204    *       UpdateUserLinkRequest.newBuilder().setUserLink(UserLink.newBuilder().build()).build();
2205    *   ApiFuture<UserLink> future =
2206    *       analyticsAdminServiceClient.updateUserLinkCallable().futureCall(request);
2207    *   // Do something.
2208    *   UserLink response = future.get();
2209    * }
2210    * }</pre>
2211    */
updateUserLinkCallable()2212   public final UnaryCallable<UpdateUserLinkRequest, UserLink> updateUserLinkCallable() {
2213     return stub.updateUserLinkCallable();
2214   }
2215 
2216   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2217   /**
2218    * Updates information about multiple users' links to an account or property.
2219    *
2220    * <p>Sample code:
2221    *
2222    * <pre>{@code
2223    * // This snippet has been automatically generated and should be regarded as a code template only.
2224    * // It will require modifications to work:
2225    * // - It may require correct/in-range values for request initialization.
2226    * // - It may require specifying regional endpoints when creating the service client as shown in
2227    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2228    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2229    *     AnalyticsAdminServiceClient.create()) {
2230    *   BatchUpdateUserLinksRequest request =
2231    *       BatchUpdateUserLinksRequest.newBuilder()
2232    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2233    *           .addAllRequests(new ArrayList<UpdateUserLinkRequest>())
2234    *           .build();
2235    *   BatchUpdateUserLinksResponse response =
2236    *       analyticsAdminServiceClient.batchUpdateUserLinks(request);
2237    * }
2238    * }</pre>
2239    *
2240    * @param request The request object containing all of the parameters for the API call.
2241    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2242    */
batchUpdateUserLinks( BatchUpdateUserLinksRequest request)2243   public final BatchUpdateUserLinksResponse batchUpdateUserLinks(
2244       BatchUpdateUserLinksRequest request) {
2245     return batchUpdateUserLinksCallable().call(request);
2246   }
2247 
2248   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2249   /**
2250    * Updates information about multiple users' links to an account or property.
2251    *
2252    * <p>Sample code:
2253    *
2254    * <pre>{@code
2255    * // This snippet has been automatically generated and should be regarded as a code template only.
2256    * // It will require modifications to work:
2257    * // - It may require correct/in-range values for request initialization.
2258    * // - It may require specifying regional endpoints when creating the service client as shown in
2259    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2260    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2261    *     AnalyticsAdminServiceClient.create()) {
2262    *   BatchUpdateUserLinksRequest request =
2263    *       BatchUpdateUserLinksRequest.newBuilder()
2264    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2265    *           .addAllRequests(new ArrayList<UpdateUserLinkRequest>())
2266    *           .build();
2267    *   ApiFuture<BatchUpdateUserLinksResponse> future =
2268    *       analyticsAdminServiceClient.batchUpdateUserLinksCallable().futureCall(request);
2269    *   // Do something.
2270    *   BatchUpdateUserLinksResponse response = future.get();
2271    * }
2272    * }</pre>
2273    */
2274   public final UnaryCallable<BatchUpdateUserLinksRequest, BatchUpdateUserLinksResponse>
batchUpdateUserLinksCallable()2275       batchUpdateUserLinksCallable() {
2276     return stub.batchUpdateUserLinksCallable();
2277   }
2278 
2279   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2280   /**
2281    * Deletes a user link on an account or property.
2282    *
2283    * <p>Sample code:
2284    *
2285    * <pre>{@code
2286    * // This snippet has been automatically generated and should be regarded as a code template only.
2287    * // It will require modifications to work:
2288    * // - It may require correct/in-range values for request initialization.
2289    * // - It may require specifying regional endpoints when creating the service client as shown in
2290    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2291    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2292    *     AnalyticsAdminServiceClient.create()) {
2293    *   UserLinkName name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]");
2294    *   analyticsAdminServiceClient.deleteUserLink(name);
2295    * }
2296    * }</pre>
2297    *
2298    * @param name Required. Example format: accounts/1234/userLinks/5678
2299    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2300    */
deleteUserLink(UserLinkName name)2301   public final void deleteUserLink(UserLinkName name) {
2302     DeleteUserLinkRequest request =
2303         DeleteUserLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
2304     deleteUserLink(request);
2305   }
2306 
2307   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2308   /**
2309    * Deletes a user link on an account or property.
2310    *
2311    * <p>Sample code:
2312    *
2313    * <pre>{@code
2314    * // This snippet has been automatically generated and should be regarded as a code template only.
2315    * // It will require modifications to work:
2316    * // - It may require correct/in-range values for request initialization.
2317    * // - It may require specifying regional endpoints when creating the service client as shown in
2318    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2319    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2320    *     AnalyticsAdminServiceClient.create()) {
2321    *   String name = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
2322    *   analyticsAdminServiceClient.deleteUserLink(name);
2323    * }
2324    * }</pre>
2325    *
2326    * @param name Required. Example format: accounts/1234/userLinks/5678
2327    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2328    */
deleteUserLink(String name)2329   public final void deleteUserLink(String name) {
2330     DeleteUserLinkRequest request = DeleteUserLinkRequest.newBuilder().setName(name).build();
2331     deleteUserLink(request);
2332   }
2333 
2334   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2335   /**
2336    * Deletes a user link on an account or property.
2337    *
2338    * <p>Sample code:
2339    *
2340    * <pre>{@code
2341    * // This snippet has been automatically generated and should be regarded as a code template only.
2342    * // It will require modifications to work:
2343    * // - It may require correct/in-range values for request initialization.
2344    * // - It may require specifying regional endpoints when creating the service client as shown in
2345    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2346    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2347    *     AnalyticsAdminServiceClient.create()) {
2348    *   DeleteUserLinkRequest request =
2349    *       DeleteUserLinkRequest.newBuilder()
2350    *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
2351    *           .build();
2352    *   analyticsAdminServiceClient.deleteUserLink(request);
2353    * }
2354    * }</pre>
2355    *
2356    * @param request The request object containing all of the parameters for the API call.
2357    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2358    */
deleteUserLink(DeleteUserLinkRequest request)2359   public final void deleteUserLink(DeleteUserLinkRequest request) {
2360     deleteUserLinkCallable().call(request);
2361   }
2362 
2363   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2364   /**
2365    * Deletes a user link on an account or property.
2366    *
2367    * <p>Sample code:
2368    *
2369    * <pre>{@code
2370    * // This snippet has been automatically generated and should be regarded as a code template only.
2371    * // It will require modifications to work:
2372    * // - It may require correct/in-range values for request initialization.
2373    * // - It may require specifying regional endpoints when creating the service client as shown in
2374    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2375    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2376    *     AnalyticsAdminServiceClient.create()) {
2377    *   DeleteUserLinkRequest request =
2378    *       DeleteUserLinkRequest.newBuilder()
2379    *           .setName(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
2380    *           .build();
2381    *   ApiFuture<Empty> future =
2382    *       analyticsAdminServiceClient.deleteUserLinkCallable().futureCall(request);
2383    *   // Do something.
2384    *   future.get();
2385    * }
2386    * }</pre>
2387    */
deleteUserLinkCallable()2388   public final UnaryCallable<DeleteUserLinkRequest, Empty> deleteUserLinkCallable() {
2389     return stub.deleteUserLinkCallable();
2390   }
2391 
2392   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2393   /**
2394    * Deletes information about multiple users' links to an account or property.
2395    *
2396    * <p>Sample code:
2397    *
2398    * <pre>{@code
2399    * // This snippet has been automatically generated and should be regarded as a code template only.
2400    * // It will require modifications to work:
2401    * // - It may require correct/in-range values for request initialization.
2402    * // - It may require specifying regional endpoints when creating the service client as shown in
2403    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2404    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2405    *     AnalyticsAdminServiceClient.create()) {
2406    *   BatchDeleteUserLinksRequest request =
2407    *       BatchDeleteUserLinksRequest.newBuilder()
2408    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2409    *           .addAllRequests(new ArrayList<DeleteUserLinkRequest>())
2410    *           .build();
2411    *   analyticsAdminServiceClient.batchDeleteUserLinks(request);
2412    * }
2413    * }</pre>
2414    *
2415    * @param request The request object containing all of the parameters for the API call.
2416    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2417    */
batchDeleteUserLinks(BatchDeleteUserLinksRequest request)2418   public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request) {
2419     batchDeleteUserLinksCallable().call(request);
2420   }
2421 
2422   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2423   /**
2424    * Deletes information about multiple users' links to an account or property.
2425    *
2426    * <p>Sample code:
2427    *
2428    * <pre>{@code
2429    * // This snippet has been automatically generated and should be regarded as a code template only.
2430    * // It will require modifications to work:
2431    * // - It may require correct/in-range values for request initialization.
2432    * // - It may require specifying regional endpoints when creating the service client as shown in
2433    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2434    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2435    *     AnalyticsAdminServiceClient.create()) {
2436    *   BatchDeleteUserLinksRequest request =
2437    *       BatchDeleteUserLinksRequest.newBuilder()
2438    *           .setParent(AccountName.of("[ACCOUNT]").toString())
2439    *           .addAllRequests(new ArrayList<DeleteUserLinkRequest>())
2440    *           .build();
2441    *   ApiFuture<Empty> future =
2442    *       analyticsAdminServiceClient.batchDeleteUserLinksCallable().futureCall(request);
2443    *   // Do something.
2444    *   future.get();
2445    * }
2446    * }</pre>
2447    */
batchDeleteUserLinksCallable()2448   public final UnaryCallable<BatchDeleteUserLinksRequest, Empty> batchDeleteUserLinksCallable() {
2449     return stub.batchDeleteUserLinksCallable();
2450   }
2451 
2452   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2453   /**
2454    * Creates a FirebaseLink.
2455    *
2456    * <p>Properties can have at most one FirebaseLink.
2457    *
2458    * <p>Sample code:
2459    *
2460    * <pre>{@code
2461    * // This snippet has been automatically generated and should be regarded as a code template only.
2462    * // It will require modifications to work:
2463    * // - It may require correct/in-range values for request initialization.
2464    * // - It may require specifying regional endpoints when creating the service client as shown in
2465    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2466    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2467    *     AnalyticsAdminServiceClient.create()) {
2468    *   PropertyName parent = PropertyName.of("[PROPERTY]");
2469    *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
2470    *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
2471    * }
2472    * }</pre>
2473    *
2474    * @param parent Required. Format: properties/{property_id} Example: properties/1234
2475    * @param firebaseLink Required. The Firebase link to create.
2476    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2477    */
createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink)2478   public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink firebaseLink) {
2479     CreateFirebaseLinkRequest request =
2480         CreateFirebaseLinkRequest.newBuilder()
2481             .setParent(parent == null ? null : parent.toString())
2482             .setFirebaseLink(firebaseLink)
2483             .build();
2484     return createFirebaseLink(request);
2485   }
2486 
2487   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2488   /**
2489    * Creates a FirebaseLink.
2490    *
2491    * <p>Properties can have at most one FirebaseLink.
2492    *
2493    * <p>Sample code:
2494    *
2495    * <pre>{@code
2496    * // This snippet has been automatically generated and should be regarded as a code template only.
2497    * // It will require modifications to work:
2498    * // - It may require correct/in-range values for request initialization.
2499    * // - It may require specifying regional endpoints when creating the service client as shown in
2500    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2501    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2502    *     AnalyticsAdminServiceClient.create()) {
2503    *   String parent = PropertyName.of("[PROPERTY]").toString();
2504    *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
2505    *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
2506    * }
2507    * }</pre>
2508    *
2509    * @param parent Required. Format: properties/{property_id} Example: properties/1234
2510    * @param firebaseLink Required. The Firebase link to create.
2511    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2512    */
createFirebaseLink(String parent, FirebaseLink firebaseLink)2513   public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebaseLink) {
2514     CreateFirebaseLinkRequest request =
2515         CreateFirebaseLinkRequest.newBuilder()
2516             .setParent(parent)
2517             .setFirebaseLink(firebaseLink)
2518             .build();
2519     return createFirebaseLink(request);
2520   }
2521 
2522   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2523   /**
2524    * Creates a FirebaseLink.
2525    *
2526    * <p>Properties can have at most one FirebaseLink.
2527    *
2528    * <p>Sample code:
2529    *
2530    * <pre>{@code
2531    * // This snippet has been automatically generated and should be regarded as a code template only.
2532    * // It will require modifications to work:
2533    * // - It may require correct/in-range values for request initialization.
2534    * // - It may require specifying regional endpoints when creating the service client as shown in
2535    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2536    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2537    *     AnalyticsAdminServiceClient.create()) {
2538    *   CreateFirebaseLinkRequest request =
2539    *       CreateFirebaseLinkRequest.newBuilder()
2540    *           .setParent(PropertyName.of("[PROPERTY]").toString())
2541    *           .setFirebaseLink(FirebaseLink.newBuilder().build())
2542    *           .build();
2543    *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
2544    * }
2545    * }</pre>
2546    *
2547    * @param request The request object containing all of the parameters for the API call.
2548    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2549    */
createFirebaseLink(CreateFirebaseLinkRequest request)2550   public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request) {
2551     return createFirebaseLinkCallable().call(request);
2552   }
2553 
2554   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2555   /**
2556    * Creates a FirebaseLink.
2557    *
2558    * <p>Properties can have at most one FirebaseLink.
2559    *
2560    * <p>Sample code:
2561    *
2562    * <pre>{@code
2563    * // This snippet has been automatically generated and should be regarded as a code template only.
2564    * // It will require modifications to work:
2565    * // - It may require correct/in-range values for request initialization.
2566    * // - It may require specifying regional endpoints when creating the service client as shown in
2567    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2568    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2569    *     AnalyticsAdminServiceClient.create()) {
2570    *   CreateFirebaseLinkRequest request =
2571    *       CreateFirebaseLinkRequest.newBuilder()
2572    *           .setParent(PropertyName.of("[PROPERTY]").toString())
2573    *           .setFirebaseLink(FirebaseLink.newBuilder().build())
2574    *           .build();
2575    *   ApiFuture<FirebaseLink> future =
2576    *       analyticsAdminServiceClient.createFirebaseLinkCallable().futureCall(request);
2577    *   // Do something.
2578    *   FirebaseLink response = future.get();
2579    * }
2580    * }</pre>
2581    */
createFirebaseLinkCallable()2582   public final UnaryCallable<CreateFirebaseLinkRequest, FirebaseLink> createFirebaseLinkCallable() {
2583     return stub.createFirebaseLinkCallable();
2584   }
2585 
2586   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2587   /**
2588    * Deletes a FirebaseLink on a property
2589    *
2590    * <p>Sample code:
2591    *
2592    * <pre>{@code
2593    * // This snippet has been automatically generated and should be regarded as a code template only.
2594    * // It will require modifications to work:
2595    * // - It may require correct/in-range values for request initialization.
2596    * // - It may require specifying regional endpoints when creating the service client as shown in
2597    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2598    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2599    *     AnalyticsAdminServiceClient.create()) {
2600    *   FirebaseLinkName name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]");
2601    *   analyticsAdminServiceClient.deleteFirebaseLink(name);
2602    * }
2603    * }</pre>
2604    *
2605    * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
2606    *     Example: properties/1234/firebaseLinks/5678
2607    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2608    */
deleteFirebaseLink(FirebaseLinkName name)2609   public final void deleteFirebaseLink(FirebaseLinkName name) {
2610     DeleteFirebaseLinkRequest request =
2611         DeleteFirebaseLinkRequest.newBuilder()
2612             .setName(name == null ? null : name.toString())
2613             .build();
2614     deleteFirebaseLink(request);
2615   }
2616 
2617   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2618   /**
2619    * Deletes a FirebaseLink on a property
2620    *
2621    * <p>Sample code:
2622    *
2623    * <pre>{@code
2624    * // This snippet has been automatically generated and should be regarded as a code template only.
2625    * // It will require modifications to work:
2626    * // - It may require correct/in-range values for request initialization.
2627    * // - It may require specifying regional endpoints when creating the service client as shown in
2628    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2629    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2630    *     AnalyticsAdminServiceClient.create()) {
2631    *   String name = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
2632    *   analyticsAdminServiceClient.deleteFirebaseLink(name);
2633    * }
2634    * }</pre>
2635    *
2636    * @param name Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
2637    *     Example: properties/1234/firebaseLinks/5678
2638    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2639    */
deleteFirebaseLink(String name)2640   public final void deleteFirebaseLink(String name) {
2641     DeleteFirebaseLinkRequest request =
2642         DeleteFirebaseLinkRequest.newBuilder().setName(name).build();
2643     deleteFirebaseLink(request);
2644   }
2645 
2646   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2647   /**
2648    * Deletes a FirebaseLink on a property
2649    *
2650    * <p>Sample code:
2651    *
2652    * <pre>{@code
2653    * // This snippet has been automatically generated and should be regarded as a code template only.
2654    * // It will require modifications to work:
2655    * // - It may require correct/in-range values for request initialization.
2656    * // - It may require specifying regional endpoints when creating the service client as shown in
2657    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2658    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2659    *     AnalyticsAdminServiceClient.create()) {
2660    *   DeleteFirebaseLinkRequest request =
2661    *       DeleteFirebaseLinkRequest.newBuilder()
2662    *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
2663    *           .build();
2664    *   analyticsAdminServiceClient.deleteFirebaseLink(request);
2665    * }
2666    * }</pre>
2667    *
2668    * @param request The request object containing all of the parameters for the API call.
2669    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2670    */
deleteFirebaseLink(DeleteFirebaseLinkRequest request)2671   public final void deleteFirebaseLink(DeleteFirebaseLinkRequest request) {
2672     deleteFirebaseLinkCallable().call(request);
2673   }
2674 
2675   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2676   /**
2677    * Deletes a FirebaseLink on a property
2678    *
2679    * <p>Sample code:
2680    *
2681    * <pre>{@code
2682    * // This snippet has been automatically generated and should be regarded as a code template only.
2683    * // It will require modifications to work:
2684    * // - It may require correct/in-range values for request initialization.
2685    * // - It may require specifying regional endpoints when creating the service client as shown in
2686    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2687    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2688    *     AnalyticsAdminServiceClient.create()) {
2689    *   DeleteFirebaseLinkRequest request =
2690    *       DeleteFirebaseLinkRequest.newBuilder()
2691    *           .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
2692    *           .build();
2693    *   ApiFuture<Empty> future =
2694    *       analyticsAdminServiceClient.deleteFirebaseLinkCallable().futureCall(request);
2695    *   // Do something.
2696    *   future.get();
2697    * }
2698    * }</pre>
2699    */
deleteFirebaseLinkCallable()2700   public final UnaryCallable<DeleteFirebaseLinkRequest, Empty> deleteFirebaseLinkCallable() {
2701     return stub.deleteFirebaseLinkCallable();
2702   }
2703 
2704   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2705   /**
2706    * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
2707    *
2708    * <p>Sample code:
2709    *
2710    * <pre>{@code
2711    * // This snippet has been automatically generated and should be regarded as a code template only.
2712    * // It will require modifications to work:
2713    * // - It may require correct/in-range values for request initialization.
2714    * // - It may require specifying regional endpoints when creating the service client as shown in
2715    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2716    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2717    *     AnalyticsAdminServiceClient.create()) {
2718    *   PropertyName parent = PropertyName.of("[PROPERTY]");
2719    *   for (FirebaseLink element :
2720    *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
2721    *     // doThingsWith(element);
2722    *   }
2723    * }
2724    * }</pre>
2725    *
2726    * @param parent Required. Format: properties/{property_id} Example: properties/1234
2727    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2728    */
listFirebaseLinks(PropertyName parent)2729   public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName parent) {
2730     ListFirebaseLinksRequest request =
2731         ListFirebaseLinksRequest.newBuilder()
2732             .setParent(parent == null ? null : parent.toString())
2733             .build();
2734     return listFirebaseLinks(request);
2735   }
2736 
2737   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2738   /**
2739    * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
2740    *
2741    * <p>Sample code:
2742    *
2743    * <pre>{@code
2744    * // This snippet has been automatically generated and should be regarded as a code template only.
2745    * // It will require modifications to work:
2746    * // - It may require correct/in-range values for request initialization.
2747    * // - It may require specifying regional endpoints when creating the service client as shown in
2748    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2749    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2750    *     AnalyticsAdminServiceClient.create()) {
2751    *   String parent = PropertyName.of("[PROPERTY]").toString();
2752    *   for (FirebaseLink element :
2753    *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
2754    *     // doThingsWith(element);
2755    *   }
2756    * }
2757    * }</pre>
2758    *
2759    * @param parent Required. Format: properties/{property_id} Example: properties/1234
2760    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2761    */
listFirebaseLinks(String parent)2762   public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
2763     ListFirebaseLinksRequest request =
2764         ListFirebaseLinksRequest.newBuilder().setParent(parent).build();
2765     return listFirebaseLinks(request);
2766   }
2767 
2768   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2769   /**
2770    * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
2771    *
2772    * <p>Sample code:
2773    *
2774    * <pre>{@code
2775    * // This snippet has been automatically generated and should be regarded as a code template only.
2776    * // It will require modifications to work:
2777    * // - It may require correct/in-range values for request initialization.
2778    * // - It may require specifying regional endpoints when creating the service client as shown in
2779    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2780    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2781    *     AnalyticsAdminServiceClient.create()) {
2782    *   ListFirebaseLinksRequest request =
2783    *       ListFirebaseLinksRequest.newBuilder()
2784    *           .setParent(PropertyName.of("[PROPERTY]").toString())
2785    *           .setPageSize(883849137)
2786    *           .setPageToken("pageToken873572522")
2787    *           .build();
2788    *   for (FirebaseLink element :
2789    *       analyticsAdminServiceClient.listFirebaseLinks(request).iterateAll()) {
2790    *     // doThingsWith(element);
2791    *   }
2792    * }
2793    * }</pre>
2794    *
2795    * @param request The request object containing all of the parameters for the API call.
2796    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2797    */
listFirebaseLinks(ListFirebaseLinksRequest request)2798   public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksRequest request) {
2799     return listFirebaseLinksPagedCallable().call(request);
2800   }
2801 
2802   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2803   /**
2804    * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
2805    *
2806    * <p>Sample code:
2807    *
2808    * <pre>{@code
2809    * // This snippet has been automatically generated and should be regarded as a code template only.
2810    * // It will require modifications to work:
2811    * // - It may require correct/in-range values for request initialization.
2812    * // - It may require specifying regional endpoints when creating the service client as shown in
2813    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2814    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2815    *     AnalyticsAdminServiceClient.create()) {
2816    *   ListFirebaseLinksRequest request =
2817    *       ListFirebaseLinksRequest.newBuilder()
2818    *           .setParent(PropertyName.of("[PROPERTY]").toString())
2819    *           .setPageSize(883849137)
2820    *           .setPageToken("pageToken873572522")
2821    *           .build();
2822    *   ApiFuture<FirebaseLink> future =
2823    *       analyticsAdminServiceClient.listFirebaseLinksPagedCallable().futureCall(request);
2824    *   // Do something.
2825    *   for (FirebaseLink element : future.get().iterateAll()) {
2826    *     // doThingsWith(element);
2827    *   }
2828    * }
2829    * }</pre>
2830    */
2831   public final UnaryCallable<ListFirebaseLinksRequest, ListFirebaseLinksPagedResponse>
listFirebaseLinksPagedCallable()2832       listFirebaseLinksPagedCallable() {
2833     return stub.listFirebaseLinksPagedCallable();
2834   }
2835 
2836   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2837   /**
2838    * Lists FirebaseLinks on a property. Properties can have at most one FirebaseLink.
2839    *
2840    * <p>Sample code:
2841    *
2842    * <pre>{@code
2843    * // This snippet has been automatically generated and should be regarded as a code template only.
2844    * // It will require modifications to work:
2845    * // - It may require correct/in-range values for request initialization.
2846    * // - It may require specifying regional endpoints when creating the service client as shown in
2847    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2848    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2849    *     AnalyticsAdminServiceClient.create()) {
2850    *   ListFirebaseLinksRequest request =
2851    *       ListFirebaseLinksRequest.newBuilder()
2852    *           .setParent(PropertyName.of("[PROPERTY]").toString())
2853    *           .setPageSize(883849137)
2854    *           .setPageToken("pageToken873572522")
2855    *           .build();
2856    *   while (true) {
2857    *     ListFirebaseLinksResponse response =
2858    *         analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
2859    *     for (FirebaseLink element : response.getFirebaseLinksList()) {
2860    *       // doThingsWith(element);
2861    *     }
2862    *     String nextPageToken = response.getNextPageToken();
2863    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
2864    *       request = request.toBuilder().setPageToken(nextPageToken).build();
2865    *     } else {
2866    *       break;
2867    *     }
2868    *   }
2869    * }
2870    * }</pre>
2871    */
2872   public final UnaryCallable<ListFirebaseLinksRequest, ListFirebaseLinksResponse>
listFirebaseLinksCallable()2873       listFirebaseLinksCallable() {
2874     return stub.listFirebaseLinksCallable();
2875   }
2876 
2877   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2878   /**
2879    * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
2880    *
2881    * <p>Sample code:
2882    *
2883    * <pre>{@code
2884    * // This snippet has been automatically generated and should be regarded as a code template only.
2885    * // It will require modifications to work:
2886    * // - It may require correct/in-range values for request initialization.
2887    * // - It may require specifying regional endpoints when creating the service client as shown in
2888    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2889    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2890    *     AnalyticsAdminServiceClient.create()) {
2891    *   GlobalSiteTagName name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]");
2892    *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
2893    * }
2894    * }</pre>
2895    *
2896    * @param name Required. The name of the site tag to lookup. Note that site tags are singletons
2897    *     and do not have unique IDs. Format:
2898    *     properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example:
2899    *     "properties/123/dataStreams/456/globalSiteTag"
2900    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2901    */
getGlobalSiteTag(GlobalSiteTagName name)2902   public final GlobalSiteTag getGlobalSiteTag(GlobalSiteTagName name) {
2903     GetGlobalSiteTagRequest request =
2904         GetGlobalSiteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build();
2905     return getGlobalSiteTag(request);
2906   }
2907 
2908   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2909   /**
2910    * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
2911    *
2912    * <p>Sample code:
2913    *
2914    * <pre>{@code
2915    * // This snippet has been automatically generated and should be regarded as a code template only.
2916    * // It will require modifications to work:
2917    * // - It may require correct/in-range values for request initialization.
2918    * // - It may require specifying regional endpoints when creating the service client as shown in
2919    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2920    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2921    *     AnalyticsAdminServiceClient.create()) {
2922    *   String name = GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString();
2923    *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(name);
2924    * }
2925    * }</pre>
2926    *
2927    * @param name Required. The name of the site tag to lookup. Note that site tags are singletons
2928    *     and do not have unique IDs. Format:
2929    *     properties/{property_id}/dataStreams/{stream_id}/globalSiteTag Example:
2930    *     "properties/123/dataStreams/456/globalSiteTag"
2931    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2932    */
getGlobalSiteTag(String name)2933   public final GlobalSiteTag getGlobalSiteTag(String name) {
2934     GetGlobalSiteTagRequest request = GetGlobalSiteTagRequest.newBuilder().setName(name).build();
2935     return getGlobalSiteTag(request);
2936   }
2937 
2938   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2939   /**
2940    * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
2941    *
2942    * <p>Sample code:
2943    *
2944    * <pre>{@code
2945    * // This snippet has been automatically generated and should be regarded as a code template only.
2946    * // It will require modifications to work:
2947    * // - It may require correct/in-range values for request initialization.
2948    * // - It may require specifying regional endpoints when creating the service client as shown in
2949    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2950    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2951    *     AnalyticsAdminServiceClient.create()) {
2952    *   GetGlobalSiteTagRequest request =
2953    *       GetGlobalSiteTagRequest.newBuilder()
2954    *           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
2955    *           .build();
2956    *   GlobalSiteTag response = analyticsAdminServiceClient.getGlobalSiteTag(request);
2957    * }
2958    * }</pre>
2959    *
2960    * @param request The request object containing all of the parameters for the API call.
2961    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
2962    */
getGlobalSiteTag(GetGlobalSiteTagRequest request)2963   public final GlobalSiteTag getGlobalSiteTag(GetGlobalSiteTagRequest request) {
2964     return getGlobalSiteTagCallable().call(request);
2965   }
2966 
2967   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2968   /**
2969    * Returns the Site Tag for the specified web stream. Site Tags are immutable singletons.
2970    *
2971    * <p>Sample code:
2972    *
2973    * <pre>{@code
2974    * // This snippet has been automatically generated and should be regarded as a code template only.
2975    * // It will require modifications to work:
2976    * // - It may require correct/in-range values for request initialization.
2977    * // - It may require specifying regional endpoints when creating the service client as shown in
2978    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
2979    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
2980    *     AnalyticsAdminServiceClient.create()) {
2981    *   GetGlobalSiteTagRequest request =
2982    *       GetGlobalSiteTagRequest.newBuilder()
2983    *           .setName(GlobalSiteTagName.of("[PROPERTY]", "[DATA_STREAM]").toString())
2984    *           .build();
2985    *   ApiFuture<GlobalSiteTag> future =
2986    *       analyticsAdminServiceClient.getGlobalSiteTagCallable().futureCall(request);
2987    *   // Do something.
2988    *   GlobalSiteTag response = future.get();
2989    * }
2990    * }</pre>
2991    */
getGlobalSiteTagCallable()2992   public final UnaryCallable<GetGlobalSiteTagRequest, GlobalSiteTag> getGlobalSiteTagCallable() {
2993     return stub.getGlobalSiteTagCallable();
2994   }
2995 
2996   // AUTO-GENERATED DOCUMENTATION AND METHOD.
2997   /**
2998    * Creates a GoogleAdsLink.
2999    *
3000    * <p>Sample code:
3001    *
3002    * <pre>{@code
3003    * // This snippet has been automatically generated and should be regarded as a code template only.
3004    * // It will require modifications to work:
3005    * // - It may require correct/in-range values for request initialization.
3006    * // - It may require specifying regional endpoints when creating the service client as shown in
3007    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3008    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3009    *     AnalyticsAdminServiceClient.create()) {
3010    *   PropertyName parent = PropertyName.of("[PROPERTY]");
3011    *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
3012    *   GoogleAdsLink response =
3013    *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
3014    * }
3015    * }</pre>
3016    *
3017    * @param parent Required. Example format: properties/1234
3018    * @param googleAdsLink Required. The GoogleAdsLink to create.
3019    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3020    */
createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink)3021   public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLink googleAdsLink) {
3022     CreateGoogleAdsLinkRequest request =
3023         CreateGoogleAdsLinkRequest.newBuilder()
3024             .setParent(parent == null ? null : parent.toString())
3025             .setGoogleAdsLink(googleAdsLink)
3026             .build();
3027     return createGoogleAdsLink(request);
3028   }
3029 
3030   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3031   /**
3032    * Creates a GoogleAdsLink.
3033    *
3034    * <p>Sample code:
3035    *
3036    * <pre>{@code
3037    * // This snippet has been automatically generated and should be regarded as a code template only.
3038    * // It will require modifications to work:
3039    * // - It may require correct/in-range values for request initialization.
3040    * // - It may require specifying regional endpoints when creating the service client as shown in
3041    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3042    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3043    *     AnalyticsAdminServiceClient.create()) {
3044    *   String parent = PropertyName.of("[PROPERTY]").toString();
3045    *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
3046    *   GoogleAdsLink response =
3047    *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
3048    * }
3049    * }</pre>
3050    *
3051    * @param parent Required. Example format: properties/1234
3052    * @param googleAdsLink Required. The GoogleAdsLink to create.
3053    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3054    */
createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink)3055   public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink googleAdsLink) {
3056     CreateGoogleAdsLinkRequest request =
3057         CreateGoogleAdsLinkRequest.newBuilder()
3058             .setParent(parent)
3059             .setGoogleAdsLink(googleAdsLink)
3060             .build();
3061     return createGoogleAdsLink(request);
3062   }
3063 
3064   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3065   /**
3066    * Creates a GoogleAdsLink.
3067    *
3068    * <p>Sample code:
3069    *
3070    * <pre>{@code
3071    * // This snippet has been automatically generated and should be regarded as a code template only.
3072    * // It will require modifications to work:
3073    * // - It may require correct/in-range values for request initialization.
3074    * // - It may require specifying regional endpoints when creating the service client as shown in
3075    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3076    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3077    *     AnalyticsAdminServiceClient.create()) {
3078    *   CreateGoogleAdsLinkRequest request =
3079    *       CreateGoogleAdsLinkRequest.newBuilder()
3080    *           .setParent(PropertyName.of("[PROPERTY]").toString())
3081    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
3082    *           .build();
3083    *   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
3084    * }
3085    * }</pre>
3086    *
3087    * @param request The request object containing all of the parameters for the API call.
3088    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3089    */
createGoogleAdsLink(CreateGoogleAdsLinkRequest request)3090   public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest request) {
3091     return createGoogleAdsLinkCallable().call(request);
3092   }
3093 
3094   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3095   /**
3096    * Creates a GoogleAdsLink.
3097    *
3098    * <p>Sample code:
3099    *
3100    * <pre>{@code
3101    * // This snippet has been automatically generated and should be regarded as a code template only.
3102    * // It will require modifications to work:
3103    * // - It may require correct/in-range values for request initialization.
3104    * // - It may require specifying regional endpoints when creating the service client as shown in
3105    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3106    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3107    *     AnalyticsAdminServiceClient.create()) {
3108    *   CreateGoogleAdsLinkRequest request =
3109    *       CreateGoogleAdsLinkRequest.newBuilder()
3110    *           .setParent(PropertyName.of("[PROPERTY]").toString())
3111    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
3112    *           .build();
3113    *   ApiFuture<GoogleAdsLink> future =
3114    *       analyticsAdminServiceClient.createGoogleAdsLinkCallable().futureCall(request);
3115    *   // Do something.
3116    *   GoogleAdsLink response = future.get();
3117    * }
3118    * }</pre>
3119    */
3120   public final UnaryCallable<CreateGoogleAdsLinkRequest, GoogleAdsLink>
createGoogleAdsLinkCallable()3121       createGoogleAdsLinkCallable() {
3122     return stub.createGoogleAdsLinkCallable();
3123   }
3124 
3125   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3126   /**
3127    * Updates a GoogleAdsLink on a property
3128    *
3129    * <p>Sample code:
3130    *
3131    * <pre>{@code
3132    * // This snippet has been automatically generated and should be regarded as a code template only.
3133    * // It will require modifications to work:
3134    * // - It may require correct/in-range values for request initialization.
3135    * // - It may require specifying regional endpoints when creating the service client as shown in
3136    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3137    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3138    *     AnalyticsAdminServiceClient.create()) {
3139    *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
3140    *   FieldMask updateMask = FieldMask.newBuilder().build();
3141    *   GoogleAdsLink response =
3142    *       analyticsAdminServiceClient.updateGoogleAdsLink(googleAdsLink, updateMask);
3143    * }
3144    * }</pre>
3145    *
3146    * @param googleAdsLink The GoogleAdsLink to update
3147    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
3148    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
3149    *     entity, use one path with the string "&#42;" to match all fields.
3150    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3151    */
updateGoogleAdsLink( GoogleAdsLink googleAdsLink, FieldMask updateMask)3152   public final GoogleAdsLink updateGoogleAdsLink(
3153       GoogleAdsLink googleAdsLink, FieldMask updateMask) {
3154     UpdateGoogleAdsLinkRequest request =
3155         UpdateGoogleAdsLinkRequest.newBuilder()
3156             .setGoogleAdsLink(googleAdsLink)
3157             .setUpdateMask(updateMask)
3158             .build();
3159     return updateGoogleAdsLink(request);
3160   }
3161 
3162   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3163   /**
3164    * Updates a GoogleAdsLink on a property
3165    *
3166    * <p>Sample code:
3167    *
3168    * <pre>{@code
3169    * // This snippet has been automatically generated and should be regarded as a code template only.
3170    * // It will require modifications to work:
3171    * // - It may require correct/in-range values for request initialization.
3172    * // - It may require specifying regional endpoints when creating the service client as shown in
3173    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3174    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3175    *     AnalyticsAdminServiceClient.create()) {
3176    *   UpdateGoogleAdsLinkRequest request =
3177    *       UpdateGoogleAdsLinkRequest.newBuilder()
3178    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
3179    *           .setUpdateMask(FieldMask.newBuilder().build())
3180    *           .build();
3181    *   GoogleAdsLink response = analyticsAdminServiceClient.updateGoogleAdsLink(request);
3182    * }
3183    * }</pre>
3184    *
3185    * @param request The request object containing all of the parameters for the API call.
3186    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3187    */
updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request)3188   public final GoogleAdsLink updateGoogleAdsLink(UpdateGoogleAdsLinkRequest request) {
3189     return updateGoogleAdsLinkCallable().call(request);
3190   }
3191 
3192   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3193   /**
3194    * Updates a GoogleAdsLink on a property
3195    *
3196    * <p>Sample code:
3197    *
3198    * <pre>{@code
3199    * // This snippet has been automatically generated and should be regarded as a code template only.
3200    * // It will require modifications to work:
3201    * // - It may require correct/in-range values for request initialization.
3202    * // - It may require specifying regional endpoints when creating the service client as shown in
3203    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3204    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3205    *     AnalyticsAdminServiceClient.create()) {
3206    *   UpdateGoogleAdsLinkRequest request =
3207    *       UpdateGoogleAdsLinkRequest.newBuilder()
3208    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
3209    *           .setUpdateMask(FieldMask.newBuilder().build())
3210    *           .build();
3211    *   ApiFuture<GoogleAdsLink> future =
3212    *       analyticsAdminServiceClient.updateGoogleAdsLinkCallable().futureCall(request);
3213    *   // Do something.
3214    *   GoogleAdsLink response = future.get();
3215    * }
3216    * }</pre>
3217    */
3218   public final UnaryCallable<UpdateGoogleAdsLinkRequest, GoogleAdsLink>
updateGoogleAdsLinkCallable()3219       updateGoogleAdsLinkCallable() {
3220     return stub.updateGoogleAdsLinkCallable();
3221   }
3222 
3223   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3224   /**
3225    * Deletes a GoogleAdsLink on a property
3226    *
3227    * <p>Sample code:
3228    *
3229    * <pre>{@code
3230    * // This snippet has been automatically generated and should be regarded as a code template only.
3231    * // It will require modifications to work:
3232    * // - It may require correct/in-range values for request initialization.
3233    * // - It may require specifying regional endpoints when creating the service client as shown in
3234    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3235    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3236    *     AnalyticsAdminServiceClient.create()) {
3237    *   GoogleAdsLinkName name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]");
3238    *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
3239    * }
3240    * }</pre>
3241    *
3242    * @param name Required. Example format: properties/1234/googleAdsLinks/5678
3243    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3244    */
deleteGoogleAdsLink(GoogleAdsLinkName name)3245   public final void deleteGoogleAdsLink(GoogleAdsLinkName name) {
3246     DeleteGoogleAdsLinkRequest request =
3247         DeleteGoogleAdsLinkRequest.newBuilder()
3248             .setName(name == null ? null : name.toString())
3249             .build();
3250     deleteGoogleAdsLink(request);
3251   }
3252 
3253   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3254   /**
3255    * Deletes a GoogleAdsLink on a property
3256    *
3257    * <p>Sample code:
3258    *
3259    * <pre>{@code
3260    * // This snippet has been automatically generated and should be regarded as a code template only.
3261    * // It will require modifications to work:
3262    * // - It may require correct/in-range values for request initialization.
3263    * // - It may require specifying regional endpoints when creating the service client as shown in
3264    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3265    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3266    *     AnalyticsAdminServiceClient.create()) {
3267    *   String name = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
3268    *   analyticsAdminServiceClient.deleteGoogleAdsLink(name);
3269    * }
3270    * }</pre>
3271    *
3272    * @param name Required. Example format: properties/1234/googleAdsLinks/5678
3273    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3274    */
deleteGoogleAdsLink(String name)3275   public final void deleteGoogleAdsLink(String name) {
3276     DeleteGoogleAdsLinkRequest request =
3277         DeleteGoogleAdsLinkRequest.newBuilder().setName(name).build();
3278     deleteGoogleAdsLink(request);
3279   }
3280 
3281   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3282   /**
3283    * Deletes a GoogleAdsLink on a property
3284    *
3285    * <p>Sample code:
3286    *
3287    * <pre>{@code
3288    * // This snippet has been automatically generated and should be regarded as a code template only.
3289    * // It will require modifications to work:
3290    * // - It may require correct/in-range values for request initialization.
3291    * // - It may require specifying regional endpoints when creating the service client as shown in
3292    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3293    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3294    *     AnalyticsAdminServiceClient.create()) {
3295    *   DeleteGoogleAdsLinkRequest request =
3296    *       DeleteGoogleAdsLinkRequest.newBuilder()
3297    *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
3298    *           .build();
3299    *   analyticsAdminServiceClient.deleteGoogleAdsLink(request);
3300    * }
3301    * }</pre>
3302    *
3303    * @param request The request object containing all of the parameters for the API call.
3304    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3305    */
deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request)3306   public final void deleteGoogleAdsLink(DeleteGoogleAdsLinkRequest request) {
3307     deleteGoogleAdsLinkCallable().call(request);
3308   }
3309 
3310   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3311   /**
3312    * Deletes a GoogleAdsLink on a property
3313    *
3314    * <p>Sample code:
3315    *
3316    * <pre>{@code
3317    * // This snippet has been automatically generated and should be regarded as a code template only.
3318    * // It will require modifications to work:
3319    * // - It may require correct/in-range values for request initialization.
3320    * // - It may require specifying regional endpoints when creating the service client as shown in
3321    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3322    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3323    *     AnalyticsAdminServiceClient.create()) {
3324    *   DeleteGoogleAdsLinkRequest request =
3325    *       DeleteGoogleAdsLinkRequest.newBuilder()
3326    *           .setName(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
3327    *           .build();
3328    *   ApiFuture<Empty> future =
3329    *       analyticsAdminServiceClient.deleteGoogleAdsLinkCallable().futureCall(request);
3330    *   // Do something.
3331    *   future.get();
3332    * }
3333    * }</pre>
3334    */
deleteGoogleAdsLinkCallable()3335   public final UnaryCallable<DeleteGoogleAdsLinkRequest, Empty> deleteGoogleAdsLinkCallable() {
3336     return stub.deleteGoogleAdsLinkCallable();
3337   }
3338 
3339   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3340   /**
3341    * Lists GoogleAdsLinks on a property.
3342    *
3343    * <p>Sample code:
3344    *
3345    * <pre>{@code
3346    * // This snippet has been automatically generated and should be regarded as a code template only.
3347    * // It will require modifications to work:
3348    * // - It may require correct/in-range values for request initialization.
3349    * // - It may require specifying regional endpoints when creating the service client as shown in
3350    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3351    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3352    *     AnalyticsAdminServiceClient.create()) {
3353    *   PropertyName parent = PropertyName.of("[PROPERTY]");
3354    *   for (GoogleAdsLink element :
3355    *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
3356    *     // doThingsWith(element);
3357    *   }
3358    * }
3359    * }</pre>
3360    *
3361    * @param parent Required. Example format: properties/1234
3362    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3363    */
listGoogleAdsLinks(PropertyName parent)3364   public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName parent) {
3365     ListGoogleAdsLinksRequest request =
3366         ListGoogleAdsLinksRequest.newBuilder()
3367             .setParent(parent == null ? null : parent.toString())
3368             .build();
3369     return listGoogleAdsLinks(request);
3370   }
3371 
3372   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3373   /**
3374    * Lists GoogleAdsLinks on a property.
3375    *
3376    * <p>Sample code:
3377    *
3378    * <pre>{@code
3379    * // This snippet has been automatically generated and should be regarded as a code template only.
3380    * // It will require modifications to work:
3381    * // - It may require correct/in-range values for request initialization.
3382    * // - It may require specifying regional endpoints when creating the service client as shown in
3383    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3384    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3385    *     AnalyticsAdminServiceClient.create()) {
3386    *   String parent = PropertyName.of("[PROPERTY]").toString();
3387    *   for (GoogleAdsLink element :
3388    *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
3389    *     // doThingsWith(element);
3390    *   }
3391    * }
3392    * }</pre>
3393    *
3394    * @param parent Required. Example format: properties/1234
3395    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3396    */
listGoogleAdsLinks(String parent)3397   public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) {
3398     ListGoogleAdsLinksRequest request =
3399         ListGoogleAdsLinksRequest.newBuilder().setParent(parent).build();
3400     return listGoogleAdsLinks(request);
3401   }
3402 
3403   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3404   /**
3405    * Lists GoogleAdsLinks on a property.
3406    *
3407    * <p>Sample code:
3408    *
3409    * <pre>{@code
3410    * // This snippet has been automatically generated and should be regarded as a code template only.
3411    * // It will require modifications to work:
3412    * // - It may require correct/in-range values for request initialization.
3413    * // - It may require specifying regional endpoints when creating the service client as shown in
3414    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3415    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3416    *     AnalyticsAdminServiceClient.create()) {
3417    *   ListGoogleAdsLinksRequest request =
3418    *       ListGoogleAdsLinksRequest.newBuilder()
3419    *           .setParent(PropertyName.of("[PROPERTY]").toString())
3420    *           .setPageSize(883849137)
3421    *           .setPageToken("pageToken873572522")
3422    *           .build();
3423    *   for (GoogleAdsLink element :
3424    *       analyticsAdminServiceClient.listGoogleAdsLinks(request).iterateAll()) {
3425    *     // doThingsWith(element);
3426    *   }
3427    * }
3428    * }</pre>
3429    *
3430    * @param request The request object containing all of the parameters for the API call.
3431    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3432    */
listGoogleAdsLinks( ListGoogleAdsLinksRequest request)3433   public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
3434       ListGoogleAdsLinksRequest request) {
3435     return listGoogleAdsLinksPagedCallable().call(request);
3436   }
3437 
3438   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3439   /**
3440    * Lists GoogleAdsLinks on a property.
3441    *
3442    * <p>Sample code:
3443    *
3444    * <pre>{@code
3445    * // This snippet has been automatically generated and should be regarded as a code template only.
3446    * // It will require modifications to work:
3447    * // - It may require correct/in-range values for request initialization.
3448    * // - It may require specifying regional endpoints when creating the service client as shown in
3449    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3450    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3451    *     AnalyticsAdminServiceClient.create()) {
3452    *   ListGoogleAdsLinksRequest request =
3453    *       ListGoogleAdsLinksRequest.newBuilder()
3454    *           .setParent(PropertyName.of("[PROPERTY]").toString())
3455    *           .setPageSize(883849137)
3456    *           .setPageToken("pageToken873572522")
3457    *           .build();
3458    *   ApiFuture<GoogleAdsLink> future =
3459    *       analyticsAdminServiceClient.listGoogleAdsLinksPagedCallable().futureCall(request);
3460    *   // Do something.
3461    *   for (GoogleAdsLink element : future.get().iterateAll()) {
3462    *     // doThingsWith(element);
3463    *   }
3464    * }
3465    * }</pre>
3466    */
3467   public final UnaryCallable<ListGoogleAdsLinksRequest, ListGoogleAdsLinksPagedResponse>
listGoogleAdsLinksPagedCallable()3468       listGoogleAdsLinksPagedCallable() {
3469     return stub.listGoogleAdsLinksPagedCallable();
3470   }
3471 
3472   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3473   /**
3474    * Lists GoogleAdsLinks on a property.
3475    *
3476    * <p>Sample code:
3477    *
3478    * <pre>{@code
3479    * // This snippet has been automatically generated and should be regarded as a code template only.
3480    * // It will require modifications to work:
3481    * // - It may require correct/in-range values for request initialization.
3482    * // - It may require specifying regional endpoints when creating the service client as shown in
3483    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3484    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3485    *     AnalyticsAdminServiceClient.create()) {
3486    *   ListGoogleAdsLinksRequest request =
3487    *       ListGoogleAdsLinksRequest.newBuilder()
3488    *           .setParent(PropertyName.of("[PROPERTY]").toString())
3489    *           .setPageSize(883849137)
3490    *           .setPageToken("pageToken873572522")
3491    *           .build();
3492    *   while (true) {
3493    *     ListGoogleAdsLinksResponse response =
3494    *         analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request);
3495    *     for (GoogleAdsLink element : response.getGoogleAdsLinksList()) {
3496    *       // doThingsWith(element);
3497    *     }
3498    *     String nextPageToken = response.getNextPageToken();
3499    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
3500    *       request = request.toBuilder().setPageToken(nextPageToken).build();
3501    *     } else {
3502    *       break;
3503    *     }
3504    *   }
3505    * }
3506    * }</pre>
3507    */
3508   public final UnaryCallable<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse>
listGoogleAdsLinksCallable()3509       listGoogleAdsLinksCallable() {
3510     return stub.listGoogleAdsLinksCallable();
3511   }
3512 
3513   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3514   /**
3515    * Get data sharing settings on an account. Data sharing settings are singletons.
3516    *
3517    * <p>Sample code:
3518    *
3519    * <pre>{@code
3520    * // This snippet has been automatically generated and should be regarded as a code template only.
3521    * // It will require modifications to work:
3522    * // - It may require correct/in-range values for request initialization.
3523    * // - It may require specifying regional endpoints when creating the service client as shown in
3524    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3525    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3526    *     AnalyticsAdminServiceClient.create()) {
3527    *   DataSharingSettingsName name = DataSharingSettingsName.of("[ACCOUNT]");
3528    *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
3529    * }
3530    * }</pre>
3531    *
3532    * @param name Required. The name of the settings to lookup. Format:
3533    *     accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"
3534    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3535    */
getDataSharingSettings(DataSharingSettingsName name)3536   public final DataSharingSettings getDataSharingSettings(DataSharingSettingsName name) {
3537     GetDataSharingSettingsRequest request =
3538         GetDataSharingSettingsRequest.newBuilder()
3539             .setName(name == null ? null : name.toString())
3540             .build();
3541     return getDataSharingSettings(request);
3542   }
3543 
3544   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3545   /**
3546    * Get data sharing settings on an account. Data sharing settings are singletons.
3547    *
3548    * <p>Sample code:
3549    *
3550    * <pre>{@code
3551    * // This snippet has been automatically generated and should be regarded as a code template only.
3552    * // It will require modifications to work:
3553    * // - It may require correct/in-range values for request initialization.
3554    * // - It may require specifying regional endpoints when creating the service client as shown in
3555    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3556    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3557    *     AnalyticsAdminServiceClient.create()) {
3558    *   String name = DataSharingSettingsName.of("[ACCOUNT]").toString();
3559    *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(name);
3560    * }
3561    * }</pre>
3562    *
3563    * @param name Required. The name of the settings to lookup. Format:
3564    *     accounts/{account}/dataSharingSettings Example: "accounts/1000/dataSharingSettings"
3565    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3566    */
getDataSharingSettings(String name)3567   public final DataSharingSettings getDataSharingSettings(String name) {
3568     GetDataSharingSettingsRequest request =
3569         GetDataSharingSettingsRequest.newBuilder().setName(name).build();
3570     return getDataSharingSettings(request);
3571   }
3572 
3573   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3574   /**
3575    * Get data sharing settings on an account. Data sharing settings are singletons.
3576    *
3577    * <p>Sample code:
3578    *
3579    * <pre>{@code
3580    * // This snippet has been automatically generated and should be regarded as a code template only.
3581    * // It will require modifications to work:
3582    * // - It may require correct/in-range values for request initialization.
3583    * // - It may require specifying regional endpoints when creating the service client as shown in
3584    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3585    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3586    *     AnalyticsAdminServiceClient.create()) {
3587    *   GetDataSharingSettingsRequest request =
3588    *       GetDataSharingSettingsRequest.newBuilder()
3589    *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
3590    *           .build();
3591    *   DataSharingSettings response = analyticsAdminServiceClient.getDataSharingSettings(request);
3592    * }
3593    * }</pre>
3594    *
3595    * @param request The request object containing all of the parameters for the API call.
3596    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3597    */
getDataSharingSettings(GetDataSharingSettingsRequest request)3598   public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRequest request) {
3599     return getDataSharingSettingsCallable().call(request);
3600   }
3601 
3602   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3603   /**
3604    * Get data sharing settings on an account. Data sharing settings are singletons.
3605    *
3606    * <p>Sample code:
3607    *
3608    * <pre>{@code
3609    * // This snippet has been automatically generated and should be regarded as a code template only.
3610    * // It will require modifications to work:
3611    * // - It may require correct/in-range values for request initialization.
3612    * // - It may require specifying regional endpoints when creating the service client as shown in
3613    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3614    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3615    *     AnalyticsAdminServiceClient.create()) {
3616    *   GetDataSharingSettingsRequest request =
3617    *       GetDataSharingSettingsRequest.newBuilder()
3618    *           .setName(DataSharingSettingsName.of("[ACCOUNT]").toString())
3619    *           .build();
3620    *   ApiFuture<DataSharingSettings> future =
3621    *       analyticsAdminServiceClient.getDataSharingSettingsCallable().futureCall(request);
3622    *   // Do something.
3623    *   DataSharingSettings response = future.get();
3624    * }
3625    * }</pre>
3626    */
3627   public final UnaryCallable<GetDataSharingSettingsRequest, DataSharingSettings>
getDataSharingSettingsCallable()3628       getDataSharingSettingsCallable() {
3629     return stub.getDataSharingSettingsCallable();
3630   }
3631 
3632   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3633   /**
3634    * Lookup for a single "GA4" MeasurementProtocolSecret.
3635    *
3636    * <p>Sample code:
3637    *
3638    * <pre>{@code
3639    * // This snippet has been automatically generated and should be regarded as a code template only.
3640    * // It will require modifications to work:
3641    * // - It may require correct/in-range values for request initialization.
3642    * // - It may require specifying regional endpoints when creating the service client as shown in
3643    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3644    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3645    *     AnalyticsAdminServiceClient.create()) {
3646    *   MeasurementProtocolSecretName name =
3647    *       MeasurementProtocolSecretName.of(
3648    *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
3649    *   MeasurementProtocolSecret response =
3650    *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
3651    * }
3652    * }</pre>
3653    *
3654    * @param name Required. The name of the measurement protocol secret to lookup. Format:
3655    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
3656    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3657    */
getMeasurementProtocolSecret( MeasurementProtocolSecretName name)3658   public final MeasurementProtocolSecret getMeasurementProtocolSecret(
3659       MeasurementProtocolSecretName name) {
3660     GetMeasurementProtocolSecretRequest request =
3661         GetMeasurementProtocolSecretRequest.newBuilder()
3662             .setName(name == null ? null : name.toString())
3663             .build();
3664     return getMeasurementProtocolSecret(request);
3665   }
3666 
3667   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3668   /**
3669    * Lookup for a single "GA4" MeasurementProtocolSecret.
3670    *
3671    * <p>Sample code:
3672    *
3673    * <pre>{@code
3674    * // This snippet has been automatically generated and should be regarded as a code template only.
3675    * // It will require modifications to work:
3676    * // - It may require correct/in-range values for request initialization.
3677    * // - It may require specifying regional endpoints when creating the service client as shown in
3678    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3679    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3680    *     AnalyticsAdminServiceClient.create()) {
3681    *   String name =
3682    *       MeasurementProtocolSecretName.of(
3683    *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
3684    *           .toString();
3685    *   MeasurementProtocolSecret response =
3686    *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
3687    * }
3688    * }</pre>
3689    *
3690    * @param name Required. The name of the measurement protocol secret to lookup. Format:
3691    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
3692    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3693    */
getMeasurementProtocolSecret(String name)3694   public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) {
3695     GetMeasurementProtocolSecretRequest request =
3696         GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
3697     return getMeasurementProtocolSecret(request);
3698   }
3699 
3700   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3701   /**
3702    * Lookup for a single "GA4" MeasurementProtocolSecret.
3703    *
3704    * <p>Sample code:
3705    *
3706    * <pre>{@code
3707    * // This snippet has been automatically generated and should be regarded as a code template only.
3708    * // It will require modifications to work:
3709    * // - It may require correct/in-range values for request initialization.
3710    * // - It may require specifying regional endpoints when creating the service client as shown in
3711    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3712    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3713    *     AnalyticsAdminServiceClient.create()) {
3714    *   GetMeasurementProtocolSecretRequest request =
3715    *       GetMeasurementProtocolSecretRequest.newBuilder()
3716    *           .setName(
3717    *               MeasurementProtocolSecretName.of(
3718    *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
3719    *                   .toString())
3720    *           .build();
3721    *   MeasurementProtocolSecret response =
3722    *       analyticsAdminServiceClient.getMeasurementProtocolSecret(request);
3723    * }
3724    * }</pre>
3725    *
3726    * @param request The request object containing all of the parameters for the API call.
3727    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3728    */
getMeasurementProtocolSecret( GetMeasurementProtocolSecretRequest request)3729   public final MeasurementProtocolSecret getMeasurementProtocolSecret(
3730       GetMeasurementProtocolSecretRequest request) {
3731     return getMeasurementProtocolSecretCallable().call(request);
3732   }
3733 
3734   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3735   /**
3736    * Lookup for a single "GA4" MeasurementProtocolSecret.
3737    *
3738    * <p>Sample code:
3739    *
3740    * <pre>{@code
3741    * // This snippet has been automatically generated and should be regarded as a code template only.
3742    * // It will require modifications to work:
3743    * // - It may require correct/in-range values for request initialization.
3744    * // - It may require specifying regional endpoints when creating the service client as shown in
3745    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3746    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3747    *     AnalyticsAdminServiceClient.create()) {
3748    *   GetMeasurementProtocolSecretRequest request =
3749    *       GetMeasurementProtocolSecretRequest.newBuilder()
3750    *           .setName(
3751    *               MeasurementProtocolSecretName.of(
3752    *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
3753    *                   .toString())
3754    *           .build();
3755    *   ApiFuture<MeasurementProtocolSecret> future =
3756    *       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
3757    *   // Do something.
3758    *   MeasurementProtocolSecret response = future.get();
3759    * }
3760    * }</pre>
3761    */
3762   public final UnaryCallable<GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
getMeasurementProtocolSecretCallable()3763       getMeasurementProtocolSecretCallable() {
3764     return stub.getMeasurementProtocolSecretCallable();
3765   }
3766 
3767   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3768   /**
3769    * Returns child MeasurementProtocolSecrets under the specified parent Property.
3770    *
3771    * <p>Sample code:
3772    *
3773    * <pre>{@code
3774    * // This snippet has been automatically generated and should be regarded as a code template only.
3775    * // It will require modifications to work:
3776    * // - It may require correct/in-range values for request initialization.
3777    * // - It may require specifying regional endpoints when creating the service client as shown in
3778    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3779    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3780    *     AnalyticsAdminServiceClient.create()) {
3781    *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
3782    *   for (MeasurementProtocolSecret element :
3783    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
3784    *     // doThingsWith(element);
3785    *   }
3786    * }
3787    * }</pre>
3788    *
3789    * @param parent Required. The resource name of the parent stream. Format:
3790    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
3791    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3792    */
listMeasurementProtocolSecrets( DataStreamName parent)3793   public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
3794       DataStreamName parent) {
3795     ListMeasurementProtocolSecretsRequest request =
3796         ListMeasurementProtocolSecretsRequest.newBuilder()
3797             .setParent(parent == null ? null : parent.toString())
3798             .build();
3799     return listMeasurementProtocolSecrets(request);
3800   }
3801 
3802   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3803   /**
3804    * Returns child MeasurementProtocolSecrets under the specified parent Property.
3805    *
3806    * <p>Sample code:
3807    *
3808    * <pre>{@code
3809    * // This snippet has been automatically generated and should be regarded as a code template only.
3810    * // It will require modifications to work:
3811    * // - It may require correct/in-range values for request initialization.
3812    * // - It may require specifying regional endpoints when creating the service client as shown in
3813    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3814    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3815    *     AnalyticsAdminServiceClient.create()) {
3816    *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
3817    *   for (MeasurementProtocolSecret element :
3818    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
3819    *     // doThingsWith(element);
3820    *   }
3821    * }
3822    * }</pre>
3823    *
3824    * @param parent Required. The resource name of the parent stream. Format:
3825    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
3826    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3827    */
listMeasurementProtocolSecrets( String parent)3828   public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
3829       String parent) {
3830     ListMeasurementProtocolSecretsRequest request =
3831         ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build();
3832     return listMeasurementProtocolSecrets(request);
3833   }
3834 
3835   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3836   /**
3837    * Returns child MeasurementProtocolSecrets under the specified parent Property.
3838    *
3839    * <p>Sample code:
3840    *
3841    * <pre>{@code
3842    * // This snippet has been automatically generated and should be regarded as a code template only.
3843    * // It will require modifications to work:
3844    * // - It may require correct/in-range values for request initialization.
3845    * // - It may require specifying regional endpoints when creating the service client as shown in
3846    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3847    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3848    *     AnalyticsAdminServiceClient.create()) {
3849    *   ListMeasurementProtocolSecretsRequest request =
3850    *       ListMeasurementProtocolSecretsRequest.newBuilder()
3851    *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
3852    *           .setPageSize(883849137)
3853    *           .setPageToken("pageToken873572522")
3854    *           .build();
3855    *   for (MeasurementProtocolSecret element :
3856    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(request).iterateAll()) {
3857    *     // doThingsWith(element);
3858    *   }
3859    * }
3860    * }</pre>
3861    *
3862    * @param request The request object containing all of the parameters for the API call.
3863    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3864    */
listMeasurementProtocolSecrets( ListMeasurementProtocolSecretsRequest request)3865   public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets(
3866       ListMeasurementProtocolSecretsRequest request) {
3867     return listMeasurementProtocolSecretsPagedCallable().call(request);
3868   }
3869 
3870   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3871   /**
3872    * Returns child MeasurementProtocolSecrets under the specified parent Property.
3873    *
3874    * <p>Sample code:
3875    *
3876    * <pre>{@code
3877    * // This snippet has been automatically generated and should be regarded as a code template only.
3878    * // It will require modifications to work:
3879    * // - It may require correct/in-range values for request initialization.
3880    * // - It may require specifying regional endpoints when creating the service client as shown in
3881    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3882    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3883    *     AnalyticsAdminServiceClient.create()) {
3884    *   ListMeasurementProtocolSecretsRequest request =
3885    *       ListMeasurementProtocolSecretsRequest.newBuilder()
3886    *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
3887    *           .setPageSize(883849137)
3888    *           .setPageToken("pageToken873572522")
3889    *           .build();
3890    *   ApiFuture<MeasurementProtocolSecret> future =
3891    *       analyticsAdminServiceClient
3892    *           .listMeasurementProtocolSecretsPagedCallable()
3893    *           .futureCall(request);
3894    *   // Do something.
3895    *   for (MeasurementProtocolSecret element : future.get().iterateAll()) {
3896    *     // doThingsWith(element);
3897    *   }
3898    * }
3899    * }</pre>
3900    */
3901   public final UnaryCallable<
3902           ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse>
listMeasurementProtocolSecretsPagedCallable()3903       listMeasurementProtocolSecretsPagedCallable() {
3904     return stub.listMeasurementProtocolSecretsPagedCallable();
3905   }
3906 
3907   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3908   /**
3909    * Returns child MeasurementProtocolSecrets under the specified parent Property.
3910    *
3911    * <p>Sample code:
3912    *
3913    * <pre>{@code
3914    * // This snippet has been automatically generated and should be regarded as a code template only.
3915    * // It will require modifications to work:
3916    * // - It may require correct/in-range values for request initialization.
3917    * // - It may require specifying regional endpoints when creating the service client as shown in
3918    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3919    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3920    *     AnalyticsAdminServiceClient.create()) {
3921    *   ListMeasurementProtocolSecretsRequest request =
3922    *       ListMeasurementProtocolSecretsRequest.newBuilder()
3923    *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
3924    *           .setPageSize(883849137)
3925    *           .setPageToken("pageToken873572522")
3926    *           .build();
3927    *   while (true) {
3928    *     ListMeasurementProtocolSecretsResponse response =
3929    *         analyticsAdminServiceClient.listMeasurementProtocolSecretsCallable().call(request);
3930    *     for (MeasurementProtocolSecret element : response.getMeasurementProtocolSecretsList()) {
3931    *       // doThingsWith(element);
3932    *     }
3933    *     String nextPageToken = response.getNextPageToken();
3934    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
3935    *       request = request.toBuilder().setPageToken(nextPageToken).build();
3936    *     } else {
3937    *       break;
3938    *     }
3939    *   }
3940    * }
3941    * }</pre>
3942    */
3943   public final UnaryCallable<
3944           ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse>
listMeasurementProtocolSecretsCallable()3945       listMeasurementProtocolSecretsCallable() {
3946     return stub.listMeasurementProtocolSecretsCallable();
3947   }
3948 
3949   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3950   /**
3951    * Creates a measurement protocol secret.
3952    *
3953    * <p>Sample code:
3954    *
3955    * <pre>{@code
3956    * // This snippet has been automatically generated and should be regarded as a code template only.
3957    * // It will require modifications to work:
3958    * // - It may require correct/in-range values for request initialization.
3959    * // - It may require specifying regional endpoints when creating the service client as shown in
3960    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3961    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
3962    *     AnalyticsAdminServiceClient.create()) {
3963    *   DataStreamName parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
3964    *   MeasurementProtocolSecret measurementProtocolSecret =
3965    *       MeasurementProtocolSecret.newBuilder().build();
3966    *   MeasurementProtocolSecret response =
3967    *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
3968    *           parent, measurementProtocolSecret);
3969    * }
3970    * }</pre>
3971    *
3972    * @param parent Required. The parent resource where this secret will be created. Format:
3973    *     properties/{property}/dataStreams/{dataStream}
3974    * @param measurementProtocolSecret Required. The measurement protocol secret to create.
3975    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
3976    */
createMeasurementProtocolSecret( DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret)3977   public final MeasurementProtocolSecret createMeasurementProtocolSecret(
3978       DataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) {
3979     CreateMeasurementProtocolSecretRequest request =
3980         CreateMeasurementProtocolSecretRequest.newBuilder()
3981             .setParent(parent == null ? null : parent.toString())
3982             .setMeasurementProtocolSecret(measurementProtocolSecret)
3983             .build();
3984     return createMeasurementProtocolSecret(request);
3985   }
3986 
3987   // AUTO-GENERATED DOCUMENTATION AND METHOD.
3988   /**
3989    * Creates a measurement protocol secret.
3990    *
3991    * <p>Sample code:
3992    *
3993    * <pre>{@code
3994    * // This snippet has been automatically generated and should be regarded as a code template only.
3995    * // It will require modifications to work:
3996    * // - It may require correct/in-range values for request initialization.
3997    * // - It may require specifying regional endpoints when creating the service client as shown in
3998    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
3999    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4000    *     AnalyticsAdminServiceClient.create()) {
4001    *   String parent = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
4002    *   MeasurementProtocolSecret measurementProtocolSecret =
4003    *       MeasurementProtocolSecret.newBuilder().build();
4004    *   MeasurementProtocolSecret response =
4005    *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
4006    *           parent, measurementProtocolSecret);
4007    * }
4008    * }</pre>
4009    *
4010    * @param parent Required. The parent resource where this secret will be created. Format:
4011    *     properties/{property}/dataStreams/{dataStream}
4012    * @param measurementProtocolSecret Required. The measurement protocol secret to create.
4013    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4014    */
createMeasurementProtocolSecret( String parent, MeasurementProtocolSecret measurementProtocolSecret)4015   public final MeasurementProtocolSecret createMeasurementProtocolSecret(
4016       String parent, MeasurementProtocolSecret measurementProtocolSecret) {
4017     CreateMeasurementProtocolSecretRequest request =
4018         CreateMeasurementProtocolSecretRequest.newBuilder()
4019             .setParent(parent)
4020             .setMeasurementProtocolSecret(measurementProtocolSecret)
4021             .build();
4022     return createMeasurementProtocolSecret(request);
4023   }
4024 
4025   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4026   /**
4027    * Creates a measurement protocol secret.
4028    *
4029    * <p>Sample code:
4030    *
4031    * <pre>{@code
4032    * // This snippet has been automatically generated and should be regarded as a code template only.
4033    * // It will require modifications to work:
4034    * // - It may require correct/in-range values for request initialization.
4035    * // - It may require specifying regional endpoints when creating the service client as shown in
4036    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4037    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4038    *     AnalyticsAdminServiceClient.create()) {
4039    *   CreateMeasurementProtocolSecretRequest request =
4040    *       CreateMeasurementProtocolSecretRequest.newBuilder()
4041    *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
4042    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
4043    *           .build();
4044    *   MeasurementProtocolSecret response =
4045    *       analyticsAdminServiceClient.createMeasurementProtocolSecret(request);
4046    * }
4047    * }</pre>
4048    *
4049    * @param request The request object containing all of the parameters for the API call.
4050    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4051    */
createMeasurementProtocolSecret( CreateMeasurementProtocolSecretRequest request)4052   public final MeasurementProtocolSecret createMeasurementProtocolSecret(
4053       CreateMeasurementProtocolSecretRequest request) {
4054     return createMeasurementProtocolSecretCallable().call(request);
4055   }
4056 
4057   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4058   /**
4059    * Creates a measurement protocol secret.
4060    *
4061    * <p>Sample code:
4062    *
4063    * <pre>{@code
4064    * // This snippet has been automatically generated and should be regarded as a code template only.
4065    * // It will require modifications to work:
4066    * // - It may require correct/in-range values for request initialization.
4067    * // - It may require specifying regional endpoints when creating the service client as shown in
4068    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4069    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4070    *     AnalyticsAdminServiceClient.create()) {
4071    *   CreateMeasurementProtocolSecretRequest request =
4072    *       CreateMeasurementProtocolSecretRequest.newBuilder()
4073    *           .setParent(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
4074    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
4075    *           .build();
4076    *   ApiFuture<MeasurementProtocolSecret> future =
4077    *       analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
4078    *   // Do something.
4079    *   MeasurementProtocolSecret response = future.get();
4080    * }
4081    * }</pre>
4082    */
4083   public final UnaryCallable<CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
createMeasurementProtocolSecretCallable()4084       createMeasurementProtocolSecretCallable() {
4085     return stub.createMeasurementProtocolSecretCallable();
4086   }
4087 
4088   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4089   /**
4090    * Deletes target MeasurementProtocolSecret.
4091    *
4092    * <p>Sample code:
4093    *
4094    * <pre>{@code
4095    * // This snippet has been automatically generated and should be regarded as a code template only.
4096    * // It will require modifications to work:
4097    * // - It may require correct/in-range values for request initialization.
4098    * // - It may require specifying regional endpoints when creating the service client as shown in
4099    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4100    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4101    *     AnalyticsAdminServiceClient.create()) {
4102    *   MeasurementProtocolSecretName name =
4103    *       MeasurementProtocolSecretName.of(
4104    *           "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
4105    *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
4106    * }
4107    * }</pre>
4108    *
4109    * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
4110    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
4111    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4112    */
deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name)4113   public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) {
4114     DeleteMeasurementProtocolSecretRequest request =
4115         DeleteMeasurementProtocolSecretRequest.newBuilder()
4116             .setName(name == null ? null : name.toString())
4117             .build();
4118     deleteMeasurementProtocolSecret(request);
4119   }
4120 
4121   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4122   /**
4123    * Deletes target MeasurementProtocolSecret.
4124    *
4125    * <p>Sample code:
4126    *
4127    * <pre>{@code
4128    * // This snippet has been automatically generated and should be regarded as a code template only.
4129    * // It will require modifications to work:
4130    * // - It may require correct/in-range values for request initialization.
4131    * // - It may require specifying regional endpoints when creating the service client as shown in
4132    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4133    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4134    *     AnalyticsAdminServiceClient.create()) {
4135    *   String name =
4136    *       MeasurementProtocolSecretName.of(
4137    *               "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
4138    *           .toString();
4139    *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
4140    * }
4141    * }</pre>
4142    *
4143    * @param name Required. The name of the MeasurementProtocolSecret to delete. Format:
4144    *     properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
4145    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4146    */
deleteMeasurementProtocolSecret(String name)4147   public final void deleteMeasurementProtocolSecret(String name) {
4148     DeleteMeasurementProtocolSecretRequest request =
4149         DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build();
4150     deleteMeasurementProtocolSecret(request);
4151   }
4152 
4153   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4154   /**
4155    * Deletes target MeasurementProtocolSecret.
4156    *
4157    * <p>Sample code:
4158    *
4159    * <pre>{@code
4160    * // This snippet has been automatically generated and should be regarded as a code template only.
4161    * // It will require modifications to work:
4162    * // - It may require correct/in-range values for request initialization.
4163    * // - It may require specifying regional endpoints when creating the service client as shown in
4164    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4165    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4166    *     AnalyticsAdminServiceClient.create()) {
4167    *   DeleteMeasurementProtocolSecretRequest request =
4168    *       DeleteMeasurementProtocolSecretRequest.newBuilder()
4169    *           .setName(
4170    *               MeasurementProtocolSecretName.of(
4171    *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
4172    *                   .toString())
4173    *           .build();
4174    *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(request);
4175    * }
4176    * }</pre>
4177    *
4178    * @param request The request object containing all of the parameters for the API call.
4179    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4180    */
deleteMeasurementProtocolSecret( DeleteMeasurementProtocolSecretRequest request)4181   public final void deleteMeasurementProtocolSecret(
4182       DeleteMeasurementProtocolSecretRequest request) {
4183     deleteMeasurementProtocolSecretCallable().call(request);
4184   }
4185 
4186   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4187   /**
4188    * Deletes target MeasurementProtocolSecret.
4189    *
4190    * <p>Sample code:
4191    *
4192    * <pre>{@code
4193    * // This snippet has been automatically generated and should be regarded as a code template only.
4194    * // It will require modifications to work:
4195    * // - It may require correct/in-range values for request initialization.
4196    * // - It may require specifying regional endpoints when creating the service client as shown in
4197    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4198    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4199    *     AnalyticsAdminServiceClient.create()) {
4200    *   DeleteMeasurementProtocolSecretRequest request =
4201    *       DeleteMeasurementProtocolSecretRequest.newBuilder()
4202    *           .setName(
4203    *               MeasurementProtocolSecretName.of(
4204    *                       "[PROPERTY]", "[DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
4205    *                   .toString())
4206    *           .build();
4207    *   ApiFuture<Empty> future =
4208    *       analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
4209    *   // Do something.
4210    *   future.get();
4211    * }
4212    * }</pre>
4213    */
4214   public final UnaryCallable<DeleteMeasurementProtocolSecretRequest, Empty>
deleteMeasurementProtocolSecretCallable()4215       deleteMeasurementProtocolSecretCallable() {
4216     return stub.deleteMeasurementProtocolSecretCallable();
4217   }
4218 
4219   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4220   /**
4221    * Updates a measurement protocol secret.
4222    *
4223    * <p>Sample code:
4224    *
4225    * <pre>{@code
4226    * // This snippet has been automatically generated and should be regarded as a code template only.
4227    * // It will require modifications to work:
4228    * // - It may require correct/in-range values for request initialization.
4229    * // - It may require specifying regional endpoints when creating the service client as shown in
4230    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4231    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4232    *     AnalyticsAdminServiceClient.create()) {
4233    *   MeasurementProtocolSecret measurementProtocolSecret =
4234    *       MeasurementProtocolSecret.newBuilder().build();
4235    *   FieldMask updateMask = FieldMask.newBuilder().build();
4236    *   MeasurementProtocolSecret response =
4237    *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(
4238    *           measurementProtocolSecret, updateMask);
4239    * }
4240    * }</pre>
4241    *
4242    * @param measurementProtocolSecret Required. The measurement protocol secret to update.
4243    * @param updateMask The list of fields to be updated. Omitted fields will not be updated.
4244    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4245    */
updateMeasurementProtocolSecret( MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask)4246   public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
4247       MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) {
4248     UpdateMeasurementProtocolSecretRequest request =
4249         UpdateMeasurementProtocolSecretRequest.newBuilder()
4250             .setMeasurementProtocolSecret(measurementProtocolSecret)
4251             .setUpdateMask(updateMask)
4252             .build();
4253     return updateMeasurementProtocolSecret(request);
4254   }
4255 
4256   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4257   /**
4258    * Updates a measurement protocol secret.
4259    *
4260    * <p>Sample code:
4261    *
4262    * <pre>{@code
4263    * // This snippet has been automatically generated and should be regarded as a code template only.
4264    * // It will require modifications to work:
4265    * // - It may require correct/in-range values for request initialization.
4266    * // - It may require specifying regional endpoints when creating the service client as shown in
4267    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4268    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4269    *     AnalyticsAdminServiceClient.create()) {
4270    *   UpdateMeasurementProtocolSecretRequest request =
4271    *       UpdateMeasurementProtocolSecretRequest.newBuilder()
4272    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
4273    *           .setUpdateMask(FieldMask.newBuilder().build())
4274    *           .build();
4275    *   MeasurementProtocolSecret response =
4276    *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(request);
4277    * }
4278    * }</pre>
4279    *
4280    * @param request The request object containing all of the parameters for the API call.
4281    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4282    */
updateMeasurementProtocolSecret( UpdateMeasurementProtocolSecretRequest request)4283   public final MeasurementProtocolSecret updateMeasurementProtocolSecret(
4284       UpdateMeasurementProtocolSecretRequest request) {
4285     return updateMeasurementProtocolSecretCallable().call(request);
4286   }
4287 
4288   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4289   /**
4290    * Updates a measurement protocol secret.
4291    *
4292    * <p>Sample code:
4293    *
4294    * <pre>{@code
4295    * // This snippet has been automatically generated and should be regarded as a code template only.
4296    * // It will require modifications to work:
4297    * // - It may require correct/in-range values for request initialization.
4298    * // - It may require specifying regional endpoints when creating the service client as shown in
4299    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4300    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4301    *     AnalyticsAdminServiceClient.create()) {
4302    *   UpdateMeasurementProtocolSecretRequest request =
4303    *       UpdateMeasurementProtocolSecretRequest.newBuilder()
4304    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
4305    *           .setUpdateMask(FieldMask.newBuilder().build())
4306    *           .build();
4307    *   ApiFuture<MeasurementProtocolSecret> future =
4308    *       analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
4309    *   // Do something.
4310    *   MeasurementProtocolSecret response = future.get();
4311    * }
4312    * }</pre>
4313    */
4314   public final UnaryCallable<UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret>
updateMeasurementProtocolSecretCallable()4315       updateMeasurementProtocolSecretCallable() {
4316     return stub.updateMeasurementProtocolSecretCallable();
4317   }
4318 
4319   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4320   /**
4321    * Acknowledges the terms of user data collection for the specified property.
4322    *
4323    * <p>This acknowledgement must be completed (either in the Google Analytics UI or through this
4324    * API) before MeasurementProtocolSecret resources may be created.
4325    *
4326    * <p>Sample code:
4327    *
4328    * <pre>{@code
4329    * // This snippet has been automatically generated and should be regarded as a code template only.
4330    * // It will require modifications to work:
4331    * // - It may require correct/in-range values for request initialization.
4332    * // - It may require specifying regional endpoints when creating the service client as shown in
4333    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4334    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4335    *     AnalyticsAdminServiceClient.create()) {
4336    *   AcknowledgeUserDataCollectionRequest request =
4337    *       AcknowledgeUserDataCollectionRequest.newBuilder()
4338    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
4339    *           .setAcknowledgement("acknowledgement1769490938")
4340    *           .build();
4341    *   AcknowledgeUserDataCollectionResponse response =
4342    *       analyticsAdminServiceClient.acknowledgeUserDataCollection(request);
4343    * }
4344    * }</pre>
4345    *
4346    * @param request The request object containing all of the parameters for the API call.
4347    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4348    */
acknowledgeUserDataCollection( AcknowledgeUserDataCollectionRequest request)4349   public final AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(
4350       AcknowledgeUserDataCollectionRequest request) {
4351     return acknowledgeUserDataCollectionCallable().call(request);
4352   }
4353 
4354   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4355   /**
4356    * Acknowledges the terms of user data collection for the specified property.
4357    *
4358    * <p>This acknowledgement must be completed (either in the Google Analytics UI or through this
4359    * API) before MeasurementProtocolSecret resources may be created.
4360    *
4361    * <p>Sample code:
4362    *
4363    * <pre>{@code
4364    * // This snippet has been automatically generated and should be regarded as a code template only.
4365    * // It will require modifications to work:
4366    * // - It may require correct/in-range values for request initialization.
4367    * // - It may require specifying regional endpoints when creating the service client as shown in
4368    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4369    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4370    *     AnalyticsAdminServiceClient.create()) {
4371    *   AcknowledgeUserDataCollectionRequest request =
4372    *       AcknowledgeUserDataCollectionRequest.newBuilder()
4373    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
4374    *           .setAcknowledgement("acknowledgement1769490938")
4375    *           .build();
4376    *   ApiFuture<AcknowledgeUserDataCollectionResponse> future =
4377    *       analyticsAdminServiceClient.acknowledgeUserDataCollectionCallable().futureCall(request);
4378    *   // Do something.
4379    *   AcknowledgeUserDataCollectionResponse response = future.get();
4380    * }
4381    * }</pre>
4382    */
4383   public final UnaryCallable<
4384           AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse>
acknowledgeUserDataCollectionCallable()4385       acknowledgeUserDataCollectionCallable() {
4386     return stub.acknowledgeUserDataCollectionCallable();
4387   }
4388 
4389   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4390   /**
4391    * Searches through all changes to an account or its children given the specified set of filters.
4392    *
4393    * <p>Sample code:
4394    *
4395    * <pre>{@code
4396    * // This snippet has been automatically generated and should be regarded as a code template only.
4397    * // It will require modifications to work:
4398    * // - It may require correct/in-range values for request initialization.
4399    * // - It may require specifying regional endpoints when creating the service client as shown in
4400    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4401    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4402    *     AnalyticsAdminServiceClient.create()) {
4403    *   SearchChangeHistoryEventsRequest request =
4404    *       SearchChangeHistoryEventsRequest.newBuilder()
4405    *           .setAccount(AccountName.of("[ACCOUNT]").toString())
4406    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
4407    *           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
4408    *           .addAllAction(new ArrayList<ActionType>())
4409    *           .addAllActorEmail(new ArrayList<String>())
4410    *           .setEarliestChangeTime(Timestamp.newBuilder().build())
4411    *           .setLatestChangeTime(Timestamp.newBuilder().build())
4412    *           .setPageSize(883849137)
4413    *           .setPageToken("pageToken873572522")
4414    *           .build();
4415    *   for (ChangeHistoryEvent element :
4416    *       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
4417    *     // doThingsWith(element);
4418    *   }
4419    * }
4420    * }</pre>
4421    *
4422    * @param request The request object containing all of the parameters for the API call.
4423    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4424    */
searchChangeHistoryEvents( SearchChangeHistoryEventsRequest request)4425   public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents(
4426       SearchChangeHistoryEventsRequest request) {
4427     return searchChangeHistoryEventsPagedCallable().call(request);
4428   }
4429 
4430   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4431   /**
4432    * Searches through all changes to an account or its children given the specified set of filters.
4433    *
4434    * <p>Sample code:
4435    *
4436    * <pre>{@code
4437    * // This snippet has been automatically generated and should be regarded as a code template only.
4438    * // It will require modifications to work:
4439    * // - It may require correct/in-range values for request initialization.
4440    * // - It may require specifying regional endpoints when creating the service client as shown in
4441    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4442    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4443    *     AnalyticsAdminServiceClient.create()) {
4444    *   SearchChangeHistoryEventsRequest request =
4445    *       SearchChangeHistoryEventsRequest.newBuilder()
4446    *           .setAccount(AccountName.of("[ACCOUNT]").toString())
4447    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
4448    *           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
4449    *           .addAllAction(new ArrayList<ActionType>())
4450    *           .addAllActorEmail(new ArrayList<String>())
4451    *           .setEarliestChangeTime(Timestamp.newBuilder().build())
4452    *           .setLatestChangeTime(Timestamp.newBuilder().build())
4453    *           .setPageSize(883849137)
4454    *           .setPageToken("pageToken873572522")
4455    *           .build();
4456    *   ApiFuture<ChangeHistoryEvent> future =
4457    *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
4458    *   // Do something.
4459    *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
4460    *     // doThingsWith(element);
4461    *   }
4462    * }
4463    * }</pre>
4464    */
4465   public final UnaryCallable<
4466           SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse>
searchChangeHistoryEventsPagedCallable()4467       searchChangeHistoryEventsPagedCallable() {
4468     return stub.searchChangeHistoryEventsPagedCallable();
4469   }
4470 
4471   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4472   /**
4473    * Searches through all changes to an account or its children given the specified set of filters.
4474    *
4475    * <p>Sample code:
4476    *
4477    * <pre>{@code
4478    * // This snippet has been automatically generated and should be regarded as a code template only.
4479    * // It will require modifications to work:
4480    * // - It may require correct/in-range values for request initialization.
4481    * // - It may require specifying regional endpoints when creating the service client as shown in
4482    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4483    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4484    *     AnalyticsAdminServiceClient.create()) {
4485    *   SearchChangeHistoryEventsRequest request =
4486    *       SearchChangeHistoryEventsRequest.newBuilder()
4487    *           .setAccount(AccountName.of("[ACCOUNT]").toString())
4488    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
4489    *           .addAllResourceType(new ArrayList<ChangeHistoryResourceType>())
4490    *           .addAllAction(new ArrayList<ActionType>())
4491    *           .addAllActorEmail(new ArrayList<String>())
4492    *           .setEarliestChangeTime(Timestamp.newBuilder().build())
4493    *           .setLatestChangeTime(Timestamp.newBuilder().build())
4494    *           .setPageSize(883849137)
4495    *           .setPageToken("pageToken873572522")
4496    *           .build();
4497    *   while (true) {
4498    *     SearchChangeHistoryEventsResponse response =
4499    *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
4500    *     for (ChangeHistoryEvent element : response.getChangeHistoryEventsList()) {
4501    *       // doThingsWith(element);
4502    *     }
4503    *     String nextPageToken = response.getNextPageToken();
4504    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
4505    *       request = request.toBuilder().setPageToken(nextPageToken).build();
4506    *     } else {
4507    *       break;
4508    *     }
4509    *   }
4510    * }
4511    * }</pre>
4512    */
4513   public final UnaryCallable<SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse>
searchChangeHistoryEventsCallable()4514       searchChangeHistoryEventsCallable() {
4515     return stub.searchChangeHistoryEventsCallable();
4516   }
4517 
4518   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4519   /**
4520    * Lookup for Google Signals settings for a property.
4521    *
4522    * <p>Sample code:
4523    *
4524    * <pre>{@code
4525    * // This snippet has been automatically generated and should be regarded as a code template only.
4526    * // It will require modifications to work:
4527    * // - It may require correct/in-range values for request initialization.
4528    * // - It may require specifying regional endpoints when creating the service client as shown in
4529    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4530    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4531    *     AnalyticsAdminServiceClient.create()) {
4532    *   GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]");
4533    *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
4534    * }
4535    * }</pre>
4536    *
4537    * @param name Required. The name of the google signals settings to retrieve. Format:
4538    *     properties/{property}/googleSignalsSettings
4539    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4540    */
getGoogleSignalsSettings(GoogleSignalsSettingsName name)4541   public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) {
4542     GetGoogleSignalsSettingsRequest request =
4543         GetGoogleSignalsSettingsRequest.newBuilder()
4544             .setName(name == null ? null : name.toString())
4545             .build();
4546     return getGoogleSignalsSettings(request);
4547   }
4548 
4549   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4550   /**
4551    * Lookup for Google Signals settings for a property.
4552    *
4553    * <p>Sample code:
4554    *
4555    * <pre>{@code
4556    * // This snippet has been automatically generated and should be regarded as a code template only.
4557    * // It will require modifications to work:
4558    * // - It may require correct/in-range values for request initialization.
4559    * // - It may require specifying regional endpoints when creating the service client as shown in
4560    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4561    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4562    *     AnalyticsAdminServiceClient.create()) {
4563    *   String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
4564    *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
4565    * }
4566    * }</pre>
4567    *
4568    * @param name Required. The name of the google signals settings to retrieve. Format:
4569    *     properties/{property}/googleSignalsSettings
4570    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4571    */
getGoogleSignalsSettings(String name)4572   public final GoogleSignalsSettings getGoogleSignalsSettings(String name) {
4573     GetGoogleSignalsSettingsRequest request =
4574         GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build();
4575     return getGoogleSignalsSettings(request);
4576   }
4577 
4578   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4579   /**
4580    * Lookup for Google Signals settings for a property.
4581    *
4582    * <p>Sample code:
4583    *
4584    * <pre>{@code
4585    * // This snippet has been automatically generated and should be regarded as a code template only.
4586    * // It will require modifications to work:
4587    * // - It may require correct/in-range values for request initialization.
4588    * // - It may require specifying regional endpoints when creating the service client as shown in
4589    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4590    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4591    *     AnalyticsAdminServiceClient.create()) {
4592    *   GetGoogleSignalsSettingsRequest request =
4593    *       GetGoogleSignalsSettingsRequest.newBuilder()
4594    *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
4595    *           .build();
4596    *   GoogleSignalsSettings response =
4597    *       analyticsAdminServiceClient.getGoogleSignalsSettings(request);
4598    * }
4599    * }</pre>
4600    *
4601    * @param request The request object containing all of the parameters for the API call.
4602    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4603    */
getGoogleSignalsSettings( GetGoogleSignalsSettingsRequest request)4604   public final GoogleSignalsSettings getGoogleSignalsSettings(
4605       GetGoogleSignalsSettingsRequest request) {
4606     return getGoogleSignalsSettingsCallable().call(request);
4607   }
4608 
4609   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4610   /**
4611    * Lookup for Google Signals settings for a property.
4612    *
4613    * <p>Sample code:
4614    *
4615    * <pre>{@code
4616    * // This snippet has been automatically generated and should be regarded as a code template only.
4617    * // It will require modifications to work:
4618    * // - It may require correct/in-range values for request initialization.
4619    * // - It may require specifying regional endpoints when creating the service client as shown in
4620    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4621    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4622    *     AnalyticsAdminServiceClient.create()) {
4623    *   GetGoogleSignalsSettingsRequest request =
4624    *       GetGoogleSignalsSettingsRequest.newBuilder()
4625    *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
4626    *           .build();
4627    *   ApiFuture<GoogleSignalsSettings> future =
4628    *       analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request);
4629    *   // Do something.
4630    *   GoogleSignalsSettings response = future.get();
4631    * }
4632    * }</pre>
4633    */
4634   public final UnaryCallable<GetGoogleSignalsSettingsRequest, GoogleSignalsSettings>
getGoogleSignalsSettingsCallable()4635       getGoogleSignalsSettingsCallable() {
4636     return stub.getGoogleSignalsSettingsCallable();
4637   }
4638 
4639   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4640   /**
4641    * Updates Google Signals settings for a property.
4642    *
4643    * <p>Sample code:
4644    *
4645    * <pre>{@code
4646    * // This snippet has been automatically generated and should be regarded as a code template only.
4647    * // It will require modifications to work:
4648    * // - It may require correct/in-range values for request initialization.
4649    * // - It may require specifying regional endpoints when creating the service client as shown in
4650    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4651    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4652    *     AnalyticsAdminServiceClient.create()) {
4653    *   GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
4654    *   FieldMask updateMask = FieldMask.newBuilder().build();
4655    *   GoogleSignalsSettings response =
4656    *       analyticsAdminServiceClient.updateGoogleSignalsSettings(
4657    *           googleSignalsSettings, updateMask);
4658    * }
4659    * }</pre>
4660    *
4661    * @param googleSignalsSettings Required. The settings to update. The `name` field is used to
4662    *     identify the settings to be updated.
4663    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
4664    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
4665    *     entity, use one path with the string "&#42;" to match all fields.
4666    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4667    */
updateGoogleSignalsSettings( GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask)4668   public final GoogleSignalsSettings updateGoogleSignalsSettings(
4669       GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) {
4670     UpdateGoogleSignalsSettingsRequest request =
4671         UpdateGoogleSignalsSettingsRequest.newBuilder()
4672             .setGoogleSignalsSettings(googleSignalsSettings)
4673             .setUpdateMask(updateMask)
4674             .build();
4675     return updateGoogleSignalsSettings(request);
4676   }
4677 
4678   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4679   /**
4680    * Updates Google Signals settings for a property.
4681    *
4682    * <p>Sample code:
4683    *
4684    * <pre>{@code
4685    * // This snippet has been automatically generated and should be regarded as a code template only.
4686    * // It will require modifications to work:
4687    * // - It may require correct/in-range values for request initialization.
4688    * // - It may require specifying regional endpoints when creating the service client as shown in
4689    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4690    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4691    *     AnalyticsAdminServiceClient.create()) {
4692    *   UpdateGoogleSignalsSettingsRequest request =
4693    *       UpdateGoogleSignalsSettingsRequest.newBuilder()
4694    *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
4695    *           .setUpdateMask(FieldMask.newBuilder().build())
4696    *           .build();
4697    *   GoogleSignalsSettings response =
4698    *       analyticsAdminServiceClient.updateGoogleSignalsSettings(request);
4699    * }
4700    * }</pre>
4701    *
4702    * @param request The request object containing all of the parameters for the API call.
4703    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4704    */
updateGoogleSignalsSettings( UpdateGoogleSignalsSettingsRequest request)4705   public final GoogleSignalsSettings updateGoogleSignalsSettings(
4706       UpdateGoogleSignalsSettingsRequest request) {
4707     return updateGoogleSignalsSettingsCallable().call(request);
4708   }
4709 
4710   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4711   /**
4712    * Updates Google Signals settings for a property.
4713    *
4714    * <p>Sample code:
4715    *
4716    * <pre>{@code
4717    * // This snippet has been automatically generated and should be regarded as a code template only.
4718    * // It will require modifications to work:
4719    * // - It may require correct/in-range values for request initialization.
4720    * // - It may require specifying regional endpoints when creating the service client as shown in
4721    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4722    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4723    *     AnalyticsAdminServiceClient.create()) {
4724    *   UpdateGoogleSignalsSettingsRequest request =
4725    *       UpdateGoogleSignalsSettingsRequest.newBuilder()
4726    *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
4727    *           .setUpdateMask(FieldMask.newBuilder().build())
4728    *           .build();
4729    *   ApiFuture<GoogleSignalsSettings> future =
4730    *       analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request);
4731    *   // Do something.
4732    *   GoogleSignalsSettings response = future.get();
4733    * }
4734    * }</pre>
4735    */
4736   public final UnaryCallable<UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings>
updateGoogleSignalsSettingsCallable()4737       updateGoogleSignalsSettingsCallable() {
4738     return stub.updateGoogleSignalsSettingsCallable();
4739   }
4740 
4741   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4742   /**
4743    * Creates a conversion event with the specified attributes.
4744    *
4745    * <p>Sample code:
4746    *
4747    * <pre>{@code
4748    * // This snippet has been automatically generated and should be regarded as a code template only.
4749    * // It will require modifications to work:
4750    * // - It may require correct/in-range values for request initialization.
4751    * // - It may require specifying regional endpoints when creating the service client as shown in
4752    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4753    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4754    *     AnalyticsAdminServiceClient.create()) {
4755    *   PropertyName parent = PropertyName.of("[PROPERTY]");
4756    *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
4757    *   ConversionEvent response =
4758    *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
4759    * }
4760    * }</pre>
4761    *
4762    * @param parent Required. The resource name of the parent property where this conversion event
4763    *     will be created. Format: properties/123
4764    * @param conversionEvent Required. The conversion event to create.
4765    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4766    */
createConversionEvent( PropertyName parent, ConversionEvent conversionEvent)4767   public final ConversionEvent createConversionEvent(
4768       PropertyName parent, ConversionEvent conversionEvent) {
4769     CreateConversionEventRequest request =
4770         CreateConversionEventRequest.newBuilder()
4771             .setParent(parent == null ? null : parent.toString())
4772             .setConversionEvent(conversionEvent)
4773             .build();
4774     return createConversionEvent(request);
4775   }
4776 
4777   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4778   /**
4779    * Creates a conversion event with the specified attributes.
4780    *
4781    * <p>Sample code:
4782    *
4783    * <pre>{@code
4784    * // This snippet has been automatically generated and should be regarded as a code template only.
4785    * // It will require modifications to work:
4786    * // - It may require correct/in-range values for request initialization.
4787    * // - It may require specifying regional endpoints when creating the service client as shown in
4788    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4789    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4790    *     AnalyticsAdminServiceClient.create()) {
4791    *   String parent = PropertyName.of("[PROPERTY]").toString();
4792    *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
4793    *   ConversionEvent response =
4794    *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
4795    * }
4796    * }</pre>
4797    *
4798    * @param parent Required. The resource name of the parent property where this conversion event
4799    *     will be created. Format: properties/123
4800    * @param conversionEvent Required. The conversion event to create.
4801    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4802    */
createConversionEvent( String parent, ConversionEvent conversionEvent)4803   public final ConversionEvent createConversionEvent(
4804       String parent, ConversionEvent conversionEvent) {
4805     CreateConversionEventRequest request =
4806         CreateConversionEventRequest.newBuilder()
4807             .setParent(parent)
4808             .setConversionEvent(conversionEvent)
4809             .build();
4810     return createConversionEvent(request);
4811   }
4812 
4813   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4814   /**
4815    * Creates a conversion event with the specified attributes.
4816    *
4817    * <p>Sample code:
4818    *
4819    * <pre>{@code
4820    * // This snippet has been automatically generated and should be regarded as a code template only.
4821    * // It will require modifications to work:
4822    * // - It may require correct/in-range values for request initialization.
4823    * // - It may require specifying regional endpoints when creating the service client as shown in
4824    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4825    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4826    *     AnalyticsAdminServiceClient.create()) {
4827    *   CreateConversionEventRequest request =
4828    *       CreateConversionEventRequest.newBuilder()
4829    *           .setConversionEvent(ConversionEvent.newBuilder().build())
4830    *           .setParent(PropertyName.of("[PROPERTY]").toString())
4831    *           .build();
4832    *   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
4833    * }
4834    * }</pre>
4835    *
4836    * @param request The request object containing all of the parameters for the API call.
4837    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4838    */
createConversionEvent(CreateConversionEventRequest request)4839   public final ConversionEvent createConversionEvent(CreateConversionEventRequest request) {
4840     return createConversionEventCallable().call(request);
4841   }
4842 
4843   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4844   /**
4845    * Creates a conversion event with the specified attributes.
4846    *
4847    * <p>Sample code:
4848    *
4849    * <pre>{@code
4850    * // This snippet has been automatically generated and should be regarded as a code template only.
4851    * // It will require modifications to work:
4852    * // - It may require correct/in-range values for request initialization.
4853    * // - It may require specifying regional endpoints when creating the service client as shown in
4854    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4855    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4856    *     AnalyticsAdminServiceClient.create()) {
4857    *   CreateConversionEventRequest request =
4858    *       CreateConversionEventRequest.newBuilder()
4859    *           .setConversionEvent(ConversionEvent.newBuilder().build())
4860    *           .setParent(PropertyName.of("[PROPERTY]").toString())
4861    *           .build();
4862    *   ApiFuture<ConversionEvent> future =
4863    *       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
4864    *   // Do something.
4865    *   ConversionEvent response = future.get();
4866    * }
4867    * }</pre>
4868    */
4869   public final UnaryCallable<CreateConversionEventRequest, ConversionEvent>
createConversionEventCallable()4870       createConversionEventCallable() {
4871     return stub.createConversionEventCallable();
4872   }
4873 
4874   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4875   /**
4876    * Retrieve a single conversion event.
4877    *
4878    * <p>Sample code:
4879    *
4880    * <pre>{@code
4881    * // This snippet has been automatically generated and should be regarded as a code template only.
4882    * // It will require modifications to work:
4883    * // - It may require correct/in-range values for request initialization.
4884    * // - It may require specifying regional endpoints when creating the service client as shown in
4885    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4886    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4887    *     AnalyticsAdminServiceClient.create()) {
4888    *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
4889    *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
4890    * }
4891    * }</pre>
4892    *
4893    * @param name Required. The resource name of the conversion event to retrieve. Format:
4894    *     properties/{property}/conversionEvents/{conversion_event} Example:
4895    *     "properties/123/conversionEvents/456"
4896    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4897    */
getConversionEvent(ConversionEventName name)4898   public final ConversionEvent getConversionEvent(ConversionEventName name) {
4899     GetConversionEventRequest request =
4900         GetConversionEventRequest.newBuilder()
4901             .setName(name == null ? null : name.toString())
4902             .build();
4903     return getConversionEvent(request);
4904   }
4905 
4906   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4907   /**
4908    * Retrieve a single conversion event.
4909    *
4910    * <p>Sample code:
4911    *
4912    * <pre>{@code
4913    * // This snippet has been automatically generated and should be regarded as a code template only.
4914    * // It will require modifications to work:
4915    * // - It may require correct/in-range values for request initialization.
4916    * // - It may require specifying regional endpoints when creating the service client as shown in
4917    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4918    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4919    *     AnalyticsAdminServiceClient.create()) {
4920    *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
4921    *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
4922    * }
4923    * }</pre>
4924    *
4925    * @param name Required. The resource name of the conversion event to retrieve. Format:
4926    *     properties/{property}/conversionEvents/{conversion_event} Example:
4927    *     "properties/123/conversionEvents/456"
4928    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4929    */
getConversionEvent(String name)4930   public final ConversionEvent getConversionEvent(String name) {
4931     GetConversionEventRequest request =
4932         GetConversionEventRequest.newBuilder().setName(name).build();
4933     return getConversionEvent(request);
4934   }
4935 
4936   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4937   /**
4938    * Retrieve a single conversion event.
4939    *
4940    * <p>Sample code:
4941    *
4942    * <pre>{@code
4943    * // This snippet has been automatically generated and should be regarded as a code template only.
4944    * // It will require modifications to work:
4945    * // - It may require correct/in-range values for request initialization.
4946    * // - It may require specifying regional endpoints when creating the service client as shown in
4947    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4948    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4949    *     AnalyticsAdminServiceClient.create()) {
4950    *   GetConversionEventRequest request =
4951    *       GetConversionEventRequest.newBuilder()
4952    *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
4953    *           .build();
4954    *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(request);
4955    * }
4956    * }</pre>
4957    *
4958    * @param request The request object containing all of the parameters for the API call.
4959    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
4960    */
getConversionEvent(GetConversionEventRequest request)4961   public final ConversionEvent getConversionEvent(GetConversionEventRequest request) {
4962     return getConversionEventCallable().call(request);
4963   }
4964 
4965   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4966   /**
4967    * Retrieve a single conversion event.
4968    *
4969    * <p>Sample code:
4970    *
4971    * <pre>{@code
4972    * // This snippet has been automatically generated and should be regarded as a code template only.
4973    * // It will require modifications to work:
4974    * // - It may require correct/in-range values for request initialization.
4975    * // - It may require specifying regional endpoints when creating the service client as shown in
4976    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
4977    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
4978    *     AnalyticsAdminServiceClient.create()) {
4979    *   GetConversionEventRequest request =
4980    *       GetConversionEventRequest.newBuilder()
4981    *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
4982    *           .build();
4983    *   ApiFuture<ConversionEvent> future =
4984    *       analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
4985    *   // Do something.
4986    *   ConversionEvent response = future.get();
4987    * }
4988    * }</pre>
4989    */
4990   public final UnaryCallable<GetConversionEventRequest, ConversionEvent>
getConversionEventCallable()4991       getConversionEventCallable() {
4992     return stub.getConversionEventCallable();
4993   }
4994 
4995   // AUTO-GENERATED DOCUMENTATION AND METHOD.
4996   /**
4997    * Deletes a conversion event in a property.
4998    *
4999    * <p>Sample code:
5000    *
5001    * <pre>{@code
5002    * // This snippet has been automatically generated and should be regarded as a code template only.
5003    * // It will require modifications to work:
5004    * // - It may require correct/in-range values for request initialization.
5005    * // - It may require specifying regional endpoints when creating the service client as shown in
5006    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5007    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5008    *     AnalyticsAdminServiceClient.create()) {
5009    *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
5010    *   analyticsAdminServiceClient.deleteConversionEvent(name);
5011    * }
5012    * }</pre>
5013    *
5014    * @param name Required. The resource name of the conversion event to delete. Format:
5015    *     properties/{property}/conversionEvents/{conversion_event} Example:
5016    *     "properties/123/conversionEvents/456"
5017    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5018    */
deleteConversionEvent(ConversionEventName name)5019   public final void deleteConversionEvent(ConversionEventName name) {
5020     DeleteConversionEventRequest request =
5021         DeleteConversionEventRequest.newBuilder()
5022             .setName(name == null ? null : name.toString())
5023             .build();
5024     deleteConversionEvent(request);
5025   }
5026 
5027   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5028   /**
5029    * Deletes a conversion event in a property.
5030    *
5031    * <p>Sample code:
5032    *
5033    * <pre>{@code
5034    * // This snippet has been automatically generated and should be regarded as a code template only.
5035    * // It will require modifications to work:
5036    * // - It may require correct/in-range values for request initialization.
5037    * // - It may require specifying regional endpoints when creating the service client as shown in
5038    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5039    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5040    *     AnalyticsAdminServiceClient.create()) {
5041    *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
5042    *   analyticsAdminServiceClient.deleteConversionEvent(name);
5043    * }
5044    * }</pre>
5045    *
5046    * @param name Required. The resource name of the conversion event to delete. Format:
5047    *     properties/{property}/conversionEvents/{conversion_event} Example:
5048    *     "properties/123/conversionEvents/456"
5049    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5050    */
deleteConversionEvent(String name)5051   public final void deleteConversionEvent(String name) {
5052     DeleteConversionEventRequest request =
5053         DeleteConversionEventRequest.newBuilder().setName(name).build();
5054     deleteConversionEvent(request);
5055   }
5056 
5057   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5058   /**
5059    * Deletes a conversion event in a property.
5060    *
5061    * <p>Sample code:
5062    *
5063    * <pre>{@code
5064    * // This snippet has been automatically generated and should be regarded as a code template only.
5065    * // It will require modifications to work:
5066    * // - It may require correct/in-range values for request initialization.
5067    * // - It may require specifying regional endpoints when creating the service client as shown in
5068    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5069    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5070    *     AnalyticsAdminServiceClient.create()) {
5071    *   DeleteConversionEventRequest request =
5072    *       DeleteConversionEventRequest.newBuilder()
5073    *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
5074    *           .build();
5075    *   analyticsAdminServiceClient.deleteConversionEvent(request);
5076    * }
5077    * }</pre>
5078    *
5079    * @param request The request object containing all of the parameters for the API call.
5080    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5081    */
deleteConversionEvent(DeleteConversionEventRequest request)5082   public final void deleteConversionEvent(DeleteConversionEventRequest request) {
5083     deleteConversionEventCallable().call(request);
5084   }
5085 
5086   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5087   /**
5088    * Deletes a conversion event in a property.
5089    *
5090    * <p>Sample code:
5091    *
5092    * <pre>{@code
5093    * // This snippet has been automatically generated and should be regarded as a code template only.
5094    * // It will require modifications to work:
5095    * // - It may require correct/in-range values for request initialization.
5096    * // - It may require specifying regional endpoints when creating the service client as shown in
5097    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5098    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5099    *     AnalyticsAdminServiceClient.create()) {
5100    *   DeleteConversionEventRequest request =
5101    *       DeleteConversionEventRequest.newBuilder()
5102    *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
5103    *           .build();
5104    *   ApiFuture<Empty> future =
5105    *       analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
5106    *   // Do something.
5107    *   future.get();
5108    * }
5109    * }</pre>
5110    */
deleteConversionEventCallable()5111   public final UnaryCallable<DeleteConversionEventRequest, Empty> deleteConversionEventCallable() {
5112     return stub.deleteConversionEventCallable();
5113   }
5114 
5115   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5116   /**
5117    * Returns a list of conversion events in the specified parent property.
5118    *
5119    * <p>Returns an empty list if no conversion events are found.
5120    *
5121    * <p>Sample code:
5122    *
5123    * <pre>{@code
5124    * // This snippet has been automatically generated and should be regarded as a code template only.
5125    * // It will require modifications to work:
5126    * // - It may require correct/in-range values for request initialization.
5127    * // - It may require specifying regional endpoints when creating the service client as shown in
5128    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5129    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5130    *     AnalyticsAdminServiceClient.create()) {
5131    *   PropertyName parent = PropertyName.of("[PROPERTY]");
5132    *   for (ConversionEvent element :
5133    *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
5134    *     // doThingsWith(element);
5135    *   }
5136    * }
5137    * }</pre>
5138    *
5139    * @param parent Required. The resource name of the parent property. Example: 'properties/123'
5140    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5141    */
listConversionEvents(PropertyName parent)5142   public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) {
5143     ListConversionEventsRequest request =
5144         ListConversionEventsRequest.newBuilder()
5145             .setParent(parent == null ? null : parent.toString())
5146             .build();
5147     return listConversionEvents(request);
5148   }
5149 
5150   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5151   /**
5152    * Returns a list of conversion events in the specified parent property.
5153    *
5154    * <p>Returns an empty list if no conversion events are found.
5155    *
5156    * <p>Sample code:
5157    *
5158    * <pre>{@code
5159    * // This snippet has been automatically generated and should be regarded as a code template only.
5160    * // It will require modifications to work:
5161    * // - It may require correct/in-range values for request initialization.
5162    * // - It may require specifying regional endpoints when creating the service client as shown in
5163    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5164    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5165    *     AnalyticsAdminServiceClient.create()) {
5166    *   String parent = PropertyName.of("[PROPERTY]").toString();
5167    *   for (ConversionEvent element :
5168    *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
5169    *     // doThingsWith(element);
5170    *   }
5171    * }
5172    * }</pre>
5173    *
5174    * @param parent Required. The resource name of the parent property. Example: 'properties/123'
5175    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5176    */
listConversionEvents(String parent)5177   public final ListConversionEventsPagedResponse listConversionEvents(String parent) {
5178     ListConversionEventsRequest request =
5179         ListConversionEventsRequest.newBuilder().setParent(parent).build();
5180     return listConversionEvents(request);
5181   }
5182 
5183   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5184   /**
5185    * Returns a list of conversion events in the specified parent property.
5186    *
5187    * <p>Returns an empty list if no conversion events are found.
5188    *
5189    * <p>Sample code:
5190    *
5191    * <pre>{@code
5192    * // This snippet has been automatically generated and should be regarded as a code template only.
5193    * // It will require modifications to work:
5194    * // - It may require correct/in-range values for request initialization.
5195    * // - It may require specifying regional endpoints when creating the service client as shown in
5196    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5197    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5198    *     AnalyticsAdminServiceClient.create()) {
5199    *   ListConversionEventsRequest request =
5200    *       ListConversionEventsRequest.newBuilder()
5201    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5202    *           .setPageSize(883849137)
5203    *           .setPageToken("pageToken873572522")
5204    *           .build();
5205    *   for (ConversionEvent element :
5206    *       analyticsAdminServiceClient.listConversionEvents(request).iterateAll()) {
5207    *     // doThingsWith(element);
5208    *   }
5209    * }
5210    * }</pre>
5211    *
5212    * @param request The request object containing all of the parameters for the API call.
5213    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5214    */
listConversionEvents( ListConversionEventsRequest request)5215   public final ListConversionEventsPagedResponse listConversionEvents(
5216       ListConversionEventsRequest request) {
5217     return listConversionEventsPagedCallable().call(request);
5218   }
5219 
5220   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5221   /**
5222    * Returns a list of conversion events in the specified parent property.
5223    *
5224    * <p>Returns an empty list if no conversion events are found.
5225    *
5226    * <p>Sample code:
5227    *
5228    * <pre>{@code
5229    * // This snippet has been automatically generated and should be regarded as a code template only.
5230    * // It will require modifications to work:
5231    * // - It may require correct/in-range values for request initialization.
5232    * // - It may require specifying regional endpoints when creating the service client as shown in
5233    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5234    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5235    *     AnalyticsAdminServiceClient.create()) {
5236    *   ListConversionEventsRequest request =
5237    *       ListConversionEventsRequest.newBuilder()
5238    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5239    *           .setPageSize(883849137)
5240    *           .setPageToken("pageToken873572522")
5241    *           .build();
5242    *   ApiFuture<ConversionEvent> future =
5243    *       analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
5244    *   // Do something.
5245    *   for (ConversionEvent element : future.get().iterateAll()) {
5246    *     // doThingsWith(element);
5247    *   }
5248    * }
5249    * }</pre>
5250    */
5251   public final UnaryCallable<ListConversionEventsRequest, ListConversionEventsPagedResponse>
listConversionEventsPagedCallable()5252       listConversionEventsPagedCallable() {
5253     return stub.listConversionEventsPagedCallable();
5254   }
5255 
5256   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5257   /**
5258    * Returns a list of conversion events in the specified parent property.
5259    *
5260    * <p>Returns an empty list if no conversion events are found.
5261    *
5262    * <p>Sample code:
5263    *
5264    * <pre>{@code
5265    * // This snippet has been automatically generated and should be regarded as a code template only.
5266    * // It will require modifications to work:
5267    * // - It may require correct/in-range values for request initialization.
5268    * // - It may require specifying regional endpoints when creating the service client as shown in
5269    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5270    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5271    *     AnalyticsAdminServiceClient.create()) {
5272    *   ListConversionEventsRequest request =
5273    *       ListConversionEventsRequest.newBuilder()
5274    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5275    *           .setPageSize(883849137)
5276    *           .setPageToken("pageToken873572522")
5277    *           .build();
5278    *   while (true) {
5279    *     ListConversionEventsResponse response =
5280    *         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
5281    *     for (ConversionEvent element : response.getConversionEventsList()) {
5282    *       // doThingsWith(element);
5283    *     }
5284    *     String nextPageToken = response.getNextPageToken();
5285    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
5286    *       request = request.toBuilder().setPageToken(nextPageToken).build();
5287    *     } else {
5288    *       break;
5289    *     }
5290    *   }
5291    * }
5292    * }</pre>
5293    */
5294   public final UnaryCallable<ListConversionEventsRequest, ListConversionEventsResponse>
listConversionEventsCallable()5295       listConversionEventsCallable() {
5296     return stub.listConversionEventsCallable();
5297   }
5298 
5299   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5300   /**
5301    * Look up a single DisplayVideo360AdvertiserLink
5302    *
5303    * <p>Sample code:
5304    *
5305    * <pre>{@code
5306    * // This snippet has been automatically generated and should be regarded as a code template only.
5307    * // It will require modifications to work:
5308    * // - It may require correct/in-range values for request initialization.
5309    * // - It may require specifying regional endpoints when creating the service client as shown in
5310    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5311    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5312    *     AnalyticsAdminServiceClient.create()) {
5313    *   DisplayVideo360AdvertiserLinkName name =
5314    *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
5315    *   DisplayVideo360AdvertiserLink response =
5316    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
5317    * }
5318    * }</pre>
5319    *
5320    * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format:
5321    *     properties/1234/displayVideo360AdvertiserLink/5678
5322    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5323    */
getDisplayVideo360AdvertiserLink( DisplayVideo360AdvertiserLinkName name)5324   public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
5325       DisplayVideo360AdvertiserLinkName name) {
5326     GetDisplayVideo360AdvertiserLinkRequest request =
5327         GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
5328             .setName(name == null ? null : name.toString())
5329             .build();
5330     return getDisplayVideo360AdvertiserLink(request);
5331   }
5332 
5333   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5334   /**
5335    * Look up a single DisplayVideo360AdvertiserLink
5336    *
5337    * <p>Sample code:
5338    *
5339    * <pre>{@code
5340    * // This snippet has been automatically generated and should be regarded as a code template only.
5341    * // It will require modifications to work:
5342    * // - It may require correct/in-range values for request initialization.
5343    * // - It may require specifying regional endpoints when creating the service client as shown in
5344    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5345    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5346    *     AnalyticsAdminServiceClient.create()) {
5347    *   String name =
5348    *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5349    *           .toString();
5350    *   DisplayVideo360AdvertiserLink response =
5351    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
5352    * }
5353    * }</pre>
5354    *
5355    * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format:
5356    *     properties/1234/displayVideo360AdvertiserLink/5678
5357    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5358    */
getDisplayVideo360AdvertiserLink(String name)5359   public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) {
5360     GetDisplayVideo360AdvertiserLinkRequest request =
5361         GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
5362     return getDisplayVideo360AdvertiserLink(request);
5363   }
5364 
5365   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5366   /**
5367    * Look up a single DisplayVideo360AdvertiserLink
5368    *
5369    * <p>Sample code:
5370    *
5371    * <pre>{@code
5372    * // This snippet has been automatically generated and should be regarded as a code template only.
5373    * // It will require modifications to work:
5374    * // - It may require correct/in-range values for request initialization.
5375    * // - It may require specifying regional endpoints when creating the service client as shown in
5376    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5377    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5378    *     AnalyticsAdminServiceClient.create()) {
5379    *   GetDisplayVideo360AdvertiserLinkRequest request =
5380    *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
5381    *           .setName(
5382    *               DisplayVideo360AdvertiserLinkName.of(
5383    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5384    *                   .toString())
5385    *           .build();
5386    *   DisplayVideo360AdvertiserLink response =
5387    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(request);
5388    * }
5389    * }</pre>
5390    *
5391    * @param request The request object containing all of the parameters for the API call.
5392    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5393    */
getDisplayVideo360AdvertiserLink( GetDisplayVideo360AdvertiserLinkRequest request)5394   public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(
5395       GetDisplayVideo360AdvertiserLinkRequest request) {
5396     return getDisplayVideo360AdvertiserLinkCallable().call(request);
5397   }
5398 
5399   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5400   /**
5401    * Look up a single DisplayVideo360AdvertiserLink
5402    *
5403    * <p>Sample code:
5404    *
5405    * <pre>{@code
5406    * // This snippet has been automatically generated and should be regarded as a code template only.
5407    * // It will require modifications to work:
5408    * // - It may require correct/in-range values for request initialization.
5409    * // - It may require specifying regional endpoints when creating the service client as shown in
5410    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5411    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5412    *     AnalyticsAdminServiceClient.create()) {
5413    *   GetDisplayVideo360AdvertiserLinkRequest request =
5414    *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
5415    *           .setName(
5416    *               DisplayVideo360AdvertiserLinkName.of(
5417    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5418    *                   .toString())
5419    *           .build();
5420    *   ApiFuture<DisplayVideo360AdvertiserLink> future =
5421    *       analyticsAdminServiceClient
5422    *           .getDisplayVideo360AdvertiserLinkCallable()
5423    *           .futureCall(request);
5424    *   // Do something.
5425    *   DisplayVideo360AdvertiserLink response = future.get();
5426    * }
5427    * }</pre>
5428    */
5429   public final UnaryCallable<GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
getDisplayVideo360AdvertiserLinkCallable()5430       getDisplayVideo360AdvertiserLinkCallable() {
5431     return stub.getDisplayVideo360AdvertiserLinkCallable();
5432   }
5433 
5434   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5435   /**
5436    * Lists all DisplayVideo360AdvertiserLinks on a property.
5437    *
5438    * <p>Sample code:
5439    *
5440    * <pre>{@code
5441    * // This snippet has been automatically generated and should be regarded as a code template only.
5442    * // It will require modifications to work:
5443    * // - It may require correct/in-range values for request initialization.
5444    * // - It may require specifying regional endpoints when creating the service client as shown in
5445    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5446    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5447    *     AnalyticsAdminServiceClient.create()) {
5448    *   PropertyName parent = PropertyName.of("[PROPERTY]");
5449    *   for (DisplayVideo360AdvertiserLink element :
5450    *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
5451    *     // doThingsWith(element);
5452    *   }
5453    * }
5454    * }</pre>
5455    *
5456    * @param parent Required. Example format: properties/1234
5457    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5458    */
listDisplayVideo360AdvertiserLinks( PropertyName parent)5459   public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
5460       PropertyName parent) {
5461     ListDisplayVideo360AdvertiserLinksRequest request =
5462         ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
5463             .setParent(parent == null ? null : parent.toString())
5464             .build();
5465     return listDisplayVideo360AdvertiserLinks(request);
5466   }
5467 
5468   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5469   /**
5470    * Lists all DisplayVideo360AdvertiserLinks on a property.
5471    *
5472    * <p>Sample code:
5473    *
5474    * <pre>{@code
5475    * // This snippet has been automatically generated and should be regarded as a code template only.
5476    * // It will require modifications to work:
5477    * // - It may require correct/in-range values for request initialization.
5478    * // - It may require specifying regional endpoints when creating the service client as shown in
5479    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5480    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5481    *     AnalyticsAdminServiceClient.create()) {
5482    *   String parent = PropertyName.of("[PROPERTY]").toString();
5483    *   for (DisplayVideo360AdvertiserLink element :
5484    *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
5485    *     // doThingsWith(element);
5486    *   }
5487    * }
5488    * }</pre>
5489    *
5490    * @param parent Required. Example format: properties/1234
5491    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5492    */
listDisplayVideo360AdvertiserLinks( String parent)5493   public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
5494       String parent) {
5495     ListDisplayVideo360AdvertiserLinksRequest request =
5496         ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build();
5497     return listDisplayVideo360AdvertiserLinks(request);
5498   }
5499 
5500   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5501   /**
5502    * Lists all DisplayVideo360AdvertiserLinks on a property.
5503    *
5504    * <p>Sample code:
5505    *
5506    * <pre>{@code
5507    * // This snippet has been automatically generated and should be regarded as a code template only.
5508    * // It will require modifications to work:
5509    * // - It may require correct/in-range values for request initialization.
5510    * // - It may require specifying regional endpoints when creating the service client as shown in
5511    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5512    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5513    *     AnalyticsAdminServiceClient.create()) {
5514    *   ListDisplayVideo360AdvertiserLinksRequest request =
5515    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
5516    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5517    *           .setPageSize(883849137)
5518    *           .setPageToken("pageToken873572522")
5519    *           .build();
5520    *   for (DisplayVideo360AdvertiserLink element :
5521    *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
5522    *     // doThingsWith(element);
5523    *   }
5524    * }
5525    * }</pre>
5526    *
5527    * @param request The request object containing all of the parameters for the API call.
5528    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5529    */
listDisplayVideo360AdvertiserLinks( ListDisplayVideo360AdvertiserLinksRequest request)5530   public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
5531       ListDisplayVideo360AdvertiserLinksRequest request) {
5532     return listDisplayVideo360AdvertiserLinksPagedCallable().call(request);
5533   }
5534 
5535   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5536   /**
5537    * Lists all DisplayVideo360AdvertiserLinks on a property.
5538    *
5539    * <p>Sample code:
5540    *
5541    * <pre>{@code
5542    * // This snippet has been automatically generated and should be regarded as a code template only.
5543    * // It will require modifications to work:
5544    * // - It may require correct/in-range values for request initialization.
5545    * // - It may require specifying regional endpoints when creating the service client as shown in
5546    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5547    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5548    *     AnalyticsAdminServiceClient.create()) {
5549    *   ListDisplayVideo360AdvertiserLinksRequest request =
5550    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
5551    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5552    *           .setPageSize(883849137)
5553    *           .setPageToken("pageToken873572522")
5554    *           .build();
5555    *   ApiFuture<DisplayVideo360AdvertiserLink> future =
5556    *       analyticsAdminServiceClient
5557    *           .listDisplayVideo360AdvertiserLinksPagedCallable()
5558    *           .futureCall(request);
5559    *   // Do something.
5560    *   for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) {
5561    *     // doThingsWith(element);
5562    *   }
5563    * }
5564    * }</pre>
5565    */
5566   public final UnaryCallable<
5567           ListDisplayVideo360AdvertiserLinksRequest,
5568           ListDisplayVideo360AdvertiserLinksPagedResponse>
listDisplayVideo360AdvertiserLinksPagedCallable()5569       listDisplayVideo360AdvertiserLinksPagedCallable() {
5570     return stub.listDisplayVideo360AdvertiserLinksPagedCallable();
5571   }
5572 
5573   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5574   /**
5575    * Lists all DisplayVideo360AdvertiserLinks on a property.
5576    *
5577    * <p>Sample code:
5578    *
5579    * <pre>{@code
5580    * // This snippet has been automatically generated and should be regarded as a code template only.
5581    * // It will require modifications to work:
5582    * // - It may require correct/in-range values for request initialization.
5583    * // - It may require specifying regional endpoints when creating the service client as shown in
5584    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5585    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5586    *     AnalyticsAdminServiceClient.create()) {
5587    *   ListDisplayVideo360AdvertiserLinksRequest request =
5588    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
5589    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5590    *           .setPageSize(883849137)
5591    *           .setPageToken("pageToken873572522")
5592    *           .build();
5593    *   while (true) {
5594    *     ListDisplayVideo360AdvertiserLinksResponse response =
5595    *         analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
5596    *     for (DisplayVideo360AdvertiserLink element :
5597    *         response.getDisplayVideo360AdvertiserLinksList()) {
5598    *       // doThingsWith(element);
5599    *     }
5600    *     String nextPageToken = response.getNextPageToken();
5601    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
5602    *       request = request.toBuilder().setPageToken(nextPageToken).build();
5603    *     } else {
5604    *       break;
5605    *     }
5606    *   }
5607    * }
5608    * }</pre>
5609    */
5610   public final UnaryCallable<
5611           ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse>
listDisplayVideo360AdvertiserLinksCallable()5612       listDisplayVideo360AdvertiserLinksCallable() {
5613     return stub.listDisplayVideo360AdvertiserLinksCallable();
5614   }
5615 
5616   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5617   /**
5618    * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper
5619    * authorization both on the Google Analytics property and on the Display &amp; Video 360
5620    * advertiser. Users who do not have access to the Display &amp; Video 360 advertiser should
5621    * instead seek to create a DisplayVideo360LinkProposal.
5622    *
5623    * <p>Sample code:
5624    *
5625    * <pre>{@code
5626    * // This snippet has been automatically generated and should be regarded as a code template only.
5627    * // It will require modifications to work:
5628    * // - It may require correct/in-range values for request initialization.
5629    * // - It may require specifying regional endpoints when creating the service client as shown in
5630    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5631    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5632    *     AnalyticsAdminServiceClient.create()) {
5633    *   PropertyName parent = PropertyName.of("[PROPERTY]");
5634    *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
5635    *       DisplayVideo360AdvertiserLink.newBuilder().build();
5636    *   DisplayVideo360AdvertiserLink response =
5637    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
5638    *           parent, displayVideo360AdvertiserLink);
5639    * }
5640    * }</pre>
5641    *
5642    * @param parent Required. Example format: properties/1234
5643    * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create.
5644    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5645    */
createDisplayVideo360AdvertiserLink( PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink)5646   public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
5647       PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) {
5648     CreateDisplayVideo360AdvertiserLinkRequest request =
5649         CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5650             .setParent(parent == null ? null : parent.toString())
5651             .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
5652             .build();
5653     return createDisplayVideo360AdvertiserLink(request);
5654   }
5655 
5656   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5657   /**
5658    * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper
5659    * authorization both on the Google Analytics property and on the Display &amp; Video 360
5660    * advertiser. Users who do not have access to the Display &amp; Video 360 advertiser should
5661    * instead seek to create a DisplayVideo360LinkProposal.
5662    *
5663    * <p>Sample code:
5664    *
5665    * <pre>{@code
5666    * // This snippet has been automatically generated and should be regarded as a code template only.
5667    * // It will require modifications to work:
5668    * // - It may require correct/in-range values for request initialization.
5669    * // - It may require specifying regional endpoints when creating the service client as shown in
5670    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5671    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5672    *     AnalyticsAdminServiceClient.create()) {
5673    *   String parent = PropertyName.of("[PROPERTY]").toString();
5674    *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
5675    *       DisplayVideo360AdvertiserLink.newBuilder().build();
5676    *   DisplayVideo360AdvertiserLink response =
5677    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
5678    *           parent, displayVideo360AdvertiserLink);
5679    * }
5680    * }</pre>
5681    *
5682    * @param parent Required. Example format: properties/1234
5683    * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create.
5684    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5685    */
createDisplayVideo360AdvertiserLink( String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink)5686   public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
5687       String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) {
5688     CreateDisplayVideo360AdvertiserLinkRequest request =
5689         CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5690             .setParent(parent)
5691             .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
5692             .build();
5693     return createDisplayVideo360AdvertiserLink(request);
5694   }
5695 
5696   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5697   /**
5698    * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper
5699    * authorization both on the Google Analytics property and on the Display &amp; Video 360
5700    * advertiser. Users who do not have access to the Display &amp; Video 360 advertiser should
5701    * instead seek to create a DisplayVideo360LinkProposal.
5702    *
5703    * <p>Sample code:
5704    *
5705    * <pre>{@code
5706    * // This snippet has been automatically generated and should be regarded as a code template only.
5707    * // It will require modifications to work:
5708    * // - It may require correct/in-range values for request initialization.
5709    * // - It may require specifying regional endpoints when creating the service client as shown in
5710    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5711    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5712    *     AnalyticsAdminServiceClient.create()) {
5713    *   CreateDisplayVideo360AdvertiserLinkRequest request =
5714    *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5715    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5716    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
5717    *           .build();
5718    *   DisplayVideo360AdvertiserLink response =
5719    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(request);
5720    * }
5721    * }</pre>
5722    *
5723    * @param request The request object containing all of the parameters for the API call.
5724    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5725    */
createDisplayVideo360AdvertiserLink( CreateDisplayVideo360AdvertiserLinkRequest request)5726   public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
5727       CreateDisplayVideo360AdvertiserLinkRequest request) {
5728     return createDisplayVideo360AdvertiserLinkCallable().call(request);
5729   }
5730 
5731   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5732   /**
5733    * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper
5734    * authorization both on the Google Analytics property and on the Display &amp; Video 360
5735    * advertiser. Users who do not have access to the Display &amp; Video 360 advertiser should
5736    * instead seek to create a DisplayVideo360LinkProposal.
5737    *
5738    * <p>Sample code:
5739    *
5740    * <pre>{@code
5741    * // This snippet has been automatically generated and should be regarded as a code template only.
5742    * // It will require modifications to work:
5743    * // - It may require correct/in-range values for request initialization.
5744    * // - It may require specifying regional endpoints when creating the service client as shown in
5745    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5746    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5747    *     AnalyticsAdminServiceClient.create()) {
5748    *   CreateDisplayVideo360AdvertiserLinkRequest request =
5749    *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5750    *           .setParent(PropertyName.of("[PROPERTY]").toString())
5751    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
5752    *           .build();
5753    *   ApiFuture<DisplayVideo360AdvertiserLink> future =
5754    *       analyticsAdminServiceClient
5755    *           .createDisplayVideo360AdvertiserLinkCallable()
5756    *           .futureCall(request);
5757    *   // Do something.
5758    *   DisplayVideo360AdvertiserLink response = future.get();
5759    * }
5760    * }</pre>
5761    */
5762   public final UnaryCallable<
5763           CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
createDisplayVideo360AdvertiserLinkCallable()5764       createDisplayVideo360AdvertiserLinkCallable() {
5765     return stub.createDisplayVideo360AdvertiserLinkCallable();
5766   }
5767 
5768   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5769   /**
5770    * Deletes a DisplayVideo360AdvertiserLink on a property.
5771    *
5772    * <p>Sample code:
5773    *
5774    * <pre>{@code
5775    * // This snippet has been automatically generated and should be regarded as a code template only.
5776    * // It will require modifications to work:
5777    * // - It may require correct/in-range values for request initialization.
5778    * // - It may require specifying regional endpoints when creating the service client as shown in
5779    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5780    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5781    *     AnalyticsAdminServiceClient.create()) {
5782    *   DisplayVideo360AdvertiserLinkName name =
5783    *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
5784    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
5785    * }
5786    * }</pre>
5787    *
5788    * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format:
5789    *     properties/1234/displayVideo360AdvertiserLinks/5678
5790    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5791    */
deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name)5792   public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) {
5793     DeleteDisplayVideo360AdvertiserLinkRequest request =
5794         DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
5795             .setName(name == null ? null : name.toString())
5796             .build();
5797     deleteDisplayVideo360AdvertiserLink(request);
5798   }
5799 
5800   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5801   /**
5802    * Deletes a DisplayVideo360AdvertiserLink on a property.
5803    *
5804    * <p>Sample code:
5805    *
5806    * <pre>{@code
5807    * // This snippet has been automatically generated and should be regarded as a code template only.
5808    * // It will require modifications to work:
5809    * // - It may require correct/in-range values for request initialization.
5810    * // - It may require specifying regional endpoints when creating the service client as shown in
5811    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5812    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5813    *     AnalyticsAdminServiceClient.create()) {
5814    *   String name =
5815    *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5816    *           .toString();
5817    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
5818    * }
5819    * }</pre>
5820    *
5821    * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format:
5822    *     properties/1234/displayVideo360AdvertiserLinks/5678
5823    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5824    */
deleteDisplayVideo360AdvertiserLink(String name)5825   public final void deleteDisplayVideo360AdvertiserLink(String name) {
5826     DeleteDisplayVideo360AdvertiserLinkRequest request =
5827         DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build();
5828     deleteDisplayVideo360AdvertiserLink(request);
5829   }
5830 
5831   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5832   /**
5833    * Deletes a DisplayVideo360AdvertiserLink on a property.
5834    *
5835    * <p>Sample code:
5836    *
5837    * <pre>{@code
5838    * // This snippet has been automatically generated and should be regarded as a code template only.
5839    * // It will require modifications to work:
5840    * // - It may require correct/in-range values for request initialization.
5841    * // - It may require specifying regional endpoints when creating the service client as shown in
5842    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5843    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5844    *     AnalyticsAdminServiceClient.create()) {
5845    *   DeleteDisplayVideo360AdvertiserLinkRequest request =
5846    *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
5847    *           .setName(
5848    *               DisplayVideo360AdvertiserLinkName.of(
5849    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5850    *                   .toString())
5851    *           .build();
5852    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request);
5853    * }
5854    * }</pre>
5855    *
5856    * @param request The request object containing all of the parameters for the API call.
5857    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5858    */
deleteDisplayVideo360AdvertiserLink( DeleteDisplayVideo360AdvertiserLinkRequest request)5859   public final void deleteDisplayVideo360AdvertiserLink(
5860       DeleteDisplayVideo360AdvertiserLinkRequest request) {
5861     deleteDisplayVideo360AdvertiserLinkCallable().call(request);
5862   }
5863 
5864   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5865   /**
5866    * Deletes a DisplayVideo360AdvertiserLink on a property.
5867    *
5868    * <p>Sample code:
5869    *
5870    * <pre>{@code
5871    * // This snippet has been automatically generated and should be regarded as a code template only.
5872    * // It will require modifications to work:
5873    * // - It may require correct/in-range values for request initialization.
5874    * // - It may require specifying regional endpoints when creating the service client as shown in
5875    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5876    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5877    *     AnalyticsAdminServiceClient.create()) {
5878    *   DeleteDisplayVideo360AdvertiserLinkRequest request =
5879    *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
5880    *           .setName(
5881    *               DisplayVideo360AdvertiserLinkName.of(
5882    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
5883    *                   .toString())
5884    *           .build();
5885    *   ApiFuture<Empty> future =
5886    *       analyticsAdminServiceClient
5887    *           .deleteDisplayVideo360AdvertiserLinkCallable()
5888    *           .futureCall(request);
5889    *   // Do something.
5890    *   future.get();
5891    * }
5892    * }</pre>
5893    */
5894   public final UnaryCallable<DeleteDisplayVideo360AdvertiserLinkRequest, Empty>
deleteDisplayVideo360AdvertiserLinkCallable()5895       deleteDisplayVideo360AdvertiserLinkCallable() {
5896     return stub.deleteDisplayVideo360AdvertiserLinkCallable();
5897   }
5898 
5899   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5900   /**
5901    * Updates a DisplayVideo360AdvertiserLink on a property.
5902    *
5903    * <p>Sample code:
5904    *
5905    * <pre>{@code
5906    * // This snippet has been automatically generated and should be regarded as a code template only.
5907    * // It will require modifications to work:
5908    * // - It may require correct/in-range values for request initialization.
5909    * // - It may require specifying regional endpoints when creating the service client as shown in
5910    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5911    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5912    *     AnalyticsAdminServiceClient.create()) {
5913    *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
5914    *       DisplayVideo360AdvertiserLink.newBuilder().build();
5915    *   FieldMask updateMask = FieldMask.newBuilder().build();
5916    *   DisplayVideo360AdvertiserLink response =
5917    *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
5918    *           displayVideo360AdvertiserLink, updateMask);
5919    * }
5920    * }</pre>
5921    *
5922    * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update
5923    * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
5924    *     updated. To replace the entire entity, use one path with the string "&#42;" to match all
5925    *     fields.
5926    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5927    */
updateDisplayVideo360AdvertiserLink( DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask)5928   public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
5929       DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) {
5930     UpdateDisplayVideo360AdvertiserLinkRequest request =
5931         UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5932             .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink)
5933             .setUpdateMask(updateMask)
5934             .build();
5935     return updateDisplayVideo360AdvertiserLink(request);
5936   }
5937 
5938   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5939   /**
5940    * Updates a DisplayVideo360AdvertiserLink on a property.
5941    *
5942    * <p>Sample code:
5943    *
5944    * <pre>{@code
5945    * // This snippet has been automatically generated and should be regarded as a code template only.
5946    * // It will require modifications to work:
5947    * // - It may require correct/in-range values for request initialization.
5948    * // - It may require specifying regional endpoints when creating the service client as shown in
5949    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5950    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5951    *     AnalyticsAdminServiceClient.create()) {
5952    *   UpdateDisplayVideo360AdvertiserLinkRequest request =
5953    *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5954    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
5955    *           .setUpdateMask(FieldMask.newBuilder().build())
5956    *           .build();
5957    *   DisplayVideo360AdvertiserLink response =
5958    *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(request);
5959    * }
5960    * }</pre>
5961    *
5962    * @param request The request object containing all of the parameters for the API call.
5963    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
5964    */
updateDisplayVideo360AdvertiserLink( UpdateDisplayVideo360AdvertiserLinkRequest request)5965   public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(
5966       UpdateDisplayVideo360AdvertiserLinkRequest request) {
5967     return updateDisplayVideo360AdvertiserLinkCallable().call(request);
5968   }
5969 
5970   // AUTO-GENERATED DOCUMENTATION AND METHOD.
5971   /**
5972    * Updates a DisplayVideo360AdvertiserLink on a property.
5973    *
5974    * <p>Sample code:
5975    *
5976    * <pre>{@code
5977    * // This snippet has been automatically generated and should be regarded as a code template only.
5978    * // It will require modifications to work:
5979    * // - It may require correct/in-range values for request initialization.
5980    * // - It may require specifying regional endpoints when creating the service client as shown in
5981    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
5982    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
5983    *     AnalyticsAdminServiceClient.create()) {
5984    *   UpdateDisplayVideo360AdvertiserLinkRequest request =
5985    *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
5986    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
5987    *           .setUpdateMask(FieldMask.newBuilder().build())
5988    *           .build();
5989    *   ApiFuture<DisplayVideo360AdvertiserLink> future =
5990    *       analyticsAdminServiceClient
5991    *           .updateDisplayVideo360AdvertiserLinkCallable()
5992    *           .futureCall(request);
5993    *   // Do something.
5994    *   DisplayVideo360AdvertiserLink response = future.get();
5995    * }
5996    * }</pre>
5997    */
5998   public final UnaryCallable<
5999           UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink>
updateDisplayVideo360AdvertiserLinkCallable()6000       updateDisplayVideo360AdvertiserLinkCallable() {
6001     return stub.updateDisplayVideo360AdvertiserLinkCallable();
6002   }
6003 
6004   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6005   /**
6006    * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
6007    *
6008    * <p>Sample code:
6009    *
6010    * <pre>{@code
6011    * // This snippet has been automatically generated and should be regarded as a code template only.
6012    * // It will require modifications to work:
6013    * // - It may require correct/in-range values for request initialization.
6014    * // - It may require specifying regional endpoints when creating the service client as shown in
6015    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6016    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6017    *     AnalyticsAdminServiceClient.create()) {
6018    *   DisplayVideo360AdvertiserLinkProposalName name =
6019    *       DisplayVideo360AdvertiserLinkProposalName.of(
6020    *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
6021    *   DisplayVideo360AdvertiserLinkProposal response =
6022    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
6023    * }
6024    * }</pre>
6025    *
6026    * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example
6027    *     format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
6028    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6029    */
getDisplayVideo360AdvertiserLinkProposal( DisplayVideo360AdvertiserLinkProposalName name)6030   public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
6031       DisplayVideo360AdvertiserLinkProposalName name) {
6032     GetDisplayVideo360AdvertiserLinkProposalRequest request =
6033         GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6034             .setName(name == null ? null : name.toString())
6035             .build();
6036     return getDisplayVideo360AdvertiserLinkProposal(request);
6037   }
6038 
6039   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6040   /**
6041    * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
6042    *
6043    * <p>Sample code:
6044    *
6045    * <pre>{@code
6046    * // This snippet has been automatically generated and should be regarded as a code template only.
6047    * // It will require modifications to work:
6048    * // - It may require correct/in-range values for request initialization.
6049    * // - It may require specifying regional endpoints when creating the service client as shown in
6050    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6051    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6052    *     AnalyticsAdminServiceClient.create()) {
6053    *   String name =
6054    *       DisplayVideo360AdvertiserLinkProposalName.of(
6055    *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6056    *           .toString();
6057    *   DisplayVideo360AdvertiserLinkProposal response =
6058    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
6059    * }
6060    * }</pre>
6061    *
6062    * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example
6063    *     format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
6064    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6065    */
getDisplayVideo360AdvertiserLinkProposal( String name)6066   public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
6067       String name) {
6068     GetDisplayVideo360AdvertiserLinkProposalRequest request =
6069         GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build();
6070     return getDisplayVideo360AdvertiserLinkProposal(request);
6071   }
6072 
6073   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6074   /**
6075    * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
6076    *
6077    * <p>Sample code:
6078    *
6079    * <pre>{@code
6080    * // This snippet has been automatically generated and should be regarded as a code template only.
6081    * // It will require modifications to work:
6082    * // - It may require correct/in-range values for request initialization.
6083    * // - It may require specifying regional endpoints when creating the service client as shown in
6084    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6085    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6086    *     AnalyticsAdminServiceClient.create()) {
6087    *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
6088    *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6089    *           .setName(
6090    *               DisplayVideo360AdvertiserLinkProposalName.of(
6091    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6092    *                   .toString())
6093    *           .build();
6094    *   DisplayVideo360AdvertiserLinkProposal response =
6095    *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(request);
6096    * }
6097    * }</pre>
6098    *
6099    * @param request The request object containing all of the parameters for the API call.
6100    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6101    */
getDisplayVideo360AdvertiserLinkProposal( GetDisplayVideo360AdvertiserLinkProposalRequest request)6102   public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(
6103       GetDisplayVideo360AdvertiserLinkProposalRequest request) {
6104     return getDisplayVideo360AdvertiserLinkProposalCallable().call(request);
6105   }
6106 
6107   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6108   /**
6109    * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
6110    *
6111    * <p>Sample code:
6112    *
6113    * <pre>{@code
6114    * // This snippet has been automatically generated and should be regarded as a code template only.
6115    * // It will require modifications to work:
6116    * // - It may require correct/in-range values for request initialization.
6117    * // - It may require specifying regional endpoints when creating the service client as shown in
6118    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6119    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6120    *     AnalyticsAdminServiceClient.create()) {
6121    *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
6122    *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6123    *           .setName(
6124    *               DisplayVideo360AdvertiserLinkProposalName.of(
6125    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6126    *                   .toString())
6127    *           .build();
6128    *   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
6129    *       analyticsAdminServiceClient
6130    *           .getDisplayVideo360AdvertiserLinkProposalCallable()
6131    *           .futureCall(request);
6132    *   // Do something.
6133    *   DisplayVideo360AdvertiserLinkProposal response = future.get();
6134    * }
6135    * }</pre>
6136    */
6137   public final UnaryCallable<
6138           GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
getDisplayVideo360AdvertiserLinkProposalCallable()6139       getDisplayVideo360AdvertiserLinkProposalCallable() {
6140     return stub.getDisplayVideo360AdvertiserLinkProposalCallable();
6141   }
6142 
6143   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6144   /**
6145    * Lists DisplayVideo360AdvertiserLinkProposals on a property.
6146    *
6147    * <p>Sample code:
6148    *
6149    * <pre>{@code
6150    * // This snippet has been automatically generated and should be regarded as a code template only.
6151    * // It will require modifications to work:
6152    * // - It may require correct/in-range values for request initialization.
6153    * // - It may require specifying regional endpoints when creating the service client as shown in
6154    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6155    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6156    *     AnalyticsAdminServiceClient.create()) {
6157    *   PropertyName parent = PropertyName.of("[PROPERTY]");
6158    *   for (DisplayVideo360AdvertiserLinkProposal element :
6159    *       analyticsAdminServiceClient
6160    *           .listDisplayVideo360AdvertiserLinkProposals(parent)
6161    *           .iterateAll()) {
6162    *     // doThingsWith(element);
6163    *   }
6164    * }
6165    * }</pre>
6166    *
6167    * @param parent Required. Example format: properties/1234
6168    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6169    */
6170   public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
listDisplayVideo360AdvertiserLinkProposals(PropertyName parent)6171       listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) {
6172     ListDisplayVideo360AdvertiserLinkProposalsRequest request =
6173         ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
6174             .setParent(parent == null ? null : parent.toString())
6175             .build();
6176     return listDisplayVideo360AdvertiserLinkProposals(request);
6177   }
6178 
6179   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6180   /**
6181    * Lists DisplayVideo360AdvertiserLinkProposals on a property.
6182    *
6183    * <p>Sample code:
6184    *
6185    * <pre>{@code
6186    * // This snippet has been automatically generated and should be regarded as a code template only.
6187    * // It will require modifications to work:
6188    * // - It may require correct/in-range values for request initialization.
6189    * // - It may require specifying regional endpoints when creating the service client as shown in
6190    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6191    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6192    *     AnalyticsAdminServiceClient.create()) {
6193    *   String parent = PropertyName.of("[PROPERTY]").toString();
6194    *   for (DisplayVideo360AdvertiserLinkProposal element :
6195    *       analyticsAdminServiceClient
6196    *           .listDisplayVideo360AdvertiserLinkProposals(parent)
6197    *           .iterateAll()) {
6198    *     // doThingsWith(element);
6199    *   }
6200    * }
6201    * }</pre>
6202    *
6203    * @param parent Required. Example format: properties/1234
6204    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6205    */
6206   public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
listDisplayVideo360AdvertiserLinkProposals(String parent)6207       listDisplayVideo360AdvertiserLinkProposals(String parent) {
6208     ListDisplayVideo360AdvertiserLinkProposalsRequest request =
6209         ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build();
6210     return listDisplayVideo360AdvertiserLinkProposals(request);
6211   }
6212 
6213   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6214   /**
6215    * Lists DisplayVideo360AdvertiserLinkProposals on a property.
6216    *
6217    * <p>Sample code:
6218    *
6219    * <pre>{@code
6220    * // This snippet has been automatically generated and should be regarded as a code template only.
6221    * // It will require modifications to work:
6222    * // - It may require correct/in-range values for request initialization.
6223    * // - It may require specifying regional endpoints when creating the service client as shown in
6224    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6225    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6226    *     AnalyticsAdminServiceClient.create()) {
6227    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
6228    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
6229    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6230    *           .setPageSize(883849137)
6231    *           .setPageToken("pageToken873572522")
6232    *           .build();
6233    *   for (DisplayVideo360AdvertiserLinkProposal element :
6234    *       analyticsAdminServiceClient
6235    *           .listDisplayVideo360AdvertiserLinkProposals(request)
6236    *           .iterateAll()) {
6237    *     // doThingsWith(element);
6238    *   }
6239    * }
6240    * }</pre>
6241    *
6242    * @param request The request object containing all of the parameters for the API call.
6243    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6244    */
6245   public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
listDisplayVideo360AdvertiserLinkProposals( ListDisplayVideo360AdvertiserLinkProposalsRequest request)6246       listDisplayVideo360AdvertiserLinkProposals(
6247           ListDisplayVideo360AdvertiserLinkProposalsRequest request) {
6248     return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request);
6249   }
6250 
6251   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6252   /**
6253    * Lists DisplayVideo360AdvertiserLinkProposals on a property.
6254    *
6255    * <p>Sample code:
6256    *
6257    * <pre>{@code
6258    * // This snippet has been automatically generated and should be regarded as a code template only.
6259    * // It will require modifications to work:
6260    * // - It may require correct/in-range values for request initialization.
6261    * // - It may require specifying regional endpoints when creating the service client as shown in
6262    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6263    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6264    *     AnalyticsAdminServiceClient.create()) {
6265    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
6266    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
6267    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6268    *           .setPageSize(883849137)
6269    *           .setPageToken("pageToken873572522")
6270    *           .build();
6271    *   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
6272    *       analyticsAdminServiceClient
6273    *           .listDisplayVideo360AdvertiserLinkProposalsPagedCallable()
6274    *           .futureCall(request);
6275    *   // Do something.
6276    *   for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) {
6277    *     // doThingsWith(element);
6278    *   }
6279    * }
6280    * }</pre>
6281    */
6282   public final UnaryCallable<
6283           ListDisplayVideo360AdvertiserLinkProposalsRequest,
6284           ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>
listDisplayVideo360AdvertiserLinkProposalsPagedCallable()6285       listDisplayVideo360AdvertiserLinkProposalsPagedCallable() {
6286     return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable();
6287   }
6288 
6289   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6290   /**
6291    * Lists DisplayVideo360AdvertiserLinkProposals on a property.
6292    *
6293    * <p>Sample code:
6294    *
6295    * <pre>{@code
6296    * // This snippet has been automatically generated and should be regarded as a code template only.
6297    * // It will require modifications to work:
6298    * // - It may require correct/in-range values for request initialization.
6299    * // - It may require specifying regional endpoints when creating the service client as shown in
6300    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6301    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6302    *     AnalyticsAdminServiceClient.create()) {
6303    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
6304    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
6305    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6306    *           .setPageSize(883849137)
6307    *           .setPageToken("pageToken873572522")
6308    *           .build();
6309    *   while (true) {
6310    *     ListDisplayVideo360AdvertiserLinkProposalsResponse response =
6311    *         analyticsAdminServiceClient
6312    *             .listDisplayVideo360AdvertiserLinkProposalsCallable()
6313    *             .call(request);
6314    *     for (DisplayVideo360AdvertiserLinkProposal element :
6315    *         response.getDisplayVideo360AdvertiserLinkProposalsList()) {
6316    *       // doThingsWith(element);
6317    *     }
6318    *     String nextPageToken = response.getNextPageToken();
6319    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
6320    *       request = request.toBuilder().setPageToken(nextPageToken).build();
6321    *     } else {
6322    *       break;
6323    *     }
6324    *   }
6325    * }
6326    * }</pre>
6327    */
6328   public final UnaryCallable<
6329           ListDisplayVideo360AdvertiserLinkProposalsRequest,
6330           ListDisplayVideo360AdvertiserLinkProposalsResponse>
listDisplayVideo360AdvertiserLinkProposalsCallable()6331       listDisplayVideo360AdvertiserLinkProposalsCallable() {
6332     return stub.listDisplayVideo360AdvertiserLinkProposalsCallable();
6333   }
6334 
6335   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6336   /**
6337    * Creates a DisplayVideo360AdvertiserLinkProposal.
6338    *
6339    * <p>Sample code:
6340    *
6341    * <pre>{@code
6342    * // This snippet has been automatically generated and should be regarded as a code template only.
6343    * // It will require modifications to work:
6344    * // - It may require correct/in-range values for request initialization.
6345    * // - It may require specifying regional endpoints when creating the service client as shown in
6346    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6347    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6348    *     AnalyticsAdminServiceClient.create()) {
6349    *   PropertyName parent = PropertyName.of("[PROPERTY]");
6350    *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
6351    *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
6352    *   DisplayVideo360AdvertiserLinkProposal response =
6353    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
6354    *           parent, displayVideo360AdvertiserLinkProposal);
6355    * }
6356    * }</pre>
6357    *
6358    * @param parent Required. Example format: properties/1234
6359    * @param displayVideo360AdvertiserLinkProposal Required. The
6360    *     DisplayVideo360AdvertiserLinkProposal to create.
6361    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6362    */
createDisplayVideo360AdvertiserLinkProposal( PropertyName parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)6363   public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
6364       PropertyName parent,
6365       DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) {
6366     CreateDisplayVideo360AdvertiserLinkProposalRequest request =
6367         CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6368             .setParent(parent == null ? null : parent.toString())
6369             .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal)
6370             .build();
6371     return createDisplayVideo360AdvertiserLinkProposal(request);
6372   }
6373 
6374   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6375   /**
6376    * Creates a DisplayVideo360AdvertiserLinkProposal.
6377    *
6378    * <p>Sample code:
6379    *
6380    * <pre>{@code
6381    * // This snippet has been automatically generated and should be regarded as a code template only.
6382    * // It will require modifications to work:
6383    * // - It may require correct/in-range values for request initialization.
6384    * // - It may require specifying regional endpoints when creating the service client as shown in
6385    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6386    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6387    *     AnalyticsAdminServiceClient.create()) {
6388    *   String parent = PropertyName.of("[PROPERTY]").toString();
6389    *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
6390    *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
6391    *   DisplayVideo360AdvertiserLinkProposal response =
6392    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
6393    *           parent, displayVideo360AdvertiserLinkProposal);
6394    * }
6395    * }</pre>
6396    *
6397    * @param parent Required. Example format: properties/1234
6398    * @param displayVideo360AdvertiserLinkProposal Required. The
6399    *     DisplayVideo360AdvertiserLinkProposal to create.
6400    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6401    */
createDisplayVideo360AdvertiserLinkProposal( String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal)6402   public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
6403       String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) {
6404     CreateDisplayVideo360AdvertiserLinkProposalRequest request =
6405         CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6406             .setParent(parent)
6407             .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal)
6408             .build();
6409     return createDisplayVideo360AdvertiserLinkProposal(request);
6410   }
6411 
6412   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6413   /**
6414    * Creates a DisplayVideo360AdvertiserLinkProposal.
6415    *
6416    * <p>Sample code:
6417    *
6418    * <pre>{@code
6419    * // This snippet has been automatically generated and should be regarded as a code template only.
6420    * // It will require modifications to work:
6421    * // - It may require correct/in-range values for request initialization.
6422    * // - It may require specifying regional endpoints when creating the service client as shown in
6423    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6424    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6425    *     AnalyticsAdminServiceClient.create()) {
6426    *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
6427    *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6428    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6429    *           .setDisplayVideo360AdvertiserLinkProposal(
6430    *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
6431    *           .build();
6432    *   DisplayVideo360AdvertiserLinkProposal response =
6433    *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(request);
6434    * }
6435    * }</pre>
6436    *
6437    * @param request The request object containing all of the parameters for the API call.
6438    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6439    */
createDisplayVideo360AdvertiserLinkProposal( CreateDisplayVideo360AdvertiserLinkProposalRequest request)6440   public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(
6441       CreateDisplayVideo360AdvertiserLinkProposalRequest request) {
6442     return createDisplayVideo360AdvertiserLinkProposalCallable().call(request);
6443   }
6444 
6445   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6446   /**
6447    * Creates a DisplayVideo360AdvertiserLinkProposal.
6448    *
6449    * <p>Sample code:
6450    *
6451    * <pre>{@code
6452    * // This snippet has been automatically generated and should be regarded as a code template only.
6453    * // It will require modifications to work:
6454    * // - It may require correct/in-range values for request initialization.
6455    * // - It may require specifying regional endpoints when creating the service client as shown in
6456    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6457    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6458    *     AnalyticsAdminServiceClient.create()) {
6459    *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
6460    *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6461    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6462    *           .setDisplayVideo360AdvertiserLinkProposal(
6463    *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
6464    *           .build();
6465    *   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
6466    *       analyticsAdminServiceClient
6467    *           .createDisplayVideo360AdvertiserLinkProposalCallable()
6468    *           .futureCall(request);
6469    *   // Do something.
6470    *   DisplayVideo360AdvertiserLinkProposal response = future.get();
6471    * }
6472    * }</pre>
6473    */
6474   public final UnaryCallable<
6475           CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
createDisplayVideo360AdvertiserLinkProposalCallable()6476       createDisplayVideo360AdvertiserLinkProposalCallable() {
6477     return stub.createDisplayVideo360AdvertiserLinkProposalCallable();
6478   }
6479 
6480   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6481   /**
6482    * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
6483    * cancelled proposals.
6484    *
6485    * <p>Sample code:
6486    *
6487    * <pre>{@code
6488    * // This snippet has been automatically generated and should be regarded as a code template only.
6489    * // It will require modifications to work:
6490    * // - It may require correct/in-range values for request initialization.
6491    * // - It may require specifying regional endpoints when creating the service client as shown in
6492    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6493    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6494    *     AnalyticsAdminServiceClient.create()) {
6495    *   DisplayVideo360AdvertiserLinkProposalName name =
6496    *       DisplayVideo360AdvertiserLinkProposalName.of(
6497    *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
6498    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
6499    * }
6500    * }</pre>
6501    *
6502    * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example
6503    *     format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
6504    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6505    */
deleteDisplayVideo360AdvertiserLinkProposal( DisplayVideo360AdvertiserLinkProposalName name)6506   public final void deleteDisplayVideo360AdvertiserLinkProposal(
6507       DisplayVideo360AdvertiserLinkProposalName name) {
6508     DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
6509         DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6510             .setName(name == null ? null : name.toString())
6511             .build();
6512     deleteDisplayVideo360AdvertiserLinkProposal(request);
6513   }
6514 
6515   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6516   /**
6517    * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
6518    * cancelled proposals.
6519    *
6520    * <p>Sample code:
6521    *
6522    * <pre>{@code
6523    * // This snippet has been automatically generated and should be regarded as a code template only.
6524    * // It will require modifications to work:
6525    * // - It may require correct/in-range values for request initialization.
6526    * // - It may require specifying regional endpoints when creating the service client as shown in
6527    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6528    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6529    *     AnalyticsAdminServiceClient.create()) {
6530    *   String name =
6531    *       DisplayVideo360AdvertiserLinkProposalName.of(
6532    *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6533    *           .toString();
6534    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
6535    * }
6536    * }</pre>
6537    *
6538    * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example
6539    *     format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
6540    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6541    */
deleteDisplayVideo360AdvertiserLinkProposal(String name)6542   public final void deleteDisplayVideo360AdvertiserLinkProposal(String name) {
6543     DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
6544         DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build();
6545     deleteDisplayVideo360AdvertiserLinkProposal(request);
6546   }
6547 
6548   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6549   /**
6550    * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
6551    * cancelled proposals.
6552    *
6553    * <p>Sample code:
6554    *
6555    * <pre>{@code
6556    * // This snippet has been automatically generated and should be regarded as a code template only.
6557    * // It will require modifications to work:
6558    * // - It may require correct/in-range values for request initialization.
6559    * // - It may require specifying regional endpoints when creating the service client as shown in
6560    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6561    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6562    *     AnalyticsAdminServiceClient.create()) {
6563    *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
6564    *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6565    *           .setName(
6566    *               DisplayVideo360AdvertiserLinkProposalName.of(
6567    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6568    *                   .toString())
6569    *           .build();
6570    *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request);
6571    * }
6572    * }</pre>
6573    *
6574    * @param request The request object containing all of the parameters for the API call.
6575    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6576    */
deleteDisplayVideo360AdvertiserLinkProposal( DeleteDisplayVideo360AdvertiserLinkProposalRequest request)6577   public final void deleteDisplayVideo360AdvertiserLinkProposal(
6578       DeleteDisplayVideo360AdvertiserLinkProposalRequest request) {
6579     deleteDisplayVideo360AdvertiserLinkProposalCallable().call(request);
6580   }
6581 
6582   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6583   /**
6584    * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on
6585    * cancelled proposals.
6586    *
6587    * <p>Sample code:
6588    *
6589    * <pre>{@code
6590    * // This snippet has been automatically generated and should be regarded as a code template only.
6591    * // It will require modifications to work:
6592    * // - It may require correct/in-range values for request initialization.
6593    * // - It may require specifying regional endpoints when creating the service client as shown in
6594    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6595    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6596    *     AnalyticsAdminServiceClient.create()) {
6597    *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
6598    *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6599    *           .setName(
6600    *               DisplayVideo360AdvertiserLinkProposalName.of(
6601    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6602    *                   .toString())
6603    *           .build();
6604    *   ApiFuture<Empty> future =
6605    *       analyticsAdminServiceClient
6606    *           .deleteDisplayVideo360AdvertiserLinkProposalCallable()
6607    *           .futureCall(request);
6608    *   // Do something.
6609    *   future.get();
6610    * }
6611    * }</pre>
6612    */
6613   public final UnaryCallable<DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty>
deleteDisplayVideo360AdvertiserLinkProposalCallable()6614       deleteDisplayVideo360AdvertiserLinkProposalCallable() {
6615     return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable();
6616   }
6617 
6618   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6619   /**
6620    * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
6621    * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
6622    *
6623    * <p>Sample code:
6624    *
6625    * <pre>{@code
6626    * // This snippet has been automatically generated and should be regarded as a code template only.
6627    * // It will require modifications to work:
6628    * // - It may require correct/in-range values for request initialization.
6629    * // - It may require specifying regional endpoints when creating the service client as shown in
6630    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6631    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6632    *     AnalyticsAdminServiceClient.create()) {
6633    *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
6634    *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6635    *           .setName(
6636    *               DisplayVideo360AdvertiserLinkProposalName.of(
6637    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6638    *                   .toString())
6639    *           .build();
6640    *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
6641    *       analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(request);
6642    * }
6643    * }</pre>
6644    *
6645    * @param request The request object containing all of the parameters for the API call.
6646    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6647    */
6648   public final ApproveDisplayVideo360AdvertiserLinkProposalResponse
approveDisplayVideo360AdvertiserLinkProposal( ApproveDisplayVideo360AdvertiserLinkProposalRequest request)6649       approveDisplayVideo360AdvertiserLinkProposal(
6650           ApproveDisplayVideo360AdvertiserLinkProposalRequest request) {
6651     return approveDisplayVideo360AdvertiserLinkProposalCallable().call(request);
6652   }
6653 
6654   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6655   /**
6656    * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal
6657    * will be deleted and a new DisplayVideo360AdvertiserLink will be created.
6658    *
6659    * <p>Sample code:
6660    *
6661    * <pre>{@code
6662    * // This snippet has been automatically generated and should be regarded as a code template only.
6663    * // It will require modifications to work:
6664    * // - It may require correct/in-range values for request initialization.
6665    * // - It may require specifying regional endpoints when creating the service client as shown in
6666    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6667    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6668    *     AnalyticsAdminServiceClient.create()) {
6669    *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
6670    *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6671    *           .setName(
6672    *               DisplayVideo360AdvertiserLinkProposalName.of(
6673    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6674    *                   .toString())
6675    *           .build();
6676    *   ApiFuture<ApproveDisplayVideo360AdvertiserLinkProposalResponse> future =
6677    *       analyticsAdminServiceClient
6678    *           .approveDisplayVideo360AdvertiserLinkProposalCallable()
6679    *           .futureCall(request);
6680    *   // Do something.
6681    *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
6682    * }
6683    * }</pre>
6684    */
6685   public final UnaryCallable<
6686           ApproveDisplayVideo360AdvertiserLinkProposalRequest,
6687           ApproveDisplayVideo360AdvertiserLinkProposalResponse>
approveDisplayVideo360AdvertiserLinkProposalCallable()6688       approveDisplayVideo360AdvertiserLinkProposalCallable() {
6689     return stub.approveDisplayVideo360AdvertiserLinkProposalCallable();
6690   }
6691 
6692   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6693   /**
6694    * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a
6695    * proposal initiated from Display &amp; Video 360 - Withdrawing a proposal initiated from Google
6696    * Analytics After being cancelled, a proposal will eventually be deleted automatically.
6697    *
6698    * <p>Sample code:
6699    *
6700    * <pre>{@code
6701    * // This snippet has been automatically generated and should be regarded as a code template only.
6702    * // It will require modifications to work:
6703    * // - It may require correct/in-range values for request initialization.
6704    * // - It may require specifying regional endpoints when creating the service client as shown in
6705    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6706    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6707    *     AnalyticsAdminServiceClient.create()) {
6708    *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
6709    *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6710    *           .setName(
6711    *               DisplayVideo360AdvertiserLinkProposalName.of(
6712    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6713    *                   .toString())
6714    *           .build();
6715    *   DisplayVideo360AdvertiserLinkProposal response =
6716    *       analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(request);
6717    * }
6718    * }</pre>
6719    *
6720    * @param request The request object containing all of the parameters for the API call.
6721    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6722    */
cancelDisplayVideo360AdvertiserLinkProposal( CancelDisplayVideo360AdvertiserLinkProposalRequest request)6723   public final DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal(
6724       CancelDisplayVideo360AdvertiserLinkProposalRequest request) {
6725     return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request);
6726   }
6727 
6728   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6729   /**
6730    * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a
6731    * proposal initiated from Display &amp; Video 360 - Withdrawing a proposal initiated from Google
6732    * Analytics After being cancelled, a proposal will eventually be deleted automatically.
6733    *
6734    * <p>Sample code:
6735    *
6736    * <pre>{@code
6737    * // This snippet has been automatically generated and should be regarded as a code template only.
6738    * // It will require modifications to work:
6739    * // - It may require correct/in-range values for request initialization.
6740    * // - It may require specifying regional endpoints when creating the service client as shown in
6741    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6742    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6743    *     AnalyticsAdminServiceClient.create()) {
6744    *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
6745    *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
6746    *           .setName(
6747    *               DisplayVideo360AdvertiserLinkProposalName.of(
6748    *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
6749    *                   .toString())
6750    *           .build();
6751    *   ApiFuture<DisplayVideo360AdvertiserLinkProposal> future =
6752    *       analyticsAdminServiceClient
6753    *           .cancelDisplayVideo360AdvertiserLinkProposalCallable()
6754    *           .futureCall(request);
6755    *   // Do something.
6756    *   DisplayVideo360AdvertiserLinkProposal response = future.get();
6757    * }
6758    * }</pre>
6759    */
6760   public final UnaryCallable<
6761           CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal>
cancelDisplayVideo360AdvertiserLinkProposalCallable()6762       cancelDisplayVideo360AdvertiserLinkProposalCallable() {
6763     return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable();
6764   }
6765 
6766   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6767   /**
6768    * Creates a CustomDimension.
6769    *
6770    * <p>Sample code:
6771    *
6772    * <pre>{@code
6773    * // This snippet has been automatically generated and should be regarded as a code template only.
6774    * // It will require modifications to work:
6775    * // - It may require correct/in-range values for request initialization.
6776    * // - It may require specifying regional endpoints when creating the service client as shown in
6777    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6778    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6779    *     AnalyticsAdminServiceClient.create()) {
6780    *   PropertyName parent = PropertyName.of("[PROPERTY]");
6781    *   CustomDimension customDimension = CustomDimension.newBuilder().build();
6782    *   CustomDimension response =
6783    *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
6784    * }
6785    * }</pre>
6786    *
6787    * @param parent Required. Example format: properties/1234
6788    * @param customDimension Required. The CustomDimension to create.
6789    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6790    */
createCustomDimension( PropertyName parent, CustomDimension customDimension)6791   public final CustomDimension createCustomDimension(
6792       PropertyName parent, CustomDimension customDimension) {
6793     CreateCustomDimensionRequest request =
6794         CreateCustomDimensionRequest.newBuilder()
6795             .setParent(parent == null ? null : parent.toString())
6796             .setCustomDimension(customDimension)
6797             .build();
6798     return createCustomDimension(request);
6799   }
6800 
6801   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6802   /**
6803    * Creates a CustomDimension.
6804    *
6805    * <p>Sample code:
6806    *
6807    * <pre>{@code
6808    * // This snippet has been automatically generated and should be regarded as a code template only.
6809    * // It will require modifications to work:
6810    * // - It may require correct/in-range values for request initialization.
6811    * // - It may require specifying regional endpoints when creating the service client as shown in
6812    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6813    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6814    *     AnalyticsAdminServiceClient.create()) {
6815    *   String parent = PropertyName.of("[PROPERTY]").toString();
6816    *   CustomDimension customDimension = CustomDimension.newBuilder().build();
6817    *   CustomDimension response =
6818    *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
6819    * }
6820    * }</pre>
6821    *
6822    * @param parent Required. Example format: properties/1234
6823    * @param customDimension Required. The CustomDimension to create.
6824    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6825    */
createCustomDimension( String parent, CustomDimension customDimension)6826   public final CustomDimension createCustomDimension(
6827       String parent, CustomDimension customDimension) {
6828     CreateCustomDimensionRequest request =
6829         CreateCustomDimensionRequest.newBuilder()
6830             .setParent(parent)
6831             .setCustomDimension(customDimension)
6832             .build();
6833     return createCustomDimension(request);
6834   }
6835 
6836   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6837   /**
6838    * Creates a CustomDimension.
6839    *
6840    * <p>Sample code:
6841    *
6842    * <pre>{@code
6843    * // This snippet has been automatically generated and should be regarded as a code template only.
6844    * // It will require modifications to work:
6845    * // - It may require correct/in-range values for request initialization.
6846    * // - It may require specifying regional endpoints when creating the service client as shown in
6847    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6848    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6849    *     AnalyticsAdminServiceClient.create()) {
6850    *   CreateCustomDimensionRequest request =
6851    *       CreateCustomDimensionRequest.newBuilder()
6852    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6853    *           .setCustomDimension(CustomDimension.newBuilder().build())
6854    *           .build();
6855    *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
6856    * }
6857    * }</pre>
6858    *
6859    * @param request The request object containing all of the parameters for the API call.
6860    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6861    */
createCustomDimension(CreateCustomDimensionRequest request)6862   public final CustomDimension createCustomDimension(CreateCustomDimensionRequest request) {
6863     return createCustomDimensionCallable().call(request);
6864   }
6865 
6866   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6867   /**
6868    * Creates a CustomDimension.
6869    *
6870    * <p>Sample code:
6871    *
6872    * <pre>{@code
6873    * // This snippet has been automatically generated and should be regarded as a code template only.
6874    * // It will require modifications to work:
6875    * // - It may require correct/in-range values for request initialization.
6876    * // - It may require specifying regional endpoints when creating the service client as shown in
6877    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6878    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6879    *     AnalyticsAdminServiceClient.create()) {
6880    *   CreateCustomDimensionRequest request =
6881    *       CreateCustomDimensionRequest.newBuilder()
6882    *           .setParent(PropertyName.of("[PROPERTY]").toString())
6883    *           .setCustomDimension(CustomDimension.newBuilder().build())
6884    *           .build();
6885    *   ApiFuture<CustomDimension> future =
6886    *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
6887    *   // Do something.
6888    *   CustomDimension response = future.get();
6889    * }
6890    * }</pre>
6891    */
6892   public final UnaryCallable<CreateCustomDimensionRequest, CustomDimension>
createCustomDimensionCallable()6893       createCustomDimensionCallable() {
6894     return stub.createCustomDimensionCallable();
6895   }
6896 
6897   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6898   /**
6899    * Updates a CustomDimension on a property.
6900    *
6901    * <p>Sample code:
6902    *
6903    * <pre>{@code
6904    * // This snippet has been automatically generated and should be regarded as a code template only.
6905    * // It will require modifications to work:
6906    * // - It may require correct/in-range values for request initialization.
6907    * // - It may require specifying regional endpoints when creating the service client as shown in
6908    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6909    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6910    *     AnalyticsAdminServiceClient.create()) {
6911    *   CustomDimension customDimension = CustomDimension.newBuilder().build();
6912    *   FieldMask updateMask = FieldMask.newBuilder().build();
6913    *   CustomDimension response =
6914    *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
6915    * }
6916    * }</pre>
6917    *
6918    * @param customDimension The CustomDimension to update
6919    * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
6920    *     updated. To replace the entire entity, use one path with the string "&#42;" to match all
6921    *     fields.
6922    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6923    */
updateCustomDimension( CustomDimension customDimension, FieldMask updateMask)6924   public final CustomDimension updateCustomDimension(
6925       CustomDimension customDimension, FieldMask updateMask) {
6926     UpdateCustomDimensionRequest request =
6927         UpdateCustomDimensionRequest.newBuilder()
6928             .setCustomDimension(customDimension)
6929             .setUpdateMask(updateMask)
6930             .build();
6931     return updateCustomDimension(request);
6932   }
6933 
6934   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6935   /**
6936    * Updates a CustomDimension on a property.
6937    *
6938    * <p>Sample code:
6939    *
6940    * <pre>{@code
6941    * // This snippet has been automatically generated and should be regarded as a code template only.
6942    * // It will require modifications to work:
6943    * // - It may require correct/in-range values for request initialization.
6944    * // - It may require specifying regional endpoints when creating the service client as shown in
6945    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6946    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6947    *     AnalyticsAdminServiceClient.create()) {
6948    *   UpdateCustomDimensionRequest request =
6949    *       UpdateCustomDimensionRequest.newBuilder()
6950    *           .setCustomDimension(CustomDimension.newBuilder().build())
6951    *           .setUpdateMask(FieldMask.newBuilder().build())
6952    *           .build();
6953    *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
6954    * }
6955    * }</pre>
6956    *
6957    * @param request The request object containing all of the parameters for the API call.
6958    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
6959    */
updateCustomDimension(UpdateCustomDimensionRequest request)6960   public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) {
6961     return updateCustomDimensionCallable().call(request);
6962   }
6963 
6964   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6965   /**
6966    * Updates a CustomDimension on a property.
6967    *
6968    * <p>Sample code:
6969    *
6970    * <pre>{@code
6971    * // This snippet has been automatically generated and should be regarded as a code template only.
6972    * // It will require modifications to work:
6973    * // - It may require correct/in-range values for request initialization.
6974    * // - It may require specifying regional endpoints when creating the service client as shown in
6975    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
6976    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
6977    *     AnalyticsAdminServiceClient.create()) {
6978    *   UpdateCustomDimensionRequest request =
6979    *       UpdateCustomDimensionRequest.newBuilder()
6980    *           .setCustomDimension(CustomDimension.newBuilder().build())
6981    *           .setUpdateMask(FieldMask.newBuilder().build())
6982    *           .build();
6983    *   ApiFuture<CustomDimension> future =
6984    *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
6985    *   // Do something.
6986    *   CustomDimension response = future.get();
6987    * }
6988    * }</pre>
6989    */
6990   public final UnaryCallable<UpdateCustomDimensionRequest, CustomDimension>
updateCustomDimensionCallable()6991       updateCustomDimensionCallable() {
6992     return stub.updateCustomDimensionCallable();
6993   }
6994 
6995   // AUTO-GENERATED DOCUMENTATION AND METHOD.
6996   /**
6997    * Lists CustomDimensions on a property.
6998    *
6999    * <p>Sample code:
7000    *
7001    * <pre>{@code
7002    * // This snippet has been automatically generated and should be regarded as a code template only.
7003    * // It will require modifications to work:
7004    * // - It may require correct/in-range values for request initialization.
7005    * // - It may require specifying regional endpoints when creating the service client as shown in
7006    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7007    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7008    *     AnalyticsAdminServiceClient.create()) {
7009    *   PropertyName parent = PropertyName.of("[PROPERTY]");
7010    *   for (CustomDimension element :
7011    *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
7012    *     // doThingsWith(element);
7013    *   }
7014    * }
7015    * }</pre>
7016    *
7017    * @param parent Required. Example format: properties/1234
7018    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7019    */
listCustomDimensions(PropertyName parent)7020   public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) {
7021     ListCustomDimensionsRequest request =
7022         ListCustomDimensionsRequest.newBuilder()
7023             .setParent(parent == null ? null : parent.toString())
7024             .build();
7025     return listCustomDimensions(request);
7026   }
7027 
7028   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7029   /**
7030    * Lists CustomDimensions on a property.
7031    *
7032    * <p>Sample code:
7033    *
7034    * <pre>{@code
7035    * // This snippet has been automatically generated and should be regarded as a code template only.
7036    * // It will require modifications to work:
7037    * // - It may require correct/in-range values for request initialization.
7038    * // - It may require specifying regional endpoints when creating the service client as shown in
7039    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7040    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7041    *     AnalyticsAdminServiceClient.create()) {
7042    *   String parent = PropertyName.of("[PROPERTY]").toString();
7043    *   for (CustomDimension element :
7044    *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
7045    *     // doThingsWith(element);
7046    *   }
7047    * }
7048    * }</pre>
7049    *
7050    * @param parent Required. Example format: properties/1234
7051    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7052    */
listCustomDimensions(String parent)7053   public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) {
7054     ListCustomDimensionsRequest request =
7055         ListCustomDimensionsRequest.newBuilder().setParent(parent).build();
7056     return listCustomDimensions(request);
7057   }
7058 
7059   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7060   /**
7061    * Lists CustomDimensions on a property.
7062    *
7063    * <p>Sample code:
7064    *
7065    * <pre>{@code
7066    * // This snippet has been automatically generated and should be regarded as a code template only.
7067    * // It will require modifications to work:
7068    * // - It may require correct/in-range values for request initialization.
7069    * // - It may require specifying regional endpoints when creating the service client as shown in
7070    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7071    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7072    *     AnalyticsAdminServiceClient.create()) {
7073    *   ListCustomDimensionsRequest request =
7074    *       ListCustomDimensionsRequest.newBuilder()
7075    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7076    *           .setPageSize(883849137)
7077    *           .setPageToken("pageToken873572522")
7078    *           .build();
7079    *   for (CustomDimension element :
7080    *       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
7081    *     // doThingsWith(element);
7082    *   }
7083    * }
7084    * }</pre>
7085    *
7086    * @param request The request object containing all of the parameters for the API call.
7087    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7088    */
listCustomDimensions( ListCustomDimensionsRequest request)7089   public final ListCustomDimensionsPagedResponse listCustomDimensions(
7090       ListCustomDimensionsRequest request) {
7091     return listCustomDimensionsPagedCallable().call(request);
7092   }
7093 
7094   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7095   /**
7096    * Lists CustomDimensions on a property.
7097    *
7098    * <p>Sample code:
7099    *
7100    * <pre>{@code
7101    * // This snippet has been automatically generated and should be regarded as a code template only.
7102    * // It will require modifications to work:
7103    * // - It may require correct/in-range values for request initialization.
7104    * // - It may require specifying regional endpoints when creating the service client as shown in
7105    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7106    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7107    *     AnalyticsAdminServiceClient.create()) {
7108    *   ListCustomDimensionsRequest request =
7109    *       ListCustomDimensionsRequest.newBuilder()
7110    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7111    *           .setPageSize(883849137)
7112    *           .setPageToken("pageToken873572522")
7113    *           .build();
7114    *   ApiFuture<CustomDimension> future =
7115    *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
7116    *   // Do something.
7117    *   for (CustomDimension element : future.get().iterateAll()) {
7118    *     // doThingsWith(element);
7119    *   }
7120    * }
7121    * }</pre>
7122    */
7123   public final UnaryCallable<ListCustomDimensionsRequest, ListCustomDimensionsPagedResponse>
listCustomDimensionsPagedCallable()7124       listCustomDimensionsPagedCallable() {
7125     return stub.listCustomDimensionsPagedCallable();
7126   }
7127 
7128   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7129   /**
7130    * Lists CustomDimensions on a property.
7131    *
7132    * <p>Sample code:
7133    *
7134    * <pre>{@code
7135    * // This snippet has been automatically generated and should be regarded as a code template only.
7136    * // It will require modifications to work:
7137    * // - It may require correct/in-range values for request initialization.
7138    * // - It may require specifying regional endpoints when creating the service client as shown in
7139    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7140    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7141    *     AnalyticsAdminServiceClient.create()) {
7142    *   ListCustomDimensionsRequest request =
7143    *       ListCustomDimensionsRequest.newBuilder()
7144    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7145    *           .setPageSize(883849137)
7146    *           .setPageToken("pageToken873572522")
7147    *           .build();
7148    *   while (true) {
7149    *     ListCustomDimensionsResponse response =
7150    *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
7151    *     for (CustomDimension element : response.getCustomDimensionsList()) {
7152    *       // doThingsWith(element);
7153    *     }
7154    *     String nextPageToken = response.getNextPageToken();
7155    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
7156    *       request = request.toBuilder().setPageToken(nextPageToken).build();
7157    *     } else {
7158    *       break;
7159    *     }
7160    *   }
7161    * }
7162    * }</pre>
7163    */
7164   public final UnaryCallable<ListCustomDimensionsRequest, ListCustomDimensionsResponse>
listCustomDimensionsCallable()7165       listCustomDimensionsCallable() {
7166     return stub.listCustomDimensionsCallable();
7167   }
7168 
7169   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7170   /**
7171    * Archives a CustomDimension on a property.
7172    *
7173    * <p>Sample code:
7174    *
7175    * <pre>{@code
7176    * // This snippet has been automatically generated and should be regarded as a code template only.
7177    * // It will require modifications to work:
7178    * // - It may require correct/in-range values for request initialization.
7179    * // - It may require specifying regional endpoints when creating the service client as shown in
7180    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7181    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7182    *     AnalyticsAdminServiceClient.create()) {
7183    *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
7184    *   analyticsAdminServiceClient.archiveCustomDimension(name);
7185    * }
7186    * }</pre>
7187    *
7188    * @param name Required. The name of the CustomDimension to archive. Example format:
7189    *     properties/1234/customDimensions/5678
7190    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7191    */
archiveCustomDimension(CustomDimensionName name)7192   public final void archiveCustomDimension(CustomDimensionName name) {
7193     ArchiveCustomDimensionRequest request =
7194         ArchiveCustomDimensionRequest.newBuilder()
7195             .setName(name == null ? null : name.toString())
7196             .build();
7197     archiveCustomDimension(request);
7198   }
7199 
7200   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7201   /**
7202    * Archives a CustomDimension on a property.
7203    *
7204    * <p>Sample code:
7205    *
7206    * <pre>{@code
7207    * // This snippet has been automatically generated and should be regarded as a code template only.
7208    * // It will require modifications to work:
7209    * // - It may require correct/in-range values for request initialization.
7210    * // - It may require specifying regional endpoints when creating the service client as shown in
7211    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7212    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7213    *     AnalyticsAdminServiceClient.create()) {
7214    *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
7215    *   analyticsAdminServiceClient.archiveCustomDimension(name);
7216    * }
7217    * }</pre>
7218    *
7219    * @param name Required. The name of the CustomDimension to archive. Example format:
7220    *     properties/1234/customDimensions/5678
7221    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7222    */
archiveCustomDimension(String name)7223   public final void archiveCustomDimension(String name) {
7224     ArchiveCustomDimensionRequest request =
7225         ArchiveCustomDimensionRequest.newBuilder().setName(name).build();
7226     archiveCustomDimension(request);
7227   }
7228 
7229   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7230   /**
7231    * Archives a CustomDimension on a property.
7232    *
7233    * <p>Sample code:
7234    *
7235    * <pre>{@code
7236    * // This snippet has been automatically generated and should be regarded as a code template only.
7237    * // It will require modifications to work:
7238    * // - It may require correct/in-range values for request initialization.
7239    * // - It may require specifying regional endpoints when creating the service client as shown in
7240    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7241    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7242    *     AnalyticsAdminServiceClient.create()) {
7243    *   ArchiveCustomDimensionRequest request =
7244    *       ArchiveCustomDimensionRequest.newBuilder()
7245    *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
7246    *           .build();
7247    *   analyticsAdminServiceClient.archiveCustomDimension(request);
7248    * }
7249    * }</pre>
7250    *
7251    * @param request The request object containing all of the parameters for the API call.
7252    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7253    */
archiveCustomDimension(ArchiveCustomDimensionRequest request)7254   public final void archiveCustomDimension(ArchiveCustomDimensionRequest request) {
7255     archiveCustomDimensionCallable().call(request);
7256   }
7257 
7258   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7259   /**
7260    * Archives a CustomDimension on a property.
7261    *
7262    * <p>Sample code:
7263    *
7264    * <pre>{@code
7265    * // This snippet has been automatically generated and should be regarded as a code template only.
7266    * // It will require modifications to work:
7267    * // - It may require correct/in-range values for request initialization.
7268    * // - It may require specifying regional endpoints when creating the service client as shown in
7269    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7270    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7271    *     AnalyticsAdminServiceClient.create()) {
7272    *   ArchiveCustomDimensionRequest request =
7273    *       ArchiveCustomDimensionRequest.newBuilder()
7274    *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
7275    *           .build();
7276    *   ApiFuture<Empty> future =
7277    *       analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
7278    *   // Do something.
7279    *   future.get();
7280    * }
7281    * }</pre>
7282    */
7283   public final UnaryCallable<ArchiveCustomDimensionRequest, Empty>
archiveCustomDimensionCallable()7284       archiveCustomDimensionCallable() {
7285     return stub.archiveCustomDimensionCallable();
7286   }
7287 
7288   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7289   /**
7290    * Lookup for a single CustomDimension.
7291    *
7292    * <p>Sample code:
7293    *
7294    * <pre>{@code
7295    * // This snippet has been automatically generated and should be regarded as a code template only.
7296    * // It will require modifications to work:
7297    * // - It may require correct/in-range values for request initialization.
7298    * // - It may require specifying regional endpoints when creating the service client as shown in
7299    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7300    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7301    *     AnalyticsAdminServiceClient.create()) {
7302    *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]");
7303    *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
7304    * }
7305    * }</pre>
7306    *
7307    * @param name Required. The name of the CustomDimension to get. Example format:
7308    *     properties/1234/customDimensions/5678
7309    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7310    */
getCustomDimension(CustomDimensionName name)7311   public final CustomDimension getCustomDimension(CustomDimensionName name) {
7312     GetCustomDimensionRequest request =
7313         GetCustomDimensionRequest.newBuilder()
7314             .setName(name == null ? null : name.toString())
7315             .build();
7316     return getCustomDimension(request);
7317   }
7318 
7319   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7320   /**
7321    * Lookup for a single CustomDimension.
7322    *
7323    * <p>Sample code:
7324    *
7325    * <pre>{@code
7326    * // This snippet has been automatically generated and should be regarded as a code template only.
7327    * // It will require modifications to work:
7328    * // - It may require correct/in-range values for request initialization.
7329    * // - It may require specifying regional endpoints when creating the service client as shown in
7330    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7331    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7332    *     AnalyticsAdminServiceClient.create()) {
7333    *   String name = CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString();
7334    *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(name);
7335    * }
7336    * }</pre>
7337    *
7338    * @param name Required. The name of the CustomDimension to get. Example format:
7339    *     properties/1234/customDimensions/5678
7340    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7341    */
getCustomDimension(String name)7342   public final CustomDimension getCustomDimension(String name) {
7343     GetCustomDimensionRequest request =
7344         GetCustomDimensionRequest.newBuilder().setName(name).build();
7345     return getCustomDimension(request);
7346   }
7347 
7348   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7349   /**
7350    * Lookup for a single CustomDimension.
7351    *
7352    * <p>Sample code:
7353    *
7354    * <pre>{@code
7355    * // This snippet has been automatically generated and should be regarded as a code template only.
7356    * // It will require modifications to work:
7357    * // - It may require correct/in-range values for request initialization.
7358    * // - It may require specifying regional endpoints when creating the service client as shown in
7359    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7360    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7361    *     AnalyticsAdminServiceClient.create()) {
7362    *   GetCustomDimensionRequest request =
7363    *       GetCustomDimensionRequest.newBuilder()
7364    *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
7365    *           .build();
7366    *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(request);
7367    * }
7368    * }</pre>
7369    *
7370    * @param request The request object containing all of the parameters for the API call.
7371    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7372    */
getCustomDimension(GetCustomDimensionRequest request)7373   public final CustomDimension getCustomDimension(GetCustomDimensionRequest request) {
7374     return getCustomDimensionCallable().call(request);
7375   }
7376 
7377   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7378   /**
7379    * Lookup for a single CustomDimension.
7380    *
7381    * <p>Sample code:
7382    *
7383    * <pre>{@code
7384    * // This snippet has been automatically generated and should be regarded as a code template only.
7385    * // It will require modifications to work:
7386    * // - It may require correct/in-range values for request initialization.
7387    * // - It may require specifying regional endpoints when creating the service client as shown in
7388    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7389    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7390    *     AnalyticsAdminServiceClient.create()) {
7391    *   GetCustomDimensionRequest request =
7392    *       GetCustomDimensionRequest.newBuilder()
7393    *           .setName(CustomDimensionName.of("[PROPERTY]", "[CUSTOM_DIMENSION]").toString())
7394    *           .build();
7395    *   ApiFuture<CustomDimension> future =
7396    *       analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
7397    *   // Do something.
7398    *   CustomDimension response = future.get();
7399    * }
7400    * }</pre>
7401    */
7402   public final UnaryCallable<GetCustomDimensionRequest, CustomDimension>
getCustomDimensionCallable()7403       getCustomDimensionCallable() {
7404     return stub.getCustomDimensionCallable();
7405   }
7406 
7407   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7408   /**
7409    * Creates a CustomMetric.
7410    *
7411    * <p>Sample code:
7412    *
7413    * <pre>{@code
7414    * // This snippet has been automatically generated and should be regarded as a code template only.
7415    * // It will require modifications to work:
7416    * // - It may require correct/in-range values for request initialization.
7417    * // - It may require specifying regional endpoints when creating the service client as shown in
7418    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7419    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7420    *     AnalyticsAdminServiceClient.create()) {
7421    *   PropertyName parent = PropertyName.of("[PROPERTY]");
7422    *   CustomMetric customMetric = CustomMetric.newBuilder().build();
7423    *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
7424    * }
7425    * }</pre>
7426    *
7427    * @param parent Required. Example format: properties/1234
7428    * @param customMetric Required. The CustomMetric to create.
7429    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7430    */
createCustomMetric(PropertyName parent, CustomMetric customMetric)7431   public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric customMetric) {
7432     CreateCustomMetricRequest request =
7433         CreateCustomMetricRequest.newBuilder()
7434             .setParent(parent == null ? null : parent.toString())
7435             .setCustomMetric(customMetric)
7436             .build();
7437     return createCustomMetric(request);
7438   }
7439 
7440   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7441   /**
7442    * Creates a CustomMetric.
7443    *
7444    * <p>Sample code:
7445    *
7446    * <pre>{@code
7447    * // This snippet has been automatically generated and should be regarded as a code template only.
7448    * // It will require modifications to work:
7449    * // - It may require correct/in-range values for request initialization.
7450    * // - It may require specifying regional endpoints when creating the service client as shown in
7451    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7452    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7453    *     AnalyticsAdminServiceClient.create()) {
7454    *   String parent = PropertyName.of("[PROPERTY]").toString();
7455    *   CustomMetric customMetric = CustomMetric.newBuilder().build();
7456    *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
7457    * }
7458    * }</pre>
7459    *
7460    * @param parent Required. Example format: properties/1234
7461    * @param customMetric Required. The CustomMetric to create.
7462    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7463    */
createCustomMetric(String parent, CustomMetric customMetric)7464   public final CustomMetric createCustomMetric(String parent, CustomMetric customMetric) {
7465     CreateCustomMetricRequest request =
7466         CreateCustomMetricRequest.newBuilder()
7467             .setParent(parent)
7468             .setCustomMetric(customMetric)
7469             .build();
7470     return createCustomMetric(request);
7471   }
7472 
7473   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7474   /**
7475    * Creates a CustomMetric.
7476    *
7477    * <p>Sample code:
7478    *
7479    * <pre>{@code
7480    * // This snippet has been automatically generated and should be regarded as a code template only.
7481    * // It will require modifications to work:
7482    * // - It may require correct/in-range values for request initialization.
7483    * // - It may require specifying regional endpoints when creating the service client as shown in
7484    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7485    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7486    *     AnalyticsAdminServiceClient.create()) {
7487    *   CreateCustomMetricRequest request =
7488    *       CreateCustomMetricRequest.newBuilder()
7489    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7490    *           .setCustomMetric(CustomMetric.newBuilder().build())
7491    *           .build();
7492    *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
7493    * }
7494    * }</pre>
7495    *
7496    * @param request The request object containing all of the parameters for the API call.
7497    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7498    */
createCustomMetric(CreateCustomMetricRequest request)7499   public final CustomMetric createCustomMetric(CreateCustomMetricRequest request) {
7500     return createCustomMetricCallable().call(request);
7501   }
7502 
7503   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7504   /**
7505    * Creates a CustomMetric.
7506    *
7507    * <p>Sample code:
7508    *
7509    * <pre>{@code
7510    * // This snippet has been automatically generated and should be regarded as a code template only.
7511    * // It will require modifications to work:
7512    * // - It may require correct/in-range values for request initialization.
7513    * // - It may require specifying regional endpoints when creating the service client as shown in
7514    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7515    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7516    *     AnalyticsAdminServiceClient.create()) {
7517    *   CreateCustomMetricRequest request =
7518    *       CreateCustomMetricRequest.newBuilder()
7519    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7520    *           .setCustomMetric(CustomMetric.newBuilder().build())
7521    *           .build();
7522    *   ApiFuture<CustomMetric> future =
7523    *       analyticsAdminServiceClient.createCustomMetricCallable().futureCall(request);
7524    *   // Do something.
7525    *   CustomMetric response = future.get();
7526    * }
7527    * }</pre>
7528    */
createCustomMetricCallable()7529   public final UnaryCallable<CreateCustomMetricRequest, CustomMetric> createCustomMetricCallable() {
7530     return stub.createCustomMetricCallable();
7531   }
7532 
7533   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7534   /**
7535    * Updates a CustomMetric on a property.
7536    *
7537    * <p>Sample code:
7538    *
7539    * <pre>{@code
7540    * // This snippet has been automatically generated and should be regarded as a code template only.
7541    * // It will require modifications to work:
7542    * // - It may require correct/in-range values for request initialization.
7543    * // - It may require specifying regional endpoints when creating the service client as shown in
7544    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7545    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7546    *     AnalyticsAdminServiceClient.create()) {
7547    *   CustomMetric customMetric = CustomMetric.newBuilder().build();
7548    *   FieldMask updateMask = FieldMask.newBuilder().build();
7549    *   CustomMetric response =
7550    *       analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
7551    * }
7552    * }</pre>
7553    *
7554    * @param customMetric The CustomMetric to update
7555    * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
7556    *     updated. To replace the entire entity, use one path with the string "&#42;" to match all
7557    *     fields.
7558    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7559    */
updateCustomMetric(CustomMetric customMetric, FieldMask updateMask)7560   public final CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) {
7561     UpdateCustomMetricRequest request =
7562         UpdateCustomMetricRequest.newBuilder()
7563             .setCustomMetric(customMetric)
7564             .setUpdateMask(updateMask)
7565             .build();
7566     return updateCustomMetric(request);
7567   }
7568 
7569   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7570   /**
7571    * Updates a CustomMetric on a property.
7572    *
7573    * <p>Sample code:
7574    *
7575    * <pre>{@code
7576    * // This snippet has been automatically generated and should be regarded as a code template only.
7577    * // It will require modifications to work:
7578    * // - It may require correct/in-range values for request initialization.
7579    * // - It may require specifying regional endpoints when creating the service client as shown in
7580    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7581    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7582    *     AnalyticsAdminServiceClient.create()) {
7583    *   UpdateCustomMetricRequest request =
7584    *       UpdateCustomMetricRequest.newBuilder()
7585    *           .setCustomMetric(CustomMetric.newBuilder().build())
7586    *           .setUpdateMask(FieldMask.newBuilder().build())
7587    *           .build();
7588    *   CustomMetric response = analyticsAdminServiceClient.updateCustomMetric(request);
7589    * }
7590    * }</pre>
7591    *
7592    * @param request The request object containing all of the parameters for the API call.
7593    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7594    */
updateCustomMetric(UpdateCustomMetricRequest request)7595   public final CustomMetric updateCustomMetric(UpdateCustomMetricRequest request) {
7596     return updateCustomMetricCallable().call(request);
7597   }
7598 
7599   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7600   /**
7601    * Updates a CustomMetric on a property.
7602    *
7603    * <p>Sample code:
7604    *
7605    * <pre>{@code
7606    * // This snippet has been automatically generated and should be regarded as a code template only.
7607    * // It will require modifications to work:
7608    * // - It may require correct/in-range values for request initialization.
7609    * // - It may require specifying regional endpoints when creating the service client as shown in
7610    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7611    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7612    *     AnalyticsAdminServiceClient.create()) {
7613    *   UpdateCustomMetricRequest request =
7614    *       UpdateCustomMetricRequest.newBuilder()
7615    *           .setCustomMetric(CustomMetric.newBuilder().build())
7616    *           .setUpdateMask(FieldMask.newBuilder().build())
7617    *           .build();
7618    *   ApiFuture<CustomMetric> future =
7619    *       analyticsAdminServiceClient.updateCustomMetricCallable().futureCall(request);
7620    *   // Do something.
7621    *   CustomMetric response = future.get();
7622    * }
7623    * }</pre>
7624    */
updateCustomMetricCallable()7625   public final UnaryCallable<UpdateCustomMetricRequest, CustomMetric> updateCustomMetricCallable() {
7626     return stub.updateCustomMetricCallable();
7627   }
7628 
7629   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7630   /**
7631    * Lists CustomMetrics on a property.
7632    *
7633    * <p>Sample code:
7634    *
7635    * <pre>{@code
7636    * // This snippet has been automatically generated and should be regarded as a code template only.
7637    * // It will require modifications to work:
7638    * // - It may require correct/in-range values for request initialization.
7639    * // - It may require specifying regional endpoints when creating the service client as shown in
7640    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7641    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7642    *     AnalyticsAdminServiceClient.create()) {
7643    *   PropertyName parent = PropertyName.of("[PROPERTY]");
7644    *   for (CustomMetric element :
7645    *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
7646    *     // doThingsWith(element);
7647    *   }
7648    * }
7649    * }</pre>
7650    *
7651    * @param parent Required. Example format: properties/1234
7652    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7653    */
listCustomMetrics(PropertyName parent)7654   public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) {
7655     ListCustomMetricsRequest request =
7656         ListCustomMetricsRequest.newBuilder()
7657             .setParent(parent == null ? null : parent.toString())
7658             .build();
7659     return listCustomMetrics(request);
7660   }
7661 
7662   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7663   /**
7664    * Lists CustomMetrics on a property.
7665    *
7666    * <p>Sample code:
7667    *
7668    * <pre>{@code
7669    * // This snippet has been automatically generated and should be regarded as a code template only.
7670    * // It will require modifications to work:
7671    * // - It may require correct/in-range values for request initialization.
7672    * // - It may require specifying regional endpoints when creating the service client as shown in
7673    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7674    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7675    *     AnalyticsAdminServiceClient.create()) {
7676    *   String parent = PropertyName.of("[PROPERTY]").toString();
7677    *   for (CustomMetric element :
7678    *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
7679    *     // doThingsWith(element);
7680    *   }
7681    * }
7682    * }</pre>
7683    *
7684    * @param parent Required. Example format: properties/1234
7685    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7686    */
listCustomMetrics(String parent)7687   public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) {
7688     ListCustomMetricsRequest request =
7689         ListCustomMetricsRequest.newBuilder().setParent(parent).build();
7690     return listCustomMetrics(request);
7691   }
7692 
7693   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7694   /**
7695    * Lists CustomMetrics on a property.
7696    *
7697    * <p>Sample code:
7698    *
7699    * <pre>{@code
7700    * // This snippet has been automatically generated and should be regarded as a code template only.
7701    * // It will require modifications to work:
7702    * // - It may require correct/in-range values for request initialization.
7703    * // - It may require specifying regional endpoints when creating the service client as shown in
7704    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7705    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7706    *     AnalyticsAdminServiceClient.create()) {
7707    *   ListCustomMetricsRequest request =
7708    *       ListCustomMetricsRequest.newBuilder()
7709    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7710    *           .setPageSize(883849137)
7711    *           .setPageToken("pageToken873572522")
7712    *           .build();
7713    *   for (CustomMetric element :
7714    *       analyticsAdminServiceClient.listCustomMetrics(request).iterateAll()) {
7715    *     // doThingsWith(element);
7716    *   }
7717    * }
7718    * }</pre>
7719    *
7720    * @param request The request object containing all of the parameters for the API call.
7721    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7722    */
listCustomMetrics(ListCustomMetricsRequest request)7723   public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) {
7724     return listCustomMetricsPagedCallable().call(request);
7725   }
7726 
7727   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7728   /**
7729    * Lists CustomMetrics on a property.
7730    *
7731    * <p>Sample code:
7732    *
7733    * <pre>{@code
7734    * // This snippet has been automatically generated and should be regarded as a code template only.
7735    * // It will require modifications to work:
7736    * // - It may require correct/in-range values for request initialization.
7737    * // - It may require specifying regional endpoints when creating the service client as shown in
7738    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7739    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7740    *     AnalyticsAdminServiceClient.create()) {
7741    *   ListCustomMetricsRequest request =
7742    *       ListCustomMetricsRequest.newBuilder()
7743    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7744    *           .setPageSize(883849137)
7745    *           .setPageToken("pageToken873572522")
7746    *           .build();
7747    *   ApiFuture<CustomMetric> future =
7748    *       analyticsAdminServiceClient.listCustomMetricsPagedCallable().futureCall(request);
7749    *   // Do something.
7750    *   for (CustomMetric element : future.get().iterateAll()) {
7751    *     // doThingsWith(element);
7752    *   }
7753    * }
7754    * }</pre>
7755    */
7756   public final UnaryCallable<ListCustomMetricsRequest, ListCustomMetricsPagedResponse>
listCustomMetricsPagedCallable()7757       listCustomMetricsPagedCallable() {
7758     return stub.listCustomMetricsPagedCallable();
7759   }
7760 
7761   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7762   /**
7763    * Lists CustomMetrics on a property.
7764    *
7765    * <p>Sample code:
7766    *
7767    * <pre>{@code
7768    * // This snippet has been automatically generated and should be regarded as a code template only.
7769    * // It will require modifications to work:
7770    * // - It may require correct/in-range values for request initialization.
7771    * // - It may require specifying regional endpoints when creating the service client as shown in
7772    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7773    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7774    *     AnalyticsAdminServiceClient.create()) {
7775    *   ListCustomMetricsRequest request =
7776    *       ListCustomMetricsRequest.newBuilder()
7777    *           .setParent(PropertyName.of("[PROPERTY]").toString())
7778    *           .setPageSize(883849137)
7779    *           .setPageToken("pageToken873572522")
7780    *           .build();
7781    *   while (true) {
7782    *     ListCustomMetricsResponse response =
7783    *         analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
7784    *     for (CustomMetric element : response.getCustomMetricsList()) {
7785    *       // doThingsWith(element);
7786    *     }
7787    *     String nextPageToken = response.getNextPageToken();
7788    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
7789    *       request = request.toBuilder().setPageToken(nextPageToken).build();
7790    *     } else {
7791    *       break;
7792    *     }
7793    *   }
7794    * }
7795    * }</pre>
7796    */
7797   public final UnaryCallable<ListCustomMetricsRequest, ListCustomMetricsResponse>
listCustomMetricsCallable()7798       listCustomMetricsCallable() {
7799     return stub.listCustomMetricsCallable();
7800   }
7801 
7802   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7803   /**
7804    * Archives a CustomMetric on a property.
7805    *
7806    * <p>Sample code:
7807    *
7808    * <pre>{@code
7809    * // This snippet has been automatically generated and should be regarded as a code template only.
7810    * // It will require modifications to work:
7811    * // - It may require correct/in-range values for request initialization.
7812    * // - It may require specifying regional endpoints when creating the service client as shown in
7813    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7814    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7815    *     AnalyticsAdminServiceClient.create()) {
7816    *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
7817    *   analyticsAdminServiceClient.archiveCustomMetric(name);
7818    * }
7819    * }</pre>
7820    *
7821    * @param name Required. The name of the CustomMetric to archive. Example format:
7822    *     properties/1234/customMetrics/5678
7823    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7824    */
archiveCustomMetric(CustomMetricName name)7825   public final void archiveCustomMetric(CustomMetricName name) {
7826     ArchiveCustomMetricRequest request =
7827         ArchiveCustomMetricRequest.newBuilder()
7828             .setName(name == null ? null : name.toString())
7829             .build();
7830     archiveCustomMetric(request);
7831   }
7832 
7833   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7834   /**
7835    * Archives a CustomMetric on a property.
7836    *
7837    * <p>Sample code:
7838    *
7839    * <pre>{@code
7840    * // This snippet has been automatically generated and should be regarded as a code template only.
7841    * // It will require modifications to work:
7842    * // - It may require correct/in-range values for request initialization.
7843    * // - It may require specifying regional endpoints when creating the service client as shown in
7844    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7845    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7846    *     AnalyticsAdminServiceClient.create()) {
7847    *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
7848    *   analyticsAdminServiceClient.archiveCustomMetric(name);
7849    * }
7850    * }</pre>
7851    *
7852    * @param name Required. The name of the CustomMetric to archive. Example format:
7853    *     properties/1234/customMetrics/5678
7854    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7855    */
archiveCustomMetric(String name)7856   public final void archiveCustomMetric(String name) {
7857     ArchiveCustomMetricRequest request =
7858         ArchiveCustomMetricRequest.newBuilder().setName(name).build();
7859     archiveCustomMetric(request);
7860   }
7861 
7862   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7863   /**
7864    * Archives a CustomMetric on a property.
7865    *
7866    * <p>Sample code:
7867    *
7868    * <pre>{@code
7869    * // This snippet has been automatically generated and should be regarded as a code template only.
7870    * // It will require modifications to work:
7871    * // - It may require correct/in-range values for request initialization.
7872    * // - It may require specifying regional endpoints when creating the service client as shown in
7873    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7874    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7875    *     AnalyticsAdminServiceClient.create()) {
7876    *   ArchiveCustomMetricRequest request =
7877    *       ArchiveCustomMetricRequest.newBuilder()
7878    *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
7879    *           .build();
7880    *   analyticsAdminServiceClient.archiveCustomMetric(request);
7881    * }
7882    * }</pre>
7883    *
7884    * @param request The request object containing all of the parameters for the API call.
7885    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7886    */
archiveCustomMetric(ArchiveCustomMetricRequest request)7887   public final void archiveCustomMetric(ArchiveCustomMetricRequest request) {
7888     archiveCustomMetricCallable().call(request);
7889   }
7890 
7891   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7892   /**
7893    * Archives a CustomMetric on a property.
7894    *
7895    * <p>Sample code:
7896    *
7897    * <pre>{@code
7898    * // This snippet has been automatically generated and should be regarded as a code template only.
7899    * // It will require modifications to work:
7900    * // - It may require correct/in-range values for request initialization.
7901    * // - It may require specifying regional endpoints when creating the service client as shown in
7902    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7903    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7904    *     AnalyticsAdminServiceClient.create()) {
7905    *   ArchiveCustomMetricRequest request =
7906    *       ArchiveCustomMetricRequest.newBuilder()
7907    *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
7908    *           .build();
7909    *   ApiFuture<Empty> future =
7910    *       analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
7911    *   // Do something.
7912    *   future.get();
7913    * }
7914    * }</pre>
7915    */
archiveCustomMetricCallable()7916   public final UnaryCallable<ArchiveCustomMetricRequest, Empty> archiveCustomMetricCallable() {
7917     return stub.archiveCustomMetricCallable();
7918   }
7919 
7920   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7921   /**
7922    * Lookup for a single CustomMetric.
7923    *
7924    * <p>Sample code:
7925    *
7926    * <pre>{@code
7927    * // This snippet has been automatically generated and should be regarded as a code template only.
7928    * // It will require modifications to work:
7929    * // - It may require correct/in-range values for request initialization.
7930    * // - It may require specifying regional endpoints when creating the service client as shown in
7931    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7932    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7933    *     AnalyticsAdminServiceClient.create()) {
7934    *   CustomMetricName name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]");
7935    *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
7936    * }
7937    * }</pre>
7938    *
7939    * @param name Required. The name of the CustomMetric to get. Example format:
7940    *     properties/1234/customMetrics/5678
7941    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7942    */
getCustomMetric(CustomMetricName name)7943   public final CustomMetric getCustomMetric(CustomMetricName name) {
7944     GetCustomMetricRequest request =
7945         GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build();
7946     return getCustomMetric(request);
7947   }
7948 
7949   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7950   /**
7951    * Lookup for a single CustomMetric.
7952    *
7953    * <p>Sample code:
7954    *
7955    * <pre>{@code
7956    * // This snippet has been automatically generated and should be regarded as a code template only.
7957    * // It will require modifications to work:
7958    * // - It may require correct/in-range values for request initialization.
7959    * // - It may require specifying regional endpoints when creating the service client as shown in
7960    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7961    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7962    *     AnalyticsAdminServiceClient.create()) {
7963    *   String name = CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString();
7964    *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
7965    * }
7966    * }</pre>
7967    *
7968    * @param name Required. The name of the CustomMetric to get. Example format:
7969    *     properties/1234/customMetrics/5678
7970    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
7971    */
getCustomMetric(String name)7972   public final CustomMetric getCustomMetric(String name) {
7973     GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build();
7974     return getCustomMetric(request);
7975   }
7976 
7977   // AUTO-GENERATED DOCUMENTATION AND METHOD.
7978   /**
7979    * Lookup for a single CustomMetric.
7980    *
7981    * <p>Sample code:
7982    *
7983    * <pre>{@code
7984    * // This snippet has been automatically generated and should be regarded as a code template only.
7985    * // It will require modifications to work:
7986    * // - It may require correct/in-range values for request initialization.
7987    * // - It may require specifying regional endpoints when creating the service client as shown in
7988    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
7989    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
7990    *     AnalyticsAdminServiceClient.create()) {
7991    *   GetCustomMetricRequest request =
7992    *       GetCustomMetricRequest.newBuilder()
7993    *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
7994    *           .build();
7995    *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(request);
7996    * }
7997    * }</pre>
7998    *
7999    * @param request The request object containing all of the parameters for the API call.
8000    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8001    */
getCustomMetric(GetCustomMetricRequest request)8002   public final CustomMetric getCustomMetric(GetCustomMetricRequest request) {
8003     return getCustomMetricCallable().call(request);
8004   }
8005 
8006   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8007   /**
8008    * Lookup for a single CustomMetric.
8009    *
8010    * <p>Sample code:
8011    *
8012    * <pre>{@code
8013    * // This snippet has been automatically generated and should be regarded as a code template only.
8014    * // It will require modifications to work:
8015    * // - It may require correct/in-range values for request initialization.
8016    * // - It may require specifying regional endpoints when creating the service client as shown in
8017    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8018    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8019    *     AnalyticsAdminServiceClient.create()) {
8020    *   GetCustomMetricRequest request =
8021    *       GetCustomMetricRequest.newBuilder()
8022    *           .setName(CustomMetricName.of("[PROPERTY]", "[CUSTOM_METRIC]").toString())
8023    *           .build();
8024    *   ApiFuture<CustomMetric> future =
8025    *       analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
8026    *   // Do something.
8027    *   CustomMetric response = future.get();
8028    * }
8029    * }</pre>
8030    */
getCustomMetricCallable()8031   public final UnaryCallable<GetCustomMetricRequest, CustomMetric> getCustomMetricCallable() {
8032     return stub.getCustomMetricCallable();
8033   }
8034 
8035   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8036   /**
8037    * Returns the singleton data retention settings for this property.
8038    *
8039    * <p>Sample code:
8040    *
8041    * <pre>{@code
8042    * // This snippet has been automatically generated and should be regarded as a code template only.
8043    * // It will require modifications to work:
8044    * // - It may require correct/in-range values for request initialization.
8045    * // - It may require specifying regional endpoints when creating the service client as shown in
8046    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8047    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8048    *     AnalyticsAdminServiceClient.create()) {
8049    *   DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
8050    *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
8051    * }
8052    * }</pre>
8053    *
8054    * @param name Required. The name of the settings to lookup. Format:
8055    *     properties/{property}/dataRetentionSettings Example:
8056    *     "properties/1000/dataRetentionSettings"
8057    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8058    */
getDataRetentionSettings(DataRetentionSettingsName name)8059   public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) {
8060     GetDataRetentionSettingsRequest request =
8061         GetDataRetentionSettingsRequest.newBuilder()
8062             .setName(name == null ? null : name.toString())
8063             .build();
8064     return getDataRetentionSettings(request);
8065   }
8066 
8067   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8068   /**
8069    * Returns the singleton data retention settings for this property.
8070    *
8071    * <p>Sample code:
8072    *
8073    * <pre>{@code
8074    * // This snippet has been automatically generated and should be regarded as a code template only.
8075    * // It will require modifications to work:
8076    * // - It may require correct/in-range values for request initialization.
8077    * // - It may require specifying regional endpoints when creating the service client as shown in
8078    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8079    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8080    *     AnalyticsAdminServiceClient.create()) {
8081    *   String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
8082    *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
8083    * }
8084    * }</pre>
8085    *
8086    * @param name Required. The name of the settings to lookup. Format:
8087    *     properties/{property}/dataRetentionSettings Example:
8088    *     "properties/1000/dataRetentionSettings"
8089    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8090    */
getDataRetentionSettings(String name)8091   public final DataRetentionSettings getDataRetentionSettings(String name) {
8092     GetDataRetentionSettingsRequest request =
8093         GetDataRetentionSettingsRequest.newBuilder().setName(name).build();
8094     return getDataRetentionSettings(request);
8095   }
8096 
8097   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8098   /**
8099    * Returns the singleton data retention settings for this property.
8100    *
8101    * <p>Sample code:
8102    *
8103    * <pre>{@code
8104    * // This snippet has been automatically generated and should be regarded as a code template only.
8105    * // It will require modifications to work:
8106    * // - It may require correct/in-range values for request initialization.
8107    * // - It may require specifying regional endpoints when creating the service client as shown in
8108    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8109    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8110    *     AnalyticsAdminServiceClient.create()) {
8111    *   GetDataRetentionSettingsRequest request =
8112    *       GetDataRetentionSettingsRequest.newBuilder()
8113    *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
8114    *           .build();
8115    *   DataRetentionSettings response =
8116    *       analyticsAdminServiceClient.getDataRetentionSettings(request);
8117    * }
8118    * }</pre>
8119    *
8120    * @param request The request object containing all of the parameters for the API call.
8121    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8122    */
getDataRetentionSettings( GetDataRetentionSettingsRequest request)8123   public final DataRetentionSettings getDataRetentionSettings(
8124       GetDataRetentionSettingsRequest request) {
8125     return getDataRetentionSettingsCallable().call(request);
8126   }
8127 
8128   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8129   /**
8130    * Returns the singleton data retention settings for this property.
8131    *
8132    * <p>Sample code:
8133    *
8134    * <pre>{@code
8135    * // This snippet has been automatically generated and should be regarded as a code template only.
8136    * // It will require modifications to work:
8137    * // - It may require correct/in-range values for request initialization.
8138    * // - It may require specifying regional endpoints when creating the service client as shown in
8139    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8140    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8141    *     AnalyticsAdminServiceClient.create()) {
8142    *   GetDataRetentionSettingsRequest request =
8143    *       GetDataRetentionSettingsRequest.newBuilder()
8144    *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
8145    *           .build();
8146    *   ApiFuture<DataRetentionSettings> future =
8147    *       analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
8148    *   // Do something.
8149    *   DataRetentionSettings response = future.get();
8150    * }
8151    * }</pre>
8152    */
8153   public final UnaryCallable<GetDataRetentionSettingsRequest, DataRetentionSettings>
getDataRetentionSettingsCallable()8154       getDataRetentionSettingsCallable() {
8155     return stub.getDataRetentionSettingsCallable();
8156   }
8157 
8158   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8159   /**
8160    * Updates the singleton data retention settings for this property.
8161    *
8162    * <p>Sample code:
8163    *
8164    * <pre>{@code
8165    * // This snippet has been automatically generated and should be regarded as a code template only.
8166    * // It will require modifications to work:
8167    * // - It may require correct/in-range values for request initialization.
8168    * // - It may require specifying regional endpoints when creating the service client as shown in
8169    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8170    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8171    *     AnalyticsAdminServiceClient.create()) {
8172    *   DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
8173    *   FieldMask updateMask = FieldMask.newBuilder().build();
8174    *   DataRetentionSettings response =
8175    *       analyticsAdminServiceClient.updateDataRetentionSettings(
8176    *           dataRetentionSettings, updateMask);
8177    * }
8178    * }</pre>
8179    *
8180    * @param dataRetentionSettings Required. The settings to update. The `name` field is used to
8181    *     identify the settings to be updated.
8182    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
8183    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
8184    *     entity, use one path with the string "&#42;" to match all fields.
8185    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8186    */
updateDataRetentionSettings( DataRetentionSettings dataRetentionSettings, FieldMask updateMask)8187   public final DataRetentionSettings updateDataRetentionSettings(
8188       DataRetentionSettings dataRetentionSettings, FieldMask updateMask) {
8189     UpdateDataRetentionSettingsRequest request =
8190         UpdateDataRetentionSettingsRequest.newBuilder()
8191             .setDataRetentionSettings(dataRetentionSettings)
8192             .setUpdateMask(updateMask)
8193             .build();
8194     return updateDataRetentionSettings(request);
8195   }
8196 
8197   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8198   /**
8199    * Updates the singleton data retention settings for this property.
8200    *
8201    * <p>Sample code:
8202    *
8203    * <pre>{@code
8204    * // This snippet has been automatically generated and should be regarded as a code template only.
8205    * // It will require modifications to work:
8206    * // - It may require correct/in-range values for request initialization.
8207    * // - It may require specifying regional endpoints when creating the service client as shown in
8208    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8209    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8210    *     AnalyticsAdminServiceClient.create()) {
8211    *   UpdateDataRetentionSettingsRequest request =
8212    *       UpdateDataRetentionSettingsRequest.newBuilder()
8213    *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
8214    *           .setUpdateMask(FieldMask.newBuilder().build())
8215    *           .build();
8216    *   DataRetentionSettings response =
8217    *       analyticsAdminServiceClient.updateDataRetentionSettings(request);
8218    * }
8219    * }</pre>
8220    *
8221    * @param request The request object containing all of the parameters for the API call.
8222    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8223    */
updateDataRetentionSettings( UpdateDataRetentionSettingsRequest request)8224   public final DataRetentionSettings updateDataRetentionSettings(
8225       UpdateDataRetentionSettingsRequest request) {
8226     return updateDataRetentionSettingsCallable().call(request);
8227   }
8228 
8229   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8230   /**
8231    * Updates the singleton data retention settings for this property.
8232    *
8233    * <p>Sample code:
8234    *
8235    * <pre>{@code
8236    * // This snippet has been automatically generated and should be regarded as a code template only.
8237    * // It will require modifications to work:
8238    * // - It may require correct/in-range values for request initialization.
8239    * // - It may require specifying regional endpoints when creating the service client as shown in
8240    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8241    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8242    *     AnalyticsAdminServiceClient.create()) {
8243    *   UpdateDataRetentionSettingsRequest request =
8244    *       UpdateDataRetentionSettingsRequest.newBuilder()
8245    *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
8246    *           .setUpdateMask(FieldMask.newBuilder().build())
8247    *           .build();
8248    *   ApiFuture<DataRetentionSettings> future =
8249    *       analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
8250    *   // Do something.
8251    *   DataRetentionSettings response = future.get();
8252    * }
8253    * }</pre>
8254    */
8255   public final UnaryCallable<UpdateDataRetentionSettingsRequest, DataRetentionSettings>
updateDataRetentionSettingsCallable()8256       updateDataRetentionSettingsCallable() {
8257     return stub.updateDataRetentionSettingsCallable();
8258   }
8259 
8260   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8261   /**
8262    * Creates a DataStream.
8263    *
8264    * <p>Sample code:
8265    *
8266    * <pre>{@code
8267    * // This snippet has been automatically generated and should be regarded as a code template only.
8268    * // It will require modifications to work:
8269    * // - It may require correct/in-range values for request initialization.
8270    * // - It may require specifying regional endpoints when creating the service client as shown in
8271    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8272    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8273    *     AnalyticsAdminServiceClient.create()) {
8274    *   PropertyName parent = PropertyName.of("[PROPERTY]");
8275    *   DataStream dataStream = DataStream.newBuilder().build();
8276    *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
8277    * }
8278    * }</pre>
8279    *
8280    * @param parent Required. Example format: properties/1234
8281    * @param dataStream Required. The DataStream to create.
8282    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8283    */
createDataStream(PropertyName parent, DataStream dataStream)8284   public final DataStream createDataStream(PropertyName parent, DataStream dataStream) {
8285     CreateDataStreamRequest request =
8286         CreateDataStreamRequest.newBuilder()
8287             .setParent(parent == null ? null : parent.toString())
8288             .setDataStream(dataStream)
8289             .build();
8290     return createDataStream(request);
8291   }
8292 
8293   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8294   /**
8295    * Creates a DataStream.
8296    *
8297    * <p>Sample code:
8298    *
8299    * <pre>{@code
8300    * // This snippet has been automatically generated and should be regarded as a code template only.
8301    * // It will require modifications to work:
8302    * // - It may require correct/in-range values for request initialization.
8303    * // - It may require specifying regional endpoints when creating the service client as shown in
8304    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8305    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8306    *     AnalyticsAdminServiceClient.create()) {
8307    *   String parent = PropertyName.of("[PROPERTY]").toString();
8308    *   DataStream dataStream = DataStream.newBuilder().build();
8309    *   DataStream response = analyticsAdminServiceClient.createDataStream(parent, dataStream);
8310    * }
8311    * }</pre>
8312    *
8313    * @param parent Required. Example format: properties/1234
8314    * @param dataStream Required. The DataStream to create.
8315    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8316    */
createDataStream(String parent, DataStream dataStream)8317   public final DataStream createDataStream(String parent, DataStream dataStream) {
8318     CreateDataStreamRequest request =
8319         CreateDataStreamRequest.newBuilder().setParent(parent).setDataStream(dataStream).build();
8320     return createDataStream(request);
8321   }
8322 
8323   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8324   /**
8325    * Creates a DataStream.
8326    *
8327    * <p>Sample code:
8328    *
8329    * <pre>{@code
8330    * // This snippet has been automatically generated and should be regarded as a code template only.
8331    * // It will require modifications to work:
8332    * // - It may require correct/in-range values for request initialization.
8333    * // - It may require specifying regional endpoints when creating the service client as shown in
8334    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8335    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8336    *     AnalyticsAdminServiceClient.create()) {
8337    *   CreateDataStreamRequest request =
8338    *       CreateDataStreamRequest.newBuilder()
8339    *           .setParent(PropertyName.of("[PROPERTY]").toString())
8340    *           .setDataStream(DataStream.newBuilder().build())
8341    *           .build();
8342    *   DataStream response = analyticsAdminServiceClient.createDataStream(request);
8343    * }
8344    * }</pre>
8345    *
8346    * @param request The request object containing all of the parameters for the API call.
8347    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8348    */
createDataStream(CreateDataStreamRequest request)8349   public final DataStream createDataStream(CreateDataStreamRequest request) {
8350     return createDataStreamCallable().call(request);
8351   }
8352 
8353   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8354   /**
8355    * Creates a DataStream.
8356    *
8357    * <p>Sample code:
8358    *
8359    * <pre>{@code
8360    * // This snippet has been automatically generated and should be regarded as a code template only.
8361    * // It will require modifications to work:
8362    * // - It may require correct/in-range values for request initialization.
8363    * // - It may require specifying regional endpoints when creating the service client as shown in
8364    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8365    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8366    *     AnalyticsAdminServiceClient.create()) {
8367    *   CreateDataStreamRequest request =
8368    *       CreateDataStreamRequest.newBuilder()
8369    *           .setParent(PropertyName.of("[PROPERTY]").toString())
8370    *           .setDataStream(DataStream.newBuilder().build())
8371    *           .build();
8372    *   ApiFuture<DataStream> future =
8373    *       analyticsAdminServiceClient.createDataStreamCallable().futureCall(request);
8374    *   // Do something.
8375    *   DataStream response = future.get();
8376    * }
8377    * }</pre>
8378    */
createDataStreamCallable()8379   public final UnaryCallable<CreateDataStreamRequest, DataStream> createDataStreamCallable() {
8380     return stub.createDataStreamCallable();
8381   }
8382 
8383   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8384   /**
8385    * Deletes a DataStream on a property.
8386    *
8387    * <p>Sample code:
8388    *
8389    * <pre>{@code
8390    * // This snippet has been automatically generated and should be regarded as a code template only.
8391    * // It will require modifications to work:
8392    * // - It may require correct/in-range values for request initialization.
8393    * // - It may require specifying regional endpoints when creating the service client as shown in
8394    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8395    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8396    *     AnalyticsAdminServiceClient.create()) {
8397    *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
8398    *   analyticsAdminServiceClient.deleteDataStream(name);
8399    * }
8400    * }</pre>
8401    *
8402    * @param name Required. The name of the DataStream to delete. Example format:
8403    *     properties/1234/dataStreams/5678
8404    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8405    */
deleteDataStream(DataStreamName name)8406   public final void deleteDataStream(DataStreamName name) {
8407     DeleteDataStreamRequest request =
8408         DeleteDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build();
8409     deleteDataStream(request);
8410   }
8411 
8412   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8413   /**
8414    * Deletes a DataStream on a property.
8415    *
8416    * <p>Sample code:
8417    *
8418    * <pre>{@code
8419    * // This snippet has been automatically generated and should be regarded as a code template only.
8420    * // It will require modifications to work:
8421    * // - It may require correct/in-range values for request initialization.
8422    * // - It may require specifying regional endpoints when creating the service client as shown in
8423    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8424    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8425    *     AnalyticsAdminServiceClient.create()) {
8426    *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
8427    *   analyticsAdminServiceClient.deleteDataStream(name);
8428    * }
8429    * }</pre>
8430    *
8431    * @param name Required. The name of the DataStream to delete. Example format:
8432    *     properties/1234/dataStreams/5678
8433    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8434    */
deleteDataStream(String name)8435   public final void deleteDataStream(String name) {
8436     DeleteDataStreamRequest request = DeleteDataStreamRequest.newBuilder().setName(name).build();
8437     deleteDataStream(request);
8438   }
8439 
8440   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8441   /**
8442    * Deletes a DataStream on a property.
8443    *
8444    * <p>Sample code:
8445    *
8446    * <pre>{@code
8447    * // This snippet has been automatically generated and should be regarded as a code template only.
8448    * // It will require modifications to work:
8449    * // - It may require correct/in-range values for request initialization.
8450    * // - It may require specifying regional endpoints when creating the service client as shown in
8451    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8452    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8453    *     AnalyticsAdminServiceClient.create()) {
8454    *   DeleteDataStreamRequest request =
8455    *       DeleteDataStreamRequest.newBuilder()
8456    *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
8457    *           .build();
8458    *   analyticsAdminServiceClient.deleteDataStream(request);
8459    * }
8460    * }</pre>
8461    *
8462    * @param request The request object containing all of the parameters for the API call.
8463    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8464    */
deleteDataStream(DeleteDataStreamRequest request)8465   public final void deleteDataStream(DeleteDataStreamRequest request) {
8466     deleteDataStreamCallable().call(request);
8467   }
8468 
8469   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8470   /**
8471    * Deletes a DataStream on a property.
8472    *
8473    * <p>Sample code:
8474    *
8475    * <pre>{@code
8476    * // This snippet has been automatically generated and should be regarded as a code template only.
8477    * // It will require modifications to work:
8478    * // - It may require correct/in-range values for request initialization.
8479    * // - It may require specifying regional endpoints when creating the service client as shown in
8480    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8481    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8482    *     AnalyticsAdminServiceClient.create()) {
8483    *   DeleteDataStreamRequest request =
8484    *       DeleteDataStreamRequest.newBuilder()
8485    *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
8486    *           .build();
8487    *   ApiFuture<Empty> future =
8488    *       analyticsAdminServiceClient.deleteDataStreamCallable().futureCall(request);
8489    *   // Do something.
8490    *   future.get();
8491    * }
8492    * }</pre>
8493    */
deleteDataStreamCallable()8494   public final UnaryCallable<DeleteDataStreamRequest, Empty> deleteDataStreamCallable() {
8495     return stub.deleteDataStreamCallable();
8496   }
8497 
8498   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8499   /**
8500    * Updates a DataStream on a property.
8501    *
8502    * <p>Sample code:
8503    *
8504    * <pre>{@code
8505    * // This snippet has been automatically generated and should be regarded as a code template only.
8506    * // It will require modifications to work:
8507    * // - It may require correct/in-range values for request initialization.
8508    * // - It may require specifying regional endpoints when creating the service client as shown in
8509    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8510    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8511    *     AnalyticsAdminServiceClient.create()) {
8512    *   DataStream dataStream = DataStream.newBuilder().build();
8513    *   FieldMask updateMask = FieldMask.newBuilder().build();
8514    *   DataStream response = analyticsAdminServiceClient.updateDataStream(dataStream, updateMask);
8515    * }
8516    * }</pre>
8517    *
8518    * @param dataStream The DataStream to update
8519    * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
8520    *     updated. To replace the entire entity, use one path with the string "&#42;" to match all
8521    *     fields.
8522    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8523    */
updateDataStream(DataStream dataStream, FieldMask updateMask)8524   public final DataStream updateDataStream(DataStream dataStream, FieldMask updateMask) {
8525     UpdateDataStreamRequest request =
8526         UpdateDataStreamRequest.newBuilder()
8527             .setDataStream(dataStream)
8528             .setUpdateMask(updateMask)
8529             .build();
8530     return updateDataStream(request);
8531   }
8532 
8533   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8534   /**
8535    * Updates a DataStream on a property.
8536    *
8537    * <p>Sample code:
8538    *
8539    * <pre>{@code
8540    * // This snippet has been automatically generated and should be regarded as a code template only.
8541    * // It will require modifications to work:
8542    * // - It may require correct/in-range values for request initialization.
8543    * // - It may require specifying regional endpoints when creating the service client as shown in
8544    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8545    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8546    *     AnalyticsAdminServiceClient.create()) {
8547    *   UpdateDataStreamRequest request =
8548    *       UpdateDataStreamRequest.newBuilder()
8549    *           .setDataStream(DataStream.newBuilder().build())
8550    *           .setUpdateMask(FieldMask.newBuilder().build())
8551    *           .build();
8552    *   DataStream response = analyticsAdminServiceClient.updateDataStream(request);
8553    * }
8554    * }</pre>
8555    *
8556    * @param request The request object containing all of the parameters for the API call.
8557    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8558    */
updateDataStream(UpdateDataStreamRequest request)8559   public final DataStream updateDataStream(UpdateDataStreamRequest request) {
8560     return updateDataStreamCallable().call(request);
8561   }
8562 
8563   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8564   /**
8565    * Updates a DataStream on a property.
8566    *
8567    * <p>Sample code:
8568    *
8569    * <pre>{@code
8570    * // This snippet has been automatically generated and should be regarded as a code template only.
8571    * // It will require modifications to work:
8572    * // - It may require correct/in-range values for request initialization.
8573    * // - It may require specifying regional endpoints when creating the service client as shown in
8574    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8575    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8576    *     AnalyticsAdminServiceClient.create()) {
8577    *   UpdateDataStreamRequest request =
8578    *       UpdateDataStreamRequest.newBuilder()
8579    *           .setDataStream(DataStream.newBuilder().build())
8580    *           .setUpdateMask(FieldMask.newBuilder().build())
8581    *           .build();
8582    *   ApiFuture<DataStream> future =
8583    *       analyticsAdminServiceClient.updateDataStreamCallable().futureCall(request);
8584    *   // Do something.
8585    *   DataStream response = future.get();
8586    * }
8587    * }</pre>
8588    */
updateDataStreamCallable()8589   public final UnaryCallable<UpdateDataStreamRequest, DataStream> updateDataStreamCallable() {
8590     return stub.updateDataStreamCallable();
8591   }
8592 
8593   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8594   /**
8595    * Lists DataStreams on a property.
8596    *
8597    * <p>Sample code:
8598    *
8599    * <pre>{@code
8600    * // This snippet has been automatically generated and should be regarded as a code template only.
8601    * // It will require modifications to work:
8602    * // - It may require correct/in-range values for request initialization.
8603    * // - It may require specifying regional endpoints when creating the service client as shown in
8604    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8605    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8606    *     AnalyticsAdminServiceClient.create()) {
8607    *   PropertyName parent = PropertyName.of("[PROPERTY]");
8608    *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
8609    *     // doThingsWith(element);
8610    *   }
8611    * }
8612    * }</pre>
8613    *
8614    * @param parent Required. Example format: properties/1234
8615    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8616    */
listDataStreams(PropertyName parent)8617   public final ListDataStreamsPagedResponse listDataStreams(PropertyName parent) {
8618     ListDataStreamsRequest request =
8619         ListDataStreamsRequest.newBuilder()
8620             .setParent(parent == null ? null : parent.toString())
8621             .build();
8622     return listDataStreams(request);
8623   }
8624 
8625   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8626   /**
8627    * Lists DataStreams on a property.
8628    *
8629    * <p>Sample code:
8630    *
8631    * <pre>{@code
8632    * // This snippet has been automatically generated and should be regarded as a code template only.
8633    * // It will require modifications to work:
8634    * // - It may require correct/in-range values for request initialization.
8635    * // - It may require specifying regional endpoints when creating the service client as shown in
8636    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8637    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8638    *     AnalyticsAdminServiceClient.create()) {
8639    *   String parent = PropertyName.of("[PROPERTY]").toString();
8640    *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(parent).iterateAll()) {
8641    *     // doThingsWith(element);
8642    *   }
8643    * }
8644    * }</pre>
8645    *
8646    * @param parent Required. Example format: properties/1234
8647    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8648    */
listDataStreams(String parent)8649   public final ListDataStreamsPagedResponse listDataStreams(String parent) {
8650     ListDataStreamsRequest request = ListDataStreamsRequest.newBuilder().setParent(parent).build();
8651     return listDataStreams(request);
8652   }
8653 
8654   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8655   /**
8656    * Lists DataStreams on a property.
8657    *
8658    * <p>Sample code:
8659    *
8660    * <pre>{@code
8661    * // This snippet has been automatically generated and should be regarded as a code template only.
8662    * // It will require modifications to work:
8663    * // - It may require correct/in-range values for request initialization.
8664    * // - It may require specifying regional endpoints when creating the service client as shown in
8665    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8666    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8667    *     AnalyticsAdminServiceClient.create()) {
8668    *   ListDataStreamsRequest request =
8669    *       ListDataStreamsRequest.newBuilder()
8670    *           .setParent(PropertyName.of("[PROPERTY]").toString())
8671    *           .setPageSize(883849137)
8672    *           .setPageToken("pageToken873572522")
8673    *           .build();
8674    *   for (DataStream element : analyticsAdminServiceClient.listDataStreams(request).iterateAll()) {
8675    *     // doThingsWith(element);
8676    *   }
8677    * }
8678    * }</pre>
8679    *
8680    * @param request The request object containing all of the parameters for the API call.
8681    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8682    */
listDataStreams(ListDataStreamsRequest request)8683   public final ListDataStreamsPagedResponse listDataStreams(ListDataStreamsRequest request) {
8684     return listDataStreamsPagedCallable().call(request);
8685   }
8686 
8687   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8688   /**
8689    * Lists DataStreams on a property.
8690    *
8691    * <p>Sample code:
8692    *
8693    * <pre>{@code
8694    * // This snippet has been automatically generated and should be regarded as a code template only.
8695    * // It will require modifications to work:
8696    * // - It may require correct/in-range values for request initialization.
8697    * // - It may require specifying regional endpoints when creating the service client as shown in
8698    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8699    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8700    *     AnalyticsAdminServiceClient.create()) {
8701    *   ListDataStreamsRequest request =
8702    *       ListDataStreamsRequest.newBuilder()
8703    *           .setParent(PropertyName.of("[PROPERTY]").toString())
8704    *           .setPageSize(883849137)
8705    *           .setPageToken("pageToken873572522")
8706    *           .build();
8707    *   ApiFuture<DataStream> future =
8708    *       analyticsAdminServiceClient.listDataStreamsPagedCallable().futureCall(request);
8709    *   // Do something.
8710    *   for (DataStream element : future.get().iterateAll()) {
8711    *     // doThingsWith(element);
8712    *   }
8713    * }
8714    * }</pre>
8715    */
8716   public final UnaryCallable<ListDataStreamsRequest, ListDataStreamsPagedResponse>
listDataStreamsPagedCallable()8717       listDataStreamsPagedCallable() {
8718     return stub.listDataStreamsPagedCallable();
8719   }
8720 
8721   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8722   /**
8723    * Lists DataStreams on a property.
8724    *
8725    * <p>Sample code:
8726    *
8727    * <pre>{@code
8728    * // This snippet has been automatically generated and should be regarded as a code template only.
8729    * // It will require modifications to work:
8730    * // - It may require correct/in-range values for request initialization.
8731    * // - It may require specifying regional endpoints when creating the service client as shown in
8732    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8733    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8734    *     AnalyticsAdminServiceClient.create()) {
8735    *   ListDataStreamsRequest request =
8736    *       ListDataStreamsRequest.newBuilder()
8737    *           .setParent(PropertyName.of("[PROPERTY]").toString())
8738    *           .setPageSize(883849137)
8739    *           .setPageToken("pageToken873572522")
8740    *           .build();
8741    *   while (true) {
8742    *     ListDataStreamsResponse response =
8743    *         analyticsAdminServiceClient.listDataStreamsCallable().call(request);
8744    *     for (DataStream element : response.getDataStreamsList()) {
8745    *       // doThingsWith(element);
8746    *     }
8747    *     String nextPageToken = response.getNextPageToken();
8748    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
8749    *       request = request.toBuilder().setPageToken(nextPageToken).build();
8750    *     } else {
8751    *       break;
8752    *     }
8753    *   }
8754    * }
8755    * }</pre>
8756    */
8757   public final UnaryCallable<ListDataStreamsRequest, ListDataStreamsResponse>
listDataStreamsCallable()8758       listDataStreamsCallable() {
8759     return stub.listDataStreamsCallable();
8760   }
8761 
8762   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8763   /**
8764    * Lookup for a single DataStream.
8765    *
8766    * <p>Sample code:
8767    *
8768    * <pre>{@code
8769    * // This snippet has been automatically generated and should be regarded as a code template only.
8770    * // It will require modifications to work:
8771    * // - It may require correct/in-range values for request initialization.
8772    * // - It may require specifying regional endpoints when creating the service client as shown in
8773    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8774    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8775    *     AnalyticsAdminServiceClient.create()) {
8776    *   DataStreamName name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]");
8777    *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
8778    * }
8779    * }</pre>
8780    *
8781    * @param name Required. The name of the DataStream to get. Example format:
8782    *     properties/1234/dataStreams/5678
8783    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8784    */
getDataStream(DataStreamName name)8785   public final DataStream getDataStream(DataStreamName name) {
8786     GetDataStreamRequest request =
8787         GetDataStreamRequest.newBuilder().setName(name == null ? null : name.toString()).build();
8788     return getDataStream(request);
8789   }
8790 
8791   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8792   /**
8793    * Lookup for a single DataStream.
8794    *
8795    * <p>Sample code:
8796    *
8797    * <pre>{@code
8798    * // This snippet has been automatically generated and should be regarded as a code template only.
8799    * // It will require modifications to work:
8800    * // - It may require correct/in-range values for request initialization.
8801    * // - It may require specifying regional endpoints when creating the service client as shown in
8802    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8803    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8804    *     AnalyticsAdminServiceClient.create()) {
8805    *   String name = DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString();
8806    *   DataStream response = analyticsAdminServiceClient.getDataStream(name);
8807    * }
8808    * }</pre>
8809    *
8810    * @param name Required. The name of the DataStream to get. Example format:
8811    *     properties/1234/dataStreams/5678
8812    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8813    */
getDataStream(String name)8814   public final DataStream getDataStream(String name) {
8815     GetDataStreamRequest request = GetDataStreamRequest.newBuilder().setName(name).build();
8816     return getDataStream(request);
8817   }
8818 
8819   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8820   /**
8821    * Lookup for a single DataStream.
8822    *
8823    * <p>Sample code:
8824    *
8825    * <pre>{@code
8826    * // This snippet has been automatically generated and should be regarded as a code template only.
8827    * // It will require modifications to work:
8828    * // - It may require correct/in-range values for request initialization.
8829    * // - It may require specifying regional endpoints when creating the service client as shown in
8830    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8831    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8832    *     AnalyticsAdminServiceClient.create()) {
8833    *   GetDataStreamRequest request =
8834    *       GetDataStreamRequest.newBuilder()
8835    *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
8836    *           .build();
8837    *   DataStream response = analyticsAdminServiceClient.getDataStream(request);
8838    * }
8839    * }</pre>
8840    *
8841    * @param request The request object containing all of the parameters for the API call.
8842    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8843    */
getDataStream(GetDataStreamRequest request)8844   public final DataStream getDataStream(GetDataStreamRequest request) {
8845     return getDataStreamCallable().call(request);
8846   }
8847 
8848   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8849   /**
8850    * Lookup for a single DataStream.
8851    *
8852    * <p>Sample code:
8853    *
8854    * <pre>{@code
8855    * // This snippet has been automatically generated and should be regarded as a code template only.
8856    * // It will require modifications to work:
8857    * // - It may require correct/in-range values for request initialization.
8858    * // - It may require specifying regional endpoints when creating the service client as shown in
8859    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8860    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8861    *     AnalyticsAdminServiceClient.create()) {
8862    *   GetDataStreamRequest request =
8863    *       GetDataStreamRequest.newBuilder()
8864    *           .setName(DataStreamName.of("[PROPERTY]", "[DATA_STREAM]").toString())
8865    *           .build();
8866    *   ApiFuture<DataStream> future =
8867    *       analyticsAdminServiceClient.getDataStreamCallable().futureCall(request);
8868    *   // Do something.
8869    *   DataStream response = future.get();
8870    * }
8871    * }</pre>
8872    */
getDataStreamCallable()8873   public final UnaryCallable<GetDataStreamRequest, DataStream> getDataStreamCallable() {
8874     return stub.getDataStreamCallable();
8875   }
8876 
8877   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8878   /**
8879    * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default
8880    * audiences will not show filter definitions.
8881    *
8882    * <p>Sample code:
8883    *
8884    * <pre>{@code
8885    * // This snippet has been automatically generated and should be regarded as a code template only.
8886    * // It will require modifications to work:
8887    * // - It may require correct/in-range values for request initialization.
8888    * // - It may require specifying regional endpoints when creating the service client as shown in
8889    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8890    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8891    *     AnalyticsAdminServiceClient.create()) {
8892    *   AudienceName name = AudienceName.of("[PROPERTY]", "[AUDIENCE]");
8893    *   Audience response = analyticsAdminServiceClient.getAudience(name);
8894    * }
8895    * }</pre>
8896    *
8897    * @param name Required. The name of the Audience to get. Example format:
8898    *     properties/1234/audiences/5678
8899    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8900    */
getAudience(AudienceName name)8901   public final Audience getAudience(AudienceName name) {
8902     GetAudienceRequest request =
8903         GetAudienceRequest.newBuilder().setName(name == null ? null : name.toString()).build();
8904     return getAudience(request);
8905   }
8906 
8907   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8908   /**
8909    * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default
8910    * audiences will not show filter definitions.
8911    *
8912    * <p>Sample code:
8913    *
8914    * <pre>{@code
8915    * // This snippet has been automatically generated and should be regarded as a code template only.
8916    * // It will require modifications to work:
8917    * // - It may require correct/in-range values for request initialization.
8918    * // - It may require specifying regional endpoints when creating the service client as shown in
8919    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8920    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8921    *     AnalyticsAdminServiceClient.create()) {
8922    *   String name = AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString();
8923    *   Audience response = analyticsAdminServiceClient.getAudience(name);
8924    * }
8925    * }</pre>
8926    *
8927    * @param name Required. The name of the Audience to get. Example format:
8928    *     properties/1234/audiences/5678
8929    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8930    */
getAudience(String name)8931   public final Audience getAudience(String name) {
8932     GetAudienceRequest request = GetAudienceRequest.newBuilder().setName(name).build();
8933     return getAudience(request);
8934   }
8935 
8936   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8937   /**
8938    * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default
8939    * audiences will not show filter definitions.
8940    *
8941    * <p>Sample code:
8942    *
8943    * <pre>{@code
8944    * // This snippet has been automatically generated and should be regarded as a code template only.
8945    * // It will require modifications to work:
8946    * // - It may require correct/in-range values for request initialization.
8947    * // - It may require specifying regional endpoints when creating the service client as shown in
8948    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8949    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8950    *     AnalyticsAdminServiceClient.create()) {
8951    *   GetAudienceRequest request =
8952    *       GetAudienceRequest.newBuilder()
8953    *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
8954    *           .build();
8955    *   Audience response = analyticsAdminServiceClient.getAudience(request);
8956    * }
8957    * }</pre>
8958    *
8959    * @param request The request object containing all of the parameters for the API call.
8960    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
8961    */
getAudience(GetAudienceRequest request)8962   public final Audience getAudience(GetAudienceRequest request) {
8963     return getAudienceCallable().call(request);
8964   }
8965 
8966   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8967   /**
8968    * Lookup for a single Audience. Audiences created before 2020 may not be supported. Default
8969    * audiences will not show filter definitions.
8970    *
8971    * <p>Sample code:
8972    *
8973    * <pre>{@code
8974    * // This snippet has been automatically generated and should be regarded as a code template only.
8975    * // It will require modifications to work:
8976    * // - It may require correct/in-range values for request initialization.
8977    * // - It may require specifying regional endpoints when creating the service client as shown in
8978    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
8979    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
8980    *     AnalyticsAdminServiceClient.create()) {
8981    *   GetAudienceRequest request =
8982    *       GetAudienceRequest.newBuilder()
8983    *           .setName(AudienceName.of("[PROPERTY]", "[AUDIENCE]").toString())
8984    *           .build();
8985    *   ApiFuture<Audience> future =
8986    *       analyticsAdminServiceClient.getAudienceCallable().futureCall(request);
8987    *   // Do something.
8988    *   Audience response = future.get();
8989    * }
8990    * }</pre>
8991    */
getAudienceCallable()8992   public final UnaryCallable<GetAudienceRequest, Audience> getAudienceCallable() {
8993     return stub.getAudienceCallable();
8994   }
8995 
8996   // AUTO-GENERATED DOCUMENTATION AND METHOD.
8997   /**
8998    * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default
8999    * audiences will not show filter definitions.
9000    *
9001    * <p>Sample code:
9002    *
9003    * <pre>{@code
9004    * // This snippet has been automatically generated and should be regarded as a code template only.
9005    * // It will require modifications to work:
9006    * // - It may require correct/in-range values for request initialization.
9007    * // - It may require specifying regional endpoints when creating the service client as shown in
9008    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9009    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9010    *     AnalyticsAdminServiceClient.create()) {
9011    *   PropertyName parent = PropertyName.of("[PROPERTY]");
9012    *   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
9013    *     // doThingsWith(element);
9014    *   }
9015    * }
9016    * }</pre>
9017    *
9018    * @param parent Required. Example format: properties/1234
9019    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9020    */
listAudiences(PropertyName parent)9021   public final ListAudiencesPagedResponse listAudiences(PropertyName parent) {
9022     ListAudiencesRequest request =
9023         ListAudiencesRequest.newBuilder()
9024             .setParent(parent == null ? null : parent.toString())
9025             .build();
9026     return listAudiences(request);
9027   }
9028 
9029   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9030   /**
9031    * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default
9032    * audiences will not show filter definitions.
9033    *
9034    * <p>Sample code:
9035    *
9036    * <pre>{@code
9037    * // This snippet has been automatically generated and should be regarded as a code template only.
9038    * // It will require modifications to work:
9039    * // - It may require correct/in-range values for request initialization.
9040    * // - It may require specifying regional endpoints when creating the service client as shown in
9041    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9042    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9043    *     AnalyticsAdminServiceClient.create()) {
9044    *   String parent = PropertyName.of("[PROPERTY]").toString();
9045    *   for (Audience element : analyticsAdminServiceClient.listAudiences(parent).iterateAll()) {
9046    *     // doThingsWith(element);
9047    *   }
9048    * }
9049    * }</pre>
9050    *
9051    * @param parent Required. Example format: properties/1234
9052    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9053    */
listAudiences(String parent)9054   public final ListAudiencesPagedResponse listAudiences(String parent) {
9055     ListAudiencesRequest request = ListAudiencesRequest.newBuilder().setParent(parent).build();
9056     return listAudiences(request);
9057   }
9058 
9059   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9060   /**
9061    * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default
9062    * audiences will not show filter definitions.
9063    *
9064    * <p>Sample code:
9065    *
9066    * <pre>{@code
9067    * // This snippet has been automatically generated and should be regarded as a code template only.
9068    * // It will require modifications to work:
9069    * // - It may require correct/in-range values for request initialization.
9070    * // - It may require specifying regional endpoints when creating the service client as shown in
9071    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9072    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9073    *     AnalyticsAdminServiceClient.create()) {
9074    *   ListAudiencesRequest request =
9075    *       ListAudiencesRequest.newBuilder()
9076    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9077    *           .setPageSize(883849137)
9078    *           .setPageToken("pageToken873572522")
9079    *           .build();
9080    *   for (Audience element : analyticsAdminServiceClient.listAudiences(request).iterateAll()) {
9081    *     // doThingsWith(element);
9082    *   }
9083    * }
9084    * }</pre>
9085    *
9086    * @param request The request object containing all of the parameters for the API call.
9087    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9088    */
listAudiences(ListAudiencesRequest request)9089   public final ListAudiencesPagedResponse listAudiences(ListAudiencesRequest request) {
9090     return listAudiencesPagedCallable().call(request);
9091   }
9092 
9093   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9094   /**
9095    * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default
9096    * audiences will not show filter definitions.
9097    *
9098    * <p>Sample code:
9099    *
9100    * <pre>{@code
9101    * // This snippet has been automatically generated and should be regarded as a code template only.
9102    * // It will require modifications to work:
9103    * // - It may require correct/in-range values for request initialization.
9104    * // - It may require specifying regional endpoints when creating the service client as shown in
9105    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9106    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9107    *     AnalyticsAdminServiceClient.create()) {
9108    *   ListAudiencesRequest request =
9109    *       ListAudiencesRequest.newBuilder()
9110    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9111    *           .setPageSize(883849137)
9112    *           .setPageToken("pageToken873572522")
9113    *           .build();
9114    *   ApiFuture<Audience> future =
9115    *       analyticsAdminServiceClient.listAudiencesPagedCallable().futureCall(request);
9116    *   // Do something.
9117    *   for (Audience element : future.get().iterateAll()) {
9118    *     // doThingsWith(element);
9119    *   }
9120    * }
9121    * }</pre>
9122    */
9123   public final UnaryCallable<ListAudiencesRequest, ListAudiencesPagedResponse>
listAudiencesPagedCallable()9124       listAudiencesPagedCallable() {
9125     return stub.listAudiencesPagedCallable();
9126   }
9127 
9128   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9129   /**
9130    * Lists Audiences on a property. Audiences created before 2020 may not be supported. Default
9131    * audiences will not show filter definitions.
9132    *
9133    * <p>Sample code:
9134    *
9135    * <pre>{@code
9136    * // This snippet has been automatically generated and should be regarded as a code template only.
9137    * // It will require modifications to work:
9138    * // - It may require correct/in-range values for request initialization.
9139    * // - It may require specifying regional endpoints when creating the service client as shown in
9140    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9141    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9142    *     AnalyticsAdminServiceClient.create()) {
9143    *   ListAudiencesRequest request =
9144    *       ListAudiencesRequest.newBuilder()
9145    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9146    *           .setPageSize(883849137)
9147    *           .setPageToken("pageToken873572522")
9148    *           .build();
9149    *   while (true) {
9150    *     ListAudiencesResponse response =
9151    *         analyticsAdminServiceClient.listAudiencesCallable().call(request);
9152    *     for (Audience element : response.getAudiencesList()) {
9153    *       // doThingsWith(element);
9154    *     }
9155    *     String nextPageToken = response.getNextPageToken();
9156    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
9157    *       request = request.toBuilder().setPageToken(nextPageToken).build();
9158    *     } else {
9159    *       break;
9160    *     }
9161    *   }
9162    * }
9163    * }</pre>
9164    */
listAudiencesCallable()9165   public final UnaryCallable<ListAudiencesRequest, ListAudiencesResponse> listAudiencesCallable() {
9166     return stub.listAudiencesCallable();
9167   }
9168 
9169   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9170   /**
9171    * Creates an Audience.
9172    *
9173    * <p>Sample code:
9174    *
9175    * <pre>{@code
9176    * // This snippet has been automatically generated and should be regarded as a code template only.
9177    * // It will require modifications to work:
9178    * // - It may require correct/in-range values for request initialization.
9179    * // - It may require specifying regional endpoints when creating the service client as shown in
9180    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9181    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9182    *     AnalyticsAdminServiceClient.create()) {
9183    *   PropertyName parent = PropertyName.of("[PROPERTY]");
9184    *   Audience audience = Audience.newBuilder().build();
9185    *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
9186    * }
9187    * }</pre>
9188    *
9189    * @param parent Required. Example format: properties/1234
9190    * @param audience Required. The audience to create.
9191    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9192    */
createAudience(PropertyName parent, Audience audience)9193   public final Audience createAudience(PropertyName parent, Audience audience) {
9194     CreateAudienceRequest request =
9195         CreateAudienceRequest.newBuilder()
9196             .setParent(parent == null ? null : parent.toString())
9197             .setAudience(audience)
9198             .build();
9199     return createAudience(request);
9200   }
9201 
9202   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9203   /**
9204    * Creates an Audience.
9205    *
9206    * <p>Sample code:
9207    *
9208    * <pre>{@code
9209    * // This snippet has been automatically generated and should be regarded as a code template only.
9210    * // It will require modifications to work:
9211    * // - It may require correct/in-range values for request initialization.
9212    * // - It may require specifying regional endpoints when creating the service client as shown in
9213    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9214    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9215    *     AnalyticsAdminServiceClient.create()) {
9216    *   String parent = PropertyName.of("[PROPERTY]").toString();
9217    *   Audience audience = Audience.newBuilder().build();
9218    *   Audience response = analyticsAdminServiceClient.createAudience(parent, audience);
9219    * }
9220    * }</pre>
9221    *
9222    * @param parent Required. Example format: properties/1234
9223    * @param audience Required. The audience to create.
9224    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9225    */
createAudience(String parent, Audience audience)9226   public final Audience createAudience(String parent, Audience audience) {
9227     CreateAudienceRequest request =
9228         CreateAudienceRequest.newBuilder().setParent(parent).setAudience(audience).build();
9229     return createAudience(request);
9230   }
9231 
9232   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9233   /**
9234    * Creates an Audience.
9235    *
9236    * <p>Sample code:
9237    *
9238    * <pre>{@code
9239    * // This snippet has been automatically generated and should be regarded as a code template only.
9240    * // It will require modifications to work:
9241    * // - It may require correct/in-range values for request initialization.
9242    * // - It may require specifying regional endpoints when creating the service client as shown in
9243    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9244    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9245    *     AnalyticsAdminServiceClient.create()) {
9246    *   CreateAudienceRequest request =
9247    *       CreateAudienceRequest.newBuilder()
9248    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9249    *           .setAudience(Audience.newBuilder().build())
9250    *           .build();
9251    *   Audience response = analyticsAdminServiceClient.createAudience(request);
9252    * }
9253    * }</pre>
9254    *
9255    * @param request The request object containing all of the parameters for the API call.
9256    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9257    */
createAudience(CreateAudienceRequest request)9258   public final Audience createAudience(CreateAudienceRequest request) {
9259     return createAudienceCallable().call(request);
9260   }
9261 
9262   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9263   /**
9264    * Creates an Audience.
9265    *
9266    * <p>Sample code:
9267    *
9268    * <pre>{@code
9269    * // This snippet has been automatically generated and should be regarded as a code template only.
9270    * // It will require modifications to work:
9271    * // - It may require correct/in-range values for request initialization.
9272    * // - It may require specifying regional endpoints when creating the service client as shown in
9273    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9274    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9275    *     AnalyticsAdminServiceClient.create()) {
9276    *   CreateAudienceRequest request =
9277    *       CreateAudienceRequest.newBuilder()
9278    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9279    *           .setAudience(Audience.newBuilder().build())
9280    *           .build();
9281    *   ApiFuture<Audience> future =
9282    *       analyticsAdminServiceClient.createAudienceCallable().futureCall(request);
9283    *   // Do something.
9284    *   Audience response = future.get();
9285    * }
9286    * }</pre>
9287    */
createAudienceCallable()9288   public final UnaryCallable<CreateAudienceRequest, Audience> createAudienceCallable() {
9289     return stub.createAudienceCallable();
9290   }
9291 
9292   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9293   /**
9294    * Updates an Audience on a property.
9295    *
9296    * <p>Sample code:
9297    *
9298    * <pre>{@code
9299    * // This snippet has been automatically generated and should be regarded as a code template only.
9300    * // It will require modifications to work:
9301    * // - It may require correct/in-range values for request initialization.
9302    * // - It may require specifying regional endpoints when creating the service client as shown in
9303    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9304    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9305    *     AnalyticsAdminServiceClient.create()) {
9306    *   Audience audience = Audience.newBuilder().build();
9307    *   FieldMask updateMask = FieldMask.newBuilder().build();
9308    *   Audience response = analyticsAdminServiceClient.updateAudience(audience, updateMask);
9309    * }
9310    * }</pre>
9311    *
9312    * @param audience Required. The audience to update. The audience's `name` field is used to
9313    *     identify the audience to be updated.
9314    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
9315    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
9316    *     entity, use one path with the string "&#42;" to match all fields.
9317    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9318    */
updateAudience(Audience audience, FieldMask updateMask)9319   public final Audience updateAudience(Audience audience, FieldMask updateMask) {
9320     UpdateAudienceRequest request =
9321         UpdateAudienceRequest.newBuilder().setAudience(audience).setUpdateMask(updateMask).build();
9322     return updateAudience(request);
9323   }
9324 
9325   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9326   /**
9327    * Updates an Audience on a property.
9328    *
9329    * <p>Sample code:
9330    *
9331    * <pre>{@code
9332    * // This snippet has been automatically generated and should be regarded as a code template only.
9333    * // It will require modifications to work:
9334    * // - It may require correct/in-range values for request initialization.
9335    * // - It may require specifying regional endpoints when creating the service client as shown in
9336    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9337    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9338    *     AnalyticsAdminServiceClient.create()) {
9339    *   UpdateAudienceRequest request =
9340    *       UpdateAudienceRequest.newBuilder()
9341    *           .setAudience(Audience.newBuilder().build())
9342    *           .setUpdateMask(FieldMask.newBuilder().build())
9343    *           .build();
9344    *   Audience response = analyticsAdminServiceClient.updateAudience(request);
9345    * }
9346    * }</pre>
9347    *
9348    * @param request The request object containing all of the parameters for the API call.
9349    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9350    */
updateAudience(UpdateAudienceRequest request)9351   public final Audience updateAudience(UpdateAudienceRequest request) {
9352     return updateAudienceCallable().call(request);
9353   }
9354 
9355   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9356   /**
9357    * Updates an Audience on a property.
9358    *
9359    * <p>Sample code:
9360    *
9361    * <pre>{@code
9362    * // This snippet has been automatically generated and should be regarded as a code template only.
9363    * // It will require modifications to work:
9364    * // - It may require correct/in-range values for request initialization.
9365    * // - It may require specifying regional endpoints when creating the service client as shown in
9366    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9367    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9368    *     AnalyticsAdminServiceClient.create()) {
9369    *   UpdateAudienceRequest request =
9370    *       UpdateAudienceRequest.newBuilder()
9371    *           .setAudience(Audience.newBuilder().build())
9372    *           .setUpdateMask(FieldMask.newBuilder().build())
9373    *           .build();
9374    *   ApiFuture<Audience> future =
9375    *       analyticsAdminServiceClient.updateAudienceCallable().futureCall(request);
9376    *   // Do something.
9377    *   Audience response = future.get();
9378    * }
9379    * }</pre>
9380    */
updateAudienceCallable()9381   public final UnaryCallable<UpdateAudienceRequest, Audience> updateAudienceCallable() {
9382     return stub.updateAudienceCallable();
9383   }
9384 
9385   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9386   /**
9387    * Archives an Audience on a property.
9388    *
9389    * <p>Sample code:
9390    *
9391    * <pre>{@code
9392    * // This snippet has been automatically generated and should be regarded as a code template only.
9393    * // It will require modifications to work:
9394    * // - It may require correct/in-range values for request initialization.
9395    * // - It may require specifying regional endpoints when creating the service client as shown in
9396    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9397    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9398    *     AnalyticsAdminServiceClient.create()) {
9399    *   ArchiveAudienceRequest request =
9400    *       ArchiveAudienceRequest.newBuilder()
9401    *           .setName(PropertyName.of("[PROPERTY]").toString())
9402    *           .build();
9403    *   analyticsAdminServiceClient.archiveAudience(request);
9404    * }
9405    * }</pre>
9406    *
9407    * @param request The request object containing all of the parameters for the API call.
9408    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9409    */
archiveAudience(ArchiveAudienceRequest request)9410   public final void archiveAudience(ArchiveAudienceRequest request) {
9411     archiveAudienceCallable().call(request);
9412   }
9413 
9414   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9415   /**
9416    * Archives an Audience on a property.
9417    *
9418    * <p>Sample code:
9419    *
9420    * <pre>{@code
9421    * // This snippet has been automatically generated and should be regarded as a code template only.
9422    * // It will require modifications to work:
9423    * // - It may require correct/in-range values for request initialization.
9424    * // - It may require specifying regional endpoints when creating the service client as shown in
9425    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9426    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9427    *     AnalyticsAdminServiceClient.create()) {
9428    *   ArchiveAudienceRequest request =
9429    *       ArchiveAudienceRequest.newBuilder()
9430    *           .setName(PropertyName.of("[PROPERTY]").toString())
9431    *           .build();
9432    *   ApiFuture<Empty> future =
9433    *       analyticsAdminServiceClient.archiveAudienceCallable().futureCall(request);
9434    *   // Do something.
9435    *   future.get();
9436    * }
9437    * }</pre>
9438    */
archiveAudienceCallable()9439   public final UnaryCallable<ArchiveAudienceRequest, Empty> archiveAudienceCallable() {
9440     return stub.archiveAudienceCallable();
9441   }
9442 
9443   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9444   /**
9445    * Look up a single SearchAds360Link
9446    *
9447    * <p>Sample code:
9448    *
9449    * <pre>{@code
9450    * // This snippet has been automatically generated and should be regarded as a code template only.
9451    * // It will require modifications to work:
9452    * // - It may require correct/in-range values for request initialization.
9453    * // - It may require specifying regional endpoints when creating the service client as shown in
9454    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9455    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9456    *     AnalyticsAdminServiceClient.create()) {
9457    *   SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]");
9458    *   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name);
9459    * }
9460    * }</pre>
9461    *
9462    * @param name Required. The name of the SearchAds360Link to get. Example format:
9463    *     properties/1234/SearchAds360Link/5678
9464    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9465    */
getSearchAds360Link(SearchAds360LinkName name)9466   public final SearchAds360Link getSearchAds360Link(SearchAds360LinkName name) {
9467     GetSearchAds360LinkRequest request =
9468         GetSearchAds360LinkRequest.newBuilder()
9469             .setName(name == null ? null : name.toString())
9470             .build();
9471     return getSearchAds360Link(request);
9472   }
9473 
9474   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9475   /**
9476    * Look up a single SearchAds360Link
9477    *
9478    * <p>Sample code:
9479    *
9480    * <pre>{@code
9481    * // This snippet has been automatically generated and should be regarded as a code template only.
9482    * // It will require modifications to work:
9483    * // - It may require correct/in-range values for request initialization.
9484    * // - It may require specifying regional endpoints when creating the service client as shown in
9485    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9486    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9487    *     AnalyticsAdminServiceClient.create()) {
9488    *   String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString();
9489    *   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(name);
9490    * }
9491    * }</pre>
9492    *
9493    * @param name Required. The name of the SearchAds360Link to get. Example format:
9494    *     properties/1234/SearchAds360Link/5678
9495    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9496    */
getSearchAds360Link(String name)9497   public final SearchAds360Link getSearchAds360Link(String name) {
9498     GetSearchAds360LinkRequest request =
9499         GetSearchAds360LinkRequest.newBuilder().setName(name).build();
9500     return getSearchAds360Link(request);
9501   }
9502 
9503   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9504   /**
9505    * Look up a single SearchAds360Link
9506    *
9507    * <p>Sample code:
9508    *
9509    * <pre>{@code
9510    * // This snippet has been automatically generated and should be regarded as a code template only.
9511    * // It will require modifications to work:
9512    * // - It may require correct/in-range values for request initialization.
9513    * // - It may require specifying regional endpoints when creating the service client as shown in
9514    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9515    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9516    *     AnalyticsAdminServiceClient.create()) {
9517    *   GetSearchAds360LinkRequest request =
9518    *       GetSearchAds360LinkRequest.newBuilder()
9519    *           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
9520    *           .build();
9521    *   SearchAds360Link response = analyticsAdminServiceClient.getSearchAds360Link(request);
9522    * }
9523    * }</pre>
9524    *
9525    * @param request The request object containing all of the parameters for the API call.
9526    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9527    */
getSearchAds360Link(GetSearchAds360LinkRequest request)9528   public final SearchAds360Link getSearchAds360Link(GetSearchAds360LinkRequest request) {
9529     return getSearchAds360LinkCallable().call(request);
9530   }
9531 
9532   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9533   /**
9534    * Look up a single SearchAds360Link
9535    *
9536    * <p>Sample code:
9537    *
9538    * <pre>{@code
9539    * // This snippet has been automatically generated and should be regarded as a code template only.
9540    * // It will require modifications to work:
9541    * // - It may require correct/in-range values for request initialization.
9542    * // - It may require specifying regional endpoints when creating the service client as shown in
9543    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9544    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9545    *     AnalyticsAdminServiceClient.create()) {
9546    *   GetSearchAds360LinkRequest request =
9547    *       GetSearchAds360LinkRequest.newBuilder()
9548    *           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
9549    *           .build();
9550    *   ApiFuture<SearchAds360Link> future =
9551    *       analyticsAdminServiceClient.getSearchAds360LinkCallable().futureCall(request);
9552    *   // Do something.
9553    *   SearchAds360Link response = future.get();
9554    * }
9555    * }</pre>
9556    */
9557   public final UnaryCallable<GetSearchAds360LinkRequest, SearchAds360Link>
getSearchAds360LinkCallable()9558       getSearchAds360LinkCallable() {
9559     return stub.getSearchAds360LinkCallable();
9560   }
9561 
9562   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9563   /**
9564    * Lists all SearchAds360Links on a property.
9565    *
9566    * <p>Sample code:
9567    *
9568    * <pre>{@code
9569    * // This snippet has been automatically generated and should be regarded as a code template only.
9570    * // It will require modifications to work:
9571    * // - It may require correct/in-range values for request initialization.
9572    * // - It may require specifying regional endpoints when creating the service client as shown in
9573    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9574    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9575    *     AnalyticsAdminServiceClient.create()) {
9576    *   PropertyName parent = PropertyName.of("[PROPERTY]");
9577    *   for (SearchAds360Link element :
9578    *       analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) {
9579    *     // doThingsWith(element);
9580    *   }
9581    * }
9582    * }</pre>
9583    *
9584    * @param parent Required. Example format: properties/1234
9585    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9586    */
listSearchAds360Links(PropertyName parent)9587   public final ListSearchAds360LinksPagedResponse listSearchAds360Links(PropertyName parent) {
9588     ListSearchAds360LinksRequest request =
9589         ListSearchAds360LinksRequest.newBuilder()
9590             .setParent(parent == null ? null : parent.toString())
9591             .build();
9592     return listSearchAds360Links(request);
9593   }
9594 
9595   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9596   /**
9597    * Lists all SearchAds360Links on a property.
9598    *
9599    * <p>Sample code:
9600    *
9601    * <pre>{@code
9602    * // This snippet has been automatically generated and should be regarded as a code template only.
9603    * // It will require modifications to work:
9604    * // - It may require correct/in-range values for request initialization.
9605    * // - It may require specifying regional endpoints when creating the service client as shown in
9606    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9607    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9608    *     AnalyticsAdminServiceClient.create()) {
9609    *   String parent = PropertyName.of("[PROPERTY]").toString();
9610    *   for (SearchAds360Link element :
9611    *       analyticsAdminServiceClient.listSearchAds360Links(parent).iterateAll()) {
9612    *     // doThingsWith(element);
9613    *   }
9614    * }
9615    * }</pre>
9616    *
9617    * @param parent Required. Example format: properties/1234
9618    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9619    */
listSearchAds360Links(String parent)9620   public final ListSearchAds360LinksPagedResponse listSearchAds360Links(String parent) {
9621     ListSearchAds360LinksRequest request =
9622         ListSearchAds360LinksRequest.newBuilder().setParent(parent).build();
9623     return listSearchAds360Links(request);
9624   }
9625 
9626   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9627   /**
9628    * Lists all SearchAds360Links on a property.
9629    *
9630    * <p>Sample code:
9631    *
9632    * <pre>{@code
9633    * // This snippet has been automatically generated and should be regarded as a code template only.
9634    * // It will require modifications to work:
9635    * // - It may require correct/in-range values for request initialization.
9636    * // - It may require specifying regional endpoints when creating the service client as shown in
9637    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9638    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9639    *     AnalyticsAdminServiceClient.create()) {
9640    *   ListSearchAds360LinksRequest request =
9641    *       ListSearchAds360LinksRequest.newBuilder()
9642    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9643    *           .setPageSize(883849137)
9644    *           .setPageToken("pageToken873572522")
9645    *           .build();
9646    *   for (SearchAds360Link element :
9647    *       analyticsAdminServiceClient.listSearchAds360Links(request).iterateAll()) {
9648    *     // doThingsWith(element);
9649    *   }
9650    * }
9651    * }</pre>
9652    *
9653    * @param request The request object containing all of the parameters for the API call.
9654    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9655    */
listSearchAds360Links( ListSearchAds360LinksRequest request)9656   public final ListSearchAds360LinksPagedResponse listSearchAds360Links(
9657       ListSearchAds360LinksRequest request) {
9658     return listSearchAds360LinksPagedCallable().call(request);
9659   }
9660 
9661   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9662   /**
9663    * Lists all SearchAds360Links on a property.
9664    *
9665    * <p>Sample code:
9666    *
9667    * <pre>{@code
9668    * // This snippet has been automatically generated and should be regarded as a code template only.
9669    * // It will require modifications to work:
9670    * // - It may require correct/in-range values for request initialization.
9671    * // - It may require specifying regional endpoints when creating the service client as shown in
9672    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9673    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9674    *     AnalyticsAdminServiceClient.create()) {
9675    *   ListSearchAds360LinksRequest request =
9676    *       ListSearchAds360LinksRequest.newBuilder()
9677    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9678    *           .setPageSize(883849137)
9679    *           .setPageToken("pageToken873572522")
9680    *           .build();
9681    *   ApiFuture<SearchAds360Link> future =
9682    *       analyticsAdminServiceClient.listSearchAds360LinksPagedCallable().futureCall(request);
9683    *   // Do something.
9684    *   for (SearchAds360Link element : future.get().iterateAll()) {
9685    *     // doThingsWith(element);
9686    *   }
9687    * }
9688    * }</pre>
9689    */
9690   public final UnaryCallable<ListSearchAds360LinksRequest, ListSearchAds360LinksPagedResponse>
listSearchAds360LinksPagedCallable()9691       listSearchAds360LinksPagedCallable() {
9692     return stub.listSearchAds360LinksPagedCallable();
9693   }
9694 
9695   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9696   /**
9697    * Lists all SearchAds360Links on a property.
9698    *
9699    * <p>Sample code:
9700    *
9701    * <pre>{@code
9702    * // This snippet has been automatically generated and should be regarded as a code template only.
9703    * // It will require modifications to work:
9704    * // - It may require correct/in-range values for request initialization.
9705    * // - It may require specifying regional endpoints when creating the service client as shown in
9706    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9707    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9708    *     AnalyticsAdminServiceClient.create()) {
9709    *   ListSearchAds360LinksRequest request =
9710    *       ListSearchAds360LinksRequest.newBuilder()
9711    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9712    *           .setPageSize(883849137)
9713    *           .setPageToken("pageToken873572522")
9714    *           .build();
9715    *   while (true) {
9716    *     ListSearchAds360LinksResponse response =
9717    *         analyticsAdminServiceClient.listSearchAds360LinksCallable().call(request);
9718    *     for (SearchAds360Link element : response.getSearchAds360LinksList()) {
9719    *       // doThingsWith(element);
9720    *     }
9721    *     String nextPageToken = response.getNextPageToken();
9722    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
9723    *       request = request.toBuilder().setPageToken(nextPageToken).build();
9724    *     } else {
9725    *       break;
9726    *     }
9727    *   }
9728    * }
9729    * }</pre>
9730    */
9731   public final UnaryCallable<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse>
listSearchAds360LinksCallable()9732       listSearchAds360LinksCallable() {
9733     return stub.listSearchAds360LinksCallable();
9734   }
9735 
9736   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9737   /**
9738    * Creates a SearchAds360Link.
9739    *
9740    * <p>Sample code:
9741    *
9742    * <pre>{@code
9743    * // This snippet has been automatically generated and should be regarded as a code template only.
9744    * // It will require modifications to work:
9745    * // - It may require correct/in-range values for request initialization.
9746    * // - It may require specifying regional endpoints when creating the service client as shown in
9747    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9748    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9749    *     AnalyticsAdminServiceClient.create()) {
9750    *   PropertyName parent = PropertyName.of("[PROPERTY]");
9751    *   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
9752    *   SearchAds360Link response =
9753    *       analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link);
9754    * }
9755    * }</pre>
9756    *
9757    * @param parent Required. Example format: properties/1234
9758    * @param searchAds360Link Required. The SearchAds360Link to create.
9759    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9760    */
createSearchAds360Link( PropertyName parent, SearchAds360Link searchAds360Link)9761   public final SearchAds360Link createSearchAds360Link(
9762       PropertyName parent, SearchAds360Link searchAds360Link) {
9763     CreateSearchAds360LinkRequest request =
9764         CreateSearchAds360LinkRequest.newBuilder()
9765             .setParent(parent == null ? null : parent.toString())
9766             .setSearchAds360Link(searchAds360Link)
9767             .build();
9768     return createSearchAds360Link(request);
9769   }
9770 
9771   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9772   /**
9773    * Creates a SearchAds360Link.
9774    *
9775    * <p>Sample code:
9776    *
9777    * <pre>{@code
9778    * // This snippet has been automatically generated and should be regarded as a code template only.
9779    * // It will require modifications to work:
9780    * // - It may require correct/in-range values for request initialization.
9781    * // - It may require specifying regional endpoints when creating the service client as shown in
9782    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9783    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9784    *     AnalyticsAdminServiceClient.create()) {
9785    *   String parent = PropertyName.of("[PROPERTY]").toString();
9786    *   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
9787    *   SearchAds360Link response =
9788    *       analyticsAdminServiceClient.createSearchAds360Link(parent, searchAds360Link);
9789    * }
9790    * }</pre>
9791    *
9792    * @param parent Required. Example format: properties/1234
9793    * @param searchAds360Link Required. The SearchAds360Link to create.
9794    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9795    */
createSearchAds360Link( String parent, SearchAds360Link searchAds360Link)9796   public final SearchAds360Link createSearchAds360Link(
9797       String parent, SearchAds360Link searchAds360Link) {
9798     CreateSearchAds360LinkRequest request =
9799         CreateSearchAds360LinkRequest.newBuilder()
9800             .setParent(parent)
9801             .setSearchAds360Link(searchAds360Link)
9802             .build();
9803     return createSearchAds360Link(request);
9804   }
9805 
9806   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9807   /**
9808    * Creates a SearchAds360Link.
9809    *
9810    * <p>Sample code:
9811    *
9812    * <pre>{@code
9813    * // This snippet has been automatically generated and should be regarded as a code template only.
9814    * // It will require modifications to work:
9815    * // - It may require correct/in-range values for request initialization.
9816    * // - It may require specifying regional endpoints when creating the service client as shown in
9817    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9818    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9819    *     AnalyticsAdminServiceClient.create()) {
9820    *   CreateSearchAds360LinkRequest request =
9821    *       CreateSearchAds360LinkRequest.newBuilder()
9822    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9823    *           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
9824    *           .build();
9825    *   SearchAds360Link response = analyticsAdminServiceClient.createSearchAds360Link(request);
9826    * }
9827    * }</pre>
9828    *
9829    * @param request The request object containing all of the parameters for the API call.
9830    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9831    */
createSearchAds360Link(CreateSearchAds360LinkRequest request)9832   public final SearchAds360Link createSearchAds360Link(CreateSearchAds360LinkRequest request) {
9833     return createSearchAds360LinkCallable().call(request);
9834   }
9835 
9836   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9837   /**
9838    * Creates a SearchAds360Link.
9839    *
9840    * <p>Sample code:
9841    *
9842    * <pre>{@code
9843    * // This snippet has been automatically generated and should be regarded as a code template only.
9844    * // It will require modifications to work:
9845    * // - It may require correct/in-range values for request initialization.
9846    * // - It may require specifying regional endpoints when creating the service client as shown in
9847    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9848    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9849    *     AnalyticsAdminServiceClient.create()) {
9850    *   CreateSearchAds360LinkRequest request =
9851    *       CreateSearchAds360LinkRequest.newBuilder()
9852    *           .setParent(PropertyName.of("[PROPERTY]").toString())
9853    *           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
9854    *           .build();
9855    *   ApiFuture<SearchAds360Link> future =
9856    *       analyticsAdminServiceClient.createSearchAds360LinkCallable().futureCall(request);
9857    *   // Do something.
9858    *   SearchAds360Link response = future.get();
9859    * }
9860    * }</pre>
9861    */
9862   public final UnaryCallable<CreateSearchAds360LinkRequest, SearchAds360Link>
createSearchAds360LinkCallable()9863       createSearchAds360LinkCallable() {
9864     return stub.createSearchAds360LinkCallable();
9865   }
9866 
9867   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9868   /**
9869    * Deletes a SearchAds360Link on a property.
9870    *
9871    * <p>Sample code:
9872    *
9873    * <pre>{@code
9874    * // This snippet has been automatically generated and should be regarded as a code template only.
9875    * // It will require modifications to work:
9876    * // - It may require correct/in-range values for request initialization.
9877    * // - It may require specifying regional endpoints when creating the service client as shown in
9878    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9879    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9880    *     AnalyticsAdminServiceClient.create()) {
9881    *   SearchAds360LinkName name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]");
9882    *   analyticsAdminServiceClient.deleteSearchAds360Link(name);
9883    * }
9884    * }</pre>
9885    *
9886    * @param name Required. The name of the SearchAds360Link to delete. Example format:
9887    *     properties/1234/SearchAds360Links/5678
9888    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9889    */
deleteSearchAds360Link(SearchAds360LinkName name)9890   public final void deleteSearchAds360Link(SearchAds360LinkName name) {
9891     DeleteSearchAds360LinkRequest request =
9892         DeleteSearchAds360LinkRequest.newBuilder()
9893             .setName(name == null ? null : name.toString())
9894             .build();
9895     deleteSearchAds360Link(request);
9896   }
9897 
9898   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9899   /**
9900    * Deletes a SearchAds360Link on a property.
9901    *
9902    * <p>Sample code:
9903    *
9904    * <pre>{@code
9905    * // This snippet has been automatically generated and should be regarded as a code template only.
9906    * // It will require modifications to work:
9907    * // - It may require correct/in-range values for request initialization.
9908    * // - It may require specifying regional endpoints when creating the service client as shown in
9909    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9910    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9911    *     AnalyticsAdminServiceClient.create()) {
9912    *   String name = SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString();
9913    *   analyticsAdminServiceClient.deleteSearchAds360Link(name);
9914    * }
9915    * }</pre>
9916    *
9917    * @param name Required. The name of the SearchAds360Link to delete. Example format:
9918    *     properties/1234/SearchAds360Links/5678
9919    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9920    */
deleteSearchAds360Link(String name)9921   public final void deleteSearchAds360Link(String name) {
9922     DeleteSearchAds360LinkRequest request =
9923         DeleteSearchAds360LinkRequest.newBuilder().setName(name).build();
9924     deleteSearchAds360Link(request);
9925   }
9926 
9927   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9928   /**
9929    * Deletes a SearchAds360Link on a property.
9930    *
9931    * <p>Sample code:
9932    *
9933    * <pre>{@code
9934    * // This snippet has been automatically generated and should be regarded as a code template only.
9935    * // It will require modifications to work:
9936    * // - It may require correct/in-range values for request initialization.
9937    * // - It may require specifying regional endpoints when creating the service client as shown in
9938    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9939    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9940    *     AnalyticsAdminServiceClient.create()) {
9941    *   DeleteSearchAds360LinkRequest request =
9942    *       DeleteSearchAds360LinkRequest.newBuilder()
9943    *           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
9944    *           .build();
9945    *   analyticsAdminServiceClient.deleteSearchAds360Link(request);
9946    * }
9947    * }</pre>
9948    *
9949    * @param request The request object containing all of the parameters for the API call.
9950    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
9951    */
deleteSearchAds360Link(DeleteSearchAds360LinkRequest request)9952   public final void deleteSearchAds360Link(DeleteSearchAds360LinkRequest request) {
9953     deleteSearchAds360LinkCallable().call(request);
9954   }
9955 
9956   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9957   /**
9958    * Deletes a SearchAds360Link on a property.
9959    *
9960    * <p>Sample code:
9961    *
9962    * <pre>{@code
9963    * // This snippet has been automatically generated and should be regarded as a code template only.
9964    * // It will require modifications to work:
9965    * // - It may require correct/in-range values for request initialization.
9966    * // - It may require specifying regional endpoints when creating the service client as shown in
9967    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9968    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9969    *     AnalyticsAdminServiceClient.create()) {
9970    *   DeleteSearchAds360LinkRequest request =
9971    *       DeleteSearchAds360LinkRequest.newBuilder()
9972    *           .setName(SearchAds360LinkName.of("[PROPERTY]", "[SEARCH_ADS_360_LINK]").toString())
9973    *           .build();
9974    *   ApiFuture<Empty> future =
9975    *       analyticsAdminServiceClient.deleteSearchAds360LinkCallable().futureCall(request);
9976    *   // Do something.
9977    *   future.get();
9978    * }
9979    * }</pre>
9980    */
9981   public final UnaryCallable<DeleteSearchAds360LinkRequest, Empty>
deleteSearchAds360LinkCallable()9982       deleteSearchAds360LinkCallable() {
9983     return stub.deleteSearchAds360LinkCallable();
9984   }
9985 
9986   // AUTO-GENERATED DOCUMENTATION AND METHOD.
9987   /**
9988    * Updates a SearchAds360Link on a property.
9989    *
9990    * <p>Sample code:
9991    *
9992    * <pre>{@code
9993    * // This snippet has been automatically generated and should be regarded as a code template only.
9994    * // It will require modifications to work:
9995    * // - It may require correct/in-range values for request initialization.
9996    * // - It may require specifying regional endpoints when creating the service client as shown in
9997    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
9998    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
9999    *     AnalyticsAdminServiceClient.create()) {
10000    *   SearchAds360Link searchAds360Link = SearchAds360Link.newBuilder().build();
10001    *   FieldMask updateMask = FieldMask.newBuilder().build();
10002    *   SearchAds360Link response =
10003    *       analyticsAdminServiceClient.updateSearchAds360Link(searchAds360Link, updateMask);
10004    * }
10005    * }</pre>
10006    *
10007    * @param searchAds360Link The SearchAds360Link to update
10008    * @param updateMask Required. The list of fields to be updated. Omitted fields will not be
10009    *     updated. To replace the entire entity, use one path with the string "&#42;" to match all
10010    *     fields.
10011    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10012    */
updateSearchAds360Link( SearchAds360Link searchAds360Link, FieldMask updateMask)10013   public final SearchAds360Link updateSearchAds360Link(
10014       SearchAds360Link searchAds360Link, FieldMask updateMask) {
10015     UpdateSearchAds360LinkRequest request =
10016         UpdateSearchAds360LinkRequest.newBuilder()
10017             .setSearchAds360Link(searchAds360Link)
10018             .setUpdateMask(updateMask)
10019             .build();
10020     return updateSearchAds360Link(request);
10021   }
10022 
10023   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10024   /**
10025    * Updates a SearchAds360Link on a property.
10026    *
10027    * <p>Sample code:
10028    *
10029    * <pre>{@code
10030    * // This snippet has been automatically generated and should be regarded as a code template only.
10031    * // It will require modifications to work:
10032    * // - It may require correct/in-range values for request initialization.
10033    * // - It may require specifying regional endpoints when creating the service client as shown in
10034    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10035    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10036    *     AnalyticsAdminServiceClient.create()) {
10037    *   UpdateSearchAds360LinkRequest request =
10038    *       UpdateSearchAds360LinkRequest.newBuilder()
10039    *           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
10040    *           .setUpdateMask(FieldMask.newBuilder().build())
10041    *           .build();
10042    *   SearchAds360Link response = analyticsAdminServiceClient.updateSearchAds360Link(request);
10043    * }
10044    * }</pre>
10045    *
10046    * @param request The request object containing all of the parameters for the API call.
10047    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10048    */
updateSearchAds360Link(UpdateSearchAds360LinkRequest request)10049   public final SearchAds360Link updateSearchAds360Link(UpdateSearchAds360LinkRequest request) {
10050     return updateSearchAds360LinkCallable().call(request);
10051   }
10052 
10053   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10054   /**
10055    * Updates a SearchAds360Link on a property.
10056    *
10057    * <p>Sample code:
10058    *
10059    * <pre>{@code
10060    * // This snippet has been automatically generated and should be regarded as a code template only.
10061    * // It will require modifications to work:
10062    * // - It may require correct/in-range values for request initialization.
10063    * // - It may require specifying regional endpoints when creating the service client as shown in
10064    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10065    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10066    *     AnalyticsAdminServiceClient.create()) {
10067    *   UpdateSearchAds360LinkRequest request =
10068    *       UpdateSearchAds360LinkRequest.newBuilder()
10069    *           .setSearchAds360Link(SearchAds360Link.newBuilder().build())
10070    *           .setUpdateMask(FieldMask.newBuilder().build())
10071    *           .build();
10072    *   ApiFuture<SearchAds360Link> future =
10073    *       analyticsAdminServiceClient.updateSearchAds360LinkCallable().futureCall(request);
10074    *   // Do something.
10075    *   SearchAds360Link response = future.get();
10076    * }
10077    * }</pre>
10078    */
10079   public final UnaryCallable<UpdateSearchAds360LinkRequest, SearchAds360Link>
updateSearchAds360LinkCallable()10080       updateSearchAds360LinkCallable() {
10081     return stub.updateSearchAds360LinkCallable();
10082   }
10083 
10084   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10085   /**
10086    * Lookup for a AttributionSettings singleton.
10087    *
10088    * <p>Sample code:
10089    *
10090    * <pre>{@code
10091    * // This snippet has been automatically generated and should be regarded as a code template only.
10092    * // It will require modifications to work:
10093    * // - It may require correct/in-range values for request initialization.
10094    * // - It may require specifying regional endpoints when creating the service client as shown in
10095    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10096    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10097    *     AnalyticsAdminServiceClient.create()) {
10098    *   AttributionSettingsName name = AttributionSettingsName.of("[PROPERTY]");
10099    *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
10100    * }
10101    * }</pre>
10102    *
10103    * @param name Required. The name of the attribution settings to retrieve. Format:
10104    *     properties/{property}/attributionSettings
10105    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10106    */
getAttributionSettings(AttributionSettingsName name)10107   public final AttributionSettings getAttributionSettings(AttributionSettingsName name) {
10108     GetAttributionSettingsRequest request =
10109         GetAttributionSettingsRequest.newBuilder()
10110             .setName(name == null ? null : name.toString())
10111             .build();
10112     return getAttributionSettings(request);
10113   }
10114 
10115   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10116   /**
10117    * Lookup for a AttributionSettings singleton.
10118    *
10119    * <p>Sample code:
10120    *
10121    * <pre>{@code
10122    * // This snippet has been automatically generated and should be regarded as a code template only.
10123    * // It will require modifications to work:
10124    * // - It may require correct/in-range values for request initialization.
10125    * // - It may require specifying regional endpoints when creating the service client as shown in
10126    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10127    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10128    *     AnalyticsAdminServiceClient.create()) {
10129    *   String name = AttributionSettingsName.of("[PROPERTY]").toString();
10130    *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(name);
10131    * }
10132    * }</pre>
10133    *
10134    * @param name Required. The name of the attribution settings to retrieve. Format:
10135    *     properties/{property}/attributionSettings
10136    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10137    */
getAttributionSettings(String name)10138   public final AttributionSettings getAttributionSettings(String name) {
10139     GetAttributionSettingsRequest request =
10140         GetAttributionSettingsRequest.newBuilder().setName(name).build();
10141     return getAttributionSettings(request);
10142   }
10143 
10144   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10145   /**
10146    * Lookup for a AttributionSettings singleton.
10147    *
10148    * <p>Sample code:
10149    *
10150    * <pre>{@code
10151    * // This snippet has been automatically generated and should be regarded as a code template only.
10152    * // It will require modifications to work:
10153    * // - It may require correct/in-range values for request initialization.
10154    * // - It may require specifying regional endpoints when creating the service client as shown in
10155    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10156    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10157    *     AnalyticsAdminServiceClient.create()) {
10158    *   GetAttributionSettingsRequest request =
10159    *       GetAttributionSettingsRequest.newBuilder()
10160    *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
10161    *           .build();
10162    *   AttributionSettings response = analyticsAdminServiceClient.getAttributionSettings(request);
10163    * }
10164    * }</pre>
10165    *
10166    * @param request The request object containing all of the parameters for the API call.
10167    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10168    */
getAttributionSettings(GetAttributionSettingsRequest request)10169   public final AttributionSettings getAttributionSettings(GetAttributionSettingsRequest request) {
10170     return getAttributionSettingsCallable().call(request);
10171   }
10172 
10173   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10174   /**
10175    * Lookup for a AttributionSettings singleton.
10176    *
10177    * <p>Sample code:
10178    *
10179    * <pre>{@code
10180    * // This snippet has been automatically generated and should be regarded as a code template only.
10181    * // It will require modifications to work:
10182    * // - It may require correct/in-range values for request initialization.
10183    * // - It may require specifying regional endpoints when creating the service client as shown in
10184    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10185    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10186    *     AnalyticsAdminServiceClient.create()) {
10187    *   GetAttributionSettingsRequest request =
10188    *       GetAttributionSettingsRequest.newBuilder()
10189    *           .setName(AttributionSettingsName.of("[PROPERTY]").toString())
10190    *           .build();
10191    *   ApiFuture<AttributionSettings> future =
10192    *       analyticsAdminServiceClient.getAttributionSettingsCallable().futureCall(request);
10193    *   // Do something.
10194    *   AttributionSettings response = future.get();
10195    * }
10196    * }</pre>
10197    */
10198   public final UnaryCallable<GetAttributionSettingsRequest, AttributionSettings>
getAttributionSettingsCallable()10199       getAttributionSettingsCallable() {
10200     return stub.getAttributionSettingsCallable();
10201   }
10202 
10203   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10204   /**
10205    * Updates attribution settings on a property.
10206    *
10207    * <p>Sample code:
10208    *
10209    * <pre>{@code
10210    * // This snippet has been automatically generated and should be regarded as a code template only.
10211    * // It will require modifications to work:
10212    * // - It may require correct/in-range values for request initialization.
10213    * // - It may require specifying regional endpoints when creating the service client as shown in
10214    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10215    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10216    *     AnalyticsAdminServiceClient.create()) {
10217    *   AttributionSettings attributionSettings = AttributionSettings.newBuilder().build();
10218    *   FieldMask updateMask = FieldMask.newBuilder().build();
10219    *   AttributionSettings response =
10220    *       analyticsAdminServiceClient.updateAttributionSettings(attributionSettings, updateMask);
10221    * }
10222    * }</pre>
10223    *
10224    * @param attributionSettings Required. The attribution settings to update. The `name` field is
10225    *     used to identify the settings to be updated.
10226    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
10227    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
10228    *     entity, use one path with the string "&#42;" to match all fields.
10229    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10230    */
updateAttributionSettings( AttributionSettings attributionSettings, FieldMask updateMask)10231   public final AttributionSettings updateAttributionSettings(
10232       AttributionSettings attributionSettings, FieldMask updateMask) {
10233     UpdateAttributionSettingsRequest request =
10234         UpdateAttributionSettingsRequest.newBuilder()
10235             .setAttributionSettings(attributionSettings)
10236             .setUpdateMask(updateMask)
10237             .build();
10238     return updateAttributionSettings(request);
10239   }
10240 
10241   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10242   /**
10243    * Updates attribution settings on a property.
10244    *
10245    * <p>Sample code:
10246    *
10247    * <pre>{@code
10248    * // This snippet has been automatically generated and should be regarded as a code template only.
10249    * // It will require modifications to work:
10250    * // - It may require correct/in-range values for request initialization.
10251    * // - It may require specifying regional endpoints when creating the service client as shown in
10252    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10253    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10254    *     AnalyticsAdminServiceClient.create()) {
10255    *   UpdateAttributionSettingsRequest request =
10256    *       UpdateAttributionSettingsRequest.newBuilder()
10257    *           .setAttributionSettings(AttributionSettings.newBuilder().build())
10258    *           .setUpdateMask(FieldMask.newBuilder().build())
10259    *           .build();
10260    *   AttributionSettings response = analyticsAdminServiceClient.updateAttributionSettings(request);
10261    * }
10262    * }</pre>
10263    *
10264    * @param request The request object containing all of the parameters for the API call.
10265    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10266    */
updateAttributionSettings( UpdateAttributionSettingsRequest request)10267   public final AttributionSettings updateAttributionSettings(
10268       UpdateAttributionSettingsRequest request) {
10269     return updateAttributionSettingsCallable().call(request);
10270   }
10271 
10272   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10273   /**
10274    * Updates attribution settings on a property.
10275    *
10276    * <p>Sample code:
10277    *
10278    * <pre>{@code
10279    * // This snippet has been automatically generated and should be regarded as a code template only.
10280    * // It will require modifications to work:
10281    * // - It may require correct/in-range values for request initialization.
10282    * // - It may require specifying regional endpoints when creating the service client as shown in
10283    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10284    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10285    *     AnalyticsAdminServiceClient.create()) {
10286    *   UpdateAttributionSettingsRequest request =
10287    *       UpdateAttributionSettingsRequest.newBuilder()
10288    *           .setAttributionSettings(AttributionSettings.newBuilder().build())
10289    *           .setUpdateMask(FieldMask.newBuilder().build())
10290    *           .build();
10291    *   ApiFuture<AttributionSettings> future =
10292    *       analyticsAdminServiceClient.updateAttributionSettingsCallable().futureCall(request);
10293    *   // Do something.
10294    *   AttributionSettings response = future.get();
10295    * }
10296    * }</pre>
10297    */
10298   public final UnaryCallable<UpdateAttributionSettingsRequest, AttributionSettings>
updateAttributionSettingsCallable()10299       updateAttributionSettingsCallable() {
10300     return stub.updateAttributionSettingsCallable();
10301   }
10302 
10303   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10304   /**
10305    * Returns a customized report of data access records. The report provides records of each time a
10306    * user reads Google Analytics reporting data. Access records are retained for up to 2 years.
10307    *
10308    * <p>Data Access Reports can be requested for a property. The property must be in Google
10309    * Analytics 360. This method is only available to Administrators.
10310    *
10311    * <p>These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and
10312    * other products like Firebase &amp; Admob that can retrieve data from Google Analytics through a
10313    * linkage. These records don't include property configuration changes like adding a stream or
10314    * changing a property's time zone. For configuration change history, see
10315    * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
10316    *
10317    * <p>Sample code:
10318    *
10319    * <pre>{@code
10320    * // This snippet has been automatically generated and should be regarded as a code template only.
10321    * // It will require modifications to work:
10322    * // - It may require correct/in-range values for request initialization.
10323    * // - It may require specifying regional endpoints when creating the service client as shown in
10324    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10325    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10326    *     AnalyticsAdminServiceClient.create()) {
10327    *   RunAccessReportRequest request =
10328    *       RunAccessReportRequest.newBuilder()
10329    *           .setEntity("entity-1298275357")
10330    *           .addAllDimensions(new ArrayList<AccessDimension>())
10331    *           .addAllMetrics(new ArrayList<AccessMetric>())
10332    *           .addAllDateRanges(new ArrayList<AccessDateRange>())
10333    *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
10334    *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
10335    *           .setOffset(-1019779949)
10336    *           .setLimit(102976443)
10337    *           .setTimeZone("timeZone-2077180903")
10338    *           .addAllOrderBys(new ArrayList<AccessOrderBy>())
10339    *           .setReturnEntityQuota(true)
10340    *           .build();
10341    *   RunAccessReportResponse response = analyticsAdminServiceClient.runAccessReport(request);
10342    * }
10343    * }</pre>
10344    *
10345    * @param request The request object containing all of the parameters for the API call.
10346    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10347    */
runAccessReport(RunAccessReportRequest request)10348   public final RunAccessReportResponse runAccessReport(RunAccessReportRequest request) {
10349     return runAccessReportCallable().call(request);
10350   }
10351 
10352   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10353   /**
10354    * Returns a customized report of data access records. The report provides records of each time a
10355    * user reads Google Analytics reporting data. Access records are retained for up to 2 years.
10356    *
10357    * <p>Data Access Reports can be requested for a property. The property must be in Google
10358    * Analytics 360. This method is only available to Administrators.
10359    *
10360    * <p>These data access records include GA4 UI Reporting, GA4 UI Explorations, GA4 Data API, and
10361    * other products like Firebase &amp; Admob that can retrieve data from Google Analytics through a
10362    * linkage. These records don't include property configuration changes like adding a stream or
10363    * changing a property's time zone. For configuration change history, see
10364    * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
10365    *
10366    * <p>Sample code:
10367    *
10368    * <pre>{@code
10369    * // This snippet has been automatically generated and should be regarded as a code template only.
10370    * // It will require modifications to work:
10371    * // - It may require correct/in-range values for request initialization.
10372    * // - It may require specifying regional endpoints when creating the service client as shown in
10373    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10374    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10375    *     AnalyticsAdminServiceClient.create()) {
10376    *   RunAccessReportRequest request =
10377    *       RunAccessReportRequest.newBuilder()
10378    *           .setEntity("entity-1298275357")
10379    *           .addAllDimensions(new ArrayList<AccessDimension>())
10380    *           .addAllMetrics(new ArrayList<AccessMetric>())
10381    *           .addAllDateRanges(new ArrayList<AccessDateRange>())
10382    *           .setDimensionFilter(AccessFilterExpression.newBuilder().build())
10383    *           .setMetricFilter(AccessFilterExpression.newBuilder().build())
10384    *           .setOffset(-1019779949)
10385    *           .setLimit(102976443)
10386    *           .setTimeZone("timeZone-2077180903")
10387    *           .addAllOrderBys(new ArrayList<AccessOrderBy>())
10388    *           .setReturnEntityQuota(true)
10389    *           .build();
10390    *   ApiFuture<RunAccessReportResponse> future =
10391    *       analyticsAdminServiceClient.runAccessReportCallable().futureCall(request);
10392    *   // Do something.
10393    *   RunAccessReportResponse response = future.get();
10394    * }
10395    * }</pre>
10396    */
10397   public final UnaryCallable<RunAccessReportRequest, RunAccessReportResponse>
runAccessReportCallable()10398       runAccessReportCallable() {
10399     return stub.runAccessReportCallable();
10400   }
10401 
10402   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10403   /**
10404    * Creates an access binding on an account or property.
10405    *
10406    * <p>Sample code:
10407    *
10408    * <pre>{@code
10409    * // This snippet has been automatically generated and should be regarded as a code template only.
10410    * // It will require modifications to work:
10411    * // - It may require correct/in-range values for request initialization.
10412    * // - It may require specifying regional endpoints when creating the service client as shown in
10413    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10414    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10415    *     AnalyticsAdminServiceClient.create()) {
10416    *   AccountName parent = AccountName.of("[ACCOUNT]");
10417    *   AccessBinding accessBinding = AccessBinding.newBuilder().build();
10418    *   AccessBinding response =
10419    *       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
10420    * }
10421    * }</pre>
10422    *
10423    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10424    * @param accessBinding Required. The access binding to create.
10425    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10426    */
createAccessBinding(AccountName parent, AccessBinding accessBinding)10427   public final AccessBinding createAccessBinding(AccountName parent, AccessBinding accessBinding) {
10428     CreateAccessBindingRequest request =
10429         CreateAccessBindingRequest.newBuilder()
10430             .setParent(parent == null ? null : parent.toString())
10431             .setAccessBinding(accessBinding)
10432             .build();
10433     return createAccessBinding(request);
10434   }
10435 
10436   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10437   /**
10438    * Creates an access binding on an account or property.
10439    *
10440    * <p>Sample code:
10441    *
10442    * <pre>{@code
10443    * // This snippet has been automatically generated and should be regarded as a code template only.
10444    * // It will require modifications to work:
10445    * // - It may require correct/in-range values for request initialization.
10446    * // - It may require specifying regional endpoints when creating the service client as shown in
10447    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10448    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10449    *     AnalyticsAdminServiceClient.create()) {
10450    *   PropertyName parent = PropertyName.of("[PROPERTY]");
10451    *   AccessBinding accessBinding = AccessBinding.newBuilder().build();
10452    *   AccessBinding response =
10453    *       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
10454    * }
10455    * }</pre>
10456    *
10457    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10458    * @param accessBinding Required. The access binding to create.
10459    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10460    */
createAccessBinding(PropertyName parent, AccessBinding accessBinding)10461   public final AccessBinding createAccessBinding(PropertyName parent, AccessBinding accessBinding) {
10462     CreateAccessBindingRequest request =
10463         CreateAccessBindingRequest.newBuilder()
10464             .setParent(parent == null ? null : parent.toString())
10465             .setAccessBinding(accessBinding)
10466             .build();
10467     return createAccessBinding(request);
10468   }
10469 
10470   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10471   /**
10472    * Creates an access binding on an account or property.
10473    *
10474    * <p>Sample code:
10475    *
10476    * <pre>{@code
10477    * // This snippet has been automatically generated and should be regarded as a code template only.
10478    * // It will require modifications to work:
10479    * // - It may require correct/in-range values for request initialization.
10480    * // - It may require specifying regional endpoints when creating the service client as shown in
10481    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10482    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10483    *     AnalyticsAdminServiceClient.create()) {
10484    *   String parent = AccountName.of("[ACCOUNT]").toString();
10485    *   AccessBinding accessBinding = AccessBinding.newBuilder().build();
10486    *   AccessBinding response =
10487    *       analyticsAdminServiceClient.createAccessBinding(parent, accessBinding);
10488    * }
10489    * }</pre>
10490    *
10491    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10492    * @param accessBinding Required. The access binding to create.
10493    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10494    */
createAccessBinding(String parent, AccessBinding accessBinding)10495   public final AccessBinding createAccessBinding(String parent, AccessBinding accessBinding) {
10496     CreateAccessBindingRequest request =
10497         CreateAccessBindingRequest.newBuilder()
10498             .setParent(parent)
10499             .setAccessBinding(accessBinding)
10500             .build();
10501     return createAccessBinding(request);
10502   }
10503 
10504   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10505   /**
10506    * Creates an access binding on an account or property.
10507    *
10508    * <p>Sample code:
10509    *
10510    * <pre>{@code
10511    * // This snippet has been automatically generated and should be regarded as a code template only.
10512    * // It will require modifications to work:
10513    * // - It may require correct/in-range values for request initialization.
10514    * // - It may require specifying regional endpoints when creating the service client as shown in
10515    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10516    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10517    *     AnalyticsAdminServiceClient.create()) {
10518    *   CreateAccessBindingRequest request =
10519    *       CreateAccessBindingRequest.newBuilder()
10520    *           .setParent(AccountName.of("[ACCOUNT]").toString())
10521    *           .setAccessBinding(AccessBinding.newBuilder().build())
10522    *           .build();
10523    *   AccessBinding response = analyticsAdminServiceClient.createAccessBinding(request);
10524    * }
10525    * }</pre>
10526    *
10527    * @param request The request object containing all of the parameters for the API call.
10528    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10529    */
createAccessBinding(CreateAccessBindingRequest request)10530   public final AccessBinding createAccessBinding(CreateAccessBindingRequest request) {
10531     return createAccessBindingCallable().call(request);
10532   }
10533 
10534   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10535   /**
10536    * Creates an access binding on an account or property.
10537    *
10538    * <p>Sample code:
10539    *
10540    * <pre>{@code
10541    * // This snippet has been automatically generated and should be regarded as a code template only.
10542    * // It will require modifications to work:
10543    * // - It may require correct/in-range values for request initialization.
10544    * // - It may require specifying regional endpoints when creating the service client as shown in
10545    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10546    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10547    *     AnalyticsAdminServiceClient.create()) {
10548    *   CreateAccessBindingRequest request =
10549    *       CreateAccessBindingRequest.newBuilder()
10550    *           .setParent(AccountName.of("[ACCOUNT]").toString())
10551    *           .setAccessBinding(AccessBinding.newBuilder().build())
10552    *           .build();
10553    *   ApiFuture<AccessBinding> future =
10554    *       analyticsAdminServiceClient.createAccessBindingCallable().futureCall(request);
10555    *   // Do something.
10556    *   AccessBinding response = future.get();
10557    * }
10558    * }</pre>
10559    */
10560   public final UnaryCallable<CreateAccessBindingRequest, AccessBinding>
createAccessBindingCallable()10561       createAccessBindingCallable() {
10562     return stub.createAccessBindingCallable();
10563   }
10564 
10565   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10566   /**
10567    * Gets information about an access binding.
10568    *
10569    * <p>Sample code:
10570    *
10571    * <pre>{@code
10572    * // This snippet has been automatically generated and should be regarded as a code template only.
10573    * // It will require modifications to work:
10574    * // - It may require correct/in-range values for request initialization.
10575    * // - It may require specifying regional endpoints when creating the service client as shown in
10576    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10577    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10578    *     AnalyticsAdminServiceClient.create()) {
10579    *   AccessBindingName name =
10580    *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
10581    *   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name);
10582    * }
10583    * }</pre>
10584    *
10585    * @param name Required. The name of the access binding to retrieve. Formats: -
10586    *     accounts/{account}/accessBindings/{accessBinding} -
10587    *     properties/{property}/accessBindings/{accessBinding}
10588    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10589    */
getAccessBinding(AccessBindingName name)10590   public final AccessBinding getAccessBinding(AccessBindingName name) {
10591     GetAccessBindingRequest request =
10592         GetAccessBindingRequest.newBuilder().setName(name == null ? null : name.toString()).build();
10593     return getAccessBinding(request);
10594   }
10595 
10596   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10597   /**
10598    * Gets information about an access binding.
10599    *
10600    * <p>Sample code:
10601    *
10602    * <pre>{@code
10603    * // This snippet has been automatically generated and should be regarded as a code template only.
10604    * // It will require modifications to work:
10605    * // - It may require correct/in-range values for request initialization.
10606    * // - It may require specifying regional endpoints when creating the service client as shown in
10607    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10608    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10609    *     AnalyticsAdminServiceClient.create()) {
10610    *   String name =
10611    *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString();
10612    *   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(name);
10613    * }
10614    * }</pre>
10615    *
10616    * @param name Required. The name of the access binding to retrieve. Formats: -
10617    *     accounts/{account}/accessBindings/{accessBinding} -
10618    *     properties/{property}/accessBindings/{accessBinding}
10619    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10620    */
getAccessBinding(String name)10621   public final AccessBinding getAccessBinding(String name) {
10622     GetAccessBindingRequest request = GetAccessBindingRequest.newBuilder().setName(name).build();
10623     return getAccessBinding(request);
10624   }
10625 
10626   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10627   /**
10628    * Gets information about an access binding.
10629    *
10630    * <p>Sample code:
10631    *
10632    * <pre>{@code
10633    * // This snippet has been automatically generated and should be regarded as a code template only.
10634    * // It will require modifications to work:
10635    * // - It may require correct/in-range values for request initialization.
10636    * // - It may require specifying regional endpoints when creating the service client as shown in
10637    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10638    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10639    *     AnalyticsAdminServiceClient.create()) {
10640    *   GetAccessBindingRequest request =
10641    *       GetAccessBindingRequest.newBuilder()
10642    *           .setName(
10643    *               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
10644    *                   .toString())
10645    *           .build();
10646    *   AccessBinding response = analyticsAdminServiceClient.getAccessBinding(request);
10647    * }
10648    * }</pre>
10649    *
10650    * @param request The request object containing all of the parameters for the API call.
10651    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10652    */
getAccessBinding(GetAccessBindingRequest request)10653   public final AccessBinding getAccessBinding(GetAccessBindingRequest request) {
10654     return getAccessBindingCallable().call(request);
10655   }
10656 
10657   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10658   /**
10659    * Gets information about an access binding.
10660    *
10661    * <p>Sample code:
10662    *
10663    * <pre>{@code
10664    * // This snippet has been automatically generated and should be regarded as a code template only.
10665    * // It will require modifications to work:
10666    * // - It may require correct/in-range values for request initialization.
10667    * // - It may require specifying regional endpoints when creating the service client as shown in
10668    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10669    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10670    *     AnalyticsAdminServiceClient.create()) {
10671    *   GetAccessBindingRequest request =
10672    *       GetAccessBindingRequest.newBuilder()
10673    *           .setName(
10674    *               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
10675    *                   .toString())
10676    *           .build();
10677    *   ApiFuture<AccessBinding> future =
10678    *       analyticsAdminServiceClient.getAccessBindingCallable().futureCall(request);
10679    *   // Do something.
10680    *   AccessBinding response = future.get();
10681    * }
10682    * }</pre>
10683    */
getAccessBindingCallable()10684   public final UnaryCallable<GetAccessBindingRequest, AccessBinding> getAccessBindingCallable() {
10685     return stub.getAccessBindingCallable();
10686   }
10687 
10688   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10689   /**
10690    * Updates an access binding on an account or property.
10691    *
10692    * <p>Sample code:
10693    *
10694    * <pre>{@code
10695    * // This snippet has been automatically generated and should be regarded as a code template only.
10696    * // It will require modifications to work:
10697    * // - It may require correct/in-range values for request initialization.
10698    * // - It may require specifying regional endpoints when creating the service client as shown in
10699    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10700    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10701    *     AnalyticsAdminServiceClient.create()) {
10702    *   AccessBinding accessBinding = AccessBinding.newBuilder().build();
10703    *   AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(accessBinding);
10704    * }
10705    * }</pre>
10706    *
10707    * @param accessBinding Required. The access binding to update.
10708    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10709    */
updateAccessBinding(AccessBinding accessBinding)10710   public final AccessBinding updateAccessBinding(AccessBinding accessBinding) {
10711     UpdateAccessBindingRequest request =
10712         UpdateAccessBindingRequest.newBuilder().setAccessBinding(accessBinding).build();
10713     return updateAccessBinding(request);
10714   }
10715 
10716   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10717   /**
10718    * Updates an access binding on an account or property.
10719    *
10720    * <p>Sample code:
10721    *
10722    * <pre>{@code
10723    * // This snippet has been automatically generated and should be regarded as a code template only.
10724    * // It will require modifications to work:
10725    * // - It may require correct/in-range values for request initialization.
10726    * // - It may require specifying regional endpoints when creating the service client as shown in
10727    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10728    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10729    *     AnalyticsAdminServiceClient.create()) {
10730    *   UpdateAccessBindingRequest request =
10731    *       UpdateAccessBindingRequest.newBuilder()
10732    *           .setAccessBinding(AccessBinding.newBuilder().build())
10733    *           .build();
10734    *   AccessBinding response = analyticsAdminServiceClient.updateAccessBinding(request);
10735    * }
10736    * }</pre>
10737    *
10738    * @param request The request object containing all of the parameters for the API call.
10739    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10740    */
updateAccessBinding(UpdateAccessBindingRequest request)10741   public final AccessBinding updateAccessBinding(UpdateAccessBindingRequest request) {
10742     return updateAccessBindingCallable().call(request);
10743   }
10744 
10745   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10746   /**
10747    * Updates an access binding on an account or property.
10748    *
10749    * <p>Sample code:
10750    *
10751    * <pre>{@code
10752    * // This snippet has been automatically generated and should be regarded as a code template only.
10753    * // It will require modifications to work:
10754    * // - It may require correct/in-range values for request initialization.
10755    * // - It may require specifying regional endpoints when creating the service client as shown in
10756    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10757    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10758    *     AnalyticsAdminServiceClient.create()) {
10759    *   UpdateAccessBindingRequest request =
10760    *       UpdateAccessBindingRequest.newBuilder()
10761    *           .setAccessBinding(AccessBinding.newBuilder().build())
10762    *           .build();
10763    *   ApiFuture<AccessBinding> future =
10764    *       analyticsAdminServiceClient.updateAccessBindingCallable().futureCall(request);
10765    *   // Do something.
10766    *   AccessBinding response = future.get();
10767    * }
10768    * }</pre>
10769    */
10770   public final UnaryCallable<UpdateAccessBindingRequest, AccessBinding>
updateAccessBindingCallable()10771       updateAccessBindingCallable() {
10772     return stub.updateAccessBindingCallable();
10773   }
10774 
10775   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10776   /**
10777    * Deletes an access binding on an account or property.
10778    *
10779    * <p>Sample code:
10780    *
10781    * <pre>{@code
10782    * // This snippet has been automatically generated and should be regarded as a code template only.
10783    * // It will require modifications to work:
10784    * // - It may require correct/in-range values for request initialization.
10785    * // - It may require specifying regional endpoints when creating the service client as shown in
10786    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10787    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10788    *     AnalyticsAdminServiceClient.create()) {
10789    *   AccessBindingName name =
10790    *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]");
10791    *   analyticsAdminServiceClient.deleteAccessBinding(name);
10792    * }
10793    * }</pre>
10794    *
10795    * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} -
10796    *     properties/{property}/accessBindings/{accessBinding}
10797    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10798    */
deleteAccessBinding(AccessBindingName name)10799   public final void deleteAccessBinding(AccessBindingName name) {
10800     DeleteAccessBindingRequest request =
10801         DeleteAccessBindingRequest.newBuilder()
10802             .setName(name == null ? null : name.toString())
10803             .build();
10804     deleteAccessBinding(request);
10805   }
10806 
10807   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10808   /**
10809    * Deletes an access binding on an account or property.
10810    *
10811    * <p>Sample code:
10812    *
10813    * <pre>{@code
10814    * // This snippet has been automatically generated and should be regarded as a code template only.
10815    * // It will require modifications to work:
10816    * // - It may require correct/in-range values for request initialization.
10817    * // - It may require specifying regional endpoints when creating the service client as shown in
10818    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10819    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10820    *     AnalyticsAdminServiceClient.create()) {
10821    *   String name =
10822    *       AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]").toString();
10823    *   analyticsAdminServiceClient.deleteAccessBinding(name);
10824    * }
10825    * }</pre>
10826    *
10827    * @param name Required. Formats: - accounts/{account}/accessBindings/{accessBinding} -
10828    *     properties/{property}/accessBindings/{accessBinding}
10829    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10830    */
deleteAccessBinding(String name)10831   public final void deleteAccessBinding(String name) {
10832     DeleteAccessBindingRequest request =
10833         DeleteAccessBindingRequest.newBuilder().setName(name).build();
10834     deleteAccessBinding(request);
10835   }
10836 
10837   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10838   /**
10839    * Deletes an access binding on an account or property.
10840    *
10841    * <p>Sample code:
10842    *
10843    * <pre>{@code
10844    * // This snippet has been automatically generated and should be regarded as a code template only.
10845    * // It will require modifications to work:
10846    * // - It may require correct/in-range values for request initialization.
10847    * // - It may require specifying regional endpoints when creating the service client as shown in
10848    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10849    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10850    *     AnalyticsAdminServiceClient.create()) {
10851    *   DeleteAccessBindingRequest request =
10852    *       DeleteAccessBindingRequest.newBuilder()
10853    *           .setName(
10854    *               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
10855    *                   .toString())
10856    *           .build();
10857    *   analyticsAdminServiceClient.deleteAccessBinding(request);
10858    * }
10859    * }</pre>
10860    *
10861    * @param request The request object containing all of the parameters for the API call.
10862    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10863    */
deleteAccessBinding(DeleteAccessBindingRequest request)10864   public final void deleteAccessBinding(DeleteAccessBindingRequest request) {
10865     deleteAccessBindingCallable().call(request);
10866   }
10867 
10868   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10869   /**
10870    * Deletes an access binding on an account or property.
10871    *
10872    * <p>Sample code:
10873    *
10874    * <pre>{@code
10875    * // This snippet has been automatically generated and should be regarded as a code template only.
10876    * // It will require modifications to work:
10877    * // - It may require correct/in-range values for request initialization.
10878    * // - It may require specifying regional endpoints when creating the service client as shown in
10879    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10880    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10881    *     AnalyticsAdminServiceClient.create()) {
10882    *   DeleteAccessBindingRequest request =
10883    *       DeleteAccessBindingRequest.newBuilder()
10884    *           .setName(
10885    *               AccessBindingName.ofAccountAccessBindingName("[ACCOUNT]", "[ACCESS_BINDING]")
10886    *                   .toString())
10887    *           .build();
10888    *   ApiFuture<Empty> future =
10889    *       analyticsAdminServiceClient.deleteAccessBindingCallable().futureCall(request);
10890    *   // Do something.
10891    *   future.get();
10892    * }
10893    * }</pre>
10894    */
deleteAccessBindingCallable()10895   public final UnaryCallable<DeleteAccessBindingRequest, Empty> deleteAccessBindingCallable() {
10896     return stub.deleteAccessBindingCallable();
10897   }
10898 
10899   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10900   /**
10901    * Lists all access bindings on an account or property.
10902    *
10903    * <p>Sample code:
10904    *
10905    * <pre>{@code
10906    * // This snippet has been automatically generated and should be regarded as a code template only.
10907    * // It will require modifications to work:
10908    * // - It may require correct/in-range values for request initialization.
10909    * // - It may require specifying regional endpoints when creating the service client as shown in
10910    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10911    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10912    *     AnalyticsAdminServiceClient.create()) {
10913    *   AccountName parent = AccountName.of("[ACCOUNT]");
10914    *   for (AccessBinding element :
10915    *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
10916    *     // doThingsWith(element);
10917    *   }
10918    * }
10919    * }</pre>
10920    *
10921    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10922    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10923    */
listAccessBindings(AccountName parent)10924   public final ListAccessBindingsPagedResponse listAccessBindings(AccountName parent) {
10925     ListAccessBindingsRequest request =
10926         ListAccessBindingsRequest.newBuilder()
10927             .setParent(parent == null ? null : parent.toString())
10928             .build();
10929     return listAccessBindings(request);
10930   }
10931 
10932   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10933   /**
10934    * Lists all access bindings on an account or property.
10935    *
10936    * <p>Sample code:
10937    *
10938    * <pre>{@code
10939    * // This snippet has been automatically generated and should be regarded as a code template only.
10940    * // It will require modifications to work:
10941    * // - It may require correct/in-range values for request initialization.
10942    * // - It may require specifying regional endpoints when creating the service client as shown in
10943    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10944    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10945    *     AnalyticsAdminServiceClient.create()) {
10946    *   PropertyName parent = PropertyName.of("[PROPERTY]");
10947    *   for (AccessBinding element :
10948    *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
10949    *     // doThingsWith(element);
10950    *   }
10951    * }
10952    * }</pre>
10953    *
10954    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10955    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10956    */
listAccessBindings(PropertyName parent)10957   public final ListAccessBindingsPagedResponse listAccessBindings(PropertyName parent) {
10958     ListAccessBindingsRequest request =
10959         ListAccessBindingsRequest.newBuilder()
10960             .setParent(parent == null ? null : parent.toString())
10961             .build();
10962     return listAccessBindings(request);
10963   }
10964 
10965   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10966   /**
10967    * Lists all access bindings on an account or property.
10968    *
10969    * <p>Sample code:
10970    *
10971    * <pre>{@code
10972    * // This snippet has been automatically generated and should be regarded as a code template only.
10973    * // It will require modifications to work:
10974    * // - It may require correct/in-range values for request initialization.
10975    * // - It may require specifying regional endpoints when creating the service client as shown in
10976    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
10977    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
10978    *     AnalyticsAdminServiceClient.create()) {
10979    *   String parent = AccountName.of("[ACCOUNT]").toString();
10980    *   for (AccessBinding element :
10981    *       analyticsAdminServiceClient.listAccessBindings(parent).iterateAll()) {
10982    *     // doThingsWith(element);
10983    *   }
10984    * }
10985    * }</pre>
10986    *
10987    * @param parent Required. Formats: - accounts/{account} - properties/{property}
10988    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
10989    */
listAccessBindings(String parent)10990   public final ListAccessBindingsPagedResponse listAccessBindings(String parent) {
10991     ListAccessBindingsRequest request =
10992         ListAccessBindingsRequest.newBuilder().setParent(parent).build();
10993     return listAccessBindings(request);
10994   }
10995 
10996   // AUTO-GENERATED DOCUMENTATION AND METHOD.
10997   /**
10998    * Lists all access bindings on an account or property.
10999    *
11000    * <p>Sample code:
11001    *
11002    * <pre>{@code
11003    * // This snippet has been automatically generated and should be regarded as a code template only.
11004    * // It will require modifications to work:
11005    * // - It may require correct/in-range values for request initialization.
11006    * // - It may require specifying regional endpoints when creating the service client as shown in
11007    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11008    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11009    *     AnalyticsAdminServiceClient.create()) {
11010    *   ListAccessBindingsRequest request =
11011    *       ListAccessBindingsRequest.newBuilder()
11012    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11013    *           .setPageSize(883849137)
11014    *           .setPageToken("pageToken873572522")
11015    *           .build();
11016    *   for (AccessBinding element :
11017    *       analyticsAdminServiceClient.listAccessBindings(request).iterateAll()) {
11018    *     // doThingsWith(element);
11019    *   }
11020    * }
11021    * }</pre>
11022    *
11023    * @param request The request object containing all of the parameters for the API call.
11024    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11025    */
listAccessBindings( ListAccessBindingsRequest request)11026   public final ListAccessBindingsPagedResponse listAccessBindings(
11027       ListAccessBindingsRequest request) {
11028     return listAccessBindingsPagedCallable().call(request);
11029   }
11030 
11031   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11032   /**
11033    * Lists all access bindings on an account or property.
11034    *
11035    * <p>Sample code:
11036    *
11037    * <pre>{@code
11038    * // This snippet has been automatically generated and should be regarded as a code template only.
11039    * // It will require modifications to work:
11040    * // - It may require correct/in-range values for request initialization.
11041    * // - It may require specifying regional endpoints when creating the service client as shown in
11042    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11043    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11044    *     AnalyticsAdminServiceClient.create()) {
11045    *   ListAccessBindingsRequest request =
11046    *       ListAccessBindingsRequest.newBuilder()
11047    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11048    *           .setPageSize(883849137)
11049    *           .setPageToken("pageToken873572522")
11050    *           .build();
11051    *   ApiFuture<AccessBinding> future =
11052    *       analyticsAdminServiceClient.listAccessBindingsPagedCallable().futureCall(request);
11053    *   // Do something.
11054    *   for (AccessBinding element : future.get().iterateAll()) {
11055    *     // doThingsWith(element);
11056    *   }
11057    * }
11058    * }</pre>
11059    */
11060   public final UnaryCallable<ListAccessBindingsRequest, ListAccessBindingsPagedResponse>
listAccessBindingsPagedCallable()11061       listAccessBindingsPagedCallable() {
11062     return stub.listAccessBindingsPagedCallable();
11063   }
11064 
11065   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11066   /**
11067    * Lists all access bindings on an account or property.
11068    *
11069    * <p>Sample code:
11070    *
11071    * <pre>{@code
11072    * // This snippet has been automatically generated and should be regarded as a code template only.
11073    * // It will require modifications to work:
11074    * // - It may require correct/in-range values for request initialization.
11075    * // - It may require specifying regional endpoints when creating the service client as shown in
11076    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11077    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11078    *     AnalyticsAdminServiceClient.create()) {
11079    *   ListAccessBindingsRequest request =
11080    *       ListAccessBindingsRequest.newBuilder()
11081    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11082    *           .setPageSize(883849137)
11083    *           .setPageToken("pageToken873572522")
11084    *           .build();
11085    *   while (true) {
11086    *     ListAccessBindingsResponse response =
11087    *         analyticsAdminServiceClient.listAccessBindingsCallable().call(request);
11088    *     for (AccessBinding element : response.getAccessBindingsList()) {
11089    *       // doThingsWith(element);
11090    *     }
11091    *     String nextPageToken = response.getNextPageToken();
11092    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
11093    *       request = request.toBuilder().setPageToken(nextPageToken).build();
11094    *     } else {
11095    *       break;
11096    *     }
11097    *   }
11098    * }
11099    * }</pre>
11100    */
11101   public final UnaryCallable<ListAccessBindingsRequest, ListAccessBindingsResponse>
listAccessBindingsCallable()11102       listAccessBindingsCallable() {
11103     return stub.listAccessBindingsCallable();
11104   }
11105 
11106   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11107   /**
11108    * Creates information about multiple access bindings to an account or property.
11109    *
11110    * <p>This method is transactional. If any AccessBinding cannot be created, none of the
11111    * AccessBindings will be created.
11112    *
11113    * <p>Sample code:
11114    *
11115    * <pre>{@code
11116    * // This snippet has been automatically generated and should be regarded as a code template only.
11117    * // It will require modifications to work:
11118    * // - It may require correct/in-range values for request initialization.
11119    * // - It may require specifying regional endpoints when creating the service client as shown in
11120    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11121    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11122    *     AnalyticsAdminServiceClient.create()) {
11123    *   BatchCreateAccessBindingsRequest request =
11124    *       BatchCreateAccessBindingsRequest.newBuilder()
11125    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11126    *           .addAllRequests(new ArrayList<CreateAccessBindingRequest>())
11127    *           .build();
11128    *   BatchCreateAccessBindingsResponse response =
11129    *       analyticsAdminServiceClient.batchCreateAccessBindings(request);
11130    * }
11131    * }</pre>
11132    *
11133    * @param request The request object containing all of the parameters for the API call.
11134    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11135    */
batchCreateAccessBindings( BatchCreateAccessBindingsRequest request)11136   public final BatchCreateAccessBindingsResponse batchCreateAccessBindings(
11137       BatchCreateAccessBindingsRequest request) {
11138     return batchCreateAccessBindingsCallable().call(request);
11139   }
11140 
11141   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11142   /**
11143    * Creates information about multiple access bindings to an account or property.
11144    *
11145    * <p>This method is transactional. If any AccessBinding cannot be created, none of the
11146    * AccessBindings will be created.
11147    *
11148    * <p>Sample code:
11149    *
11150    * <pre>{@code
11151    * // This snippet has been automatically generated and should be regarded as a code template only.
11152    * // It will require modifications to work:
11153    * // - It may require correct/in-range values for request initialization.
11154    * // - It may require specifying regional endpoints when creating the service client as shown in
11155    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11156    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11157    *     AnalyticsAdminServiceClient.create()) {
11158    *   BatchCreateAccessBindingsRequest request =
11159    *       BatchCreateAccessBindingsRequest.newBuilder()
11160    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11161    *           .addAllRequests(new ArrayList<CreateAccessBindingRequest>())
11162    *           .build();
11163    *   ApiFuture<BatchCreateAccessBindingsResponse> future =
11164    *       analyticsAdminServiceClient.batchCreateAccessBindingsCallable().futureCall(request);
11165    *   // Do something.
11166    *   BatchCreateAccessBindingsResponse response = future.get();
11167    * }
11168    * }</pre>
11169    */
11170   public final UnaryCallable<BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse>
batchCreateAccessBindingsCallable()11171       batchCreateAccessBindingsCallable() {
11172     return stub.batchCreateAccessBindingsCallable();
11173   }
11174 
11175   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11176   /**
11177    * Gets information about multiple access bindings to an account or property.
11178    *
11179    * <p>Sample code:
11180    *
11181    * <pre>{@code
11182    * // This snippet has been automatically generated and should be regarded as a code template only.
11183    * // It will require modifications to work:
11184    * // - It may require correct/in-range values for request initialization.
11185    * // - It may require specifying regional endpoints when creating the service client as shown in
11186    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11187    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11188    *     AnalyticsAdminServiceClient.create()) {
11189    *   BatchGetAccessBindingsRequest request =
11190    *       BatchGetAccessBindingsRequest.newBuilder()
11191    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11192    *           .addAllNames(new ArrayList<String>())
11193    *           .build();
11194    *   BatchGetAccessBindingsResponse response =
11195    *       analyticsAdminServiceClient.batchGetAccessBindings(request);
11196    * }
11197    * }</pre>
11198    *
11199    * @param request The request object containing all of the parameters for the API call.
11200    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11201    */
batchGetAccessBindings( BatchGetAccessBindingsRequest request)11202   public final BatchGetAccessBindingsResponse batchGetAccessBindings(
11203       BatchGetAccessBindingsRequest request) {
11204     return batchGetAccessBindingsCallable().call(request);
11205   }
11206 
11207   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11208   /**
11209    * Gets information about multiple access bindings to an account or property.
11210    *
11211    * <p>Sample code:
11212    *
11213    * <pre>{@code
11214    * // This snippet has been automatically generated and should be regarded as a code template only.
11215    * // It will require modifications to work:
11216    * // - It may require correct/in-range values for request initialization.
11217    * // - It may require specifying regional endpoints when creating the service client as shown in
11218    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11219    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11220    *     AnalyticsAdminServiceClient.create()) {
11221    *   BatchGetAccessBindingsRequest request =
11222    *       BatchGetAccessBindingsRequest.newBuilder()
11223    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11224    *           .addAllNames(new ArrayList<String>())
11225    *           .build();
11226    *   ApiFuture<BatchGetAccessBindingsResponse> future =
11227    *       analyticsAdminServiceClient.batchGetAccessBindingsCallable().futureCall(request);
11228    *   // Do something.
11229    *   BatchGetAccessBindingsResponse response = future.get();
11230    * }
11231    * }</pre>
11232    */
11233   public final UnaryCallable<BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse>
batchGetAccessBindingsCallable()11234       batchGetAccessBindingsCallable() {
11235     return stub.batchGetAccessBindingsCallable();
11236   }
11237 
11238   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11239   /**
11240    * Updates information about multiple access bindings to an account or property.
11241    *
11242    * <p>Sample code:
11243    *
11244    * <pre>{@code
11245    * // This snippet has been automatically generated and should be regarded as a code template only.
11246    * // It will require modifications to work:
11247    * // - It may require correct/in-range values for request initialization.
11248    * // - It may require specifying regional endpoints when creating the service client as shown in
11249    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11250    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11251    *     AnalyticsAdminServiceClient.create()) {
11252    *   BatchUpdateAccessBindingsRequest request =
11253    *       BatchUpdateAccessBindingsRequest.newBuilder()
11254    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11255    *           .addAllRequests(new ArrayList<UpdateAccessBindingRequest>())
11256    *           .build();
11257    *   BatchUpdateAccessBindingsResponse response =
11258    *       analyticsAdminServiceClient.batchUpdateAccessBindings(request);
11259    * }
11260    * }</pre>
11261    *
11262    * @param request The request object containing all of the parameters for the API call.
11263    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11264    */
batchUpdateAccessBindings( BatchUpdateAccessBindingsRequest request)11265   public final BatchUpdateAccessBindingsResponse batchUpdateAccessBindings(
11266       BatchUpdateAccessBindingsRequest request) {
11267     return batchUpdateAccessBindingsCallable().call(request);
11268   }
11269 
11270   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11271   /**
11272    * Updates information about multiple access bindings to an account or property.
11273    *
11274    * <p>Sample code:
11275    *
11276    * <pre>{@code
11277    * // This snippet has been automatically generated and should be regarded as a code template only.
11278    * // It will require modifications to work:
11279    * // - It may require correct/in-range values for request initialization.
11280    * // - It may require specifying regional endpoints when creating the service client as shown in
11281    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11282    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11283    *     AnalyticsAdminServiceClient.create()) {
11284    *   BatchUpdateAccessBindingsRequest request =
11285    *       BatchUpdateAccessBindingsRequest.newBuilder()
11286    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11287    *           .addAllRequests(new ArrayList<UpdateAccessBindingRequest>())
11288    *           .build();
11289    *   ApiFuture<BatchUpdateAccessBindingsResponse> future =
11290    *       analyticsAdminServiceClient.batchUpdateAccessBindingsCallable().futureCall(request);
11291    *   // Do something.
11292    *   BatchUpdateAccessBindingsResponse response = future.get();
11293    * }
11294    * }</pre>
11295    */
11296   public final UnaryCallable<BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse>
batchUpdateAccessBindingsCallable()11297       batchUpdateAccessBindingsCallable() {
11298     return stub.batchUpdateAccessBindingsCallable();
11299   }
11300 
11301   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11302   /**
11303    * Deletes information about multiple users' links to an account or property.
11304    *
11305    * <p>Sample code:
11306    *
11307    * <pre>{@code
11308    * // This snippet has been automatically generated and should be regarded as a code template only.
11309    * // It will require modifications to work:
11310    * // - It may require correct/in-range values for request initialization.
11311    * // - It may require specifying regional endpoints when creating the service client as shown in
11312    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11313    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11314    *     AnalyticsAdminServiceClient.create()) {
11315    *   BatchDeleteAccessBindingsRequest request =
11316    *       BatchDeleteAccessBindingsRequest.newBuilder()
11317    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11318    *           .addAllRequests(new ArrayList<DeleteAccessBindingRequest>())
11319    *           .build();
11320    *   analyticsAdminServiceClient.batchDeleteAccessBindings(request);
11321    * }
11322    * }</pre>
11323    *
11324    * @param request The request object containing all of the parameters for the API call.
11325    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11326    */
batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request)11327   public final void batchDeleteAccessBindings(BatchDeleteAccessBindingsRequest request) {
11328     batchDeleteAccessBindingsCallable().call(request);
11329   }
11330 
11331   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11332   /**
11333    * Deletes information about multiple users' links to an account or property.
11334    *
11335    * <p>Sample code:
11336    *
11337    * <pre>{@code
11338    * // This snippet has been automatically generated and should be regarded as a code template only.
11339    * // It will require modifications to work:
11340    * // - It may require correct/in-range values for request initialization.
11341    * // - It may require specifying regional endpoints when creating the service client as shown in
11342    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11343    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11344    *     AnalyticsAdminServiceClient.create()) {
11345    *   BatchDeleteAccessBindingsRequest request =
11346    *       BatchDeleteAccessBindingsRequest.newBuilder()
11347    *           .setParent(AccountName.of("[ACCOUNT]").toString())
11348    *           .addAllRequests(new ArrayList<DeleteAccessBindingRequest>())
11349    *           .build();
11350    *   ApiFuture<Empty> future =
11351    *       analyticsAdminServiceClient.batchDeleteAccessBindingsCallable().futureCall(request);
11352    *   // Do something.
11353    *   future.get();
11354    * }
11355    * }</pre>
11356    */
11357   public final UnaryCallable<BatchDeleteAccessBindingsRequest, Empty>
batchDeleteAccessBindingsCallable()11358       batchDeleteAccessBindingsCallable() {
11359     return stub.batchDeleteAccessBindingsCallable();
11360   }
11361 
11362   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11363   /**
11364    * Lookup for a single ExpandedDataSet.
11365    *
11366    * <p>Sample code:
11367    *
11368    * <pre>{@code
11369    * // This snippet has been automatically generated and should be regarded as a code template only.
11370    * // It will require modifications to work:
11371    * // - It may require correct/in-range values for request initialization.
11372    * // - It may require specifying regional endpoints when creating the service client as shown in
11373    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11374    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11375    *     AnalyticsAdminServiceClient.create()) {
11376    *   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
11377    *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
11378    * }
11379    * }</pre>
11380    *
11381    * @param name Required. The name of the ExpandedDataSet to get. Example format:
11382    *     properties/1234/expandedDataSets/5678
11383    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11384    */
getExpandedDataSet(ExpandedDataSetName name)11385   public final ExpandedDataSet getExpandedDataSet(ExpandedDataSetName name) {
11386     GetExpandedDataSetRequest request =
11387         GetExpandedDataSetRequest.newBuilder()
11388             .setName(name == null ? null : name.toString())
11389             .build();
11390     return getExpandedDataSet(request);
11391   }
11392 
11393   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11394   /**
11395    * Lookup for a single ExpandedDataSet.
11396    *
11397    * <p>Sample code:
11398    *
11399    * <pre>{@code
11400    * // This snippet has been automatically generated and should be regarded as a code template only.
11401    * // It will require modifications to work:
11402    * // - It may require correct/in-range values for request initialization.
11403    * // - It may require specifying regional endpoints when creating the service client as shown in
11404    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11405    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11406    *     AnalyticsAdminServiceClient.create()) {
11407    *   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
11408    *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(name);
11409    * }
11410    * }</pre>
11411    *
11412    * @param name Required. The name of the ExpandedDataSet to get. Example format:
11413    *     properties/1234/expandedDataSets/5678
11414    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11415    */
getExpandedDataSet(String name)11416   public final ExpandedDataSet getExpandedDataSet(String name) {
11417     GetExpandedDataSetRequest request =
11418         GetExpandedDataSetRequest.newBuilder().setName(name).build();
11419     return getExpandedDataSet(request);
11420   }
11421 
11422   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11423   /**
11424    * Lookup for a single ExpandedDataSet.
11425    *
11426    * <p>Sample code:
11427    *
11428    * <pre>{@code
11429    * // This snippet has been automatically generated and should be regarded as a code template only.
11430    * // It will require modifications to work:
11431    * // - It may require correct/in-range values for request initialization.
11432    * // - It may require specifying regional endpoints when creating the service client as shown in
11433    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11434    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11435    *     AnalyticsAdminServiceClient.create()) {
11436    *   GetExpandedDataSetRequest request =
11437    *       GetExpandedDataSetRequest.newBuilder()
11438    *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
11439    *           .build();
11440    *   ExpandedDataSet response = analyticsAdminServiceClient.getExpandedDataSet(request);
11441    * }
11442    * }</pre>
11443    *
11444    * @param request The request object containing all of the parameters for the API call.
11445    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11446    */
getExpandedDataSet(GetExpandedDataSetRequest request)11447   public final ExpandedDataSet getExpandedDataSet(GetExpandedDataSetRequest request) {
11448     return getExpandedDataSetCallable().call(request);
11449   }
11450 
11451   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11452   /**
11453    * Lookup for a single ExpandedDataSet.
11454    *
11455    * <p>Sample code:
11456    *
11457    * <pre>{@code
11458    * // This snippet has been automatically generated and should be regarded as a code template only.
11459    * // It will require modifications to work:
11460    * // - It may require correct/in-range values for request initialization.
11461    * // - It may require specifying regional endpoints when creating the service client as shown in
11462    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11463    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11464    *     AnalyticsAdminServiceClient.create()) {
11465    *   GetExpandedDataSetRequest request =
11466    *       GetExpandedDataSetRequest.newBuilder()
11467    *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
11468    *           .build();
11469    *   ApiFuture<ExpandedDataSet> future =
11470    *       analyticsAdminServiceClient.getExpandedDataSetCallable().futureCall(request);
11471    *   // Do something.
11472    *   ExpandedDataSet response = future.get();
11473    * }
11474    * }</pre>
11475    */
11476   public final UnaryCallable<GetExpandedDataSetRequest, ExpandedDataSet>
getExpandedDataSetCallable()11477       getExpandedDataSetCallable() {
11478     return stub.getExpandedDataSetCallable();
11479   }
11480 
11481   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11482   /**
11483    * Lists ExpandedDataSets on a property.
11484    *
11485    * <p>Sample code:
11486    *
11487    * <pre>{@code
11488    * // This snippet has been automatically generated and should be regarded as a code template only.
11489    * // It will require modifications to work:
11490    * // - It may require correct/in-range values for request initialization.
11491    * // - It may require specifying regional endpoints when creating the service client as shown in
11492    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11493    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11494    *     AnalyticsAdminServiceClient.create()) {
11495    *   PropertyName parent = PropertyName.of("[PROPERTY]");
11496    *   for (ExpandedDataSet element :
11497    *       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
11498    *     // doThingsWith(element);
11499    *   }
11500    * }
11501    * }</pre>
11502    *
11503    * @param parent Required. Example format: properties/1234
11504    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11505    */
listExpandedDataSets(PropertyName parent)11506   public final ListExpandedDataSetsPagedResponse listExpandedDataSets(PropertyName parent) {
11507     ListExpandedDataSetsRequest request =
11508         ListExpandedDataSetsRequest.newBuilder()
11509             .setParent(parent == null ? null : parent.toString())
11510             .build();
11511     return listExpandedDataSets(request);
11512   }
11513 
11514   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11515   /**
11516    * Lists ExpandedDataSets on a property.
11517    *
11518    * <p>Sample code:
11519    *
11520    * <pre>{@code
11521    * // This snippet has been automatically generated and should be regarded as a code template only.
11522    * // It will require modifications to work:
11523    * // - It may require correct/in-range values for request initialization.
11524    * // - It may require specifying regional endpoints when creating the service client as shown in
11525    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11526    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11527    *     AnalyticsAdminServiceClient.create()) {
11528    *   String parent = PropertyName.of("[PROPERTY]").toString();
11529    *   for (ExpandedDataSet element :
11530    *       analyticsAdminServiceClient.listExpandedDataSets(parent).iterateAll()) {
11531    *     // doThingsWith(element);
11532    *   }
11533    * }
11534    * }</pre>
11535    *
11536    * @param parent Required. Example format: properties/1234
11537    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11538    */
listExpandedDataSets(String parent)11539   public final ListExpandedDataSetsPagedResponse listExpandedDataSets(String parent) {
11540     ListExpandedDataSetsRequest request =
11541         ListExpandedDataSetsRequest.newBuilder().setParent(parent).build();
11542     return listExpandedDataSets(request);
11543   }
11544 
11545   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11546   /**
11547    * Lists ExpandedDataSets on a property.
11548    *
11549    * <p>Sample code:
11550    *
11551    * <pre>{@code
11552    * // This snippet has been automatically generated and should be regarded as a code template only.
11553    * // It will require modifications to work:
11554    * // - It may require correct/in-range values for request initialization.
11555    * // - It may require specifying regional endpoints when creating the service client as shown in
11556    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11557    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11558    *     AnalyticsAdminServiceClient.create()) {
11559    *   ListExpandedDataSetsRequest request =
11560    *       ListExpandedDataSetsRequest.newBuilder()
11561    *           .setParent(PropertyName.of("[PROPERTY]").toString())
11562    *           .setPageSize(883849137)
11563    *           .setPageToken("pageToken873572522")
11564    *           .build();
11565    *   for (ExpandedDataSet element :
11566    *       analyticsAdminServiceClient.listExpandedDataSets(request).iterateAll()) {
11567    *     // doThingsWith(element);
11568    *   }
11569    * }
11570    * }</pre>
11571    *
11572    * @param request The request object containing all of the parameters for the API call.
11573    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11574    */
listExpandedDataSets( ListExpandedDataSetsRequest request)11575   public final ListExpandedDataSetsPagedResponse listExpandedDataSets(
11576       ListExpandedDataSetsRequest request) {
11577     return listExpandedDataSetsPagedCallable().call(request);
11578   }
11579 
11580   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11581   /**
11582    * Lists ExpandedDataSets on a property.
11583    *
11584    * <p>Sample code:
11585    *
11586    * <pre>{@code
11587    * // This snippet has been automatically generated and should be regarded as a code template only.
11588    * // It will require modifications to work:
11589    * // - It may require correct/in-range values for request initialization.
11590    * // - It may require specifying regional endpoints when creating the service client as shown in
11591    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11592    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11593    *     AnalyticsAdminServiceClient.create()) {
11594    *   ListExpandedDataSetsRequest request =
11595    *       ListExpandedDataSetsRequest.newBuilder()
11596    *           .setParent(PropertyName.of("[PROPERTY]").toString())
11597    *           .setPageSize(883849137)
11598    *           .setPageToken("pageToken873572522")
11599    *           .build();
11600    *   ApiFuture<ExpandedDataSet> future =
11601    *       analyticsAdminServiceClient.listExpandedDataSetsPagedCallable().futureCall(request);
11602    *   // Do something.
11603    *   for (ExpandedDataSet element : future.get().iterateAll()) {
11604    *     // doThingsWith(element);
11605    *   }
11606    * }
11607    * }</pre>
11608    */
11609   public final UnaryCallable<ListExpandedDataSetsRequest, ListExpandedDataSetsPagedResponse>
listExpandedDataSetsPagedCallable()11610       listExpandedDataSetsPagedCallable() {
11611     return stub.listExpandedDataSetsPagedCallable();
11612   }
11613 
11614   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11615   /**
11616    * Lists ExpandedDataSets on a property.
11617    *
11618    * <p>Sample code:
11619    *
11620    * <pre>{@code
11621    * // This snippet has been automatically generated and should be regarded as a code template only.
11622    * // It will require modifications to work:
11623    * // - It may require correct/in-range values for request initialization.
11624    * // - It may require specifying regional endpoints when creating the service client as shown in
11625    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11626    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11627    *     AnalyticsAdminServiceClient.create()) {
11628    *   ListExpandedDataSetsRequest request =
11629    *       ListExpandedDataSetsRequest.newBuilder()
11630    *           .setParent(PropertyName.of("[PROPERTY]").toString())
11631    *           .setPageSize(883849137)
11632    *           .setPageToken("pageToken873572522")
11633    *           .build();
11634    *   while (true) {
11635    *     ListExpandedDataSetsResponse response =
11636    *         analyticsAdminServiceClient.listExpandedDataSetsCallable().call(request);
11637    *     for (ExpandedDataSet element : response.getExpandedDataSetsList()) {
11638    *       // doThingsWith(element);
11639    *     }
11640    *     String nextPageToken = response.getNextPageToken();
11641    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
11642    *       request = request.toBuilder().setPageToken(nextPageToken).build();
11643    *     } else {
11644    *       break;
11645    *     }
11646    *   }
11647    * }
11648    * }</pre>
11649    */
11650   public final UnaryCallable<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse>
listExpandedDataSetsCallable()11651       listExpandedDataSetsCallable() {
11652     return stub.listExpandedDataSetsCallable();
11653   }
11654 
11655   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11656   /**
11657    * Creates a ExpandedDataSet.
11658    *
11659    * <p>Sample code:
11660    *
11661    * <pre>{@code
11662    * // This snippet has been automatically generated and should be regarded as a code template only.
11663    * // It will require modifications to work:
11664    * // - It may require correct/in-range values for request initialization.
11665    * // - It may require specifying regional endpoints when creating the service client as shown in
11666    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11667    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11668    *     AnalyticsAdminServiceClient.create()) {
11669    *   PropertyName parent = PropertyName.of("[PROPERTY]");
11670    *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
11671    *   ExpandedDataSet response =
11672    *       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
11673    * }
11674    * }</pre>
11675    *
11676    * @param parent Required. Example format: properties/1234
11677    * @param expandedDataSet Required. The ExpandedDataSet to create.
11678    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11679    */
createExpandedDataSet( PropertyName parent, ExpandedDataSet expandedDataSet)11680   public final ExpandedDataSet createExpandedDataSet(
11681       PropertyName parent, ExpandedDataSet expandedDataSet) {
11682     CreateExpandedDataSetRequest request =
11683         CreateExpandedDataSetRequest.newBuilder()
11684             .setParent(parent == null ? null : parent.toString())
11685             .setExpandedDataSet(expandedDataSet)
11686             .build();
11687     return createExpandedDataSet(request);
11688   }
11689 
11690   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11691   /**
11692    * Creates a ExpandedDataSet.
11693    *
11694    * <p>Sample code:
11695    *
11696    * <pre>{@code
11697    * // This snippet has been automatically generated and should be regarded as a code template only.
11698    * // It will require modifications to work:
11699    * // - It may require correct/in-range values for request initialization.
11700    * // - It may require specifying regional endpoints when creating the service client as shown in
11701    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11702    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11703    *     AnalyticsAdminServiceClient.create()) {
11704    *   String parent = PropertyName.of("[PROPERTY]").toString();
11705    *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
11706    *   ExpandedDataSet response =
11707    *       analyticsAdminServiceClient.createExpandedDataSet(parent, expandedDataSet);
11708    * }
11709    * }</pre>
11710    *
11711    * @param parent Required. Example format: properties/1234
11712    * @param expandedDataSet Required. The ExpandedDataSet to create.
11713    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11714    */
createExpandedDataSet( String parent, ExpandedDataSet expandedDataSet)11715   public final ExpandedDataSet createExpandedDataSet(
11716       String parent, ExpandedDataSet expandedDataSet) {
11717     CreateExpandedDataSetRequest request =
11718         CreateExpandedDataSetRequest.newBuilder()
11719             .setParent(parent)
11720             .setExpandedDataSet(expandedDataSet)
11721             .build();
11722     return createExpandedDataSet(request);
11723   }
11724 
11725   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11726   /**
11727    * Creates a ExpandedDataSet.
11728    *
11729    * <p>Sample code:
11730    *
11731    * <pre>{@code
11732    * // This snippet has been automatically generated and should be regarded as a code template only.
11733    * // It will require modifications to work:
11734    * // - It may require correct/in-range values for request initialization.
11735    * // - It may require specifying regional endpoints when creating the service client as shown in
11736    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11737    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11738    *     AnalyticsAdminServiceClient.create()) {
11739    *   CreateExpandedDataSetRequest request =
11740    *       CreateExpandedDataSetRequest.newBuilder()
11741    *           .setParent(PropertyName.of("[PROPERTY]").toString())
11742    *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
11743    *           .build();
11744    *   ExpandedDataSet response = analyticsAdminServiceClient.createExpandedDataSet(request);
11745    * }
11746    * }</pre>
11747    *
11748    * @param request The request object containing all of the parameters for the API call.
11749    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11750    */
createExpandedDataSet(CreateExpandedDataSetRequest request)11751   public final ExpandedDataSet createExpandedDataSet(CreateExpandedDataSetRequest request) {
11752     return createExpandedDataSetCallable().call(request);
11753   }
11754 
11755   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11756   /**
11757    * Creates a ExpandedDataSet.
11758    *
11759    * <p>Sample code:
11760    *
11761    * <pre>{@code
11762    * // This snippet has been automatically generated and should be regarded as a code template only.
11763    * // It will require modifications to work:
11764    * // - It may require correct/in-range values for request initialization.
11765    * // - It may require specifying regional endpoints when creating the service client as shown in
11766    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11767    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11768    *     AnalyticsAdminServiceClient.create()) {
11769    *   CreateExpandedDataSetRequest request =
11770    *       CreateExpandedDataSetRequest.newBuilder()
11771    *           .setParent(PropertyName.of("[PROPERTY]").toString())
11772    *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
11773    *           .build();
11774    *   ApiFuture<ExpandedDataSet> future =
11775    *       analyticsAdminServiceClient.createExpandedDataSetCallable().futureCall(request);
11776    *   // Do something.
11777    *   ExpandedDataSet response = future.get();
11778    * }
11779    * }</pre>
11780    */
11781   public final UnaryCallable<CreateExpandedDataSetRequest, ExpandedDataSet>
createExpandedDataSetCallable()11782       createExpandedDataSetCallable() {
11783     return stub.createExpandedDataSetCallable();
11784   }
11785 
11786   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11787   /**
11788    * Updates a ExpandedDataSet on a property.
11789    *
11790    * <p>Sample code:
11791    *
11792    * <pre>{@code
11793    * // This snippet has been automatically generated and should be regarded as a code template only.
11794    * // It will require modifications to work:
11795    * // - It may require correct/in-range values for request initialization.
11796    * // - It may require specifying regional endpoints when creating the service client as shown in
11797    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11798    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11799    *     AnalyticsAdminServiceClient.create()) {
11800    *   ExpandedDataSet expandedDataSet = ExpandedDataSet.newBuilder().build();
11801    *   FieldMask updateMask = FieldMask.newBuilder().build();
11802    *   ExpandedDataSet response =
11803    *       analyticsAdminServiceClient.updateExpandedDataSet(expandedDataSet, updateMask);
11804    * }
11805    * }</pre>
11806    *
11807    * @param expandedDataSet Required. The ExpandedDataSet to update. The resource's `name` field is
11808    *     used to identify the ExpandedDataSet to be updated.
11809    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
11810    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
11811    *     entity, use one path with the string "&#42;" to match all fields.
11812    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11813    */
updateExpandedDataSet( ExpandedDataSet expandedDataSet, FieldMask updateMask)11814   public final ExpandedDataSet updateExpandedDataSet(
11815       ExpandedDataSet expandedDataSet, FieldMask updateMask) {
11816     UpdateExpandedDataSetRequest request =
11817         UpdateExpandedDataSetRequest.newBuilder()
11818             .setExpandedDataSet(expandedDataSet)
11819             .setUpdateMask(updateMask)
11820             .build();
11821     return updateExpandedDataSet(request);
11822   }
11823 
11824   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11825   /**
11826    * Updates a ExpandedDataSet on a property.
11827    *
11828    * <p>Sample code:
11829    *
11830    * <pre>{@code
11831    * // This snippet has been automatically generated and should be regarded as a code template only.
11832    * // It will require modifications to work:
11833    * // - It may require correct/in-range values for request initialization.
11834    * // - It may require specifying regional endpoints when creating the service client as shown in
11835    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11836    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11837    *     AnalyticsAdminServiceClient.create()) {
11838    *   UpdateExpandedDataSetRequest request =
11839    *       UpdateExpandedDataSetRequest.newBuilder()
11840    *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
11841    *           .setUpdateMask(FieldMask.newBuilder().build())
11842    *           .build();
11843    *   ExpandedDataSet response = analyticsAdminServiceClient.updateExpandedDataSet(request);
11844    * }
11845    * }</pre>
11846    *
11847    * @param request The request object containing all of the parameters for the API call.
11848    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11849    */
updateExpandedDataSet(UpdateExpandedDataSetRequest request)11850   public final ExpandedDataSet updateExpandedDataSet(UpdateExpandedDataSetRequest request) {
11851     return updateExpandedDataSetCallable().call(request);
11852   }
11853 
11854   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11855   /**
11856    * Updates a ExpandedDataSet on a property.
11857    *
11858    * <p>Sample code:
11859    *
11860    * <pre>{@code
11861    * // This snippet has been automatically generated and should be regarded as a code template only.
11862    * // It will require modifications to work:
11863    * // - It may require correct/in-range values for request initialization.
11864    * // - It may require specifying regional endpoints when creating the service client as shown in
11865    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11866    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11867    *     AnalyticsAdminServiceClient.create()) {
11868    *   UpdateExpandedDataSetRequest request =
11869    *       UpdateExpandedDataSetRequest.newBuilder()
11870    *           .setExpandedDataSet(ExpandedDataSet.newBuilder().build())
11871    *           .setUpdateMask(FieldMask.newBuilder().build())
11872    *           .build();
11873    *   ApiFuture<ExpandedDataSet> future =
11874    *       analyticsAdminServiceClient.updateExpandedDataSetCallable().futureCall(request);
11875    *   // Do something.
11876    *   ExpandedDataSet response = future.get();
11877    * }
11878    * }</pre>
11879    */
11880   public final UnaryCallable<UpdateExpandedDataSetRequest, ExpandedDataSet>
updateExpandedDataSetCallable()11881       updateExpandedDataSetCallable() {
11882     return stub.updateExpandedDataSetCallable();
11883   }
11884 
11885   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11886   /**
11887    * Deletes a ExpandedDataSet on a property.
11888    *
11889    * <p>Sample code:
11890    *
11891    * <pre>{@code
11892    * // This snippet has been automatically generated and should be regarded as a code template only.
11893    * // It will require modifications to work:
11894    * // - It may require correct/in-range values for request initialization.
11895    * // - It may require specifying regional endpoints when creating the service client as shown in
11896    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11897    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11898    *     AnalyticsAdminServiceClient.create()) {
11899    *   ExpandedDataSetName name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]");
11900    *   analyticsAdminServiceClient.deleteExpandedDataSet(name);
11901    * }
11902    * }</pre>
11903    *
11904    * @param name Required. Example format: properties/1234/expandedDataSets/5678
11905    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11906    */
deleteExpandedDataSet(ExpandedDataSetName name)11907   public final void deleteExpandedDataSet(ExpandedDataSetName name) {
11908     DeleteExpandedDataSetRequest request =
11909         DeleteExpandedDataSetRequest.newBuilder()
11910             .setName(name == null ? null : name.toString())
11911             .build();
11912     deleteExpandedDataSet(request);
11913   }
11914 
11915   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11916   /**
11917    * Deletes a ExpandedDataSet on a property.
11918    *
11919    * <p>Sample code:
11920    *
11921    * <pre>{@code
11922    * // This snippet has been automatically generated and should be regarded as a code template only.
11923    * // It will require modifications to work:
11924    * // - It may require correct/in-range values for request initialization.
11925    * // - It may require specifying regional endpoints when creating the service client as shown in
11926    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11927    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11928    *     AnalyticsAdminServiceClient.create()) {
11929    *   String name = ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString();
11930    *   analyticsAdminServiceClient.deleteExpandedDataSet(name);
11931    * }
11932    * }</pre>
11933    *
11934    * @param name Required. Example format: properties/1234/expandedDataSets/5678
11935    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11936    */
deleteExpandedDataSet(String name)11937   public final void deleteExpandedDataSet(String name) {
11938     DeleteExpandedDataSetRequest request =
11939         DeleteExpandedDataSetRequest.newBuilder().setName(name).build();
11940     deleteExpandedDataSet(request);
11941   }
11942 
11943   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11944   /**
11945    * Deletes a ExpandedDataSet on a property.
11946    *
11947    * <p>Sample code:
11948    *
11949    * <pre>{@code
11950    * // This snippet has been automatically generated and should be regarded as a code template only.
11951    * // It will require modifications to work:
11952    * // - It may require correct/in-range values for request initialization.
11953    * // - It may require specifying regional endpoints when creating the service client as shown in
11954    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11955    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11956    *     AnalyticsAdminServiceClient.create()) {
11957    *   DeleteExpandedDataSetRequest request =
11958    *       DeleteExpandedDataSetRequest.newBuilder()
11959    *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
11960    *           .build();
11961    *   analyticsAdminServiceClient.deleteExpandedDataSet(request);
11962    * }
11963    * }</pre>
11964    *
11965    * @param request The request object containing all of the parameters for the API call.
11966    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
11967    */
deleteExpandedDataSet(DeleteExpandedDataSetRequest request)11968   public final void deleteExpandedDataSet(DeleteExpandedDataSetRequest request) {
11969     deleteExpandedDataSetCallable().call(request);
11970   }
11971 
11972   // AUTO-GENERATED DOCUMENTATION AND METHOD.
11973   /**
11974    * Deletes a ExpandedDataSet on a property.
11975    *
11976    * <p>Sample code:
11977    *
11978    * <pre>{@code
11979    * // This snippet has been automatically generated and should be regarded as a code template only.
11980    * // It will require modifications to work:
11981    * // - It may require correct/in-range values for request initialization.
11982    * // - It may require specifying regional endpoints when creating the service client as shown in
11983    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
11984    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
11985    *     AnalyticsAdminServiceClient.create()) {
11986    *   DeleteExpandedDataSetRequest request =
11987    *       DeleteExpandedDataSetRequest.newBuilder()
11988    *           .setName(ExpandedDataSetName.of("[PROPERTY]", "[EXPANDED_DATA_SET]").toString())
11989    *           .build();
11990    *   ApiFuture<Empty> future =
11991    *       analyticsAdminServiceClient.deleteExpandedDataSetCallable().futureCall(request);
11992    *   // Do something.
11993    *   future.get();
11994    * }
11995    * }</pre>
11996    */
deleteExpandedDataSetCallable()11997   public final UnaryCallable<DeleteExpandedDataSetRequest, Empty> deleteExpandedDataSetCallable() {
11998     return stub.deleteExpandedDataSetCallable();
11999   }
12000 
12001   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12002   /**
12003    * Lookup for a single ChannelGroup.
12004    *
12005    * <p>Sample code:
12006    *
12007    * <pre>{@code
12008    * // This snippet has been automatically generated and should be regarded as a code template only.
12009    * // It will require modifications to work:
12010    * // - It may require correct/in-range values for request initialization.
12011    * // - It may require specifying regional endpoints when creating the service client as shown in
12012    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12013    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12014    *     AnalyticsAdminServiceClient.create()) {
12015    *   ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]");
12016    *   ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name);
12017    * }
12018    * }</pre>
12019    *
12020    * @param name Required. The ChannelGroup to get. Example format:
12021    *     properties/1234/channelGroups/5678
12022    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12023    */
getChannelGroup(ChannelGroupName name)12024   public final ChannelGroup getChannelGroup(ChannelGroupName name) {
12025     GetChannelGroupRequest request =
12026         GetChannelGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build();
12027     return getChannelGroup(request);
12028   }
12029 
12030   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12031   /**
12032    * Lookup for a single ChannelGroup.
12033    *
12034    * <p>Sample code:
12035    *
12036    * <pre>{@code
12037    * // This snippet has been automatically generated and should be regarded as a code template only.
12038    * // It will require modifications to work:
12039    * // - It may require correct/in-range values for request initialization.
12040    * // - It may require specifying regional endpoints when creating the service client as shown in
12041    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12042    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12043    *     AnalyticsAdminServiceClient.create()) {
12044    *   String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString();
12045    *   ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(name);
12046    * }
12047    * }</pre>
12048    *
12049    * @param name Required. The ChannelGroup to get. Example format:
12050    *     properties/1234/channelGroups/5678
12051    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12052    */
getChannelGroup(String name)12053   public final ChannelGroup getChannelGroup(String name) {
12054     GetChannelGroupRequest request = GetChannelGroupRequest.newBuilder().setName(name).build();
12055     return getChannelGroup(request);
12056   }
12057 
12058   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12059   /**
12060    * Lookup for a single ChannelGroup.
12061    *
12062    * <p>Sample code:
12063    *
12064    * <pre>{@code
12065    * // This snippet has been automatically generated and should be regarded as a code template only.
12066    * // It will require modifications to work:
12067    * // - It may require correct/in-range values for request initialization.
12068    * // - It may require specifying regional endpoints when creating the service client as shown in
12069    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12070    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12071    *     AnalyticsAdminServiceClient.create()) {
12072    *   GetChannelGroupRequest request =
12073    *       GetChannelGroupRequest.newBuilder()
12074    *           .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString())
12075    *           .build();
12076    *   ChannelGroup response = analyticsAdminServiceClient.getChannelGroup(request);
12077    * }
12078    * }</pre>
12079    *
12080    * @param request The request object containing all of the parameters for the API call.
12081    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12082    */
getChannelGroup(GetChannelGroupRequest request)12083   public final ChannelGroup getChannelGroup(GetChannelGroupRequest request) {
12084     return getChannelGroupCallable().call(request);
12085   }
12086 
12087   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12088   /**
12089    * Lookup for a single ChannelGroup.
12090    *
12091    * <p>Sample code:
12092    *
12093    * <pre>{@code
12094    * // This snippet has been automatically generated and should be regarded as a code template only.
12095    * // It will require modifications to work:
12096    * // - It may require correct/in-range values for request initialization.
12097    * // - It may require specifying regional endpoints when creating the service client as shown in
12098    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12099    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12100    *     AnalyticsAdminServiceClient.create()) {
12101    *   GetChannelGroupRequest request =
12102    *       GetChannelGroupRequest.newBuilder()
12103    *           .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString())
12104    *           .build();
12105    *   ApiFuture<ChannelGroup> future =
12106    *       analyticsAdminServiceClient.getChannelGroupCallable().futureCall(request);
12107    *   // Do something.
12108    *   ChannelGroup response = future.get();
12109    * }
12110    * }</pre>
12111    */
getChannelGroupCallable()12112   public final UnaryCallable<GetChannelGroupRequest, ChannelGroup> getChannelGroupCallable() {
12113     return stub.getChannelGroupCallable();
12114   }
12115 
12116   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12117   /**
12118    * Lists ChannelGroups on a property.
12119    *
12120    * <p>Sample code:
12121    *
12122    * <pre>{@code
12123    * // This snippet has been automatically generated and should be regarded as a code template only.
12124    * // It will require modifications to work:
12125    * // - It may require correct/in-range values for request initialization.
12126    * // - It may require specifying regional endpoints when creating the service client as shown in
12127    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12128    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12129    *     AnalyticsAdminServiceClient.create()) {
12130    *   PropertyName parent = PropertyName.of("[PROPERTY]");
12131    *   for (ChannelGroup element :
12132    *       analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) {
12133    *     // doThingsWith(element);
12134    *   }
12135    * }
12136    * }</pre>
12137    *
12138    * @param parent Required. The property for which to list ChannelGroups. Example format:
12139    *     properties/1234
12140    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12141    */
listChannelGroups(PropertyName parent)12142   public final ListChannelGroupsPagedResponse listChannelGroups(PropertyName parent) {
12143     ListChannelGroupsRequest request =
12144         ListChannelGroupsRequest.newBuilder()
12145             .setParent(parent == null ? null : parent.toString())
12146             .build();
12147     return listChannelGroups(request);
12148   }
12149 
12150   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12151   /**
12152    * Lists ChannelGroups on a property.
12153    *
12154    * <p>Sample code:
12155    *
12156    * <pre>{@code
12157    * // This snippet has been automatically generated and should be regarded as a code template only.
12158    * // It will require modifications to work:
12159    * // - It may require correct/in-range values for request initialization.
12160    * // - It may require specifying regional endpoints when creating the service client as shown in
12161    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12162    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12163    *     AnalyticsAdminServiceClient.create()) {
12164    *   String parent = PropertyName.of("[PROPERTY]").toString();
12165    *   for (ChannelGroup element :
12166    *       analyticsAdminServiceClient.listChannelGroups(parent).iterateAll()) {
12167    *     // doThingsWith(element);
12168    *   }
12169    * }
12170    * }</pre>
12171    *
12172    * @param parent Required. The property for which to list ChannelGroups. Example format:
12173    *     properties/1234
12174    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12175    */
listChannelGroups(String parent)12176   public final ListChannelGroupsPagedResponse listChannelGroups(String parent) {
12177     ListChannelGroupsRequest request =
12178         ListChannelGroupsRequest.newBuilder().setParent(parent).build();
12179     return listChannelGroups(request);
12180   }
12181 
12182   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12183   /**
12184    * Lists ChannelGroups on a property.
12185    *
12186    * <p>Sample code:
12187    *
12188    * <pre>{@code
12189    * // This snippet has been automatically generated and should be regarded as a code template only.
12190    * // It will require modifications to work:
12191    * // - It may require correct/in-range values for request initialization.
12192    * // - It may require specifying regional endpoints when creating the service client as shown in
12193    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12194    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12195    *     AnalyticsAdminServiceClient.create()) {
12196    *   ListChannelGroupsRequest request =
12197    *       ListChannelGroupsRequest.newBuilder()
12198    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12199    *           .setPageSize(883849137)
12200    *           .setPageToken("pageToken873572522")
12201    *           .build();
12202    *   for (ChannelGroup element :
12203    *       analyticsAdminServiceClient.listChannelGroups(request).iterateAll()) {
12204    *     // doThingsWith(element);
12205    *   }
12206    * }
12207    * }</pre>
12208    *
12209    * @param request The request object containing all of the parameters for the API call.
12210    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12211    */
listChannelGroups(ListChannelGroupsRequest request)12212   public final ListChannelGroupsPagedResponse listChannelGroups(ListChannelGroupsRequest request) {
12213     return listChannelGroupsPagedCallable().call(request);
12214   }
12215 
12216   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12217   /**
12218    * Lists ChannelGroups on a property.
12219    *
12220    * <p>Sample code:
12221    *
12222    * <pre>{@code
12223    * // This snippet has been automatically generated and should be regarded as a code template only.
12224    * // It will require modifications to work:
12225    * // - It may require correct/in-range values for request initialization.
12226    * // - It may require specifying regional endpoints when creating the service client as shown in
12227    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12228    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12229    *     AnalyticsAdminServiceClient.create()) {
12230    *   ListChannelGroupsRequest request =
12231    *       ListChannelGroupsRequest.newBuilder()
12232    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12233    *           .setPageSize(883849137)
12234    *           .setPageToken("pageToken873572522")
12235    *           .build();
12236    *   ApiFuture<ChannelGroup> future =
12237    *       analyticsAdminServiceClient.listChannelGroupsPagedCallable().futureCall(request);
12238    *   // Do something.
12239    *   for (ChannelGroup element : future.get().iterateAll()) {
12240    *     // doThingsWith(element);
12241    *   }
12242    * }
12243    * }</pre>
12244    */
12245   public final UnaryCallable<ListChannelGroupsRequest, ListChannelGroupsPagedResponse>
listChannelGroupsPagedCallable()12246       listChannelGroupsPagedCallable() {
12247     return stub.listChannelGroupsPagedCallable();
12248   }
12249 
12250   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12251   /**
12252    * Lists ChannelGroups on a property.
12253    *
12254    * <p>Sample code:
12255    *
12256    * <pre>{@code
12257    * // This snippet has been automatically generated and should be regarded as a code template only.
12258    * // It will require modifications to work:
12259    * // - It may require correct/in-range values for request initialization.
12260    * // - It may require specifying regional endpoints when creating the service client as shown in
12261    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12262    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12263    *     AnalyticsAdminServiceClient.create()) {
12264    *   ListChannelGroupsRequest request =
12265    *       ListChannelGroupsRequest.newBuilder()
12266    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12267    *           .setPageSize(883849137)
12268    *           .setPageToken("pageToken873572522")
12269    *           .build();
12270    *   while (true) {
12271    *     ListChannelGroupsResponse response =
12272    *         analyticsAdminServiceClient.listChannelGroupsCallable().call(request);
12273    *     for (ChannelGroup element : response.getChannelGroupsList()) {
12274    *       // doThingsWith(element);
12275    *     }
12276    *     String nextPageToken = response.getNextPageToken();
12277    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
12278    *       request = request.toBuilder().setPageToken(nextPageToken).build();
12279    *     } else {
12280    *       break;
12281    *     }
12282    *   }
12283    * }
12284    * }</pre>
12285    */
12286   public final UnaryCallable<ListChannelGroupsRequest, ListChannelGroupsResponse>
listChannelGroupsCallable()12287       listChannelGroupsCallable() {
12288     return stub.listChannelGroupsCallable();
12289   }
12290 
12291   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12292   /**
12293    * Creates a ChannelGroup.
12294    *
12295    * <p>Sample code:
12296    *
12297    * <pre>{@code
12298    * // This snippet has been automatically generated and should be regarded as a code template only.
12299    * // It will require modifications to work:
12300    * // - It may require correct/in-range values for request initialization.
12301    * // - It may require specifying regional endpoints when creating the service client as shown in
12302    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12303    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12304    *     AnalyticsAdminServiceClient.create()) {
12305    *   PropertyName parent = PropertyName.of("[PROPERTY]");
12306    *   ChannelGroup channelGroup = ChannelGroup.newBuilder().build();
12307    *   ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup);
12308    * }
12309    * }</pre>
12310    *
12311    * @param parent Required. The property for which to create a ChannelGroup. Example format:
12312    *     properties/1234
12313    * @param channelGroup Required. The ChannelGroup to create.
12314    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12315    */
createChannelGroup(PropertyName parent, ChannelGroup channelGroup)12316   public final ChannelGroup createChannelGroup(PropertyName parent, ChannelGroup channelGroup) {
12317     CreateChannelGroupRequest request =
12318         CreateChannelGroupRequest.newBuilder()
12319             .setParent(parent == null ? null : parent.toString())
12320             .setChannelGroup(channelGroup)
12321             .build();
12322     return createChannelGroup(request);
12323   }
12324 
12325   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12326   /**
12327    * Creates a ChannelGroup.
12328    *
12329    * <p>Sample code:
12330    *
12331    * <pre>{@code
12332    * // This snippet has been automatically generated and should be regarded as a code template only.
12333    * // It will require modifications to work:
12334    * // - It may require correct/in-range values for request initialization.
12335    * // - It may require specifying regional endpoints when creating the service client as shown in
12336    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12337    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12338    *     AnalyticsAdminServiceClient.create()) {
12339    *   String parent = PropertyName.of("[PROPERTY]").toString();
12340    *   ChannelGroup channelGroup = ChannelGroup.newBuilder().build();
12341    *   ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(parent, channelGroup);
12342    * }
12343    * }</pre>
12344    *
12345    * @param parent Required. The property for which to create a ChannelGroup. Example format:
12346    *     properties/1234
12347    * @param channelGroup Required. The ChannelGroup to create.
12348    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12349    */
createChannelGroup(String parent, ChannelGroup channelGroup)12350   public final ChannelGroup createChannelGroup(String parent, ChannelGroup channelGroup) {
12351     CreateChannelGroupRequest request =
12352         CreateChannelGroupRequest.newBuilder()
12353             .setParent(parent)
12354             .setChannelGroup(channelGroup)
12355             .build();
12356     return createChannelGroup(request);
12357   }
12358 
12359   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12360   /**
12361    * Creates a ChannelGroup.
12362    *
12363    * <p>Sample code:
12364    *
12365    * <pre>{@code
12366    * // This snippet has been automatically generated and should be regarded as a code template only.
12367    * // It will require modifications to work:
12368    * // - It may require correct/in-range values for request initialization.
12369    * // - It may require specifying regional endpoints when creating the service client as shown in
12370    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12371    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12372    *     AnalyticsAdminServiceClient.create()) {
12373    *   CreateChannelGroupRequest request =
12374    *       CreateChannelGroupRequest.newBuilder()
12375    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12376    *           .setChannelGroup(ChannelGroup.newBuilder().build())
12377    *           .build();
12378    *   ChannelGroup response = analyticsAdminServiceClient.createChannelGroup(request);
12379    * }
12380    * }</pre>
12381    *
12382    * @param request The request object containing all of the parameters for the API call.
12383    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12384    */
createChannelGroup(CreateChannelGroupRequest request)12385   public final ChannelGroup createChannelGroup(CreateChannelGroupRequest request) {
12386     return createChannelGroupCallable().call(request);
12387   }
12388 
12389   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12390   /**
12391    * Creates a ChannelGroup.
12392    *
12393    * <p>Sample code:
12394    *
12395    * <pre>{@code
12396    * // This snippet has been automatically generated and should be regarded as a code template only.
12397    * // It will require modifications to work:
12398    * // - It may require correct/in-range values for request initialization.
12399    * // - It may require specifying regional endpoints when creating the service client as shown in
12400    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12401    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12402    *     AnalyticsAdminServiceClient.create()) {
12403    *   CreateChannelGroupRequest request =
12404    *       CreateChannelGroupRequest.newBuilder()
12405    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12406    *           .setChannelGroup(ChannelGroup.newBuilder().build())
12407    *           .build();
12408    *   ApiFuture<ChannelGroup> future =
12409    *       analyticsAdminServiceClient.createChannelGroupCallable().futureCall(request);
12410    *   // Do something.
12411    *   ChannelGroup response = future.get();
12412    * }
12413    * }</pre>
12414    */
createChannelGroupCallable()12415   public final UnaryCallable<CreateChannelGroupRequest, ChannelGroup> createChannelGroupCallable() {
12416     return stub.createChannelGroupCallable();
12417   }
12418 
12419   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12420   /**
12421    * Updates a ChannelGroup.
12422    *
12423    * <p>Sample code:
12424    *
12425    * <pre>{@code
12426    * // This snippet has been automatically generated and should be regarded as a code template only.
12427    * // It will require modifications to work:
12428    * // - It may require correct/in-range values for request initialization.
12429    * // - It may require specifying regional endpoints when creating the service client as shown in
12430    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12431    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12432    *     AnalyticsAdminServiceClient.create()) {
12433    *   ChannelGroup channelGroup = ChannelGroup.newBuilder().build();
12434    *   FieldMask updateMask = FieldMask.newBuilder().build();
12435    *   ChannelGroup response =
12436    *       analyticsAdminServiceClient.updateChannelGroup(channelGroup, updateMask);
12437    * }
12438    * }</pre>
12439    *
12440    * @param channelGroup Required. The ChannelGroup to update. The resource's `name` field is used
12441    *     to identify the ChannelGroup to be updated.
12442    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
12443    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
12444    *     entity, use one path with the string "&#42;" to match all fields.
12445    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12446    */
updateChannelGroup(ChannelGroup channelGroup, FieldMask updateMask)12447   public final ChannelGroup updateChannelGroup(ChannelGroup channelGroup, FieldMask updateMask) {
12448     UpdateChannelGroupRequest request =
12449         UpdateChannelGroupRequest.newBuilder()
12450             .setChannelGroup(channelGroup)
12451             .setUpdateMask(updateMask)
12452             .build();
12453     return updateChannelGroup(request);
12454   }
12455 
12456   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12457   /**
12458    * Updates a ChannelGroup.
12459    *
12460    * <p>Sample code:
12461    *
12462    * <pre>{@code
12463    * // This snippet has been automatically generated and should be regarded as a code template only.
12464    * // It will require modifications to work:
12465    * // - It may require correct/in-range values for request initialization.
12466    * // - It may require specifying regional endpoints when creating the service client as shown in
12467    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12468    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12469    *     AnalyticsAdminServiceClient.create()) {
12470    *   UpdateChannelGroupRequest request =
12471    *       UpdateChannelGroupRequest.newBuilder()
12472    *           .setChannelGroup(ChannelGroup.newBuilder().build())
12473    *           .setUpdateMask(FieldMask.newBuilder().build())
12474    *           .build();
12475    *   ChannelGroup response = analyticsAdminServiceClient.updateChannelGroup(request);
12476    * }
12477    * }</pre>
12478    *
12479    * @param request The request object containing all of the parameters for the API call.
12480    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12481    */
updateChannelGroup(UpdateChannelGroupRequest request)12482   public final ChannelGroup updateChannelGroup(UpdateChannelGroupRequest request) {
12483     return updateChannelGroupCallable().call(request);
12484   }
12485 
12486   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12487   /**
12488    * Updates a ChannelGroup.
12489    *
12490    * <p>Sample code:
12491    *
12492    * <pre>{@code
12493    * // This snippet has been automatically generated and should be regarded as a code template only.
12494    * // It will require modifications to work:
12495    * // - It may require correct/in-range values for request initialization.
12496    * // - It may require specifying regional endpoints when creating the service client as shown in
12497    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12498    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12499    *     AnalyticsAdminServiceClient.create()) {
12500    *   UpdateChannelGroupRequest request =
12501    *       UpdateChannelGroupRequest.newBuilder()
12502    *           .setChannelGroup(ChannelGroup.newBuilder().build())
12503    *           .setUpdateMask(FieldMask.newBuilder().build())
12504    *           .build();
12505    *   ApiFuture<ChannelGroup> future =
12506    *       analyticsAdminServiceClient.updateChannelGroupCallable().futureCall(request);
12507    *   // Do something.
12508    *   ChannelGroup response = future.get();
12509    * }
12510    * }</pre>
12511    */
updateChannelGroupCallable()12512   public final UnaryCallable<UpdateChannelGroupRequest, ChannelGroup> updateChannelGroupCallable() {
12513     return stub.updateChannelGroupCallable();
12514   }
12515 
12516   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12517   /**
12518    * Deletes a ChannelGroup on a property.
12519    *
12520    * <p>Sample code:
12521    *
12522    * <pre>{@code
12523    * // This snippet has been automatically generated and should be regarded as a code template only.
12524    * // It will require modifications to work:
12525    * // - It may require correct/in-range values for request initialization.
12526    * // - It may require specifying regional endpoints when creating the service client as shown in
12527    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12528    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12529    *     AnalyticsAdminServiceClient.create()) {
12530    *   ChannelGroupName name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]");
12531    *   analyticsAdminServiceClient.deleteChannelGroup(name);
12532    * }
12533    * }</pre>
12534    *
12535    * @param name Required. The ChannelGroup to delete. Example format:
12536    *     properties/1234/channelGroups/5678
12537    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12538    */
deleteChannelGroup(ChannelGroupName name)12539   public final void deleteChannelGroup(ChannelGroupName name) {
12540     DeleteChannelGroupRequest request =
12541         DeleteChannelGroupRequest.newBuilder()
12542             .setName(name == null ? null : name.toString())
12543             .build();
12544     deleteChannelGroup(request);
12545   }
12546 
12547   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12548   /**
12549    * Deletes a ChannelGroup on a property.
12550    *
12551    * <p>Sample code:
12552    *
12553    * <pre>{@code
12554    * // This snippet has been automatically generated and should be regarded as a code template only.
12555    * // It will require modifications to work:
12556    * // - It may require correct/in-range values for request initialization.
12557    * // - It may require specifying regional endpoints when creating the service client as shown in
12558    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12559    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12560    *     AnalyticsAdminServiceClient.create()) {
12561    *   String name = ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString();
12562    *   analyticsAdminServiceClient.deleteChannelGroup(name);
12563    * }
12564    * }</pre>
12565    *
12566    * @param name Required. The ChannelGroup to delete. Example format:
12567    *     properties/1234/channelGroups/5678
12568    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12569    */
deleteChannelGroup(String name)12570   public final void deleteChannelGroup(String name) {
12571     DeleteChannelGroupRequest request =
12572         DeleteChannelGroupRequest.newBuilder().setName(name).build();
12573     deleteChannelGroup(request);
12574   }
12575 
12576   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12577   /**
12578    * Deletes a ChannelGroup on a property.
12579    *
12580    * <p>Sample code:
12581    *
12582    * <pre>{@code
12583    * // This snippet has been automatically generated and should be regarded as a code template only.
12584    * // It will require modifications to work:
12585    * // - It may require correct/in-range values for request initialization.
12586    * // - It may require specifying regional endpoints when creating the service client as shown in
12587    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12588    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12589    *     AnalyticsAdminServiceClient.create()) {
12590    *   DeleteChannelGroupRequest request =
12591    *       DeleteChannelGroupRequest.newBuilder()
12592    *           .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString())
12593    *           .build();
12594    *   analyticsAdminServiceClient.deleteChannelGroup(request);
12595    * }
12596    * }</pre>
12597    *
12598    * @param request The request object containing all of the parameters for the API call.
12599    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12600    */
deleteChannelGroup(DeleteChannelGroupRequest request)12601   public final void deleteChannelGroup(DeleteChannelGroupRequest request) {
12602     deleteChannelGroupCallable().call(request);
12603   }
12604 
12605   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12606   /**
12607    * Deletes a ChannelGroup on a property.
12608    *
12609    * <p>Sample code:
12610    *
12611    * <pre>{@code
12612    * // This snippet has been automatically generated and should be regarded as a code template only.
12613    * // It will require modifications to work:
12614    * // - It may require correct/in-range values for request initialization.
12615    * // - It may require specifying regional endpoints when creating the service client as shown in
12616    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12617    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12618    *     AnalyticsAdminServiceClient.create()) {
12619    *   DeleteChannelGroupRequest request =
12620    *       DeleteChannelGroupRequest.newBuilder()
12621    *           .setName(ChannelGroupName.of("[PROPERTY]", "[CHANNEL_GROUP]").toString())
12622    *           .build();
12623    *   ApiFuture<Empty> future =
12624    *       analyticsAdminServiceClient.deleteChannelGroupCallable().futureCall(request);
12625    *   // Do something.
12626    *   future.get();
12627    * }
12628    * }</pre>
12629    */
deleteChannelGroupCallable()12630   public final UnaryCallable<DeleteChannelGroupRequest, Empty> deleteChannelGroupCallable() {
12631     return stub.deleteChannelGroupCallable();
12632   }
12633 
12634   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12635   /**
12636    * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has
12637    * no effect on GA4 property.
12638    *
12639    * <p>Sample code:
12640    *
12641    * <pre>{@code
12642    * // This snippet has been automatically generated and should be regarded as a code template only.
12643    * // It will require modifications to work:
12644    * // - It may require correct/in-range values for request initialization.
12645    * // - It may require specifying regional endpoints when creating the service client as shown in
12646    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12647    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12648    *     AnalyticsAdminServiceClient.create()) {
12649    *   SetAutomatedGa4ConfigurationOptOutRequest request =
12650    *       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
12651    *           .setProperty("property-993141291")
12652    *           .setOptOut(true)
12653    *           .build();
12654    *   SetAutomatedGa4ConfigurationOptOutResponse response =
12655    *       analyticsAdminServiceClient.setAutomatedGa4ConfigurationOptOut(request);
12656    * }
12657    * }</pre>
12658    *
12659    * @param request The request object containing all of the parameters for the API call.
12660    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12661    */
setAutomatedGa4ConfigurationOptOut( SetAutomatedGa4ConfigurationOptOutRequest request)12662   public final SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut(
12663       SetAutomatedGa4ConfigurationOptOutRequest request) {
12664     return setAutomatedGa4ConfigurationOptOutCallable().call(request);
12665   }
12666 
12667   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12668   /**
12669    * Sets the opt out status for the automated GA4 setup process for a UA property. Note: this has
12670    * no effect on GA4 property.
12671    *
12672    * <p>Sample code:
12673    *
12674    * <pre>{@code
12675    * // This snippet has been automatically generated and should be regarded as a code template only.
12676    * // It will require modifications to work:
12677    * // - It may require correct/in-range values for request initialization.
12678    * // - It may require specifying regional endpoints when creating the service client as shown in
12679    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12680    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12681    *     AnalyticsAdminServiceClient.create()) {
12682    *   SetAutomatedGa4ConfigurationOptOutRequest request =
12683    *       SetAutomatedGa4ConfigurationOptOutRequest.newBuilder()
12684    *           .setProperty("property-993141291")
12685    *           .setOptOut(true)
12686    *           .build();
12687    *   ApiFuture<SetAutomatedGa4ConfigurationOptOutResponse> future =
12688    *       analyticsAdminServiceClient
12689    *           .setAutomatedGa4ConfigurationOptOutCallable()
12690    *           .futureCall(request);
12691    *   // Do something.
12692    *   SetAutomatedGa4ConfigurationOptOutResponse response = future.get();
12693    * }
12694    * }</pre>
12695    */
12696   public final UnaryCallable<
12697           SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse>
setAutomatedGa4ConfigurationOptOutCallable()12698       setAutomatedGa4ConfigurationOptOutCallable() {
12699     return stub.setAutomatedGa4ConfigurationOptOutCallable();
12700   }
12701 
12702   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12703   /**
12704    * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this
12705    * has no effect on GA4 property.
12706    *
12707    * <p>Sample code:
12708    *
12709    * <pre>{@code
12710    * // This snippet has been automatically generated and should be regarded as a code template only.
12711    * // It will require modifications to work:
12712    * // - It may require correct/in-range values for request initialization.
12713    * // - It may require specifying regional endpoints when creating the service client as shown in
12714    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12715    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12716    *     AnalyticsAdminServiceClient.create()) {
12717    *   FetchAutomatedGa4ConfigurationOptOutRequest request =
12718    *       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
12719    *           .setProperty("property-993141291")
12720    *           .build();
12721    *   FetchAutomatedGa4ConfigurationOptOutResponse response =
12722    *       analyticsAdminServiceClient.fetchAutomatedGa4ConfigurationOptOut(request);
12723    * }
12724    * }</pre>
12725    *
12726    * @param request The request object containing all of the parameters for the API call.
12727    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12728    */
fetchAutomatedGa4ConfigurationOptOut( FetchAutomatedGa4ConfigurationOptOutRequest request)12729   public final FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut(
12730       FetchAutomatedGa4ConfigurationOptOutRequest request) {
12731     return fetchAutomatedGa4ConfigurationOptOutCallable().call(request);
12732   }
12733 
12734   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12735   /**
12736    * Fetches the opt out status for the automated GA4 setup process for a UA property. Note: this
12737    * has no effect on GA4 property.
12738    *
12739    * <p>Sample code:
12740    *
12741    * <pre>{@code
12742    * // This snippet has been automatically generated and should be regarded as a code template only.
12743    * // It will require modifications to work:
12744    * // - It may require correct/in-range values for request initialization.
12745    * // - It may require specifying regional endpoints when creating the service client as shown in
12746    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12747    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12748    *     AnalyticsAdminServiceClient.create()) {
12749    *   FetchAutomatedGa4ConfigurationOptOutRequest request =
12750    *       FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder()
12751    *           .setProperty("property-993141291")
12752    *           .build();
12753    *   ApiFuture<FetchAutomatedGa4ConfigurationOptOutResponse> future =
12754    *       analyticsAdminServiceClient
12755    *           .fetchAutomatedGa4ConfigurationOptOutCallable()
12756    *           .futureCall(request);
12757    *   // Do something.
12758    *   FetchAutomatedGa4ConfigurationOptOutResponse response = future.get();
12759    * }
12760    * }</pre>
12761    */
12762   public final UnaryCallable<
12763           FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse>
fetchAutomatedGa4ConfigurationOptOutCallable()12764       fetchAutomatedGa4ConfigurationOptOutCallable() {
12765     return stub.fetchAutomatedGa4ConfigurationOptOutCallable();
12766   }
12767 
12768   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12769   /**
12770    * Lookup for a single BigQuery Link.
12771    *
12772    * <p>Sample code:
12773    *
12774    * <pre>{@code
12775    * // This snippet has been automatically generated and should be regarded as a code template only.
12776    * // It will require modifications to work:
12777    * // - It may require correct/in-range values for request initialization.
12778    * // - It may require specifying regional endpoints when creating the service client as shown in
12779    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12780    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12781    *     AnalyticsAdminServiceClient.create()) {
12782    *   BigQueryLinkName name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]");
12783    *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
12784    * }
12785    * }</pre>
12786    *
12787    * @param name Required. The name of the BigQuery link to lookup. Format:
12788    *     properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example:
12789    *     properties/123/bigQueryLinks/456
12790    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12791    */
getBigQueryLink(BigQueryLinkName name)12792   public final BigQueryLink getBigQueryLink(BigQueryLinkName name) {
12793     GetBigQueryLinkRequest request =
12794         GetBigQueryLinkRequest.newBuilder().setName(name == null ? null : name.toString()).build();
12795     return getBigQueryLink(request);
12796   }
12797 
12798   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12799   /**
12800    * Lookup for a single BigQuery Link.
12801    *
12802    * <p>Sample code:
12803    *
12804    * <pre>{@code
12805    * // This snippet has been automatically generated and should be regarded as a code template only.
12806    * // It will require modifications to work:
12807    * // - It may require correct/in-range values for request initialization.
12808    * // - It may require specifying regional endpoints when creating the service client as shown in
12809    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12810    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12811    *     AnalyticsAdminServiceClient.create()) {
12812    *   String name = BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString();
12813    *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(name);
12814    * }
12815    * }</pre>
12816    *
12817    * @param name Required. The name of the BigQuery link to lookup. Format:
12818    *     properties/{property_id}/bigQueryLinks/{bigquery_link_id} Example:
12819    *     properties/123/bigQueryLinks/456
12820    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12821    */
getBigQueryLink(String name)12822   public final BigQueryLink getBigQueryLink(String name) {
12823     GetBigQueryLinkRequest request = GetBigQueryLinkRequest.newBuilder().setName(name).build();
12824     return getBigQueryLink(request);
12825   }
12826 
12827   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12828   /**
12829    * Lookup for a single BigQuery Link.
12830    *
12831    * <p>Sample code:
12832    *
12833    * <pre>{@code
12834    * // This snippet has been automatically generated and should be regarded as a code template only.
12835    * // It will require modifications to work:
12836    * // - It may require correct/in-range values for request initialization.
12837    * // - It may require specifying regional endpoints when creating the service client as shown in
12838    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12839    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12840    *     AnalyticsAdminServiceClient.create()) {
12841    *   GetBigQueryLinkRequest request =
12842    *       GetBigQueryLinkRequest.newBuilder()
12843    *           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
12844    *           .build();
12845    *   BigQueryLink response = analyticsAdminServiceClient.getBigQueryLink(request);
12846    * }
12847    * }</pre>
12848    *
12849    * @param request The request object containing all of the parameters for the API call.
12850    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12851    */
getBigQueryLink(GetBigQueryLinkRequest request)12852   public final BigQueryLink getBigQueryLink(GetBigQueryLinkRequest request) {
12853     return getBigQueryLinkCallable().call(request);
12854   }
12855 
12856   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12857   /**
12858    * Lookup for a single BigQuery Link.
12859    *
12860    * <p>Sample code:
12861    *
12862    * <pre>{@code
12863    * // This snippet has been automatically generated and should be regarded as a code template only.
12864    * // It will require modifications to work:
12865    * // - It may require correct/in-range values for request initialization.
12866    * // - It may require specifying regional endpoints when creating the service client as shown in
12867    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12868    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12869    *     AnalyticsAdminServiceClient.create()) {
12870    *   GetBigQueryLinkRequest request =
12871    *       GetBigQueryLinkRequest.newBuilder()
12872    *           .setName(BigQueryLinkName.of("[PROPERTY]", "[BIGQUERY_LINK]").toString())
12873    *           .build();
12874    *   ApiFuture<BigQueryLink> future =
12875    *       analyticsAdminServiceClient.getBigQueryLinkCallable().futureCall(request);
12876    *   // Do something.
12877    *   BigQueryLink response = future.get();
12878    * }
12879    * }</pre>
12880    */
getBigQueryLinkCallable()12881   public final UnaryCallable<GetBigQueryLinkRequest, BigQueryLink> getBigQueryLinkCallable() {
12882     return stub.getBigQueryLinkCallable();
12883   }
12884 
12885   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12886   /**
12887    * Lists BigQuery Links on a property.
12888    *
12889    * <p>Sample code:
12890    *
12891    * <pre>{@code
12892    * // This snippet has been automatically generated and should be regarded as a code template only.
12893    * // It will require modifications to work:
12894    * // - It may require correct/in-range values for request initialization.
12895    * // - It may require specifying regional endpoints when creating the service client as shown in
12896    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12897    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12898    *     AnalyticsAdminServiceClient.create()) {
12899    *   PropertyName parent = PropertyName.of("[PROPERTY]");
12900    *   for (BigQueryLink element :
12901    *       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
12902    *     // doThingsWith(element);
12903    *   }
12904    * }
12905    * }</pre>
12906    *
12907    * @param parent Required. The name of the property to list BigQuery links under. Format:
12908    *     properties/{property_id} Example: properties/1234
12909    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12910    */
listBigQueryLinks(PropertyName parent)12911   public final ListBigQueryLinksPagedResponse listBigQueryLinks(PropertyName parent) {
12912     ListBigQueryLinksRequest request =
12913         ListBigQueryLinksRequest.newBuilder()
12914             .setParent(parent == null ? null : parent.toString())
12915             .build();
12916     return listBigQueryLinks(request);
12917   }
12918 
12919   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12920   /**
12921    * Lists BigQuery Links on a property.
12922    *
12923    * <p>Sample code:
12924    *
12925    * <pre>{@code
12926    * // This snippet has been automatically generated and should be regarded as a code template only.
12927    * // It will require modifications to work:
12928    * // - It may require correct/in-range values for request initialization.
12929    * // - It may require specifying regional endpoints when creating the service client as shown in
12930    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12931    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12932    *     AnalyticsAdminServiceClient.create()) {
12933    *   String parent = PropertyName.of("[PROPERTY]").toString();
12934    *   for (BigQueryLink element :
12935    *       analyticsAdminServiceClient.listBigQueryLinks(parent).iterateAll()) {
12936    *     // doThingsWith(element);
12937    *   }
12938    * }
12939    * }</pre>
12940    *
12941    * @param parent Required. The name of the property to list BigQuery links under. Format:
12942    *     properties/{property_id} Example: properties/1234
12943    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12944    */
listBigQueryLinks(String parent)12945   public final ListBigQueryLinksPagedResponse listBigQueryLinks(String parent) {
12946     ListBigQueryLinksRequest request =
12947         ListBigQueryLinksRequest.newBuilder().setParent(parent).build();
12948     return listBigQueryLinks(request);
12949   }
12950 
12951   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12952   /**
12953    * Lists BigQuery Links on a property.
12954    *
12955    * <p>Sample code:
12956    *
12957    * <pre>{@code
12958    * // This snippet has been automatically generated and should be regarded as a code template only.
12959    * // It will require modifications to work:
12960    * // - It may require correct/in-range values for request initialization.
12961    * // - It may require specifying regional endpoints when creating the service client as shown in
12962    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12963    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12964    *     AnalyticsAdminServiceClient.create()) {
12965    *   ListBigQueryLinksRequest request =
12966    *       ListBigQueryLinksRequest.newBuilder()
12967    *           .setParent(PropertyName.of("[PROPERTY]").toString())
12968    *           .setPageSize(883849137)
12969    *           .setPageToken("pageToken873572522")
12970    *           .build();
12971    *   for (BigQueryLink element :
12972    *       analyticsAdminServiceClient.listBigQueryLinks(request).iterateAll()) {
12973    *     // doThingsWith(element);
12974    *   }
12975    * }
12976    * }</pre>
12977    *
12978    * @param request The request object containing all of the parameters for the API call.
12979    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
12980    */
listBigQueryLinks(ListBigQueryLinksRequest request)12981   public final ListBigQueryLinksPagedResponse listBigQueryLinks(ListBigQueryLinksRequest request) {
12982     return listBigQueryLinksPagedCallable().call(request);
12983   }
12984 
12985   // AUTO-GENERATED DOCUMENTATION AND METHOD.
12986   /**
12987    * Lists BigQuery Links on a property.
12988    *
12989    * <p>Sample code:
12990    *
12991    * <pre>{@code
12992    * // This snippet has been automatically generated and should be regarded as a code template only.
12993    * // It will require modifications to work:
12994    * // - It may require correct/in-range values for request initialization.
12995    * // - It may require specifying regional endpoints when creating the service client as shown in
12996    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
12997    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
12998    *     AnalyticsAdminServiceClient.create()) {
12999    *   ListBigQueryLinksRequest request =
13000    *       ListBigQueryLinksRequest.newBuilder()
13001    *           .setParent(PropertyName.of("[PROPERTY]").toString())
13002    *           .setPageSize(883849137)
13003    *           .setPageToken("pageToken873572522")
13004    *           .build();
13005    *   ApiFuture<BigQueryLink> future =
13006    *       analyticsAdminServiceClient.listBigQueryLinksPagedCallable().futureCall(request);
13007    *   // Do something.
13008    *   for (BigQueryLink element : future.get().iterateAll()) {
13009    *     // doThingsWith(element);
13010    *   }
13011    * }
13012    * }</pre>
13013    */
13014   public final UnaryCallable<ListBigQueryLinksRequest, ListBigQueryLinksPagedResponse>
listBigQueryLinksPagedCallable()13015       listBigQueryLinksPagedCallable() {
13016     return stub.listBigQueryLinksPagedCallable();
13017   }
13018 
13019   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13020   /**
13021    * Lists BigQuery Links on a property.
13022    *
13023    * <p>Sample code:
13024    *
13025    * <pre>{@code
13026    * // This snippet has been automatically generated and should be regarded as a code template only.
13027    * // It will require modifications to work:
13028    * // - It may require correct/in-range values for request initialization.
13029    * // - It may require specifying regional endpoints when creating the service client as shown in
13030    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13031    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13032    *     AnalyticsAdminServiceClient.create()) {
13033    *   ListBigQueryLinksRequest request =
13034    *       ListBigQueryLinksRequest.newBuilder()
13035    *           .setParent(PropertyName.of("[PROPERTY]").toString())
13036    *           .setPageSize(883849137)
13037    *           .setPageToken("pageToken873572522")
13038    *           .build();
13039    *   while (true) {
13040    *     ListBigQueryLinksResponse response =
13041    *         analyticsAdminServiceClient.listBigQueryLinksCallable().call(request);
13042    *     for (BigQueryLink element : response.getBigqueryLinksList()) {
13043    *       // doThingsWith(element);
13044    *     }
13045    *     String nextPageToken = response.getNextPageToken();
13046    *     if (!Strings.isNullOrEmpty(nextPageToken)) {
13047    *       request = request.toBuilder().setPageToken(nextPageToken).build();
13048    *     } else {
13049    *       break;
13050    *     }
13051    *   }
13052    * }
13053    * }</pre>
13054    */
13055   public final UnaryCallable<ListBigQueryLinksRequest, ListBigQueryLinksResponse>
listBigQueryLinksCallable()13056       listBigQueryLinksCallable() {
13057     return stub.listBigQueryLinksCallable();
13058   }
13059 
13060   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13061   /**
13062    * Returns the enhanced measurement settings for this data stream. Note that the stream must
13063    * enable enhanced measurement for these settings to take effect.
13064    *
13065    * <p>Sample code:
13066    *
13067    * <pre>{@code
13068    * // This snippet has been automatically generated and should be regarded as a code template only.
13069    * // It will require modifications to work:
13070    * // - It may require correct/in-range values for request initialization.
13071    * // - It may require specifying regional endpoints when creating the service client as shown in
13072    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13073    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13074    *     AnalyticsAdminServiceClient.create()) {
13075    *   EnhancedMeasurementSettingsName name =
13076    *       EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]");
13077    *   EnhancedMeasurementSettings response =
13078    *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
13079    * }
13080    * }</pre>
13081    *
13082    * @param name Required. The name of the settings to lookup. Format:
13083    *     properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example:
13084    *     "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
13085    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13086    */
getEnhancedMeasurementSettings( EnhancedMeasurementSettingsName name)13087   public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(
13088       EnhancedMeasurementSettingsName name) {
13089     GetEnhancedMeasurementSettingsRequest request =
13090         GetEnhancedMeasurementSettingsRequest.newBuilder()
13091             .setName(name == null ? null : name.toString())
13092             .build();
13093     return getEnhancedMeasurementSettings(request);
13094   }
13095 
13096   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13097   /**
13098    * Returns the enhanced measurement settings for this data stream. Note that the stream must
13099    * enable enhanced measurement for these settings to take effect.
13100    *
13101    * <p>Sample code:
13102    *
13103    * <pre>{@code
13104    * // This snippet has been automatically generated and should be regarded as a code template only.
13105    * // It will require modifications to work:
13106    * // - It may require correct/in-range values for request initialization.
13107    * // - It may require specifying regional endpoints when creating the service client as shown in
13108    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13109    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13110    *     AnalyticsAdminServiceClient.create()) {
13111    *   String name = EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString();
13112    *   EnhancedMeasurementSettings response =
13113    *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(name);
13114    * }
13115    * }</pre>
13116    *
13117    * @param name Required. The name of the settings to lookup. Format:
13118    *     properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings Example:
13119    *     "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
13120    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13121    */
getEnhancedMeasurementSettings(String name)13122   public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(String name) {
13123     GetEnhancedMeasurementSettingsRequest request =
13124         GetEnhancedMeasurementSettingsRequest.newBuilder().setName(name).build();
13125     return getEnhancedMeasurementSettings(request);
13126   }
13127 
13128   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13129   /**
13130    * Returns the enhanced measurement settings for this data stream. Note that the stream must
13131    * enable enhanced measurement for these settings to take effect.
13132    *
13133    * <p>Sample code:
13134    *
13135    * <pre>{@code
13136    * // This snippet has been automatically generated and should be regarded as a code template only.
13137    * // It will require modifications to work:
13138    * // - It may require correct/in-range values for request initialization.
13139    * // - It may require specifying regional endpoints when creating the service client as shown in
13140    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13141    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13142    *     AnalyticsAdminServiceClient.create()) {
13143    *   GetEnhancedMeasurementSettingsRequest request =
13144    *       GetEnhancedMeasurementSettingsRequest.newBuilder()
13145    *           .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString())
13146    *           .build();
13147    *   EnhancedMeasurementSettings response =
13148    *       analyticsAdminServiceClient.getEnhancedMeasurementSettings(request);
13149    * }
13150    * }</pre>
13151    *
13152    * @param request The request object containing all of the parameters for the API call.
13153    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13154    */
getEnhancedMeasurementSettings( GetEnhancedMeasurementSettingsRequest request)13155   public final EnhancedMeasurementSettings getEnhancedMeasurementSettings(
13156       GetEnhancedMeasurementSettingsRequest request) {
13157     return getEnhancedMeasurementSettingsCallable().call(request);
13158   }
13159 
13160   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13161   /**
13162    * Returns the enhanced measurement settings for this data stream. Note that the stream must
13163    * enable enhanced measurement for these settings to take effect.
13164    *
13165    * <p>Sample code:
13166    *
13167    * <pre>{@code
13168    * // This snippet has been automatically generated and should be regarded as a code template only.
13169    * // It will require modifications to work:
13170    * // - It may require correct/in-range values for request initialization.
13171    * // - It may require specifying regional endpoints when creating the service client as shown in
13172    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13173    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13174    *     AnalyticsAdminServiceClient.create()) {
13175    *   GetEnhancedMeasurementSettingsRequest request =
13176    *       GetEnhancedMeasurementSettingsRequest.newBuilder()
13177    *           .setName(EnhancedMeasurementSettingsName.of("[PROPERTY]", "[DATA_STREAM]").toString())
13178    *           .build();
13179    *   ApiFuture<EnhancedMeasurementSettings> future =
13180    *       analyticsAdminServiceClient.getEnhancedMeasurementSettingsCallable().futureCall(request);
13181    *   // Do something.
13182    *   EnhancedMeasurementSettings response = future.get();
13183    * }
13184    * }</pre>
13185    */
13186   public final UnaryCallable<GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
getEnhancedMeasurementSettingsCallable()13187       getEnhancedMeasurementSettingsCallable() {
13188     return stub.getEnhancedMeasurementSettingsCallable();
13189   }
13190 
13191   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13192   /**
13193    * Updates the enhanced measurement settings for this data stream. Note that the stream must
13194    * enable enhanced measurement for these settings to take effect.
13195    *
13196    * <p>Sample code:
13197    *
13198    * <pre>{@code
13199    * // This snippet has been automatically generated and should be regarded as a code template only.
13200    * // It will require modifications to work:
13201    * // - It may require correct/in-range values for request initialization.
13202    * // - It may require specifying regional endpoints when creating the service client as shown in
13203    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13204    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13205    *     AnalyticsAdminServiceClient.create()) {
13206    *   EnhancedMeasurementSettings enhancedMeasurementSettings =
13207    *       EnhancedMeasurementSettings.newBuilder().build();
13208    *   FieldMask updateMask = FieldMask.newBuilder().build();
13209    *   EnhancedMeasurementSettings response =
13210    *       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(
13211    *           enhancedMeasurementSettings, updateMask);
13212    * }
13213    * }</pre>
13214    *
13215    * @param enhancedMeasurementSettings Required. The settings to update. The `name` field is used
13216    *     to identify the settings to be updated.
13217    * @param updateMask Required. The list of fields to be updated. Field names must be in snake case
13218    *     (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire
13219    *     entity, use one path with the string "&#42;" to match all fields.
13220    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13221    */
updateEnhancedMeasurementSettings( EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask)13222   public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings(
13223       EnhancedMeasurementSettings enhancedMeasurementSettings, FieldMask updateMask) {
13224     UpdateEnhancedMeasurementSettingsRequest request =
13225         UpdateEnhancedMeasurementSettingsRequest.newBuilder()
13226             .setEnhancedMeasurementSettings(enhancedMeasurementSettings)
13227             .setUpdateMask(updateMask)
13228             .build();
13229     return updateEnhancedMeasurementSettings(request);
13230   }
13231 
13232   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13233   /**
13234    * Updates the enhanced measurement settings for this data stream. Note that the stream must
13235    * enable enhanced measurement for these settings to take effect.
13236    *
13237    * <p>Sample code:
13238    *
13239    * <pre>{@code
13240    * // This snippet has been automatically generated and should be regarded as a code template only.
13241    * // It will require modifications to work:
13242    * // - It may require correct/in-range values for request initialization.
13243    * // - It may require specifying regional endpoints when creating the service client as shown in
13244    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13245    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13246    *     AnalyticsAdminServiceClient.create()) {
13247    *   UpdateEnhancedMeasurementSettingsRequest request =
13248    *       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
13249    *           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
13250    *           .setUpdateMask(FieldMask.newBuilder().build())
13251    *           .build();
13252    *   EnhancedMeasurementSettings response =
13253    *       analyticsAdminServiceClient.updateEnhancedMeasurementSettings(request);
13254    * }
13255    * }</pre>
13256    *
13257    * @param request The request object containing all of the parameters for the API call.
13258    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13259    */
updateEnhancedMeasurementSettings( UpdateEnhancedMeasurementSettingsRequest request)13260   public final EnhancedMeasurementSettings updateEnhancedMeasurementSettings(
13261       UpdateEnhancedMeasurementSettingsRequest request) {
13262     return updateEnhancedMeasurementSettingsCallable().call(request);
13263   }
13264 
13265   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13266   /**
13267    * Updates the enhanced measurement settings for this data stream. Note that the stream must
13268    * enable enhanced measurement for these settings to take effect.
13269    *
13270    * <p>Sample code:
13271    *
13272    * <pre>{@code
13273    * // This snippet has been automatically generated and should be regarded as a code template only.
13274    * // It will require modifications to work:
13275    * // - It may require correct/in-range values for request initialization.
13276    * // - It may require specifying regional endpoints when creating the service client as shown in
13277    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13278    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13279    *     AnalyticsAdminServiceClient.create()) {
13280    *   UpdateEnhancedMeasurementSettingsRequest request =
13281    *       UpdateEnhancedMeasurementSettingsRequest.newBuilder()
13282    *           .setEnhancedMeasurementSettings(EnhancedMeasurementSettings.newBuilder().build())
13283    *           .setUpdateMask(FieldMask.newBuilder().build())
13284    *           .build();
13285    *   ApiFuture<EnhancedMeasurementSettings> future =
13286    *       analyticsAdminServiceClient
13287    *           .updateEnhancedMeasurementSettingsCallable()
13288    *           .futureCall(request);
13289    *   // Do something.
13290    *   EnhancedMeasurementSettings response = future.get();
13291    * }
13292    * }</pre>
13293    */
13294   public final UnaryCallable<UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings>
updateEnhancedMeasurementSettingsCallable()13295       updateEnhancedMeasurementSettingsCallable() {
13296     return stub.updateEnhancedMeasurementSettingsCallable();
13297   }
13298 
13299   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13300   /**
13301    * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20
13302    * connected site tags per property. Note: This API cannot be used on GA4 properties.
13303    *
13304    * <p>Sample code:
13305    *
13306    * <pre>{@code
13307    * // This snippet has been automatically generated and should be regarded as a code template only.
13308    * // It will require modifications to work:
13309    * // - It may require correct/in-range values for request initialization.
13310    * // - It may require specifying regional endpoints when creating the service client as shown in
13311    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13312    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13313    *     AnalyticsAdminServiceClient.create()) {
13314    *   CreateConnectedSiteTagRequest request =
13315    *       CreateConnectedSiteTagRequest.newBuilder()
13316    *           .setProperty("property-993141291")
13317    *           .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build())
13318    *           .build();
13319    *   CreateConnectedSiteTagResponse response =
13320    *       analyticsAdminServiceClient.createConnectedSiteTag(request);
13321    * }
13322    * }</pre>
13323    *
13324    * @param request The request object containing all of the parameters for the API call.
13325    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13326    */
createConnectedSiteTag( CreateConnectedSiteTagRequest request)13327   public final CreateConnectedSiteTagResponse createConnectedSiteTag(
13328       CreateConnectedSiteTagRequest request) {
13329     return createConnectedSiteTagCallable().call(request);
13330   }
13331 
13332   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13333   /**
13334    * Creates a connected site tag for a Universal Analytics property. You can create a maximum of 20
13335    * connected site tags per property. Note: This API cannot be used on GA4 properties.
13336    *
13337    * <p>Sample code:
13338    *
13339    * <pre>{@code
13340    * // This snippet has been automatically generated and should be regarded as a code template only.
13341    * // It will require modifications to work:
13342    * // - It may require correct/in-range values for request initialization.
13343    * // - It may require specifying regional endpoints when creating the service client as shown in
13344    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13345    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13346    *     AnalyticsAdminServiceClient.create()) {
13347    *   CreateConnectedSiteTagRequest request =
13348    *       CreateConnectedSiteTagRequest.newBuilder()
13349    *           .setProperty("property-993141291")
13350    *           .setConnectedSiteTag(ConnectedSiteTag.newBuilder().build())
13351    *           .build();
13352    *   ApiFuture<CreateConnectedSiteTagResponse> future =
13353    *       analyticsAdminServiceClient.createConnectedSiteTagCallable().futureCall(request);
13354    *   // Do something.
13355    *   CreateConnectedSiteTagResponse response = future.get();
13356    * }
13357    * }</pre>
13358    */
13359   public final UnaryCallable<CreateConnectedSiteTagRequest, CreateConnectedSiteTagResponse>
createConnectedSiteTagCallable()13360       createConnectedSiteTagCallable() {
13361     return stub.createConnectedSiteTagCallable();
13362   }
13363 
13364   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13365   /**
13366    * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on
13367    * GA4 properties.
13368    *
13369    * <p>Sample code:
13370    *
13371    * <pre>{@code
13372    * // This snippet has been automatically generated and should be regarded as a code template only.
13373    * // It will require modifications to work:
13374    * // - It may require correct/in-range values for request initialization.
13375    * // - It may require specifying regional endpoints when creating the service client as shown in
13376    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13377    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13378    *     AnalyticsAdminServiceClient.create()) {
13379    *   DeleteConnectedSiteTagRequest request =
13380    *       DeleteConnectedSiteTagRequest.newBuilder()
13381    *           .setProperty("property-993141291")
13382    *           .setTagId("tagId110119509")
13383    *           .build();
13384    *   analyticsAdminServiceClient.deleteConnectedSiteTag(request);
13385    * }
13386    * }</pre>
13387    *
13388    * @param request The request object containing all of the parameters for the API call.
13389    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13390    */
deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request)13391   public final void deleteConnectedSiteTag(DeleteConnectedSiteTagRequest request) {
13392     deleteConnectedSiteTagCallable().call(request);
13393   }
13394 
13395   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13396   /**
13397    * Deletes a connected site tag for a Universal Analytics property. Note: this has no effect on
13398    * GA4 properties.
13399    *
13400    * <p>Sample code:
13401    *
13402    * <pre>{@code
13403    * // This snippet has been automatically generated and should be regarded as a code template only.
13404    * // It will require modifications to work:
13405    * // - It may require correct/in-range values for request initialization.
13406    * // - It may require specifying regional endpoints when creating the service client as shown in
13407    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13408    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13409    *     AnalyticsAdminServiceClient.create()) {
13410    *   DeleteConnectedSiteTagRequest request =
13411    *       DeleteConnectedSiteTagRequest.newBuilder()
13412    *           .setProperty("property-993141291")
13413    *           .setTagId("tagId110119509")
13414    *           .build();
13415    *   ApiFuture<Empty> future =
13416    *       analyticsAdminServiceClient.deleteConnectedSiteTagCallable().futureCall(request);
13417    *   // Do something.
13418    *   future.get();
13419    * }
13420    * }</pre>
13421    */
13422   public final UnaryCallable<DeleteConnectedSiteTagRequest, Empty>
deleteConnectedSiteTagCallable()13423       deleteConnectedSiteTagCallable() {
13424     return stub.deleteConnectedSiteTagCallable();
13425   }
13426 
13427   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13428   /**
13429    * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected
13430    * site tags will be returned. Note: this has no effect on GA4 property.
13431    *
13432    * <p>Sample code:
13433    *
13434    * <pre>{@code
13435    * // This snippet has been automatically generated and should be regarded as a code template only.
13436    * // It will require modifications to work:
13437    * // - It may require correct/in-range values for request initialization.
13438    * // - It may require specifying regional endpoints when creating the service client as shown in
13439    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13440    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13441    *     AnalyticsAdminServiceClient.create()) {
13442    *   ListConnectedSiteTagsRequest request =
13443    *       ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build();
13444    *   ListConnectedSiteTagsResponse response =
13445    *       analyticsAdminServiceClient.listConnectedSiteTags(request);
13446    * }
13447    * }</pre>
13448    *
13449    * @param request The request object containing all of the parameters for the API call.
13450    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13451    */
listConnectedSiteTags( ListConnectedSiteTagsRequest request)13452   public final ListConnectedSiteTagsResponse listConnectedSiteTags(
13453       ListConnectedSiteTagsRequest request) {
13454     return listConnectedSiteTagsCallable().call(request);
13455   }
13456 
13457   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13458   /**
13459    * Lists the connected site tags for a Universal Analytics property. A maximum of 20 connected
13460    * site tags will be returned. Note: this has no effect on GA4 property.
13461    *
13462    * <p>Sample code:
13463    *
13464    * <pre>{@code
13465    * // This snippet has been automatically generated and should be regarded as a code template only.
13466    * // It will require modifications to work:
13467    * // - It may require correct/in-range values for request initialization.
13468    * // - It may require specifying regional endpoints when creating the service client as shown in
13469    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13470    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13471    *     AnalyticsAdminServiceClient.create()) {
13472    *   ListConnectedSiteTagsRequest request =
13473    *       ListConnectedSiteTagsRequest.newBuilder().setProperty("property-993141291").build();
13474    *   ApiFuture<ListConnectedSiteTagsResponse> future =
13475    *       analyticsAdminServiceClient.listConnectedSiteTagsCallable().futureCall(request);
13476    *   // Do something.
13477    *   ListConnectedSiteTagsResponse response = future.get();
13478    * }
13479    * }</pre>
13480    */
13481   public final UnaryCallable<ListConnectedSiteTagsRequest, ListConnectedSiteTagsResponse>
listConnectedSiteTagsCallable()13482       listConnectedSiteTagsCallable() {
13483     return stub.listConnectedSiteTagsCallable();
13484   }
13485 
13486   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13487   /**
13488    * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be
13489    * used with GA4 properties.
13490    *
13491    * <p>Sample code:
13492    *
13493    * <pre>{@code
13494    * // This snippet has been automatically generated and should be regarded as a code template only.
13495    * // It will require modifications to work:
13496    * // - It may require correct/in-range values for request initialization.
13497    * // - It may require specifying regional endpoints when creating the service client as shown in
13498    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13499    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13500    *     AnalyticsAdminServiceClient.create()) {
13501    *   FetchConnectedGa4PropertyRequest request =
13502    *       FetchConnectedGa4PropertyRequest.newBuilder()
13503    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
13504    *           .build();
13505    *   FetchConnectedGa4PropertyResponse response =
13506    *       analyticsAdminServiceClient.fetchConnectedGa4Property(request);
13507    * }
13508    * }</pre>
13509    *
13510    * @param request The request object containing all of the parameters for the API call.
13511    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
13512    */
fetchConnectedGa4Property( FetchConnectedGa4PropertyRequest request)13513   public final FetchConnectedGa4PropertyResponse fetchConnectedGa4Property(
13514       FetchConnectedGa4PropertyRequest request) {
13515     return fetchConnectedGa4PropertyCallable().call(request);
13516   }
13517 
13518   // AUTO-GENERATED DOCUMENTATION AND METHOD.
13519   /**
13520    * Given a specified UA property, looks up the GA4 property connected to it. Note: this cannot be
13521    * used with GA4 properties.
13522    *
13523    * <p>Sample code:
13524    *
13525    * <pre>{@code
13526    * // This snippet has been automatically generated and should be regarded as a code template only.
13527    * // It will require modifications to work:
13528    * // - It may require correct/in-range values for request initialization.
13529    * // - It may require specifying regional endpoints when creating the service client as shown in
13530    * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
13531    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
13532    *     AnalyticsAdminServiceClient.create()) {
13533    *   FetchConnectedGa4PropertyRequest request =
13534    *       FetchConnectedGa4PropertyRequest.newBuilder()
13535    *           .setProperty(PropertyName.of("[PROPERTY]").toString())
13536    *           .build();
13537    *   ApiFuture<FetchConnectedGa4PropertyResponse> future =
13538    *       analyticsAdminServiceClient.fetchConnectedGa4PropertyCallable().futureCall(request);
13539    *   // Do something.
13540    *   FetchConnectedGa4PropertyResponse response = future.get();
13541    * }
13542    * }</pre>
13543    */
13544   public final UnaryCallable<FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse>
fetchConnectedGa4PropertyCallable()13545       fetchConnectedGa4PropertyCallable() {
13546     return stub.fetchConnectedGa4PropertyCallable();
13547   }
13548 
13549   @Override
close()13550   public final void close() {
13551     stub.close();
13552   }
13553 
13554   @Override
shutdown()13555   public void shutdown() {
13556     stub.shutdown();
13557   }
13558 
13559   @Override
isShutdown()13560   public boolean isShutdown() {
13561     return stub.isShutdown();
13562   }
13563 
13564   @Override
isTerminated()13565   public boolean isTerminated() {
13566     return stub.isTerminated();
13567   }
13568 
13569   @Override
shutdownNow()13570   public void shutdownNow() {
13571     stub.shutdownNow();
13572   }
13573 
13574   @Override
awaitTermination(long duration, TimeUnit unit)13575   public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException {
13576     return stub.awaitTermination(duration, unit);
13577   }
13578 
13579   public static class ListAccountsPagedResponse
13580       extends AbstractPagedListResponse<
13581           ListAccountsRequest,
13582           ListAccountsResponse,
13583           Account,
13584           ListAccountsPage,
13585           ListAccountsFixedSizeCollection> {
13586 
createAsync( PageContext<ListAccountsRequest, ListAccountsResponse, Account> context, ApiFuture<ListAccountsResponse> futureResponse)13587     public static ApiFuture<ListAccountsPagedResponse> createAsync(
13588         PageContext<ListAccountsRequest, ListAccountsResponse, Account> context,
13589         ApiFuture<ListAccountsResponse> futureResponse) {
13590       ApiFuture<ListAccountsPage> futurePage =
13591           ListAccountsPage.createEmptyPage().createPageAsync(context, futureResponse);
13592       return ApiFutures.transform(
13593           futurePage,
13594           input -> new ListAccountsPagedResponse(input),
13595           MoreExecutors.directExecutor());
13596     }
13597 
ListAccountsPagedResponse(ListAccountsPage page)13598     private ListAccountsPagedResponse(ListAccountsPage page) {
13599       super(page, ListAccountsFixedSizeCollection.createEmptyCollection());
13600     }
13601   }
13602 
13603   public static class ListAccountsPage
13604       extends AbstractPage<ListAccountsRequest, ListAccountsResponse, Account, ListAccountsPage> {
13605 
ListAccountsPage( PageContext<ListAccountsRequest, ListAccountsResponse, Account> context, ListAccountsResponse response)13606     private ListAccountsPage(
13607         PageContext<ListAccountsRequest, ListAccountsResponse, Account> context,
13608         ListAccountsResponse response) {
13609       super(context, response);
13610     }
13611 
createEmptyPage()13612     private static ListAccountsPage createEmptyPage() {
13613       return new ListAccountsPage(null, null);
13614     }
13615 
13616     @Override
createPage( PageContext<ListAccountsRequest, ListAccountsResponse, Account> context, ListAccountsResponse response)13617     protected ListAccountsPage createPage(
13618         PageContext<ListAccountsRequest, ListAccountsResponse, Account> context,
13619         ListAccountsResponse response) {
13620       return new ListAccountsPage(context, response);
13621     }
13622 
13623     @Override
createPageAsync( PageContext<ListAccountsRequest, ListAccountsResponse, Account> context, ApiFuture<ListAccountsResponse> futureResponse)13624     public ApiFuture<ListAccountsPage> createPageAsync(
13625         PageContext<ListAccountsRequest, ListAccountsResponse, Account> context,
13626         ApiFuture<ListAccountsResponse> futureResponse) {
13627       return super.createPageAsync(context, futureResponse);
13628     }
13629   }
13630 
13631   public static class ListAccountsFixedSizeCollection
13632       extends AbstractFixedSizeCollection<
13633           ListAccountsRequest,
13634           ListAccountsResponse,
13635           Account,
13636           ListAccountsPage,
13637           ListAccountsFixedSizeCollection> {
13638 
ListAccountsFixedSizeCollection(List<ListAccountsPage> pages, int collectionSize)13639     private ListAccountsFixedSizeCollection(List<ListAccountsPage> pages, int collectionSize) {
13640       super(pages, collectionSize);
13641     }
13642 
createEmptyCollection()13643     private static ListAccountsFixedSizeCollection createEmptyCollection() {
13644       return new ListAccountsFixedSizeCollection(null, 0);
13645     }
13646 
13647     @Override
createCollection( List<ListAccountsPage> pages, int collectionSize)13648     protected ListAccountsFixedSizeCollection createCollection(
13649         List<ListAccountsPage> pages, int collectionSize) {
13650       return new ListAccountsFixedSizeCollection(pages, collectionSize);
13651     }
13652   }
13653 
13654   public static class ListAccountSummariesPagedResponse
13655       extends AbstractPagedListResponse<
13656           ListAccountSummariesRequest,
13657           ListAccountSummariesResponse,
13658           AccountSummary,
13659           ListAccountSummariesPage,
13660           ListAccountSummariesFixedSizeCollection> {
13661 
createAsync( PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> context, ApiFuture<ListAccountSummariesResponse> futureResponse)13662     public static ApiFuture<ListAccountSummariesPagedResponse> createAsync(
13663         PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>
13664             context,
13665         ApiFuture<ListAccountSummariesResponse> futureResponse) {
13666       ApiFuture<ListAccountSummariesPage> futurePage =
13667           ListAccountSummariesPage.createEmptyPage().createPageAsync(context, futureResponse);
13668       return ApiFutures.transform(
13669           futurePage,
13670           input -> new ListAccountSummariesPagedResponse(input),
13671           MoreExecutors.directExecutor());
13672     }
13673 
ListAccountSummariesPagedResponse(ListAccountSummariesPage page)13674     private ListAccountSummariesPagedResponse(ListAccountSummariesPage page) {
13675       super(page, ListAccountSummariesFixedSizeCollection.createEmptyCollection());
13676     }
13677   }
13678 
13679   public static class ListAccountSummariesPage
13680       extends AbstractPage<
13681           ListAccountSummariesRequest,
13682           ListAccountSummariesResponse,
13683           AccountSummary,
13684           ListAccountSummariesPage> {
13685 
ListAccountSummariesPage( PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> context, ListAccountSummariesResponse response)13686     private ListAccountSummariesPage(
13687         PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>
13688             context,
13689         ListAccountSummariesResponse response) {
13690       super(context, response);
13691     }
13692 
createEmptyPage()13693     private static ListAccountSummariesPage createEmptyPage() {
13694       return new ListAccountSummariesPage(null, null);
13695     }
13696 
13697     @Override
createPage( PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> context, ListAccountSummariesResponse response)13698     protected ListAccountSummariesPage createPage(
13699         PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>
13700             context,
13701         ListAccountSummariesResponse response) {
13702       return new ListAccountSummariesPage(context, response);
13703     }
13704 
13705     @Override
createPageAsync( PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary> context, ApiFuture<ListAccountSummariesResponse> futureResponse)13706     public ApiFuture<ListAccountSummariesPage> createPageAsync(
13707         PageContext<ListAccountSummariesRequest, ListAccountSummariesResponse, AccountSummary>
13708             context,
13709         ApiFuture<ListAccountSummariesResponse> futureResponse) {
13710       return super.createPageAsync(context, futureResponse);
13711     }
13712   }
13713 
13714   public static class ListAccountSummariesFixedSizeCollection
13715       extends AbstractFixedSizeCollection<
13716           ListAccountSummariesRequest,
13717           ListAccountSummariesResponse,
13718           AccountSummary,
13719           ListAccountSummariesPage,
13720           ListAccountSummariesFixedSizeCollection> {
13721 
ListAccountSummariesFixedSizeCollection( List<ListAccountSummariesPage> pages, int collectionSize)13722     private ListAccountSummariesFixedSizeCollection(
13723         List<ListAccountSummariesPage> pages, int collectionSize) {
13724       super(pages, collectionSize);
13725     }
13726 
createEmptyCollection()13727     private static ListAccountSummariesFixedSizeCollection createEmptyCollection() {
13728       return new ListAccountSummariesFixedSizeCollection(null, 0);
13729     }
13730 
13731     @Override
createCollection( List<ListAccountSummariesPage> pages, int collectionSize)13732     protected ListAccountSummariesFixedSizeCollection createCollection(
13733         List<ListAccountSummariesPage> pages, int collectionSize) {
13734       return new ListAccountSummariesFixedSizeCollection(pages, collectionSize);
13735     }
13736   }
13737 
13738   public static class ListPropertiesPagedResponse
13739       extends AbstractPagedListResponse<
13740           ListPropertiesRequest,
13741           ListPropertiesResponse,
13742           Property,
13743           ListPropertiesPage,
13744           ListPropertiesFixedSizeCollection> {
13745 
createAsync( PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context, ApiFuture<ListPropertiesResponse> futureResponse)13746     public static ApiFuture<ListPropertiesPagedResponse> createAsync(
13747         PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context,
13748         ApiFuture<ListPropertiesResponse> futureResponse) {
13749       ApiFuture<ListPropertiesPage> futurePage =
13750           ListPropertiesPage.createEmptyPage().createPageAsync(context, futureResponse);
13751       return ApiFutures.transform(
13752           futurePage,
13753           input -> new ListPropertiesPagedResponse(input),
13754           MoreExecutors.directExecutor());
13755     }
13756 
ListPropertiesPagedResponse(ListPropertiesPage page)13757     private ListPropertiesPagedResponse(ListPropertiesPage page) {
13758       super(page, ListPropertiesFixedSizeCollection.createEmptyCollection());
13759     }
13760   }
13761 
13762   public static class ListPropertiesPage
13763       extends AbstractPage<
13764           ListPropertiesRequest, ListPropertiesResponse, Property, ListPropertiesPage> {
13765 
ListPropertiesPage( PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context, ListPropertiesResponse response)13766     private ListPropertiesPage(
13767         PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context,
13768         ListPropertiesResponse response) {
13769       super(context, response);
13770     }
13771 
createEmptyPage()13772     private static ListPropertiesPage createEmptyPage() {
13773       return new ListPropertiesPage(null, null);
13774     }
13775 
13776     @Override
createPage( PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context, ListPropertiesResponse response)13777     protected ListPropertiesPage createPage(
13778         PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context,
13779         ListPropertiesResponse response) {
13780       return new ListPropertiesPage(context, response);
13781     }
13782 
13783     @Override
createPageAsync( PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context, ApiFuture<ListPropertiesResponse> futureResponse)13784     public ApiFuture<ListPropertiesPage> createPageAsync(
13785         PageContext<ListPropertiesRequest, ListPropertiesResponse, Property> context,
13786         ApiFuture<ListPropertiesResponse> futureResponse) {
13787       return super.createPageAsync(context, futureResponse);
13788     }
13789   }
13790 
13791   public static class ListPropertiesFixedSizeCollection
13792       extends AbstractFixedSizeCollection<
13793           ListPropertiesRequest,
13794           ListPropertiesResponse,
13795           Property,
13796           ListPropertiesPage,
13797           ListPropertiesFixedSizeCollection> {
13798 
ListPropertiesFixedSizeCollection(List<ListPropertiesPage> pages, int collectionSize)13799     private ListPropertiesFixedSizeCollection(List<ListPropertiesPage> pages, int collectionSize) {
13800       super(pages, collectionSize);
13801     }
13802 
createEmptyCollection()13803     private static ListPropertiesFixedSizeCollection createEmptyCollection() {
13804       return new ListPropertiesFixedSizeCollection(null, 0);
13805     }
13806 
13807     @Override
createCollection( List<ListPropertiesPage> pages, int collectionSize)13808     protected ListPropertiesFixedSizeCollection createCollection(
13809         List<ListPropertiesPage> pages, int collectionSize) {
13810       return new ListPropertiesFixedSizeCollection(pages, collectionSize);
13811     }
13812   }
13813 
13814   public static class ListUserLinksPagedResponse
13815       extends AbstractPagedListResponse<
13816           ListUserLinksRequest,
13817           ListUserLinksResponse,
13818           UserLink,
13819           ListUserLinksPage,
13820           ListUserLinksFixedSizeCollection> {
13821 
createAsync( PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context, ApiFuture<ListUserLinksResponse> futureResponse)13822     public static ApiFuture<ListUserLinksPagedResponse> createAsync(
13823         PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context,
13824         ApiFuture<ListUserLinksResponse> futureResponse) {
13825       ApiFuture<ListUserLinksPage> futurePage =
13826           ListUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
13827       return ApiFutures.transform(
13828           futurePage,
13829           input -> new ListUserLinksPagedResponse(input),
13830           MoreExecutors.directExecutor());
13831     }
13832 
ListUserLinksPagedResponse(ListUserLinksPage page)13833     private ListUserLinksPagedResponse(ListUserLinksPage page) {
13834       super(page, ListUserLinksFixedSizeCollection.createEmptyCollection());
13835     }
13836   }
13837 
13838   public static class ListUserLinksPage
13839       extends AbstractPage<
13840           ListUserLinksRequest, ListUserLinksResponse, UserLink, ListUserLinksPage> {
13841 
ListUserLinksPage( PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context, ListUserLinksResponse response)13842     private ListUserLinksPage(
13843         PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context,
13844         ListUserLinksResponse response) {
13845       super(context, response);
13846     }
13847 
createEmptyPage()13848     private static ListUserLinksPage createEmptyPage() {
13849       return new ListUserLinksPage(null, null);
13850     }
13851 
13852     @Override
createPage( PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context, ListUserLinksResponse response)13853     protected ListUserLinksPage createPage(
13854         PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context,
13855         ListUserLinksResponse response) {
13856       return new ListUserLinksPage(context, response);
13857     }
13858 
13859     @Override
createPageAsync( PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context, ApiFuture<ListUserLinksResponse> futureResponse)13860     public ApiFuture<ListUserLinksPage> createPageAsync(
13861         PageContext<ListUserLinksRequest, ListUserLinksResponse, UserLink> context,
13862         ApiFuture<ListUserLinksResponse> futureResponse) {
13863       return super.createPageAsync(context, futureResponse);
13864     }
13865   }
13866 
13867   public static class ListUserLinksFixedSizeCollection
13868       extends AbstractFixedSizeCollection<
13869           ListUserLinksRequest,
13870           ListUserLinksResponse,
13871           UserLink,
13872           ListUserLinksPage,
13873           ListUserLinksFixedSizeCollection> {
13874 
ListUserLinksFixedSizeCollection(List<ListUserLinksPage> pages, int collectionSize)13875     private ListUserLinksFixedSizeCollection(List<ListUserLinksPage> pages, int collectionSize) {
13876       super(pages, collectionSize);
13877     }
13878 
createEmptyCollection()13879     private static ListUserLinksFixedSizeCollection createEmptyCollection() {
13880       return new ListUserLinksFixedSizeCollection(null, 0);
13881     }
13882 
13883     @Override
createCollection( List<ListUserLinksPage> pages, int collectionSize)13884     protected ListUserLinksFixedSizeCollection createCollection(
13885         List<ListUserLinksPage> pages, int collectionSize) {
13886       return new ListUserLinksFixedSizeCollection(pages, collectionSize);
13887     }
13888   }
13889 
13890   public static class AuditUserLinksPagedResponse
13891       extends AbstractPagedListResponse<
13892           AuditUserLinksRequest,
13893           AuditUserLinksResponse,
13894           AuditUserLink,
13895           AuditUserLinksPage,
13896           AuditUserLinksFixedSizeCollection> {
13897 
createAsync( PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context, ApiFuture<AuditUserLinksResponse> futureResponse)13898     public static ApiFuture<AuditUserLinksPagedResponse> createAsync(
13899         PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context,
13900         ApiFuture<AuditUserLinksResponse> futureResponse) {
13901       ApiFuture<AuditUserLinksPage> futurePage =
13902           AuditUserLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
13903       return ApiFutures.transform(
13904           futurePage,
13905           input -> new AuditUserLinksPagedResponse(input),
13906           MoreExecutors.directExecutor());
13907     }
13908 
AuditUserLinksPagedResponse(AuditUserLinksPage page)13909     private AuditUserLinksPagedResponse(AuditUserLinksPage page) {
13910       super(page, AuditUserLinksFixedSizeCollection.createEmptyCollection());
13911     }
13912   }
13913 
13914   public static class AuditUserLinksPage
13915       extends AbstractPage<
13916           AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink, AuditUserLinksPage> {
13917 
AuditUserLinksPage( PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context, AuditUserLinksResponse response)13918     private AuditUserLinksPage(
13919         PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context,
13920         AuditUserLinksResponse response) {
13921       super(context, response);
13922     }
13923 
createEmptyPage()13924     private static AuditUserLinksPage createEmptyPage() {
13925       return new AuditUserLinksPage(null, null);
13926     }
13927 
13928     @Override
createPage( PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context, AuditUserLinksResponse response)13929     protected AuditUserLinksPage createPage(
13930         PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context,
13931         AuditUserLinksResponse response) {
13932       return new AuditUserLinksPage(context, response);
13933     }
13934 
13935     @Override
createPageAsync( PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context, ApiFuture<AuditUserLinksResponse> futureResponse)13936     public ApiFuture<AuditUserLinksPage> createPageAsync(
13937         PageContext<AuditUserLinksRequest, AuditUserLinksResponse, AuditUserLink> context,
13938         ApiFuture<AuditUserLinksResponse> futureResponse) {
13939       return super.createPageAsync(context, futureResponse);
13940     }
13941   }
13942 
13943   public static class AuditUserLinksFixedSizeCollection
13944       extends AbstractFixedSizeCollection<
13945           AuditUserLinksRequest,
13946           AuditUserLinksResponse,
13947           AuditUserLink,
13948           AuditUserLinksPage,
13949           AuditUserLinksFixedSizeCollection> {
13950 
AuditUserLinksFixedSizeCollection(List<AuditUserLinksPage> pages, int collectionSize)13951     private AuditUserLinksFixedSizeCollection(List<AuditUserLinksPage> pages, int collectionSize) {
13952       super(pages, collectionSize);
13953     }
13954 
createEmptyCollection()13955     private static AuditUserLinksFixedSizeCollection createEmptyCollection() {
13956       return new AuditUserLinksFixedSizeCollection(null, 0);
13957     }
13958 
13959     @Override
createCollection( List<AuditUserLinksPage> pages, int collectionSize)13960     protected AuditUserLinksFixedSizeCollection createCollection(
13961         List<AuditUserLinksPage> pages, int collectionSize) {
13962       return new AuditUserLinksFixedSizeCollection(pages, collectionSize);
13963     }
13964   }
13965 
13966   public static class ListFirebaseLinksPagedResponse
13967       extends AbstractPagedListResponse<
13968           ListFirebaseLinksRequest,
13969           ListFirebaseLinksResponse,
13970           FirebaseLink,
13971           ListFirebaseLinksPage,
13972           ListFirebaseLinksFixedSizeCollection> {
13973 
createAsync( PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context, ApiFuture<ListFirebaseLinksResponse> futureResponse)13974     public static ApiFuture<ListFirebaseLinksPagedResponse> createAsync(
13975         PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context,
13976         ApiFuture<ListFirebaseLinksResponse> futureResponse) {
13977       ApiFuture<ListFirebaseLinksPage> futurePage =
13978           ListFirebaseLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
13979       return ApiFutures.transform(
13980           futurePage,
13981           input -> new ListFirebaseLinksPagedResponse(input),
13982           MoreExecutors.directExecutor());
13983     }
13984 
ListFirebaseLinksPagedResponse(ListFirebaseLinksPage page)13985     private ListFirebaseLinksPagedResponse(ListFirebaseLinksPage page) {
13986       super(page, ListFirebaseLinksFixedSizeCollection.createEmptyCollection());
13987     }
13988   }
13989 
13990   public static class ListFirebaseLinksPage
13991       extends AbstractPage<
13992           ListFirebaseLinksRequest,
13993           ListFirebaseLinksResponse,
13994           FirebaseLink,
13995           ListFirebaseLinksPage> {
13996 
ListFirebaseLinksPage( PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context, ListFirebaseLinksResponse response)13997     private ListFirebaseLinksPage(
13998         PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context,
13999         ListFirebaseLinksResponse response) {
14000       super(context, response);
14001     }
14002 
createEmptyPage()14003     private static ListFirebaseLinksPage createEmptyPage() {
14004       return new ListFirebaseLinksPage(null, null);
14005     }
14006 
14007     @Override
createPage( PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context, ListFirebaseLinksResponse response)14008     protected ListFirebaseLinksPage createPage(
14009         PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context,
14010         ListFirebaseLinksResponse response) {
14011       return new ListFirebaseLinksPage(context, response);
14012     }
14013 
14014     @Override
createPageAsync( PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context, ApiFuture<ListFirebaseLinksResponse> futureResponse)14015     public ApiFuture<ListFirebaseLinksPage> createPageAsync(
14016         PageContext<ListFirebaseLinksRequest, ListFirebaseLinksResponse, FirebaseLink> context,
14017         ApiFuture<ListFirebaseLinksResponse> futureResponse) {
14018       return super.createPageAsync(context, futureResponse);
14019     }
14020   }
14021 
14022   public static class ListFirebaseLinksFixedSizeCollection
14023       extends AbstractFixedSizeCollection<
14024           ListFirebaseLinksRequest,
14025           ListFirebaseLinksResponse,
14026           FirebaseLink,
14027           ListFirebaseLinksPage,
14028           ListFirebaseLinksFixedSizeCollection> {
14029 
ListFirebaseLinksFixedSizeCollection( List<ListFirebaseLinksPage> pages, int collectionSize)14030     private ListFirebaseLinksFixedSizeCollection(
14031         List<ListFirebaseLinksPage> pages, int collectionSize) {
14032       super(pages, collectionSize);
14033     }
14034 
createEmptyCollection()14035     private static ListFirebaseLinksFixedSizeCollection createEmptyCollection() {
14036       return new ListFirebaseLinksFixedSizeCollection(null, 0);
14037     }
14038 
14039     @Override
createCollection( List<ListFirebaseLinksPage> pages, int collectionSize)14040     protected ListFirebaseLinksFixedSizeCollection createCollection(
14041         List<ListFirebaseLinksPage> pages, int collectionSize) {
14042       return new ListFirebaseLinksFixedSizeCollection(pages, collectionSize);
14043     }
14044   }
14045 
14046   public static class ListGoogleAdsLinksPagedResponse
14047       extends AbstractPagedListResponse<
14048           ListGoogleAdsLinksRequest,
14049           ListGoogleAdsLinksResponse,
14050           GoogleAdsLink,
14051           ListGoogleAdsLinksPage,
14052           ListGoogleAdsLinksFixedSizeCollection> {
14053 
createAsync( PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context, ApiFuture<ListGoogleAdsLinksResponse> futureResponse)14054     public static ApiFuture<ListGoogleAdsLinksPagedResponse> createAsync(
14055         PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context,
14056         ApiFuture<ListGoogleAdsLinksResponse> futureResponse) {
14057       ApiFuture<ListGoogleAdsLinksPage> futurePage =
14058           ListGoogleAdsLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
14059       return ApiFutures.transform(
14060           futurePage,
14061           input -> new ListGoogleAdsLinksPagedResponse(input),
14062           MoreExecutors.directExecutor());
14063     }
14064 
ListGoogleAdsLinksPagedResponse(ListGoogleAdsLinksPage page)14065     private ListGoogleAdsLinksPagedResponse(ListGoogleAdsLinksPage page) {
14066       super(page, ListGoogleAdsLinksFixedSizeCollection.createEmptyCollection());
14067     }
14068   }
14069 
14070   public static class ListGoogleAdsLinksPage
14071       extends AbstractPage<
14072           ListGoogleAdsLinksRequest,
14073           ListGoogleAdsLinksResponse,
14074           GoogleAdsLink,
14075           ListGoogleAdsLinksPage> {
14076 
ListGoogleAdsLinksPage( PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context, ListGoogleAdsLinksResponse response)14077     private ListGoogleAdsLinksPage(
14078         PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context,
14079         ListGoogleAdsLinksResponse response) {
14080       super(context, response);
14081     }
14082 
createEmptyPage()14083     private static ListGoogleAdsLinksPage createEmptyPage() {
14084       return new ListGoogleAdsLinksPage(null, null);
14085     }
14086 
14087     @Override
createPage( PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context, ListGoogleAdsLinksResponse response)14088     protected ListGoogleAdsLinksPage createPage(
14089         PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context,
14090         ListGoogleAdsLinksResponse response) {
14091       return new ListGoogleAdsLinksPage(context, response);
14092     }
14093 
14094     @Override
createPageAsync( PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context, ApiFuture<ListGoogleAdsLinksResponse> futureResponse)14095     public ApiFuture<ListGoogleAdsLinksPage> createPageAsync(
14096         PageContext<ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, GoogleAdsLink> context,
14097         ApiFuture<ListGoogleAdsLinksResponse> futureResponse) {
14098       return super.createPageAsync(context, futureResponse);
14099     }
14100   }
14101 
14102   public static class ListGoogleAdsLinksFixedSizeCollection
14103       extends AbstractFixedSizeCollection<
14104           ListGoogleAdsLinksRequest,
14105           ListGoogleAdsLinksResponse,
14106           GoogleAdsLink,
14107           ListGoogleAdsLinksPage,
14108           ListGoogleAdsLinksFixedSizeCollection> {
14109 
ListGoogleAdsLinksFixedSizeCollection( List<ListGoogleAdsLinksPage> pages, int collectionSize)14110     private ListGoogleAdsLinksFixedSizeCollection(
14111         List<ListGoogleAdsLinksPage> pages, int collectionSize) {
14112       super(pages, collectionSize);
14113     }
14114 
createEmptyCollection()14115     private static ListGoogleAdsLinksFixedSizeCollection createEmptyCollection() {
14116       return new ListGoogleAdsLinksFixedSizeCollection(null, 0);
14117     }
14118 
14119     @Override
createCollection( List<ListGoogleAdsLinksPage> pages, int collectionSize)14120     protected ListGoogleAdsLinksFixedSizeCollection createCollection(
14121         List<ListGoogleAdsLinksPage> pages, int collectionSize) {
14122       return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize);
14123     }
14124   }
14125 
14126   public static class ListMeasurementProtocolSecretsPagedResponse
14127       extends AbstractPagedListResponse<
14128           ListMeasurementProtocolSecretsRequest,
14129           ListMeasurementProtocolSecretsResponse,
14130           MeasurementProtocolSecret,
14131           ListMeasurementProtocolSecretsPage,
14132           ListMeasurementProtocolSecretsFixedSizeCollection> {
14133 
createAsync( PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, ApiFuture<ListMeasurementProtocolSecretsResponse> futureResponse)14134     public static ApiFuture<ListMeasurementProtocolSecretsPagedResponse> createAsync(
14135         PageContext<
14136                 ListMeasurementProtocolSecretsRequest,
14137                 ListMeasurementProtocolSecretsResponse,
14138                 MeasurementProtocolSecret>
14139             context,
14140         ApiFuture<ListMeasurementProtocolSecretsResponse> futureResponse) {
14141       ApiFuture<ListMeasurementProtocolSecretsPage> futurePage =
14142           ListMeasurementProtocolSecretsPage.createEmptyPage()
14143               .createPageAsync(context, futureResponse);
14144       return ApiFutures.transform(
14145           futurePage,
14146           input -> new ListMeasurementProtocolSecretsPagedResponse(input),
14147           MoreExecutors.directExecutor());
14148     }
14149 
ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page)14150     private ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page) {
14151       super(page, ListMeasurementProtocolSecretsFixedSizeCollection.createEmptyCollection());
14152     }
14153   }
14154 
14155   public static class ListMeasurementProtocolSecretsPage
14156       extends AbstractPage<
14157           ListMeasurementProtocolSecretsRequest,
14158           ListMeasurementProtocolSecretsResponse,
14159           MeasurementProtocolSecret,
14160           ListMeasurementProtocolSecretsPage> {
14161 
ListMeasurementProtocolSecretsPage( PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, ListMeasurementProtocolSecretsResponse response)14162     private ListMeasurementProtocolSecretsPage(
14163         PageContext<
14164                 ListMeasurementProtocolSecretsRequest,
14165                 ListMeasurementProtocolSecretsResponse,
14166                 MeasurementProtocolSecret>
14167             context,
14168         ListMeasurementProtocolSecretsResponse response) {
14169       super(context, response);
14170     }
14171 
createEmptyPage()14172     private static ListMeasurementProtocolSecretsPage createEmptyPage() {
14173       return new ListMeasurementProtocolSecretsPage(null, null);
14174     }
14175 
14176     @Override
createPage( PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, ListMeasurementProtocolSecretsResponse response)14177     protected ListMeasurementProtocolSecretsPage createPage(
14178         PageContext<
14179                 ListMeasurementProtocolSecretsRequest,
14180                 ListMeasurementProtocolSecretsResponse,
14181                 MeasurementProtocolSecret>
14182             context,
14183         ListMeasurementProtocolSecretsResponse response) {
14184       return new ListMeasurementProtocolSecretsPage(context, response);
14185     }
14186 
14187     @Override
createPageAsync( PageContext< ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse, MeasurementProtocolSecret> context, ApiFuture<ListMeasurementProtocolSecretsResponse> futureResponse)14188     public ApiFuture<ListMeasurementProtocolSecretsPage> createPageAsync(
14189         PageContext<
14190                 ListMeasurementProtocolSecretsRequest,
14191                 ListMeasurementProtocolSecretsResponse,
14192                 MeasurementProtocolSecret>
14193             context,
14194         ApiFuture<ListMeasurementProtocolSecretsResponse> futureResponse) {
14195       return super.createPageAsync(context, futureResponse);
14196     }
14197   }
14198 
14199   public static class ListMeasurementProtocolSecretsFixedSizeCollection
14200       extends AbstractFixedSizeCollection<
14201           ListMeasurementProtocolSecretsRequest,
14202           ListMeasurementProtocolSecretsResponse,
14203           MeasurementProtocolSecret,
14204           ListMeasurementProtocolSecretsPage,
14205           ListMeasurementProtocolSecretsFixedSizeCollection> {
14206 
ListMeasurementProtocolSecretsFixedSizeCollection( List<ListMeasurementProtocolSecretsPage> pages, int collectionSize)14207     private ListMeasurementProtocolSecretsFixedSizeCollection(
14208         List<ListMeasurementProtocolSecretsPage> pages, int collectionSize) {
14209       super(pages, collectionSize);
14210     }
14211 
createEmptyCollection()14212     private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyCollection() {
14213       return new ListMeasurementProtocolSecretsFixedSizeCollection(null, 0);
14214     }
14215 
14216     @Override
createCollection( List<ListMeasurementProtocolSecretsPage> pages, int collectionSize)14217     protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection(
14218         List<ListMeasurementProtocolSecretsPage> pages, int collectionSize) {
14219       return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize);
14220     }
14221   }
14222 
14223   public static class SearchChangeHistoryEventsPagedResponse
14224       extends AbstractPagedListResponse<
14225           SearchChangeHistoryEventsRequest,
14226           SearchChangeHistoryEventsResponse,
14227           ChangeHistoryEvent,
14228           SearchChangeHistoryEventsPage,
14229           SearchChangeHistoryEventsFixedSizeCollection> {
14230 
createAsync( PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, ApiFuture<SearchChangeHistoryEventsResponse> futureResponse)14231     public static ApiFuture<SearchChangeHistoryEventsPagedResponse> createAsync(
14232         PageContext<
14233                 SearchChangeHistoryEventsRequest,
14234                 SearchChangeHistoryEventsResponse,
14235                 ChangeHistoryEvent>
14236             context,
14237         ApiFuture<SearchChangeHistoryEventsResponse> futureResponse) {
14238       ApiFuture<SearchChangeHistoryEventsPage> futurePage =
14239           SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
14240       return ApiFutures.transform(
14241           futurePage,
14242           input -> new SearchChangeHistoryEventsPagedResponse(input),
14243           MoreExecutors.directExecutor());
14244     }
14245 
SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page)14246     private SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page) {
14247       super(page, SearchChangeHistoryEventsFixedSizeCollection.createEmptyCollection());
14248     }
14249   }
14250 
14251   public static class SearchChangeHistoryEventsPage
14252       extends AbstractPage<
14253           SearchChangeHistoryEventsRequest,
14254           SearchChangeHistoryEventsResponse,
14255           ChangeHistoryEvent,
14256           SearchChangeHistoryEventsPage> {
14257 
SearchChangeHistoryEventsPage( PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, SearchChangeHistoryEventsResponse response)14258     private SearchChangeHistoryEventsPage(
14259         PageContext<
14260                 SearchChangeHistoryEventsRequest,
14261                 SearchChangeHistoryEventsResponse,
14262                 ChangeHistoryEvent>
14263             context,
14264         SearchChangeHistoryEventsResponse response) {
14265       super(context, response);
14266     }
14267 
createEmptyPage()14268     private static SearchChangeHistoryEventsPage createEmptyPage() {
14269       return new SearchChangeHistoryEventsPage(null, null);
14270     }
14271 
14272     @Override
createPage( PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, SearchChangeHistoryEventsResponse response)14273     protected SearchChangeHistoryEventsPage createPage(
14274         PageContext<
14275                 SearchChangeHistoryEventsRequest,
14276                 SearchChangeHistoryEventsResponse,
14277                 ChangeHistoryEvent>
14278             context,
14279         SearchChangeHistoryEventsResponse response) {
14280       return new SearchChangeHistoryEventsPage(context, response);
14281     }
14282 
14283     @Override
createPageAsync( PageContext< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> context, ApiFuture<SearchChangeHistoryEventsResponse> futureResponse)14284     public ApiFuture<SearchChangeHistoryEventsPage> createPageAsync(
14285         PageContext<
14286                 SearchChangeHistoryEventsRequest,
14287                 SearchChangeHistoryEventsResponse,
14288                 ChangeHistoryEvent>
14289             context,
14290         ApiFuture<SearchChangeHistoryEventsResponse> futureResponse) {
14291       return super.createPageAsync(context, futureResponse);
14292     }
14293   }
14294 
14295   public static class SearchChangeHistoryEventsFixedSizeCollection
14296       extends AbstractFixedSizeCollection<
14297           SearchChangeHistoryEventsRequest,
14298           SearchChangeHistoryEventsResponse,
14299           ChangeHistoryEvent,
14300           SearchChangeHistoryEventsPage,
14301           SearchChangeHistoryEventsFixedSizeCollection> {
14302 
SearchChangeHistoryEventsFixedSizeCollection( List<SearchChangeHistoryEventsPage> pages, int collectionSize)14303     private SearchChangeHistoryEventsFixedSizeCollection(
14304         List<SearchChangeHistoryEventsPage> pages, int collectionSize) {
14305       super(pages, collectionSize);
14306     }
14307 
createEmptyCollection()14308     private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollection() {
14309       return new SearchChangeHistoryEventsFixedSizeCollection(null, 0);
14310     }
14311 
14312     @Override
createCollection( List<SearchChangeHistoryEventsPage> pages, int collectionSize)14313     protected SearchChangeHistoryEventsFixedSizeCollection createCollection(
14314         List<SearchChangeHistoryEventsPage> pages, int collectionSize) {
14315       return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize);
14316     }
14317   }
14318 
14319   public static class ListConversionEventsPagedResponse
14320       extends AbstractPagedListResponse<
14321           ListConversionEventsRequest,
14322           ListConversionEventsResponse,
14323           ConversionEvent,
14324           ListConversionEventsPage,
14325           ListConversionEventsFixedSizeCollection> {
14326 
createAsync( PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> context, ApiFuture<ListConversionEventsResponse> futureResponse)14327     public static ApiFuture<ListConversionEventsPagedResponse> createAsync(
14328         PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
14329             context,
14330         ApiFuture<ListConversionEventsResponse> futureResponse) {
14331       ApiFuture<ListConversionEventsPage> futurePage =
14332           ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse);
14333       return ApiFutures.transform(
14334           futurePage,
14335           input -> new ListConversionEventsPagedResponse(input),
14336           MoreExecutors.directExecutor());
14337     }
14338 
ListConversionEventsPagedResponse(ListConversionEventsPage page)14339     private ListConversionEventsPagedResponse(ListConversionEventsPage page) {
14340       super(page, ListConversionEventsFixedSizeCollection.createEmptyCollection());
14341     }
14342   }
14343 
14344   public static class ListConversionEventsPage
14345       extends AbstractPage<
14346           ListConversionEventsRequest,
14347           ListConversionEventsResponse,
14348           ConversionEvent,
14349           ListConversionEventsPage> {
14350 
ListConversionEventsPage( PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> context, ListConversionEventsResponse response)14351     private ListConversionEventsPage(
14352         PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
14353             context,
14354         ListConversionEventsResponse response) {
14355       super(context, response);
14356     }
14357 
createEmptyPage()14358     private static ListConversionEventsPage createEmptyPage() {
14359       return new ListConversionEventsPage(null, null);
14360     }
14361 
14362     @Override
createPage( PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> context, ListConversionEventsResponse response)14363     protected ListConversionEventsPage createPage(
14364         PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
14365             context,
14366         ListConversionEventsResponse response) {
14367       return new ListConversionEventsPage(context, response);
14368     }
14369 
14370     @Override
createPageAsync( PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> context, ApiFuture<ListConversionEventsResponse> futureResponse)14371     public ApiFuture<ListConversionEventsPage> createPageAsync(
14372         PageContext<ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>
14373             context,
14374         ApiFuture<ListConversionEventsResponse> futureResponse) {
14375       return super.createPageAsync(context, futureResponse);
14376     }
14377   }
14378 
14379   public static class ListConversionEventsFixedSizeCollection
14380       extends AbstractFixedSizeCollection<
14381           ListConversionEventsRequest,
14382           ListConversionEventsResponse,
14383           ConversionEvent,
14384           ListConversionEventsPage,
14385           ListConversionEventsFixedSizeCollection> {
14386 
ListConversionEventsFixedSizeCollection( List<ListConversionEventsPage> pages, int collectionSize)14387     private ListConversionEventsFixedSizeCollection(
14388         List<ListConversionEventsPage> pages, int collectionSize) {
14389       super(pages, collectionSize);
14390     }
14391 
createEmptyCollection()14392     private static ListConversionEventsFixedSizeCollection createEmptyCollection() {
14393       return new ListConversionEventsFixedSizeCollection(null, 0);
14394     }
14395 
14396     @Override
createCollection( List<ListConversionEventsPage> pages, int collectionSize)14397     protected ListConversionEventsFixedSizeCollection createCollection(
14398         List<ListConversionEventsPage> pages, int collectionSize) {
14399       return new ListConversionEventsFixedSizeCollection(pages, collectionSize);
14400     }
14401   }
14402 
14403   public static class ListDisplayVideo360AdvertiserLinksPagedResponse
14404       extends AbstractPagedListResponse<
14405           ListDisplayVideo360AdvertiserLinksRequest,
14406           ListDisplayVideo360AdvertiserLinksResponse,
14407           DisplayVideo360AdvertiserLink,
14408           ListDisplayVideo360AdvertiserLinksPage,
14409           ListDisplayVideo360AdvertiserLinksFixedSizeCollection> {
14410 
createAsync( PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, ApiFuture<ListDisplayVideo360AdvertiserLinksResponse> futureResponse)14411     public static ApiFuture<ListDisplayVideo360AdvertiserLinksPagedResponse> createAsync(
14412         PageContext<
14413                 ListDisplayVideo360AdvertiserLinksRequest,
14414                 ListDisplayVideo360AdvertiserLinksResponse,
14415                 DisplayVideo360AdvertiserLink>
14416             context,
14417         ApiFuture<ListDisplayVideo360AdvertiserLinksResponse> futureResponse) {
14418       ApiFuture<ListDisplayVideo360AdvertiserLinksPage> futurePage =
14419           ListDisplayVideo360AdvertiserLinksPage.createEmptyPage()
14420               .createPageAsync(context, futureResponse);
14421       return ApiFutures.transform(
14422           futurePage,
14423           input -> new ListDisplayVideo360AdvertiserLinksPagedResponse(input),
14424           MoreExecutors.directExecutor());
14425     }
14426 
ListDisplayVideo360AdvertiserLinksPagedResponse( ListDisplayVideo360AdvertiserLinksPage page)14427     private ListDisplayVideo360AdvertiserLinksPagedResponse(
14428         ListDisplayVideo360AdvertiserLinksPage page) {
14429       super(page, ListDisplayVideo360AdvertiserLinksFixedSizeCollection.createEmptyCollection());
14430     }
14431   }
14432 
14433   public static class ListDisplayVideo360AdvertiserLinksPage
14434       extends AbstractPage<
14435           ListDisplayVideo360AdvertiserLinksRequest,
14436           ListDisplayVideo360AdvertiserLinksResponse,
14437           DisplayVideo360AdvertiserLink,
14438           ListDisplayVideo360AdvertiserLinksPage> {
14439 
ListDisplayVideo360AdvertiserLinksPage( PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, ListDisplayVideo360AdvertiserLinksResponse response)14440     private ListDisplayVideo360AdvertiserLinksPage(
14441         PageContext<
14442                 ListDisplayVideo360AdvertiserLinksRequest,
14443                 ListDisplayVideo360AdvertiserLinksResponse,
14444                 DisplayVideo360AdvertiserLink>
14445             context,
14446         ListDisplayVideo360AdvertiserLinksResponse response) {
14447       super(context, response);
14448     }
14449 
createEmptyPage()14450     private static ListDisplayVideo360AdvertiserLinksPage createEmptyPage() {
14451       return new ListDisplayVideo360AdvertiserLinksPage(null, null);
14452     }
14453 
14454     @Override
createPage( PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, ListDisplayVideo360AdvertiserLinksResponse response)14455     protected ListDisplayVideo360AdvertiserLinksPage createPage(
14456         PageContext<
14457                 ListDisplayVideo360AdvertiserLinksRequest,
14458                 ListDisplayVideo360AdvertiserLinksResponse,
14459                 DisplayVideo360AdvertiserLink>
14460             context,
14461         ListDisplayVideo360AdvertiserLinksResponse response) {
14462       return new ListDisplayVideo360AdvertiserLinksPage(context, response);
14463     }
14464 
14465     @Override
createPageAsync( PageContext< ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse, DisplayVideo360AdvertiserLink> context, ApiFuture<ListDisplayVideo360AdvertiserLinksResponse> futureResponse)14466     public ApiFuture<ListDisplayVideo360AdvertiserLinksPage> createPageAsync(
14467         PageContext<
14468                 ListDisplayVideo360AdvertiserLinksRequest,
14469                 ListDisplayVideo360AdvertiserLinksResponse,
14470                 DisplayVideo360AdvertiserLink>
14471             context,
14472         ApiFuture<ListDisplayVideo360AdvertiserLinksResponse> futureResponse) {
14473       return super.createPageAsync(context, futureResponse);
14474     }
14475   }
14476 
14477   public static class ListDisplayVideo360AdvertiserLinksFixedSizeCollection
14478       extends AbstractFixedSizeCollection<
14479           ListDisplayVideo360AdvertiserLinksRequest,
14480           ListDisplayVideo360AdvertiserLinksResponse,
14481           DisplayVideo360AdvertiserLink,
14482           ListDisplayVideo360AdvertiserLinksPage,
14483           ListDisplayVideo360AdvertiserLinksFixedSizeCollection> {
14484 
ListDisplayVideo360AdvertiserLinksFixedSizeCollection( List<ListDisplayVideo360AdvertiserLinksPage> pages, int collectionSize)14485     private ListDisplayVideo360AdvertiserLinksFixedSizeCollection(
14486         List<ListDisplayVideo360AdvertiserLinksPage> pages, int collectionSize) {
14487       super(pages, collectionSize);
14488     }
14489 
createEmptyCollection()14490     private static ListDisplayVideo360AdvertiserLinksFixedSizeCollection createEmptyCollection() {
14491       return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(null, 0);
14492     }
14493 
14494     @Override
createCollection( List<ListDisplayVideo360AdvertiserLinksPage> pages, int collectionSize)14495     protected ListDisplayVideo360AdvertiserLinksFixedSizeCollection createCollection(
14496         List<ListDisplayVideo360AdvertiserLinksPage> pages, int collectionSize) {
14497       return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(pages, collectionSize);
14498     }
14499   }
14500 
14501   public static class ListDisplayVideo360AdvertiserLinkProposalsPagedResponse
14502       extends AbstractPagedListResponse<
14503           ListDisplayVideo360AdvertiserLinkProposalsRequest,
14504           ListDisplayVideo360AdvertiserLinkProposalsResponse,
14505           DisplayVideo360AdvertiserLinkProposal,
14506           ListDisplayVideo360AdvertiserLinkProposalsPage,
14507           ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> {
14508 
createAsync( PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsResponse> futureResponse)14509     public static ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> createAsync(
14510         PageContext<
14511                 ListDisplayVideo360AdvertiserLinkProposalsRequest,
14512                 ListDisplayVideo360AdvertiserLinkProposalsResponse,
14513                 DisplayVideo360AdvertiserLinkProposal>
14514             context,
14515         ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsResponse> futureResponse) {
14516       ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsPage> futurePage =
14517           ListDisplayVideo360AdvertiserLinkProposalsPage.createEmptyPage()
14518               .createPageAsync(context, futureResponse);
14519       return ApiFutures.transform(
14520           futurePage,
14521           input -> new ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(input),
14522           MoreExecutors.directExecutor());
14523     }
14524 
ListDisplayVideo360AdvertiserLinkProposalsPagedResponse( ListDisplayVideo360AdvertiserLinkProposalsPage page)14525     private ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(
14526         ListDisplayVideo360AdvertiserLinkProposalsPage page) {
14527       super(
14528           page,
14529           ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection.createEmptyCollection());
14530     }
14531   }
14532 
14533   public static class ListDisplayVideo360AdvertiserLinkProposalsPage
14534       extends AbstractPage<
14535           ListDisplayVideo360AdvertiserLinkProposalsRequest,
14536           ListDisplayVideo360AdvertiserLinkProposalsResponse,
14537           DisplayVideo360AdvertiserLinkProposal,
14538           ListDisplayVideo360AdvertiserLinkProposalsPage> {
14539 
ListDisplayVideo360AdvertiserLinkProposalsPage( PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, ListDisplayVideo360AdvertiserLinkProposalsResponse response)14540     private ListDisplayVideo360AdvertiserLinkProposalsPage(
14541         PageContext<
14542                 ListDisplayVideo360AdvertiserLinkProposalsRequest,
14543                 ListDisplayVideo360AdvertiserLinkProposalsResponse,
14544                 DisplayVideo360AdvertiserLinkProposal>
14545             context,
14546         ListDisplayVideo360AdvertiserLinkProposalsResponse response) {
14547       super(context, response);
14548     }
14549 
createEmptyPage()14550     private static ListDisplayVideo360AdvertiserLinkProposalsPage createEmptyPage() {
14551       return new ListDisplayVideo360AdvertiserLinkProposalsPage(null, null);
14552     }
14553 
14554     @Override
createPage( PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, ListDisplayVideo360AdvertiserLinkProposalsResponse response)14555     protected ListDisplayVideo360AdvertiserLinkProposalsPage createPage(
14556         PageContext<
14557                 ListDisplayVideo360AdvertiserLinkProposalsRequest,
14558                 ListDisplayVideo360AdvertiserLinkProposalsResponse,
14559                 DisplayVideo360AdvertiserLinkProposal>
14560             context,
14561         ListDisplayVideo360AdvertiserLinkProposalsResponse response) {
14562       return new ListDisplayVideo360AdvertiserLinkProposalsPage(context, response);
14563     }
14564 
14565     @Override
createPageAsync( PageContext< ListDisplayVideo360AdvertiserLinkProposalsRequest, ListDisplayVideo360AdvertiserLinkProposalsResponse, DisplayVideo360AdvertiserLinkProposal> context, ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsResponse> futureResponse)14566     public ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsPage> createPageAsync(
14567         PageContext<
14568                 ListDisplayVideo360AdvertiserLinkProposalsRequest,
14569                 ListDisplayVideo360AdvertiserLinkProposalsResponse,
14570                 DisplayVideo360AdvertiserLinkProposal>
14571             context,
14572         ApiFuture<ListDisplayVideo360AdvertiserLinkProposalsResponse> futureResponse) {
14573       return super.createPageAsync(context, futureResponse);
14574     }
14575   }
14576 
14577   public static class ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection
14578       extends AbstractFixedSizeCollection<
14579           ListDisplayVideo360AdvertiserLinkProposalsRequest,
14580           ListDisplayVideo360AdvertiserLinkProposalsResponse,
14581           DisplayVideo360AdvertiserLinkProposal,
14582           ListDisplayVideo360AdvertiserLinkProposalsPage,
14583           ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> {
14584 
ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( List<ListDisplayVideo360AdvertiserLinkProposalsPage> pages, int collectionSize)14585     private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(
14586         List<ListDisplayVideo360AdvertiserLinkProposalsPage> pages, int collectionSize) {
14587       super(pages, collectionSize);
14588     }
14589 
14590     private static ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection
createEmptyCollection()14591         createEmptyCollection() {
14592       return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(null, 0);
14593     }
14594 
14595     @Override
createCollection( List<ListDisplayVideo360AdvertiserLinkProposalsPage> pages, int collectionSize)14596     protected ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection createCollection(
14597         List<ListDisplayVideo360AdvertiserLinkProposalsPage> pages, int collectionSize) {
14598       return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(
14599           pages, collectionSize);
14600     }
14601   }
14602 
14603   public static class ListCustomDimensionsPagedResponse
14604       extends AbstractPagedListResponse<
14605           ListCustomDimensionsRequest,
14606           ListCustomDimensionsResponse,
14607           CustomDimension,
14608           ListCustomDimensionsPage,
14609           ListCustomDimensionsFixedSizeCollection> {
14610 
createAsync( PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> context, ApiFuture<ListCustomDimensionsResponse> futureResponse)14611     public static ApiFuture<ListCustomDimensionsPagedResponse> createAsync(
14612         PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
14613             context,
14614         ApiFuture<ListCustomDimensionsResponse> futureResponse) {
14615       ApiFuture<ListCustomDimensionsPage> futurePage =
14616           ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse);
14617       return ApiFutures.transform(
14618           futurePage,
14619           input -> new ListCustomDimensionsPagedResponse(input),
14620           MoreExecutors.directExecutor());
14621     }
14622 
ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page)14623     private ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page) {
14624       super(page, ListCustomDimensionsFixedSizeCollection.createEmptyCollection());
14625     }
14626   }
14627 
14628   public static class ListCustomDimensionsPage
14629       extends AbstractPage<
14630           ListCustomDimensionsRequest,
14631           ListCustomDimensionsResponse,
14632           CustomDimension,
14633           ListCustomDimensionsPage> {
14634 
ListCustomDimensionsPage( PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> context, ListCustomDimensionsResponse response)14635     private ListCustomDimensionsPage(
14636         PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
14637             context,
14638         ListCustomDimensionsResponse response) {
14639       super(context, response);
14640     }
14641 
createEmptyPage()14642     private static ListCustomDimensionsPage createEmptyPage() {
14643       return new ListCustomDimensionsPage(null, null);
14644     }
14645 
14646     @Override
createPage( PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> context, ListCustomDimensionsResponse response)14647     protected ListCustomDimensionsPage createPage(
14648         PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
14649             context,
14650         ListCustomDimensionsResponse response) {
14651       return new ListCustomDimensionsPage(context, response);
14652     }
14653 
14654     @Override
createPageAsync( PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> context, ApiFuture<ListCustomDimensionsResponse> futureResponse)14655     public ApiFuture<ListCustomDimensionsPage> createPageAsync(
14656         PageContext<ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>
14657             context,
14658         ApiFuture<ListCustomDimensionsResponse> futureResponse) {
14659       return super.createPageAsync(context, futureResponse);
14660     }
14661   }
14662 
14663   public static class ListCustomDimensionsFixedSizeCollection
14664       extends AbstractFixedSizeCollection<
14665           ListCustomDimensionsRequest,
14666           ListCustomDimensionsResponse,
14667           CustomDimension,
14668           ListCustomDimensionsPage,
14669           ListCustomDimensionsFixedSizeCollection> {
14670 
ListCustomDimensionsFixedSizeCollection( List<ListCustomDimensionsPage> pages, int collectionSize)14671     private ListCustomDimensionsFixedSizeCollection(
14672         List<ListCustomDimensionsPage> pages, int collectionSize) {
14673       super(pages, collectionSize);
14674     }
14675 
createEmptyCollection()14676     private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() {
14677       return new ListCustomDimensionsFixedSizeCollection(null, 0);
14678     }
14679 
14680     @Override
createCollection( List<ListCustomDimensionsPage> pages, int collectionSize)14681     protected ListCustomDimensionsFixedSizeCollection createCollection(
14682         List<ListCustomDimensionsPage> pages, int collectionSize) {
14683       return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize);
14684     }
14685   }
14686 
14687   public static class ListCustomMetricsPagedResponse
14688       extends AbstractPagedListResponse<
14689           ListCustomMetricsRequest,
14690           ListCustomMetricsResponse,
14691           CustomMetric,
14692           ListCustomMetricsPage,
14693           ListCustomMetricsFixedSizeCollection> {
14694 
createAsync( PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context, ApiFuture<ListCustomMetricsResponse> futureResponse)14695     public static ApiFuture<ListCustomMetricsPagedResponse> createAsync(
14696         PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context,
14697         ApiFuture<ListCustomMetricsResponse> futureResponse) {
14698       ApiFuture<ListCustomMetricsPage> futurePage =
14699           ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse);
14700       return ApiFutures.transform(
14701           futurePage,
14702           input -> new ListCustomMetricsPagedResponse(input),
14703           MoreExecutors.directExecutor());
14704     }
14705 
ListCustomMetricsPagedResponse(ListCustomMetricsPage page)14706     private ListCustomMetricsPagedResponse(ListCustomMetricsPage page) {
14707       super(page, ListCustomMetricsFixedSizeCollection.createEmptyCollection());
14708     }
14709   }
14710 
14711   public static class ListCustomMetricsPage
14712       extends AbstractPage<
14713           ListCustomMetricsRequest,
14714           ListCustomMetricsResponse,
14715           CustomMetric,
14716           ListCustomMetricsPage> {
14717 
ListCustomMetricsPage( PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context, ListCustomMetricsResponse response)14718     private ListCustomMetricsPage(
14719         PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context,
14720         ListCustomMetricsResponse response) {
14721       super(context, response);
14722     }
14723 
createEmptyPage()14724     private static ListCustomMetricsPage createEmptyPage() {
14725       return new ListCustomMetricsPage(null, null);
14726     }
14727 
14728     @Override
createPage( PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context, ListCustomMetricsResponse response)14729     protected ListCustomMetricsPage createPage(
14730         PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context,
14731         ListCustomMetricsResponse response) {
14732       return new ListCustomMetricsPage(context, response);
14733     }
14734 
14735     @Override
createPageAsync( PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context, ApiFuture<ListCustomMetricsResponse> futureResponse)14736     public ApiFuture<ListCustomMetricsPage> createPageAsync(
14737         PageContext<ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> context,
14738         ApiFuture<ListCustomMetricsResponse> futureResponse) {
14739       return super.createPageAsync(context, futureResponse);
14740     }
14741   }
14742 
14743   public static class ListCustomMetricsFixedSizeCollection
14744       extends AbstractFixedSizeCollection<
14745           ListCustomMetricsRequest,
14746           ListCustomMetricsResponse,
14747           CustomMetric,
14748           ListCustomMetricsPage,
14749           ListCustomMetricsFixedSizeCollection> {
14750 
ListCustomMetricsFixedSizeCollection( List<ListCustomMetricsPage> pages, int collectionSize)14751     private ListCustomMetricsFixedSizeCollection(
14752         List<ListCustomMetricsPage> pages, int collectionSize) {
14753       super(pages, collectionSize);
14754     }
14755 
createEmptyCollection()14756     private static ListCustomMetricsFixedSizeCollection createEmptyCollection() {
14757       return new ListCustomMetricsFixedSizeCollection(null, 0);
14758     }
14759 
14760     @Override
createCollection( List<ListCustomMetricsPage> pages, int collectionSize)14761     protected ListCustomMetricsFixedSizeCollection createCollection(
14762         List<ListCustomMetricsPage> pages, int collectionSize) {
14763       return new ListCustomMetricsFixedSizeCollection(pages, collectionSize);
14764     }
14765   }
14766 
14767   public static class ListDataStreamsPagedResponse
14768       extends AbstractPagedListResponse<
14769           ListDataStreamsRequest,
14770           ListDataStreamsResponse,
14771           DataStream,
14772           ListDataStreamsPage,
14773           ListDataStreamsFixedSizeCollection> {
14774 
createAsync( PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context, ApiFuture<ListDataStreamsResponse> futureResponse)14775     public static ApiFuture<ListDataStreamsPagedResponse> createAsync(
14776         PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context,
14777         ApiFuture<ListDataStreamsResponse> futureResponse) {
14778       ApiFuture<ListDataStreamsPage> futurePage =
14779           ListDataStreamsPage.createEmptyPage().createPageAsync(context, futureResponse);
14780       return ApiFutures.transform(
14781           futurePage,
14782           input -> new ListDataStreamsPagedResponse(input),
14783           MoreExecutors.directExecutor());
14784     }
14785 
ListDataStreamsPagedResponse(ListDataStreamsPage page)14786     private ListDataStreamsPagedResponse(ListDataStreamsPage page) {
14787       super(page, ListDataStreamsFixedSizeCollection.createEmptyCollection());
14788     }
14789   }
14790 
14791   public static class ListDataStreamsPage
14792       extends AbstractPage<
14793           ListDataStreamsRequest, ListDataStreamsResponse, DataStream, ListDataStreamsPage> {
14794 
ListDataStreamsPage( PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context, ListDataStreamsResponse response)14795     private ListDataStreamsPage(
14796         PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context,
14797         ListDataStreamsResponse response) {
14798       super(context, response);
14799     }
14800 
createEmptyPage()14801     private static ListDataStreamsPage createEmptyPage() {
14802       return new ListDataStreamsPage(null, null);
14803     }
14804 
14805     @Override
createPage( PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context, ListDataStreamsResponse response)14806     protected ListDataStreamsPage createPage(
14807         PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context,
14808         ListDataStreamsResponse response) {
14809       return new ListDataStreamsPage(context, response);
14810     }
14811 
14812     @Override
createPageAsync( PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context, ApiFuture<ListDataStreamsResponse> futureResponse)14813     public ApiFuture<ListDataStreamsPage> createPageAsync(
14814         PageContext<ListDataStreamsRequest, ListDataStreamsResponse, DataStream> context,
14815         ApiFuture<ListDataStreamsResponse> futureResponse) {
14816       return super.createPageAsync(context, futureResponse);
14817     }
14818   }
14819 
14820   public static class ListDataStreamsFixedSizeCollection
14821       extends AbstractFixedSizeCollection<
14822           ListDataStreamsRequest,
14823           ListDataStreamsResponse,
14824           DataStream,
14825           ListDataStreamsPage,
14826           ListDataStreamsFixedSizeCollection> {
14827 
ListDataStreamsFixedSizeCollection( List<ListDataStreamsPage> pages, int collectionSize)14828     private ListDataStreamsFixedSizeCollection(
14829         List<ListDataStreamsPage> pages, int collectionSize) {
14830       super(pages, collectionSize);
14831     }
14832 
createEmptyCollection()14833     private static ListDataStreamsFixedSizeCollection createEmptyCollection() {
14834       return new ListDataStreamsFixedSizeCollection(null, 0);
14835     }
14836 
14837     @Override
createCollection( List<ListDataStreamsPage> pages, int collectionSize)14838     protected ListDataStreamsFixedSizeCollection createCollection(
14839         List<ListDataStreamsPage> pages, int collectionSize) {
14840       return new ListDataStreamsFixedSizeCollection(pages, collectionSize);
14841     }
14842   }
14843 
14844   public static class ListAudiencesPagedResponse
14845       extends AbstractPagedListResponse<
14846           ListAudiencesRequest,
14847           ListAudiencesResponse,
14848           Audience,
14849           ListAudiencesPage,
14850           ListAudiencesFixedSizeCollection> {
14851 
createAsync( PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context, ApiFuture<ListAudiencesResponse> futureResponse)14852     public static ApiFuture<ListAudiencesPagedResponse> createAsync(
14853         PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context,
14854         ApiFuture<ListAudiencesResponse> futureResponse) {
14855       ApiFuture<ListAudiencesPage> futurePage =
14856           ListAudiencesPage.createEmptyPage().createPageAsync(context, futureResponse);
14857       return ApiFutures.transform(
14858           futurePage,
14859           input -> new ListAudiencesPagedResponse(input),
14860           MoreExecutors.directExecutor());
14861     }
14862 
ListAudiencesPagedResponse(ListAudiencesPage page)14863     private ListAudiencesPagedResponse(ListAudiencesPage page) {
14864       super(page, ListAudiencesFixedSizeCollection.createEmptyCollection());
14865     }
14866   }
14867 
14868   public static class ListAudiencesPage
14869       extends AbstractPage<
14870           ListAudiencesRequest, ListAudiencesResponse, Audience, ListAudiencesPage> {
14871 
ListAudiencesPage( PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context, ListAudiencesResponse response)14872     private ListAudiencesPage(
14873         PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context,
14874         ListAudiencesResponse response) {
14875       super(context, response);
14876     }
14877 
createEmptyPage()14878     private static ListAudiencesPage createEmptyPage() {
14879       return new ListAudiencesPage(null, null);
14880     }
14881 
14882     @Override
createPage( PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context, ListAudiencesResponse response)14883     protected ListAudiencesPage createPage(
14884         PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context,
14885         ListAudiencesResponse response) {
14886       return new ListAudiencesPage(context, response);
14887     }
14888 
14889     @Override
createPageAsync( PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context, ApiFuture<ListAudiencesResponse> futureResponse)14890     public ApiFuture<ListAudiencesPage> createPageAsync(
14891         PageContext<ListAudiencesRequest, ListAudiencesResponse, Audience> context,
14892         ApiFuture<ListAudiencesResponse> futureResponse) {
14893       return super.createPageAsync(context, futureResponse);
14894     }
14895   }
14896 
14897   public static class ListAudiencesFixedSizeCollection
14898       extends AbstractFixedSizeCollection<
14899           ListAudiencesRequest,
14900           ListAudiencesResponse,
14901           Audience,
14902           ListAudiencesPage,
14903           ListAudiencesFixedSizeCollection> {
14904 
ListAudiencesFixedSizeCollection(List<ListAudiencesPage> pages, int collectionSize)14905     private ListAudiencesFixedSizeCollection(List<ListAudiencesPage> pages, int collectionSize) {
14906       super(pages, collectionSize);
14907     }
14908 
createEmptyCollection()14909     private static ListAudiencesFixedSizeCollection createEmptyCollection() {
14910       return new ListAudiencesFixedSizeCollection(null, 0);
14911     }
14912 
14913     @Override
createCollection( List<ListAudiencesPage> pages, int collectionSize)14914     protected ListAudiencesFixedSizeCollection createCollection(
14915         List<ListAudiencesPage> pages, int collectionSize) {
14916       return new ListAudiencesFixedSizeCollection(pages, collectionSize);
14917     }
14918   }
14919 
14920   public static class ListSearchAds360LinksPagedResponse
14921       extends AbstractPagedListResponse<
14922           ListSearchAds360LinksRequest,
14923           ListSearchAds360LinksResponse,
14924           SearchAds360Link,
14925           ListSearchAds360LinksPage,
14926           ListSearchAds360LinksFixedSizeCollection> {
14927 
createAsync( PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, ApiFuture<ListSearchAds360LinksResponse> futureResponse)14928     public static ApiFuture<ListSearchAds360LinksPagedResponse> createAsync(
14929         PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link>
14930             context,
14931         ApiFuture<ListSearchAds360LinksResponse> futureResponse) {
14932       ApiFuture<ListSearchAds360LinksPage> futurePage =
14933           ListSearchAds360LinksPage.createEmptyPage().createPageAsync(context, futureResponse);
14934       return ApiFutures.transform(
14935           futurePage,
14936           input -> new ListSearchAds360LinksPagedResponse(input),
14937           MoreExecutors.directExecutor());
14938     }
14939 
ListSearchAds360LinksPagedResponse(ListSearchAds360LinksPage page)14940     private ListSearchAds360LinksPagedResponse(ListSearchAds360LinksPage page) {
14941       super(page, ListSearchAds360LinksFixedSizeCollection.createEmptyCollection());
14942     }
14943   }
14944 
14945   public static class ListSearchAds360LinksPage
14946       extends AbstractPage<
14947           ListSearchAds360LinksRequest,
14948           ListSearchAds360LinksResponse,
14949           SearchAds360Link,
14950           ListSearchAds360LinksPage> {
14951 
ListSearchAds360LinksPage( PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, ListSearchAds360LinksResponse response)14952     private ListSearchAds360LinksPage(
14953         PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link>
14954             context,
14955         ListSearchAds360LinksResponse response) {
14956       super(context, response);
14957     }
14958 
createEmptyPage()14959     private static ListSearchAds360LinksPage createEmptyPage() {
14960       return new ListSearchAds360LinksPage(null, null);
14961     }
14962 
14963     @Override
createPage( PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, ListSearchAds360LinksResponse response)14964     protected ListSearchAds360LinksPage createPage(
14965         PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link>
14966             context,
14967         ListSearchAds360LinksResponse response) {
14968       return new ListSearchAds360LinksPage(context, response);
14969     }
14970 
14971     @Override
createPageAsync( PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link> context, ApiFuture<ListSearchAds360LinksResponse> futureResponse)14972     public ApiFuture<ListSearchAds360LinksPage> createPageAsync(
14973         PageContext<ListSearchAds360LinksRequest, ListSearchAds360LinksResponse, SearchAds360Link>
14974             context,
14975         ApiFuture<ListSearchAds360LinksResponse> futureResponse) {
14976       return super.createPageAsync(context, futureResponse);
14977     }
14978   }
14979 
14980   public static class ListSearchAds360LinksFixedSizeCollection
14981       extends AbstractFixedSizeCollection<
14982           ListSearchAds360LinksRequest,
14983           ListSearchAds360LinksResponse,
14984           SearchAds360Link,
14985           ListSearchAds360LinksPage,
14986           ListSearchAds360LinksFixedSizeCollection> {
14987 
ListSearchAds360LinksFixedSizeCollection( List<ListSearchAds360LinksPage> pages, int collectionSize)14988     private ListSearchAds360LinksFixedSizeCollection(
14989         List<ListSearchAds360LinksPage> pages, int collectionSize) {
14990       super(pages, collectionSize);
14991     }
14992 
createEmptyCollection()14993     private static ListSearchAds360LinksFixedSizeCollection createEmptyCollection() {
14994       return new ListSearchAds360LinksFixedSizeCollection(null, 0);
14995     }
14996 
14997     @Override
createCollection( List<ListSearchAds360LinksPage> pages, int collectionSize)14998     protected ListSearchAds360LinksFixedSizeCollection createCollection(
14999         List<ListSearchAds360LinksPage> pages, int collectionSize) {
15000       return new ListSearchAds360LinksFixedSizeCollection(pages, collectionSize);
15001     }
15002   }
15003 
15004   public static class ListAccessBindingsPagedResponse
15005       extends AbstractPagedListResponse<
15006           ListAccessBindingsRequest,
15007           ListAccessBindingsResponse,
15008           AccessBinding,
15009           ListAccessBindingsPage,
15010           ListAccessBindingsFixedSizeCollection> {
15011 
createAsync( PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context, ApiFuture<ListAccessBindingsResponse> futureResponse)15012     public static ApiFuture<ListAccessBindingsPagedResponse> createAsync(
15013         PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context,
15014         ApiFuture<ListAccessBindingsResponse> futureResponse) {
15015       ApiFuture<ListAccessBindingsPage> futurePage =
15016           ListAccessBindingsPage.createEmptyPage().createPageAsync(context, futureResponse);
15017       return ApiFutures.transform(
15018           futurePage,
15019           input -> new ListAccessBindingsPagedResponse(input),
15020           MoreExecutors.directExecutor());
15021     }
15022 
ListAccessBindingsPagedResponse(ListAccessBindingsPage page)15023     private ListAccessBindingsPagedResponse(ListAccessBindingsPage page) {
15024       super(page, ListAccessBindingsFixedSizeCollection.createEmptyCollection());
15025     }
15026   }
15027 
15028   public static class ListAccessBindingsPage
15029       extends AbstractPage<
15030           ListAccessBindingsRequest,
15031           ListAccessBindingsResponse,
15032           AccessBinding,
15033           ListAccessBindingsPage> {
15034 
ListAccessBindingsPage( PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context, ListAccessBindingsResponse response)15035     private ListAccessBindingsPage(
15036         PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context,
15037         ListAccessBindingsResponse response) {
15038       super(context, response);
15039     }
15040 
createEmptyPage()15041     private static ListAccessBindingsPage createEmptyPage() {
15042       return new ListAccessBindingsPage(null, null);
15043     }
15044 
15045     @Override
createPage( PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context, ListAccessBindingsResponse response)15046     protected ListAccessBindingsPage createPage(
15047         PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context,
15048         ListAccessBindingsResponse response) {
15049       return new ListAccessBindingsPage(context, response);
15050     }
15051 
15052     @Override
createPageAsync( PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context, ApiFuture<ListAccessBindingsResponse> futureResponse)15053     public ApiFuture<ListAccessBindingsPage> createPageAsync(
15054         PageContext<ListAccessBindingsRequest, ListAccessBindingsResponse, AccessBinding> context,
15055         ApiFuture<ListAccessBindingsResponse> futureResponse) {
15056       return super.createPageAsync(context, futureResponse);
15057     }
15058   }
15059 
15060   public static class ListAccessBindingsFixedSizeCollection
15061       extends AbstractFixedSizeCollection<
15062           ListAccessBindingsRequest,
15063           ListAccessBindingsResponse,
15064           AccessBinding,
15065           ListAccessBindingsPage,
15066           ListAccessBindingsFixedSizeCollection> {
15067 
ListAccessBindingsFixedSizeCollection( List<ListAccessBindingsPage> pages, int collectionSize)15068     private ListAccessBindingsFixedSizeCollection(
15069         List<ListAccessBindingsPage> pages, int collectionSize) {
15070       super(pages, collectionSize);
15071     }
15072 
createEmptyCollection()15073     private static ListAccessBindingsFixedSizeCollection createEmptyCollection() {
15074       return new ListAccessBindingsFixedSizeCollection(null, 0);
15075     }
15076 
15077     @Override
createCollection( List<ListAccessBindingsPage> pages, int collectionSize)15078     protected ListAccessBindingsFixedSizeCollection createCollection(
15079         List<ListAccessBindingsPage> pages, int collectionSize) {
15080       return new ListAccessBindingsFixedSizeCollection(pages, collectionSize);
15081     }
15082   }
15083 
15084   public static class ListExpandedDataSetsPagedResponse
15085       extends AbstractPagedListResponse<
15086           ListExpandedDataSetsRequest,
15087           ListExpandedDataSetsResponse,
15088           ExpandedDataSet,
15089           ListExpandedDataSetsPage,
15090           ListExpandedDataSetsFixedSizeCollection> {
15091 
createAsync( PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> context, ApiFuture<ListExpandedDataSetsResponse> futureResponse)15092     public static ApiFuture<ListExpandedDataSetsPagedResponse> createAsync(
15093         PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet>
15094             context,
15095         ApiFuture<ListExpandedDataSetsResponse> futureResponse) {
15096       ApiFuture<ListExpandedDataSetsPage> futurePage =
15097           ListExpandedDataSetsPage.createEmptyPage().createPageAsync(context, futureResponse);
15098       return ApiFutures.transform(
15099           futurePage,
15100           input -> new ListExpandedDataSetsPagedResponse(input),
15101           MoreExecutors.directExecutor());
15102     }
15103 
ListExpandedDataSetsPagedResponse(ListExpandedDataSetsPage page)15104     private ListExpandedDataSetsPagedResponse(ListExpandedDataSetsPage page) {
15105       super(page, ListExpandedDataSetsFixedSizeCollection.createEmptyCollection());
15106     }
15107   }
15108 
15109   public static class ListExpandedDataSetsPage
15110       extends AbstractPage<
15111           ListExpandedDataSetsRequest,
15112           ListExpandedDataSetsResponse,
15113           ExpandedDataSet,
15114           ListExpandedDataSetsPage> {
15115 
ListExpandedDataSetsPage( PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> context, ListExpandedDataSetsResponse response)15116     private ListExpandedDataSetsPage(
15117         PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet>
15118             context,
15119         ListExpandedDataSetsResponse response) {
15120       super(context, response);
15121     }
15122 
createEmptyPage()15123     private static ListExpandedDataSetsPage createEmptyPage() {
15124       return new ListExpandedDataSetsPage(null, null);
15125     }
15126 
15127     @Override
createPage( PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> context, ListExpandedDataSetsResponse response)15128     protected ListExpandedDataSetsPage createPage(
15129         PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet>
15130             context,
15131         ListExpandedDataSetsResponse response) {
15132       return new ListExpandedDataSetsPage(context, response);
15133     }
15134 
15135     @Override
createPageAsync( PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet> context, ApiFuture<ListExpandedDataSetsResponse> futureResponse)15136     public ApiFuture<ListExpandedDataSetsPage> createPageAsync(
15137         PageContext<ListExpandedDataSetsRequest, ListExpandedDataSetsResponse, ExpandedDataSet>
15138             context,
15139         ApiFuture<ListExpandedDataSetsResponse> futureResponse) {
15140       return super.createPageAsync(context, futureResponse);
15141     }
15142   }
15143 
15144   public static class ListExpandedDataSetsFixedSizeCollection
15145       extends AbstractFixedSizeCollection<
15146           ListExpandedDataSetsRequest,
15147           ListExpandedDataSetsResponse,
15148           ExpandedDataSet,
15149           ListExpandedDataSetsPage,
15150           ListExpandedDataSetsFixedSizeCollection> {
15151 
ListExpandedDataSetsFixedSizeCollection( List<ListExpandedDataSetsPage> pages, int collectionSize)15152     private ListExpandedDataSetsFixedSizeCollection(
15153         List<ListExpandedDataSetsPage> pages, int collectionSize) {
15154       super(pages, collectionSize);
15155     }
15156 
createEmptyCollection()15157     private static ListExpandedDataSetsFixedSizeCollection createEmptyCollection() {
15158       return new ListExpandedDataSetsFixedSizeCollection(null, 0);
15159     }
15160 
15161     @Override
createCollection( List<ListExpandedDataSetsPage> pages, int collectionSize)15162     protected ListExpandedDataSetsFixedSizeCollection createCollection(
15163         List<ListExpandedDataSetsPage> pages, int collectionSize) {
15164       return new ListExpandedDataSetsFixedSizeCollection(pages, collectionSize);
15165     }
15166   }
15167 
15168   public static class ListChannelGroupsPagedResponse
15169       extends AbstractPagedListResponse<
15170           ListChannelGroupsRequest,
15171           ListChannelGroupsResponse,
15172           ChannelGroup,
15173           ListChannelGroupsPage,
15174           ListChannelGroupsFixedSizeCollection> {
15175 
createAsync( PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context, ApiFuture<ListChannelGroupsResponse> futureResponse)15176     public static ApiFuture<ListChannelGroupsPagedResponse> createAsync(
15177         PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context,
15178         ApiFuture<ListChannelGroupsResponse> futureResponse) {
15179       ApiFuture<ListChannelGroupsPage> futurePage =
15180           ListChannelGroupsPage.createEmptyPage().createPageAsync(context, futureResponse);
15181       return ApiFutures.transform(
15182           futurePage,
15183           input -> new ListChannelGroupsPagedResponse(input),
15184           MoreExecutors.directExecutor());
15185     }
15186 
ListChannelGroupsPagedResponse(ListChannelGroupsPage page)15187     private ListChannelGroupsPagedResponse(ListChannelGroupsPage page) {
15188       super(page, ListChannelGroupsFixedSizeCollection.createEmptyCollection());
15189     }
15190   }
15191 
15192   public static class ListChannelGroupsPage
15193       extends AbstractPage<
15194           ListChannelGroupsRequest,
15195           ListChannelGroupsResponse,
15196           ChannelGroup,
15197           ListChannelGroupsPage> {
15198 
ListChannelGroupsPage( PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context, ListChannelGroupsResponse response)15199     private ListChannelGroupsPage(
15200         PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context,
15201         ListChannelGroupsResponse response) {
15202       super(context, response);
15203     }
15204 
createEmptyPage()15205     private static ListChannelGroupsPage createEmptyPage() {
15206       return new ListChannelGroupsPage(null, null);
15207     }
15208 
15209     @Override
createPage( PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context, ListChannelGroupsResponse response)15210     protected ListChannelGroupsPage createPage(
15211         PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context,
15212         ListChannelGroupsResponse response) {
15213       return new ListChannelGroupsPage(context, response);
15214     }
15215 
15216     @Override
createPageAsync( PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context, ApiFuture<ListChannelGroupsResponse> futureResponse)15217     public ApiFuture<ListChannelGroupsPage> createPageAsync(
15218         PageContext<ListChannelGroupsRequest, ListChannelGroupsResponse, ChannelGroup> context,
15219         ApiFuture<ListChannelGroupsResponse> futureResponse) {
15220       return super.createPageAsync(context, futureResponse);
15221     }
15222   }
15223 
15224   public static class ListChannelGroupsFixedSizeCollection
15225       extends AbstractFixedSizeCollection<
15226           ListChannelGroupsRequest,
15227           ListChannelGroupsResponse,
15228           ChannelGroup,
15229           ListChannelGroupsPage,
15230           ListChannelGroupsFixedSizeCollection> {
15231 
ListChannelGroupsFixedSizeCollection( List<ListChannelGroupsPage> pages, int collectionSize)15232     private ListChannelGroupsFixedSizeCollection(
15233         List<ListChannelGroupsPage> pages, int collectionSize) {
15234       super(pages, collectionSize);
15235     }
15236 
createEmptyCollection()15237     private static ListChannelGroupsFixedSizeCollection createEmptyCollection() {
15238       return new ListChannelGroupsFixedSizeCollection(null, 0);
15239     }
15240 
15241     @Override
createCollection( List<ListChannelGroupsPage> pages, int collectionSize)15242     protected ListChannelGroupsFixedSizeCollection createCollection(
15243         List<ListChannelGroupsPage> pages, int collectionSize) {
15244       return new ListChannelGroupsFixedSizeCollection(pages, collectionSize);
15245     }
15246   }
15247 
15248   public static class ListBigQueryLinksPagedResponse
15249       extends AbstractPagedListResponse<
15250           ListBigQueryLinksRequest,
15251           ListBigQueryLinksResponse,
15252           BigQueryLink,
15253           ListBigQueryLinksPage,
15254           ListBigQueryLinksFixedSizeCollection> {
15255 
createAsync( PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context, ApiFuture<ListBigQueryLinksResponse> futureResponse)15256     public static ApiFuture<ListBigQueryLinksPagedResponse> createAsync(
15257         PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context,
15258         ApiFuture<ListBigQueryLinksResponse> futureResponse) {
15259       ApiFuture<ListBigQueryLinksPage> futurePage =
15260           ListBigQueryLinksPage.createEmptyPage().createPageAsync(context, futureResponse);
15261       return ApiFutures.transform(
15262           futurePage,
15263           input -> new ListBigQueryLinksPagedResponse(input),
15264           MoreExecutors.directExecutor());
15265     }
15266 
ListBigQueryLinksPagedResponse(ListBigQueryLinksPage page)15267     private ListBigQueryLinksPagedResponse(ListBigQueryLinksPage page) {
15268       super(page, ListBigQueryLinksFixedSizeCollection.createEmptyCollection());
15269     }
15270   }
15271 
15272   public static class ListBigQueryLinksPage
15273       extends AbstractPage<
15274           ListBigQueryLinksRequest,
15275           ListBigQueryLinksResponse,
15276           BigQueryLink,
15277           ListBigQueryLinksPage> {
15278 
ListBigQueryLinksPage( PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context, ListBigQueryLinksResponse response)15279     private ListBigQueryLinksPage(
15280         PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context,
15281         ListBigQueryLinksResponse response) {
15282       super(context, response);
15283     }
15284 
createEmptyPage()15285     private static ListBigQueryLinksPage createEmptyPage() {
15286       return new ListBigQueryLinksPage(null, null);
15287     }
15288 
15289     @Override
createPage( PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context, ListBigQueryLinksResponse response)15290     protected ListBigQueryLinksPage createPage(
15291         PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context,
15292         ListBigQueryLinksResponse response) {
15293       return new ListBigQueryLinksPage(context, response);
15294     }
15295 
15296     @Override
createPageAsync( PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context, ApiFuture<ListBigQueryLinksResponse> futureResponse)15297     public ApiFuture<ListBigQueryLinksPage> createPageAsync(
15298         PageContext<ListBigQueryLinksRequest, ListBigQueryLinksResponse, BigQueryLink> context,
15299         ApiFuture<ListBigQueryLinksResponse> futureResponse) {
15300       return super.createPageAsync(context, futureResponse);
15301     }
15302   }
15303 
15304   public static class ListBigQueryLinksFixedSizeCollection
15305       extends AbstractFixedSizeCollection<
15306           ListBigQueryLinksRequest,
15307           ListBigQueryLinksResponse,
15308           BigQueryLink,
15309           ListBigQueryLinksPage,
15310           ListBigQueryLinksFixedSizeCollection> {
15311 
ListBigQueryLinksFixedSizeCollection( List<ListBigQueryLinksPage> pages, int collectionSize)15312     private ListBigQueryLinksFixedSizeCollection(
15313         List<ListBigQueryLinksPage> pages, int collectionSize) {
15314       super(pages, collectionSize);
15315     }
15316 
createEmptyCollection()15317     private static ListBigQueryLinksFixedSizeCollection createEmptyCollection() {
15318       return new ListBigQueryLinksFixedSizeCollection(null, 0);
15319     }
15320 
15321     @Override
createCollection( List<ListBigQueryLinksPage> pages, int collectionSize)15322     protected ListBigQueryLinksFixedSizeCollection createCollection(
15323         List<ListBigQueryLinksPage> pages, int collectionSize) {
15324       return new ListBigQueryLinksFixedSizeCollection(pages, collectionSize);
15325     }
15326   }
15327 }
15328