Class TopicStatsServiceStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<TopicStatsServiceStubSettings>
com.google.cloud.pubsublite.v1.stub.TopicStatsServiceStubSettings
@Generated("by gapic-generator-java")
public class TopicStatsServiceStubSettings
extends com.google.api.gax.rpc.StubSettings<TopicStatsServiceStubSettings>
Settings class to configure an instance of
TopicStatsServiceStub.
The default instance has everything set to sensible defaults:
- The default service address (pubsublite.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
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 total timeout of computeMessageStats to 30 seconds:
// 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
TopicStatsServiceStubSettings.Builder topicStatsServiceSettingsBuilder =
TopicStatsServiceStubSettings.newBuilder();
topicStatsServiceSettingsBuilder
.computeMessageStatsSettings()
.setRetrySettings(
topicStatsServiceSettingsBuilder
.computeMessageStatsSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
TopicStatsServiceStubSettings topicStatsServiceSettings =
topicStatsServiceSettingsBuilder.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for TopicStatsServiceStubSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTopicStatsServiceStubSettings(TopicStatsServiceStubSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptioncom.google.api.gax.rpc.UnaryCallSettings<ComputeHeadCursorRequest,ComputeHeadCursorResponse> Returns the object with the settings used for calls to computeHeadCursor.com.google.api.gax.rpc.UnaryCallSettings<ComputeMessageStatsRequest,ComputeMessageStatsResponse> Returns the object with the settings used for calls to computeMessageStats.com.google.api.gax.rpc.UnaryCallSettings<ComputeTimeCursorRequest,ComputeTimeCursorResponse> Returns the object with the settings used for calls to computeTimeCursor.static com.google.api.gax.rpc.ApiClientHeaderProvider.Builderstatic com.google.api.gax.core.GoogleCredentialsProvider.BuilderReturns a builder for the default credentials for this service.static com.google.api.gax.core.InstantiatingExecutorProvider.BuilderReturns a builder for the default ExecutorProvider for this service.static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.BuilderReturns a builder for the default ChannelProvider for this service.static com.google.api.gax.rpc.TransportChannelProviderstatic StringReturns the default service endpoint.static StringReturns the default mTLS service endpoint.Returns the default service scopes.Returns the endpoint set by the user or the the service's default endpoint.Returns the default service name.Returns a new builder for this class.newBuilder(com.google.api.gax.rpc.ClientContext clientContext) Returns a new builder for this class.Returns a builder containing all the values of this settings class.Methods inherited from class com.google.api.gax.rpc.StubSettings
getBackgroundExecutorProvider, getClock, getCredentialsProvider, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
TopicStatsServiceStubSettings
protected TopicStatsServiceStubSettings(TopicStatsServiceStubSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
computeMessageStatsSettings
public com.google.api.gax.rpc.UnaryCallSettings<ComputeMessageStatsRequest,ComputeMessageStatsResponse> computeMessageStatsSettings()Returns the object with the settings used for calls to computeMessageStats. -
computeHeadCursorSettings
public com.google.api.gax.rpc.UnaryCallSettings<ComputeHeadCursorRequest,ComputeHeadCursorResponse> computeHeadCursorSettings()Returns the object with the settings used for calls to computeHeadCursor. -
computeTimeCursorSettings
public com.google.api.gax.rpc.UnaryCallSettings<ComputeTimeCursorRequest,ComputeTimeCursorResponse> computeTimeCursorSettings()Returns the object with the settings used for calls to computeTimeCursor. -
createStub
- Throws:
IOException
-
getEndpoint
Returns the endpoint set by the user or the the service's default endpoint.- Overrides:
getEndpointin classcom.google.api.gax.rpc.StubSettings<TopicStatsServiceStubSettings>
-
getServiceName
Returns the default service name.- Overrides:
getServiceNamein classcom.google.api.gax.rpc.StubSettings<TopicStatsServiceStubSettings>
-
defaultExecutorProviderBuilder
public static com.google.api.gax.core.InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultMtlsEndpoint
Returns the default mTLS service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
public static com.google.api.gax.core.GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
public static com.google.api.gax.grpc.InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()Returns a builder for the default ChannelProvider for this service. -
defaultTransportChannelProvider
public static com.google.api.gax.rpc.TransportChannelProvider defaultTransportChannelProvider() -
defaultApiClientHeaderProviderBuilder
public static com.google.api.gax.rpc.ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() -
newBuilder
Returns a new builder for this class. -
newBuilder
public static TopicStatsServiceStubSettings.Builder newBuilder(com.google.api.gax.rpc.ClientContext clientContext) Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classcom.google.api.gax.rpc.StubSettings<TopicStatsServiceStubSettings>
-