Skip to content

Commit

Permalink
chore: generate libraries at Tue Sep 10 19:31:36 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Sep 10, 2024
1 parent 479b849 commit 52d5b5f
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of getInstance to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of getInstance:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -123,11 +125,48 @@
* .getInstanceSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* BigtableInstanceAdminStubSettings baseBigtableInstanceAdminSettings =
* baseBigtableInstanceAdminSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*
* <p>To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
* configure the RetrySettings for createInstance:
*
* <pre>{@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
* BigtableInstanceAdminStubSettings.Builder baseBigtableInstanceAdminSettingsBuilder =
* BigtableInstanceAdminStubSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* baseBigtableInstanceAdminSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }</pre>
*/
@Generated("by gapic-generator-java")
public class BigtableInstanceAdminStubSettings
Expand Down Expand Up @@ -221,9 +260,7 @@ public String extractNextToken(ListAppProfilesResponse payload) {

@Override
public Iterable<AppProfile> extractResources(ListAppProfilesResponse payload) {
return payload.getAppProfilesList() == null
? ImmutableList.<AppProfile>of()
: payload.getAppProfilesList();
return payload.getAppProfilesList();
}
};

Expand Down Expand Up @@ -258,9 +295,7 @@ public String extractNextToken(ListHotTabletsResponse payload) {

@Override
public Iterable<HotTablet> extractResources(ListHotTabletsResponse payload) {
return payload.getHotTabletsList() == null
? ImmutableList.<HotTablet>of()
: payload.getHotTabletsList();
return payload.getHotTabletsList();
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@
* <p>The builder of this class is recursive, so contained classes are themselves builders. When
* build() is called, the tree of builders is called to create the complete settings object.
*
* <p>For example, to set the total timeout of createTable to 30 seconds:
* <p>For example, to set the
* [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings)
* of createTable:
*
* <pre>{@code
* // This snippet has been automatically generated and should be regarded as a code template only.
Expand All @@ -141,11 +143,48 @@
* .createTableSettings()
* .getRetrySettings()
* .toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .setInitialRetryDelayDuration(Duration.ofSeconds(1))
* .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
* .setMaxAttempts(5)
* .setMaxRetryDelayDuration(Duration.ofSeconds(30))
* .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
* .setRetryDelayMultiplier(1.3)
* .setRpcTimeoutMultiplier(1.5)
* .setTotalTimeoutDuration(Duration.ofSeconds(300))
* .build());
* BigtableTableAdminStubSettings baseBigtableTableAdminSettings =
* baseBigtableTableAdminSettingsBuilder.build();
* }</pre>
*
* Please refer to the [Client Side Retry
* Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
* additional support in setting retries.
*
* <p>To configure the RetrySettings of a Long Running Operation method, create an
* OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to
* configure the RetrySettings for createTableFromSnapshot:
*
* <pre>{@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
* BigtableTableAdminStubSettings.Builder baseBigtableTableAdminSettingsBuilder =
* BigtableTableAdminStubSettings.newBuilder();
* TimedRetryAlgorithm timedRetryAlgorithm =
* OperationalTimedPollAlgorithm.create(
* RetrySettings.newBuilder()
* .setInitialRetryDelayDuration(Duration.ofMillis(500))
* .setRetryDelayMultiplier(1.5)
* .setMaxRetryDelay(Duration.ofMillis(5000))
* .setTotalTimeoutDuration(Duration.ofHours(24))
* .build());
* baseBigtableTableAdminSettingsBuilder
* .createClusterOperationSettings()
* .setPollingAlgorithm(timedRetryAlgorithm)
* .build();
* }</pre>
*/
@Generated("by gapic-generator-java")
public class BigtableTableAdminStubSettings extends StubSettings<BigtableTableAdminStubSettings> {
Expand Down Expand Up @@ -255,9 +294,7 @@ public String extractNextToken(ListTablesResponse payload) {

@Override
public Iterable<Table> extractResources(ListTablesResponse payload) {
return payload.getTablesList() == null
? ImmutableList.<Table>of()
: payload.getTablesList();
return payload.getTablesList();
}
};

Expand Down Expand Up @@ -295,9 +332,7 @@ public String extractNextToken(ListAuthorizedViewsResponse payload) {

@Override
public Iterable<AuthorizedView> extractResources(ListAuthorizedViewsResponse payload) {
return payload.getAuthorizedViewsList() == null
? ImmutableList.<AuthorizedView>of()
: payload.getAuthorizedViewsList();
return payload.getAuthorizedViewsList();
}
};

Expand Down Expand Up @@ -331,9 +366,7 @@ public String extractNextToken(ListSnapshotsResponse payload) {

@Override
public Iterable<Snapshot> extractResources(ListSnapshotsResponse payload) {
return payload.getSnapshotsList() == null
? ImmutableList.<Snapshot>of()
: payload.getSnapshotsList();
return payload.getSnapshotsList();
}
};

Expand Down Expand Up @@ -367,9 +400,7 @@ public String extractNextToken(ListBackupsResponse payload) {

@Override
public Iterable<Backup> extractResources(ListBackupsResponse payload) {
return payload.getBackupsList() == null
? ImmutableList.<Backup>of()
: payload.getBackupsList();
return payload.getBackupsList();
}
};

Expand Down

0 comments on commit 52d5b5f

Please sign in to comment.