Skip to content

Commit e32c058

Browse files
chore: generate libraries at Sat Nov 15 02:32:24 UTC 2025
1 parent 2468563 commit e32c058

File tree

69 files changed

+11795
-1741
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+11795
-1741
lines changed

java-shopping-merchant-accounts/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,20 @@ If you are using Maven without the BOM, add this to your dependencies:
4242
<dependency>
4343
<groupId>com.google.shopping</groupId>
4444
<artifactId>google-shopping-merchant-accounts</artifactId>
45-
<version>1.6.0</version>
45+
<version>1.7.0</version>
4646
</dependency>
4747
```
4848

4949
If you are using Gradle without BOM, add this to your dependencies:
5050

5151
```Groovy
52-
implementation 'com.google.shopping:google-shopping-merchant-accounts:1.6.0'
52+
implementation 'com.google.shopping:google-shopping-merchant-accounts:1.7.0'
5353
```
5454

5555
If you are using SBT, add this to your dependencies:
5656

5757
```Scala
58-
libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.6.0"
58+
libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.7.0"
5959
```
6060

6161
## Authentication
@@ -194,7 +194,7 @@ Java is a registered trademark of Oracle and/or its affiliates.
194194
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
195195
[stability-image]: https://img.shields.io/badge/stability-stable-green
196196
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-accounts.svg
197-
[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.6.0
197+
[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.7.0
198198
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
199199
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
200200
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles

java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/AccountsServiceClient.java

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
* </tr>
100100
* <tr>
101101
* <td><p> DeleteAccount</td>
102-
* <td><p> Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.</td>
102+
* <td><p> Deletes the specified account regardless of its type: standalone, advanced account or sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts. This also deletes the account's [developer registration entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any associated GCP project to the account. Executing this method requires admin access. The deletion succeeds only if the account does not provide services to any other account and has no processed offers. You can use the `force` parameter to override this.</td>
103103
* <td>
104104
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
105105
* <ul>
@@ -404,6 +404,8 @@ public final UnaryCallable<GetAccountRequest, Account> getAccountCallable() {
404404
* .setAccount(Account.newBuilder().build())
405405
* .addAllUser(new ArrayList<CreateAndConfigureAccountRequest.AddUser>())
406406
* .addAllService(new ArrayList<CreateAndConfigureAccountRequest.AddAccountService>())
407+
* .addAllSetAlias(
408+
* new ArrayList<CreateAndConfigureAccountRequest.SetAliasForRelationship>())
407409
* .build();
408410
* Account response = accountsServiceClient.createAndConfigureAccount(request);
409411
* }
@@ -435,6 +437,8 @@ public final Account createAndConfigureAccount(CreateAndConfigureAccountRequest
435437
* .setAccount(Account.newBuilder().build())
436438
* .addAllUser(new ArrayList<CreateAndConfigureAccountRequest.AddUser>())
437439
* .addAllService(new ArrayList<CreateAndConfigureAccountRequest.AddAccountService>())
440+
* .addAllSetAlias(
441+
* new ArrayList<CreateAndConfigureAccountRequest.SetAliasForRelationship>())
438442
* .build();
439443
* ApiFuture<Account> future =
440444
* accountsServiceClient.createAndConfigureAccountCallable().futureCall(request);
@@ -452,9 +456,11 @@ public final Account createAndConfigureAccount(CreateAndConfigureAccountRequest
452456
/**
453457
* Deletes the specified account regardless of its type: standalone, advanced account or
454458
* sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts.
455-
* Executing this method requires admin access. The deletion succeeds only if the account does not
456-
* provide services to any other account and has no processed offers. You can use the `force`
457-
* parameter to override this.
459+
* This also deletes the account's [developer registration
460+
* entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any
461+
* associated GCP project to the account. Executing this method requires admin access. The
462+
* deletion succeeds only if the account does not provide services to any other account and has no
463+
* processed offers. You can use the `force` parameter to override this.
458464
*
459465
* <p>Sample code:
460466
*
@@ -483,9 +489,11 @@ public final void deleteAccount(AccountName name) {
483489
/**
484490
* Deletes the specified account regardless of its type: standalone, advanced account or
485491
* sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts.
486-
* Executing this method requires admin access. The deletion succeeds only if the account does not
487-
* provide services to any other account and has no processed offers. You can use the `force`
488-
* parameter to override this.
492+
* This also deletes the account's [developer registration
493+
* entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any
494+
* associated GCP project to the account. Executing this method requires admin access. The
495+
* deletion succeeds only if the account does not provide services to any other account and has no
496+
* processed offers. You can use the `force` parameter to override this.
489497
*
490498
* <p>Sample code:
491499
*
@@ -513,9 +521,11 @@ public final void deleteAccount(String name) {
513521
/**
514522
* Deletes the specified account regardless of its type: standalone, advanced account or
515523
* sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts.
516-
* Executing this method requires admin access. The deletion succeeds only if the account does not
517-
* provide services to any other account and has no processed offers. You can use the `force`
518-
* parameter to override this.
524+
* This also deletes the account's [developer registration
525+
* entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any
526+
* associated GCP project to the account. Executing this method requires admin access. The
527+
* deletion succeeds only if the account does not provide services to any other account and has no
528+
* processed offers. You can use the `force` parameter to override this.
519529
*
520530
* <p>Sample code:
521531
*
@@ -546,9 +556,11 @@ public final void deleteAccount(DeleteAccountRequest request) {
546556
/**
547557
* Deletes the specified account regardless of its type: standalone, advanced account or
548558
* sub-account. Deleting an advanced account leads to the deletion of all of its sub-accounts.
549-
* Executing this method requires admin access. The deletion succeeds only if the account does not
550-
* provide services to any other account and has no processed offers. You can use the `force`
551-
* parameter to override this.
559+
* This also deletes the account's [developer registration
560+
* entity](/merchant/api/reference/rest/accounts_v1/accounts.developerRegistration) and any
561+
* associated GCP project to the account. Executing this method requires admin access. The
562+
* deletion succeeds only if the account does not provide services to any other account and has no
563+
* processed offers. You can use the `force` parameter to override this.
552564
*
553565
* <p>Sample code:
554566
*

java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceClient.java

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,20 @@
107107
* </ul>
108108
* </td>
109109
* </tr>
110+
* <tr>
111+
* <td><p> GetAccountForGcpRegistration</td>
112+
* <td><p> Retrieves the merchant account that the calling GCP is registered with.</td>
113+
* <td>
114+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
115+
* <ul>
116+
* <li><p> getAccountForGcpRegistration(Empty request)
117+
* </ul>
118+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
119+
* <ul>
120+
* <li><p> getAccountForGcpRegistrationCallable()
121+
* </ul>
122+
* </td>
123+
* </tr>
110124
* </table>
111125
*
112126
* <p>See the individual methods for example code.
@@ -464,6 +478,62 @@ public final UnaryCallable<UnregisterGcpRequest, Empty> unregisterGcpCallable()
464478
return stub.unregisterGcpCallable();
465479
}
466480

481+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
482+
/**
483+
* Retrieves the merchant account that the calling GCP is registered with.
484+
*
485+
* <p>Sample code:
486+
*
487+
* <pre>{@code
488+
* // This snippet has been automatically generated and should be regarded as a code template only.
489+
* // It will require modifications to work:
490+
* // - It may require correct/in-range values for request initialization.
491+
* // - It may require specifying regional endpoints when creating the service client as shown in
492+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
493+
* try (DeveloperRegistrationServiceClient developerRegistrationServiceClient =
494+
* DeveloperRegistrationServiceClient.create()) {
495+
* Empty request = Empty.newBuilder().build();
496+
* GetAccountForGcpRegistrationResponse response =
497+
* developerRegistrationServiceClient.getAccountForGcpRegistration(request);
498+
* }
499+
* }</pre>
500+
*
501+
* @param request The request object containing all of the parameters for the API call.
502+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
503+
*/
504+
public final GetAccountForGcpRegistrationResponse getAccountForGcpRegistration(Empty request) {
505+
return getAccountForGcpRegistrationCallable().call(request);
506+
}
507+
508+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
509+
/**
510+
* Retrieves the merchant account that the calling GCP is registered with.
511+
*
512+
* <p>Sample code:
513+
*
514+
* <pre>{@code
515+
* // This snippet has been automatically generated and should be regarded as a code template only.
516+
* // It will require modifications to work:
517+
* // - It may require correct/in-range values for request initialization.
518+
* // - It may require specifying regional endpoints when creating the service client as shown in
519+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
520+
* try (DeveloperRegistrationServiceClient developerRegistrationServiceClient =
521+
* DeveloperRegistrationServiceClient.create()) {
522+
* Empty request = Empty.newBuilder().build();
523+
* ApiFuture<GetAccountForGcpRegistrationResponse> future =
524+
* developerRegistrationServiceClient
525+
* .getAccountForGcpRegistrationCallable()
526+
* .futureCall(request);
527+
* // Do something.
528+
* GetAccountForGcpRegistrationResponse response = future.get();
529+
* }
530+
* }</pre>
531+
*/
532+
public final UnaryCallable<Empty, GetAccountForGcpRegistrationResponse>
533+
getAccountForGcpRegistrationCallable() {
534+
return stub.getAccountForGcpRegistrationCallable();
535+
}
536+
467537
@Override
468538
public final void close() {
469539
stub.close();

java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/DeveloperRegistrationServiceSettings.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ public UnaryCallSettings<UnregisterGcpRequest, Empty> unregisterGcpSettings() {
105105
return ((DeveloperRegistrationServiceStubSettings) getStubSettings()).unregisterGcpSettings();
106106
}
107107

108+
/** Returns the object with the settings used for calls to getAccountForGcpRegistration. */
109+
public UnaryCallSettings<Empty, GetAccountForGcpRegistrationResponse>
110+
getAccountForGcpRegistrationSettings() {
111+
return ((DeveloperRegistrationServiceStubSettings) getStubSettings())
112+
.getAccountForGcpRegistrationSettings();
113+
}
114+
108115
public static final DeveloperRegistrationServiceSettings create(
109116
DeveloperRegistrationServiceStubSettings stub) throws IOException {
110117
return new DeveloperRegistrationServiceSettings.Builder(stub.toBuilder()).build();
@@ -235,6 +242,12 @@ public UnaryCallSettings.Builder<UnregisterGcpRequest, Empty> unregisterGcpSetti
235242
return getStubSettingsBuilder().unregisterGcpSettings();
236243
}
237244

245+
/** Returns the builder for the settings used for calls to getAccountForGcpRegistration. */
246+
public UnaryCallSettings.Builder<Empty, GetAccountForGcpRegistrationResponse>
247+
getAccountForGcpRegistrationSettings() {
248+
return getStubSettingsBuilder().getAccountForGcpRegistrationSettings();
249+
}
250+
238251
@Override
239252
public DeveloperRegistrationServiceSettings build() throws IOException {
240253
return new DeveloperRegistrationServiceSettings(this);

java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceClient.java

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,25 @@
158158
* </ul>
159159
* </td>
160160
* </tr>
161+
* <tr>
162+
* <td><p> VerifySelf</td>
163+
* <td><p> Updates the user that is represented by the caller from pending to verified.</td>
164+
* <td>
165+
* <p>Request object method variants only take one parameter, a request object, which must be constructed before the call.</p>
166+
* <ul>
167+
* <li><p> verifySelf(VerifySelfRequest request)
168+
* </ul>
169+
* <p>"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.</p>
170+
* <ul>
171+
* <li><p> verifySelf(AccountName account)
172+
* <li><p> verifySelf(String account)
173+
* </ul>
174+
* <p>Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.</p>
175+
* <ul>
176+
* <li><p> verifySelfCallable()
177+
* </ul>
178+
* </td>
179+
* </tr>
161180
* </table>
162181
*
163182
* <p>See the individual methods for example code.
@@ -875,6 +894,114 @@ public final UnaryCallable<ListUsersRequest, ListUsersResponse> listUsersCallabl
875894
return stub.listUsersCallable();
876895
}
877896

897+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
898+
/**
899+
* Updates the user that is represented by the caller from pending to verified.
900+
*
901+
* <p>Sample code:
902+
*
903+
* <pre>{@code
904+
* // This snippet has been automatically generated and should be regarded as a code template only.
905+
* // It will require modifications to work:
906+
* // - It may require correct/in-range values for request initialization.
907+
* // - It may require specifying regional endpoints when creating the service client as shown in
908+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
909+
* try (UserServiceClient userServiceClient = UserServiceClient.create()) {
910+
* AccountName account = AccountName.of("[ACCOUNT]");
911+
* User response = userServiceClient.verifySelf(account);
912+
* }
913+
* }</pre>
914+
*
915+
* @param account Required. The name of the account under which the caller is a user. Format:
916+
* `accounts/{account}`
917+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
918+
*/
919+
public final User verifySelf(AccountName account) {
920+
VerifySelfRequest request =
921+
VerifySelfRequest.newBuilder()
922+
.setAccount(account == null ? null : account.toString())
923+
.build();
924+
return verifySelf(request);
925+
}
926+
927+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
928+
/**
929+
* Updates the user that is represented by the caller from pending to verified.
930+
*
931+
* <p>Sample code:
932+
*
933+
* <pre>{@code
934+
* // This snippet has been automatically generated and should be regarded as a code template only.
935+
* // It will require modifications to work:
936+
* // - It may require correct/in-range values for request initialization.
937+
* // - It may require specifying regional endpoints when creating the service client as shown in
938+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
939+
* try (UserServiceClient userServiceClient = UserServiceClient.create()) {
940+
* String account = AccountName.of("[ACCOUNT]").toString();
941+
* User response = userServiceClient.verifySelf(account);
942+
* }
943+
* }</pre>
944+
*
945+
* @param account Required. The name of the account under which the caller is a user. Format:
946+
* `accounts/{account}`
947+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
948+
*/
949+
public final User verifySelf(String account) {
950+
VerifySelfRequest request = VerifySelfRequest.newBuilder().setAccount(account).build();
951+
return verifySelf(request);
952+
}
953+
954+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
955+
/**
956+
* Updates the user that is represented by the caller from pending to verified.
957+
*
958+
* <p>Sample code:
959+
*
960+
* <pre>{@code
961+
* // This snippet has been automatically generated and should be regarded as a code template only.
962+
* // It will require modifications to work:
963+
* // - It may require correct/in-range values for request initialization.
964+
* // - It may require specifying regional endpoints when creating the service client as shown in
965+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
966+
* try (UserServiceClient userServiceClient = UserServiceClient.create()) {
967+
* VerifySelfRequest request =
968+
* VerifySelfRequest.newBuilder().setAccount(AccountName.of("[ACCOUNT]").toString()).build();
969+
* User response = userServiceClient.verifySelf(request);
970+
* }
971+
* }</pre>
972+
*
973+
* @param request The request object containing all of the parameters for the API call.
974+
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
975+
*/
976+
public final User verifySelf(VerifySelfRequest request) {
977+
return verifySelfCallable().call(request);
978+
}
979+
980+
// AUTO-GENERATED DOCUMENTATION AND METHOD.
981+
/**
982+
* Updates the user that is represented by the caller from pending to verified.
983+
*
984+
* <p>Sample code:
985+
*
986+
* <pre>{@code
987+
* // This snippet has been automatically generated and should be regarded as a code template only.
988+
* // It will require modifications to work:
989+
* // - It may require correct/in-range values for request initialization.
990+
* // - It may require specifying regional endpoints when creating the service client as shown in
991+
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
992+
* try (UserServiceClient userServiceClient = UserServiceClient.create()) {
993+
* VerifySelfRequest request =
994+
* VerifySelfRequest.newBuilder().setAccount(AccountName.of("[ACCOUNT]").toString()).build();
995+
* ApiFuture<User> future = userServiceClient.verifySelfCallable().futureCall(request);
996+
* // Do something.
997+
* User response = future.get();
998+
* }
999+
* }</pre>
1000+
*/
1001+
public final UnaryCallable<VerifySelfRequest, User> verifySelfCallable() {
1002+
return stub.verifySelfCallable();
1003+
}
1004+
8781005
@Override
8791006
public final void close() {
8801007
stub.close();

java-shopping-merchant-accounts/google-shopping-merchant-accounts/src/main/java/com/google/shopping/merchant/accounts/v1/UserServiceSettings.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ public UnaryCallSettings<UpdateUserRequest, User> updateUserSettings() {
114114
return ((UserServiceStubSettings) getStubSettings()).listUsersSettings();
115115
}
116116

117+
/** Returns the object with the settings used for calls to verifySelf. */
118+
public UnaryCallSettings<VerifySelfRequest, User> verifySelfSettings() {
119+
return ((UserServiceStubSettings) getStubSettings()).verifySelfSettings();
120+
}
121+
117122
public static final UserServiceSettings create(UserServiceStubSettings stub) throws IOException {
118123
return new UserServiceSettings.Builder(stub.toBuilder()).build();
119124
}
@@ -251,6 +256,11 @@ public UnaryCallSettings.Builder<UpdateUserRequest, User> updateUserSettings() {
251256
return getStubSettingsBuilder().listUsersSettings();
252257
}
253258

259+
/** Returns the builder for the settings used for calls to verifySelf. */
260+
public UnaryCallSettings.Builder<VerifySelfRequest, User> verifySelfSettings() {
261+
return getStubSettingsBuilder().verifySelfSettings();
262+
}
263+
254264
@Override
255265
public UserServiceSettings build() throws IOException {
256266
return new UserServiceSettings(this);

0 commit comments

Comments
 (0)