@Generated(value="by gapic-generator-java") public class StreamsServiceSettings extends com.google.api.gax.rpc.ClientSettings<StreamsServiceSettings>
StreamsServiceClient.
The default instance has everything set to sensible defaults:
The builder of this class is recursive, so contained classes are themselves builders. When build() is called, the tree of builders is called to create the complete settings object.
For example, to set the [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of getCluster:
// 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
StreamsServiceSettings.Builder streamsServiceSettingsBuilder =
StreamsServiceSettings.newBuilder();
streamsServiceSettingsBuilder
.getClusterSettings()
.setRetrySettings(
streamsServiceSettingsBuilder
.getClusterSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
StreamsServiceSettings streamsServiceSettings = streamsServiceSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://github.com/googleapis/google-cloud-java/blob/main/docs/client_retries.md) for
additional support in setting retries.
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 createCluster:
// 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
StreamsServiceSettings.Builder streamsServiceSettingsBuilder =
StreamsServiceSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
streamsServiceSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamsServiceSettings.Builder
Builder for StreamsServiceSettings.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StreamsServiceSettings(StreamsServiceSettings.Builder settingsBuilder) |
| Modifier and Type | Method and Description |
|---|---|
static StreamsServiceSettings |
create(StreamsServiceStubSettings stub) |
com.google.api.gax.rpc.OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata> |
createClusterOperationSettings()
Returns the object with the settings used for calls to createCluster.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateClusterRequest,com.google.longrunning.Operation> |
createClusterSettings()
Returns the object with the settings used for calls to createCluster.
|
com.google.api.gax.rpc.OperationCallSettings<CreateEventRequest,Event,OperationMetadata> |
createEventOperationSettings()
Returns the object with the settings used for calls to createEvent.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateEventRequest,com.google.longrunning.Operation> |
createEventSettings()
Returns the object with the settings used for calls to createEvent.
|
com.google.api.gax.rpc.OperationCallSettings<CreateSeriesRequest,Series,OperationMetadata> |
createSeriesOperationSettings()
Returns the object with the settings used for calls to createSeries.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateSeriesRequest,com.google.longrunning.Operation> |
createSeriesSettings()
Returns the object with the settings used for calls to createSeries.
|
com.google.api.gax.rpc.OperationCallSettings<CreateStreamRequest,Stream,OperationMetadata> |
createStreamOperationSettings()
Returns the object with the settings used for calls to createStream.
|
com.google.api.gax.rpc.UnaryCallSettings<CreateStreamRequest,com.google.longrunning.Operation> |
createStreamSettings()
Returns the object with the settings used for calls to createStream.
|
static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static com.google.api.gax.core.GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static com.google.api.gax.core.InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
|
static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder |
defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
|
static com.google.api.gax.rpc.TransportChannelProvider |
defaultTransportChannelProvider() |
com.google.api.gax.rpc.OperationCallSettings<DeleteClusterRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteClusterOperationSettings()
Returns the object with the settings used for calls to deleteCluster.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteClusterRequest,com.google.longrunning.Operation> |
deleteClusterSettings()
Returns the object with the settings used for calls to deleteCluster.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteEventRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteEventOperationSettings()
Returns the object with the settings used for calls to deleteEvent.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteEventRequest,com.google.longrunning.Operation> |
deleteEventSettings()
Returns the object with the settings used for calls to deleteEvent.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteSeriesRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteSeriesOperationSettings()
Returns the object with the settings used for calls to deleteSeries.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteSeriesRequest,com.google.longrunning.Operation> |
deleteSeriesSettings()
Returns the object with the settings used for calls to deleteSeries.
|
com.google.api.gax.rpc.OperationCallSettings<DeleteStreamRequest,com.google.protobuf.Empty,OperationMetadata> |
deleteStreamOperationSettings()
Returns the object with the settings used for calls to deleteStream.
|
com.google.api.gax.rpc.UnaryCallSettings<DeleteStreamRequest,com.google.longrunning.Operation> |
deleteStreamSettings()
Returns the object with the settings used for calls to deleteStream.
|
com.google.api.gax.rpc.UnaryCallSettings<GenerateStreamHlsTokenRequest,GenerateStreamHlsTokenResponse> |
generateStreamHlsTokenSettings()
Returns the object with the settings used for calls to generateStreamHlsToken.
|
com.google.api.gax.rpc.UnaryCallSettings<GetClusterRequest,Cluster> |
getClusterSettings()
Returns the object with the settings used for calls to getCluster.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
com.google.api.gax.rpc.UnaryCallSettings<GetEventRequest,Event> |
getEventSettings()
Returns the object with the settings used for calls to getEvent.
|
com.google.api.gax.rpc.UnaryCallSettings<GetSeriesRequest,Series> |
getSeriesSettings()
Returns the object with the settings used for calls to getSeries.
|
com.google.api.gax.rpc.UnaryCallSettings<GetStreamRequest,Stream> |
getStreamSettings()
Returns the object with the settings used for calls to getStream.
|
com.google.api.gax.rpc.OperationCallSettings<GetStreamThumbnailRequest,GetStreamThumbnailResponse,OperationMetadata> |
getStreamThumbnailOperationSettings()
Returns the object with the settings used for calls to getStreamThumbnail.
|
com.google.api.gax.rpc.UnaryCallSettings<GetStreamThumbnailRequest,com.google.longrunning.Operation> |
getStreamThumbnailSettings()
Returns the object with the settings used for calls to getStreamThumbnail.
|
com.google.api.gax.rpc.PagedCallSettings<ListClustersRequest,ListClustersResponse,StreamsServiceClient.ListClustersPagedResponse> |
listClustersSettings()
Returns the object with the settings used for calls to listClusters.
|
com.google.api.gax.rpc.PagedCallSettings<ListEventsRequest,ListEventsResponse,StreamsServiceClient.ListEventsPagedResponse> |
listEventsSettings()
Returns the object with the settings used for calls to listEvents.
|
com.google.api.gax.rpc.PagedCallSettings<ListSeriesRequest,ListSeriesResponse,StreamsServiceClient.ListSeriesPagedResponse> |
listSeriesSettings()
Returns the object with the settings used for calls to listSeries.
|
com.google.api.gax.rpc.PagedCallSettings<ListStreamsRequest,ListStreamsResponse,StreamsServiceClient.ListStreamsPagedResponse> |
listStreamsSettings()
Returns the object with the settings used for calls to listStreams.
|
com.google.api.gax.rpc.OperationCallSettings<MaterializeChannelRequest,Channel,OperationMetadata> |
materializeChannelOperationSettings()
Returns the object with the settings used for calls to materializeChannel.
|
com.google.api.gax.rpc.UnaryCallSettings<MaterializeChannelRequest,com.google.longrunning.Operation> |
materializeChannelSettings()
Returns the object with the settings used for calls to materializeChannel.
|
static StreamsServiceSettings.Builder |
newBuilder()
Returns a new gRPC builder for this class.
|
static StreamsServiceSettings.Builder |
newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
Returns a new builder for this class.
|
static StreamsServiceSettings.Builder |
newHttpJsonBuilder()
Returns a new REST builder for this class.
|
StreamsServiceSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata> |
updateClusterOperationSettings()
Returns the object with the settings used for calls to updateCluster.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateClusterRequest,com.google.longrunning.Operation> |
updateClusterSettings()
Returns the object with the settings used for calls to updateCluster.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateEventRequest,Event,OperationMetadata> |
updateEventOperationSettings()
Returns the object with the settings used for calls to updateEvent.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateEventRequest,com.google.longrunning.Operation> |
updateEventSettings()
Returns the object with the settings used for calls to updateEvent.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateSeriesRequest,Series,OperationMetadata> |
updateSeriesOperationSettings()
Returns the object with the settings used for calls to updateSeries.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateSeriesRequest,com.google.longrunning.Operation> |
updateSeriesSettings()
Returns the object with the settings used for calls to updateSeries.
|
com.google.api.gax.rpc.OperationCallSettings<UpdateStreamRequest,Stream,OperationMetadata> |
updateStreamOperationSettings()
Returns the object with the settings used for calls to updateStream.
|
com.google.api.gax.rpc.UnaryCallSettings<UpdateStreamRequest,com.google.longrunning.Operation> |
updateStreamSettings()
Returns the object with the settings used for calls to updateStream.
|
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toStringprotected StreamsServiceSettings(StreamsServiceSettings.Builder settingsBuilder) throws IOException
IOExceptionpublic com.google.api.gax.rpc.PagedCallSettings<ListClustersRequest,ListClustersResponse,StreamsServiceClient.ListClustersPagedResponse> listClustersSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateClusterRequest,com.google.longrunning.Operation> createClusterSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateClusterRequest,com.google.longrunning.Operation> updateClusterSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteClusterRequest,com.google.longrunning.Operation> deleteClusterSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteClusterRequest,com.google.protobuf.Empty,OperationMetadata> deleteClusterOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListStreamsRequest,ListStreamsResponse,StreamsServiceClient.ListStreamsPagedResponse> listStreamsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetStreamRequest,Stream> getStreamSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateStreamRequest,com.google.longrunning.Operation> createStreamSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateStreamRequest,Stream,OperationMetadata> createStreamOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateStreamRequest,com.google.longrunning.Operation> updateStreamSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateStreamRequest,Stream,OperationMetadata> updateStreamOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteStreamRequest,com.google.longrunning.Operation> deleteStreamSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteStreamRequest,com.google.protobuf.Empty,OperationMetadata> deleteStreamOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetStreamThumbnailRequest,com.google.longrunning.Operation> getStreamThumbnailSettings()
public com.google.api.gax.rpc.OperationCallSettings<GetStreamThumbnailRequest,GetStreamThumbnailResponse,OperationMetadata> getStreamThumbnailOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GenerateStreamHlsTokenRequest,GenerateStreamHlsTokenResponse> generateStreamHlsTokenSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListEventsRequest,ListEventsResponse,StreamsServiceClient.ListEventsPagedResponse> listEventsSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetEventRequest,Event> getEventSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateEventRequest,com.google.longrunning.Operation> createEventSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateEventRequest,Event,OperationMetadata> createEventOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateEventRequest,com.google.longrunning.Operation> updateEventSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateEventRequest,Event,OperationMetadata> updateEventOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteEventRequest,com.google.longrunning.Operation> deleteEventSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteEventRequest,com.google.protobuf.Empty,OperationMetadata> deleteEventOperationSettings()
public com.google.api.gax.rpc.PagedCallSettings<ListSeriesRequest,ListSeriesResponse,StreamsServiceClient.ListSeriesPagedResponse> listSeriesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<GetSeriesRequest,Series> getSeriesSettings()
public com.google.api.gax.rpc.UnaryCallSettings<CreateSeriesRequest,com.google.longrunning.Operation> createSeriesSettings()
public com.google.api.gax.rpc.OperationCallSettings<CreateSeriesRequest,Series,OperationMetadata> createSeriesOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<UpdateSeriesRequest,com.google.longrunning.Operation> updateSeriesSettings()
public com.google.api.gax.rpc.OperationCallSettings<UpdateSeriesRequest,Series,OperationMetadata> updateSeriesOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<DeleteSeriesRequest,com.google.longrunning.Operation> deleteSeriesSettings()
public com.google.api.gax.rpc.OperationCallSettings<DeleteSeriesRequest,com.google.protobuf.Empty,OperationMetadata> deleteSeriesOperationSettings()
public com.google.api.gax.rpc.UnaryCallSettings<MaterializeChannelRequest,com.google.longrunning.Operation> materializeChannelSettings()
public com.google.api.gax.rpc.OperationCallSettings<MaterializeChannelRequest,Channel,OperationMetadata> materializeChannelOperationSettings()
public static final StreamsServiceSettings create(StreamsServiceStubSettings stub) throws IOException
IOExceptionpublic static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
@BetaApi public static com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider()
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static StreamsServiceSettings.Builder newBuilder()
public static StreamsServiceSettings.Builder newHttpJsonBuilder()
public static StreamsServiceSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext)
public StreamsServiceSettings.Builder toBuilder()
toBuilder in class com.google.api.gax.rpc.ClientSettings<StreamsServiceSettings>Copyright © 2025 Google LLC. All rights reserved.