| GitHub Repository | Product Reference |
Service Description: Provides methods for handling DaiAuthenticationKey objects.
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
DaiAuthenticationKeyName name =
DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]");
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(name);
}
Note: close() needs to be called on the DaiAuthenticationKeyServiceClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
| Method | Description | Method Variants |
|---|---|---|
GetDaiAuthenticationKey |
Retrieves a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
ListDaiAuthenticationKeys |
Lists |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDaiAuthenticationKey |
Creates a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchCreateDaiAuthenticationKeys |
Batch creates |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDaiAuthenticationKey |
Updates a |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchUpdateDaiAuthenticationKeys |
Batch updates |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchActivateDaiAuthenticationKeys |
Activates a list of |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
BatchDeactivateDaiAuthenticationKeys |
Deactivates a list of |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of DaiAuthenticationKeyServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DaiAuthenticationKeyServiceSettings daiAuthenticationKeyServiceSettings =
DaiAuthenticationKeyServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create(daiAuthenticationKeyServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DaiAuthenticationKeyServiceSettings daiAuthenticationKeyServiceSettings =
DaiAuthenticationKeyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create(daiAuthenticationKeyServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final DaiAuthenticationKeyServiceClient create()Constructs an instance of DaiAuthenticationKeyServiceClient with default settings.
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(DaiAuthenticationKeyServiceSettings settings)
public static final DaiAuthenticationKeyServiceClient create(DaiAuthenticationKeyServiceSettings settings)Constructs an instance of DaiAuthenticationKeyServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.
| Parameter | |
|---|---|
| Name | Description |
settings |
DaiAuthenticationKeyServiceSettings |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(DaiAuthenticationKeyServiceStub stub)
public static final DaiAuthenticationKeyServiceClient create(DaiAuthenticationKeyServiceStub stub)Constructs an instance of DaiAuthenticationKeyServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(DaiAuthenticationKeyServiceSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
DaiAuthenticationKeyServiceStub |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient |
|
Constructors
DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceSettings settings)
protected DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceSettings settings)Constructs an instance of DaiAuthenticationKeyServiceClient, using the given settings. This is protected so that it is easy to make a subclass, but otherwise, the static factory methods should be preferred.
| Parameter | |
|---|---|
| Name | Description |
settings |
DaiAuthenticationKeyServiceSettings |
DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceStub stub)
protected DaiAuthenticationKeyServiceClient(DaiAuthenticationKeyServiceStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
DaiAuthenticationKeyServiceStub |
Methods
awaitTermination(long duration, TimeUnit unit)
public boolean awaitTermination(long duration, TimeUnit unit)| Parameters | |
|---|---|
| Name | Description |
duration |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
| Exceptions | |
|---|---|
| Type | Description |
InterruptedException |
|
batchActivateDaiAuthenticationKeys(@Nullable NetworkName parent, List<String> names)
public final BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(@Nullable NetworkName parent, List<String> names)Activates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchActivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchActivateDaiAuthenticationKeys(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. Format: |
names |
List<String>Required. Resource names for the DaiAuthenticationKey. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchActivateDaiAuthenticationKeysResponse |
|
batchActivateDaiAuthenticationKeys(BatchActivateDaiAuthenticationKeysRequest request)
public final BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(BatchActivateDaiAuthenticationKeysRequest request)Activates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchActivateDaiAuthenticationKeysRequest request =
BatchActivateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchActivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchActivateDaiAuthenticationKeys(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchActivateDaiAuthenticationKeysRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchActivateDaiAuthenticationKeysResponse |
|
batchActivateDaiAuthenticationKeys(String parent, List<String> names)
public final BatchActivateDaiAuthenticationKeysResponse batchActivateDaiAuthenticationKeys(String parent, List<String> names)Activates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchActivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchActivateDaiAuthenticationKeys(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Format: |
names |
List<String>Required. Resource names for the DaiAuthenticationKey. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchActivateDaiAuthenticationKeysResponse |
|
batchActivateDaiAuthenticationKeysCallable()
public final UnaryCallable<BatchActivateDaiAuthenticationKeysRequest,BatchActivateDaiAuthenticationKeysResponse> batchActivateDaiAuthenticationKeysCallable()Activates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchActivateDaiAuthenticationKeysRequest request =
BatchActivateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchActivateDaiAuthenticationKeysResponse> future =
daiAuthenticationKeyServiceClient
.batchActivateDaiAuthenticationKeysCallable()
.futureCall(request);
// Do something.
BatchActivateDaiAuthenticationKeysResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchActivateDaiAuthenticationKeysRequest,BatchActivateDaiAuthenticationKeysResponse> |
|
batchCreateDaiAuthenticationKeys(@Nullable NetworkName parent, List<CreateDaiAuthenticationKeyRequest> requests)
public final BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(@Nullable NetworkName parent, List<CreateDaiAuthenticationKeyRequest> requests)Batch creates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<CreateDaiAuthenticationKeyRequest> requests = new ArrayList<>();
BatchCreateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchCreateDaiAuthenticationKeys(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where |
requests |
List<CreateDaiAuthenticationKeyRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchCreateDaiAuthenticationKeysResponse |
|
batchCreateDaiAuthenticationKeys(BatchCreateDaiAuthenticationKeysRequest request)
public final BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(BatchCreateDaiAuthenticationKeysRequest request)Batch creates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchCreateDaiAuthenticationKeysRequest request =
BatchCreateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<CreateDaiAuthenticationKeyRequest>())
.build();
BatchCreateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchCreateDaiAuthenticationKeys(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchCreateDaiAuthenticationKeysRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchCreateDaiAuthenticationKeysResponse |
|
batchCreateDaiAuthenticationKeys(String parent, List<CreateDaiAuthenticationKeyRequest> requests)
public final BatchCreateDaiAuthenticationKeysResponse batchCreateDaiAuthenticationKeys(String parent, List<CreateDaiAuthenticationKeyRequest> requests)Batch creates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<CreateDaiAuthenticationKeyRequest> requests = new ArrayList<>();
BatchCreateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchCreateDaiAuthenticationKeys(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where |
requests |
List<CreateDaiAuthenticationKeyRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchCreateDaiAuthenticationKeysResponse |
|
batchCreateDaiAuthenticationKeysCallable()
public final UnaryCallable<BatchCreateDaiAuthenticationKeysRequest,BatchCreateDaiAuthenticationKeysResponse> batchCreateDaiAuthenticationKeysCallable()Batch creates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchCreateDaiAuthenticationKeysRequest request =
BatchCreateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<CreateDaiAuthenticationKeyRequest>())
.build();
ApiFuture<BatchCreateDaiAuthenticationKeysResponse> future =
daiAuthenticationKeyServiceClient
.batchCreateDaiAuthenticationKeysCallable()
.futureCall(request);
// Do something.
BatchCreateDaiAuthenticationKeysResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchCreateDaiAuthenticationKeysRequest,BatchCreateDaiAuthenticationKeysResponse> |
|
batchDeactivateDaiAuthenticationKeys(@Nullable NetworkName parent, List<String> names)
public final BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(@Nullable NetworkName parent, List<String> names)Deactivates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<String> names = new ArrayList<>();
BatchDeactivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchDeactivateDaiAuthenticationKeys(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. Format: |
names |
List<String>Required. Resource names for the DaiAuthenticationKey. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchDeactivateDaiAuthenticationKeysResponse |
|
batchDeactivateDaiAuthenticationKeys(BatchDeactivateDaiAuthenticationKeysRequest request)
public final BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(BatchDeactivateDaiAuthenticationKeysRequest request)Deactivates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchDeactivateDaiAuthenticationKeysRequest request =
BatchDeactivateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
BatchDeactivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchDeactivateDaiAuthenticationKeys(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchDeactivateDaiAuthenticationKeysRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchDeactivateDaiAuthenticationKeysResponse |
|
batchDeactivateDaiAuthenticationKeys(String parent, List<String> names)
public final BatchDeactivateDaiAuthenticationKeysResponse batchDeactivateDaiAuthenticationKeys(String parent, List<String> names)Deactivates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<String> names = new ArrayList<>();
BatchDeactivateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchDeactivateDaiAuthenticationKeys(parent, names);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. Format: |
names |
List<String>Required. Resource names for the DaiAuthenticationKey. Format:
|
| Returns | |
|---|---|
| Type | Description |
BatchDeactivateDaiAuthenticationKeysResponse |
|
batchDeactivateDaiAuthenticationKeysCallable()
public final UnaryCallable<BatchDeactivateDaiAuthenticationKeysRequest,BatchDeactivateDaiAuthenticationKeysResponse> batchDeactivateDaiAuthenticationKeysCallable()Deactivates a list of DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchDeactivateDaiAuthenticationKeysRequest request =
BatchDeactivateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllNames(new ArrayList<String>())
.build();
ApiFuture<BatchDeactivateDaiAuthenticationKeysResponse> future =
daiAuthenticationKeyServiceClient
.batchDeactivateDaiAuthenticationKeysCallable()
.futureCall(request);
// Do something.
BatchDeactivateDaiAuthenticationKeysResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchDeactivateDaiAuthenticationKeysRequest,BatchDeactivateDaiAuthenticationKeysResponse> |
|
batchUpdateDaiAuthenticationKeys(@Nullable NetworkName parent, List<UpdateDaiAuthenticationKeyRequest> requests)
public final BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(@Nullable NetworkName parent, List<UpdateDaiAuthenticationKeyRequest> requests)Batch updates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
List<UpdateDaiAuthenticationKeyRequest> requests = new ArrayList<>();
BatchUpdateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchUpdateDaiAuthenticationKeys(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where |
requests |
List<UpdateDaiAuthenticationKeyRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateDaiAuthenticationKeysResponse |
|
batchUpdateDaiAuthenticationKeys(BatchUpdateDaiAuthenticationKeysRequest request)
public final BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(BatchUpdateDaiAuthenticationKeysRequest request)Batch updates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchUpdateDaiAuthenticationKeysRequest request =
BatchUpdateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<UpdateDaiAuthenticationKeyRequest>())
.build();
BatchUpdateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchUpdateDaiAuthenticationKeys(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BatchUpdateDaiAuthenticationKeysRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateDaiAuthenticationKeysResponse |
|
batchUpdateDaiAuthenticationKeys(String parent, List<UpdateDaiAuthenticationKeyRequest> requests)
public final BatchUpdateDaiAuthenticationKeysResponse batchUpdateDaiAuthenticationKeys(String parent, List<UpdateDaiAuthenticationKeyRequest> requests)Batch updates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
List<UpdateDaiAuthenticationKeyRequest> requests = new ArrayList<>();
BatchUpdateDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.batchUpdateDaiAuthenticationKeys(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where |
requests |
List<UpdateDaiAuthenticationKeyRequest>Required. The |
| Returns | |
|---|---|
| Type | Description |
BatchUpdateDaiAuthenticationKeysResponse |
|
batchUpdateDaiAuthenticationKeysCallable()
public final UnaryCallable<BatchUpdateDaiAuthenticationKeysRequest,BatchUpdateDaiAuthenticationKeysResponse> batchUpdateDaiAuthenticationKeysCallable()Batch updates DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
BatchUpdateDaiAuthenticationKeysRequest request =
BatchUpdateDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.addAllRequests(new ArrayList<UpdateDaiAuthenticationKeyRequest>())
.build();
ApiFuture<BatchUpdateDaiAuthenticationKeysResponse> future =
daiAuthenticationKeyServiceClient
.batchUpdateDaiAuthenticationKeysCallable()
.futureCall(request);
// Do something.
BatchUpdateDaiAuthenticationKeysResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BatchUpdateDaiAuthenticationKeysRequest,BatchUpdateDaiAuthenticationKeysResponse> |
|
close()
public final void close()createDaiAuthenticationKey(@Nullable NetworkName parent, DaiAuthenticationKey daiAuthenticationKey)
public final DaiAuthenticationKey createDaiAuthenticationKey(@Nullable NetworkName parent, DaiAuthenticationKey daiAuthenticationKey)Creates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(
parent, daiAuthenticationKey);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent resource where this |
daiAuthenticationKey |
DaiAuthenticationKeyRequired. The |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
createDaiAuthenticationKey(CreateDaiAuthenticationKeyRequest request)
public final DaiAuthenticationKey createDaiAuthenticationKey(CreateDaiAuthenticationKeyRequest request)Creates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
CreateDaiAuthenticationKeyRequest request =
CreateDaiAuthenticationKeyRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
.build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateDaiAuthenticationKeyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
createDaiAuthenticationKey(String parent, DaiAuthenticationKey daiAuthenticationKey)
public final DaiAuthenticationKey createDaiAuthenticationKey(String parent, DaiAuthenticationKey daiAuthenticationKey)Creates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.createDaiAuthenticationKey(
parent, daiAuthenticationKey);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this |
daiAuthenticationKey |
DaiAuthenticationKeyRequired. The |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
createDaiAuthenticationKeyCallable()
public final UnaryCallable<CreateDaiAuthenticationKeyRequest,DaiAuthenticationKey> createDaiAuthenticationKeyCallable()Creates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
CreateDaiAuthenticationKeyRequest request =
CreateDaiAuthenticationKeyRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
.build();
ApiFuture<DaiAuthenticationKey> future =
daiAuthenticationKeyServiceClient
.createDaiAuthenticationKeyCallable()
.futureCall(request);
// Do something.
DaiAuthenticationKey response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateDaiAuthenticationKeyRequest,DaiAuthenticationKey> |
|
getDaiAuthenticationKey(@Nullable DaiAuthenticationKeyName name)
public final DaiAuthenticationKey getDaiAuthenticationKey(@Nullable DaiAuthenticationKeyName name)Retrieves a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
DaiAuthenticationKeyName name =
DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]");
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.DaiAuthenticationKeyNameRequired. The resource name of the |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
getDaiAuthenticationKey(GetDaiAuthenticationKeyRequest request)
public final DaiAuthenticationKey getDaiAuthenticationKey(GetDaiAuthenticationKeyRequest request)Retrieves a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
GetDaiAuthenticationKeyRequest request =
GetDaiAuthenticationKeyRequest.newBuilder()
.setName(
DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]")
.toString())
.build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDaiAuthenticationKeyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
getDaiAuthenticationKey(String name)
public final DaiAuthenticationKey getDaiAuthenticationKey(String name)Retrieves a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String name =
DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]").toString();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.getDaiAuthenticationKey(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
getDaiAuthenticationKeyCallable()
public final UnaryCallable<GetDaiAuthenticationKeyRequest,DaiAuthenticationKey> getDaiAuthenticationKeyCallable()Retrieves a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
GetDaiAuthenticationKeyRequest request =
GetDaiAuthenticationKeyRequest.newBuilder()
.setName(
DaiAuthenticationKeyName.of("[NETWORK_CODE]", "[DAI_AUTHENTICATION_KEY]")
.toString())
.build();
ApiFuture<DaiAuthenticationKey> future =
daiAuthenticationKeyServiceClient.getDaiAuthenticationKeyCallable().futureCall(request);
// Do something.
DaiAuthenticationKey response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDaiAuthenticationKeyRequest,DaiAuthenticationKey> |
|
getSettings()
public final @Nullable DaiAuthenticationKeyServiceSettings getSettings()| Returns | |
|---|---|
| Type | Description |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.DaiAuthenticationKeyServiceSettings |
|
getStub()
public DaiAuthenticationKeyServiceStub getStub()| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listDaiAuthenticationKeys(@Nullable NetworkName parent)
public final DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(@Nullable NetworkName parent)Lists DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
NetworkName parent = NetworkName.of("[NETWORK_CODE]");
for (DaiAuthenticationKey element :
daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
@org.jspecify.annotations.Nullable com.google.ads.admanager.v1.NetworkNameRequired. The parent, which owns this collection of DaiAuthenticationKeys.
Format: |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse |
|
listDaiAuthenticationKeys(ListDaiAuthenticationKeysRequest request)
public final DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(ListDaiAuthenticationKeysRequest request)Lists DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
ListDaiAuthenticationKeysRequest request =
ListDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
for (DaiAuthenticationKey element :
daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDaiAuthenticationKeysRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse |
|
listDaiAuthenticationKeys(String parent)
public final DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse listDaiAuthenticationKeys(String parent)Lists DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
String parent = NetworkName.of("[NETWORK_CODE]").toString();
for (DaiAuthenticationKey element :
daiAuthenticationKeyServiceClient.listDaiAuthenticationKeys(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of DaiAuthenticationKeys.
Format: |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse |
|
listDaiAuthenticationKeysCallable()
public final UnaryCallable<ListDaiAuthenticationKeysRequest,ListDaiAuthenticationKeysResponse> listDaiAuthenticationKeysCallable()Lists DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
ListDaiAuthenticationKeysRequest request =
ListDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
while (true) {
ListDaiAuthenticationKeysResponse response =
daiAuthenticationKeyServiceClient.listDaiAuthenticationKeysCallable().call(request);
for (DaiAuthenticationKey element : response.getDaiAuthenticationKeysList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDaiAuthenticationKeysRequest,ListDaiAuthenticationKeysResponse> |
|
listDaiAuthenticationKeysPagedCallable()
public final UnaryCallable<ListDaiAuthenticationKeysRequest,DaiAuthenticationKeyServiceClient.ListDaiAuthenticationKeysPagedResponse> listDaiAuthenticationKeysPagedCallable()Lists DaiAuthenticationKey objects.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
ListDaiAuthenticationKeysRequest request =
ListDaiAuthenticationKeysRequest.newBuilder()
.setParent(NetworkName.of("[NETWORK_CODE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setSkip(3532159)
.build();
ApiFuture<DaiAuthenticationKey> future =
daiAuthenticationKeyServiceClient
.listDaiAuthenticationKeysPagedCallable()
.futureCall(request);
// Do something.
for (DaiAuthenticationKey element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDaiAuthenticationKeysRequest,ListDaiAuthenticationKeysPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateDaiAuthenticationKey(DaiAuthenticationKey daiAuthenticationKey, FieldMask updateMask)
public final DaiAuthenticationKey updateDaiAuthenticationKey(DaiAuthenticationKey daiAuthenticationKey, FieldMask updateMask)Updates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
DaiAuthenticationKey daiAuthenticationKey = DaiAuthenticationKey.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.updateDaiAuthenticationKey(
daiAuthenticationKey, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
daiAuthenticationKey |
DaiAuthenticationKeyRequired. The The |
updateMask |
FieldMaskOptional. The list of fields to update. |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
updateDaiAuthenticationKey(UpdateDaiAuthenticationKeyRequest request)
public final DaiAuthenticationKey updateDaiAuthenticationKey(UpdateDaiAuthenticationKeyRequest request)Updates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
UpdateDaiAuthenticationKeyRequest request =
UpdateDaiAuthenticationKeyRequest.newBuilder()
.setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
DaiAuthenticationKey response =
daiAuthenticationKeyServiceClient.updateDaiAuthenticationKey(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateDaiAuthenticationKeyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DaiAuthenticationKey |
|
updateDaiAuthenticationKeyCallable()
public final UnaryCallable<UpdateDaiAuthenticationKeyRequest,DaiAuthenticationKey> updateDaiAuthenticationKeyCallable()Updates a DaiAuthenticationKey object.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (DaiAuthenticationKeyServiceClient daiAuthenticationKeyServiceClient =
DaiAuthenticationKeyServiceClient.create()) {
UpdateDaiAuthenticationKeyRequest request =
UpdateDaiAuthenticationKeyRequest.newBuilder()
.setDaiAuthenticationKey(DaiAuthenticationKey.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<DaiAuthenticationKey> future =
daiAuthenticationKeyServiceClient
.updateDaiAuthenticationKeyCallable()
.futureCall(request);
// Do something.
DaiAuthenticationKey response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateDaiAuthenticationKeyRequest,DaiAuthenticationKey> |
|