Class PublisherServiceStubSettings.Builder
java.lang.Object
com.google.api.gax.rpc.StubSettings.Builder<PublisherServiceStubSettings,PublisherServiceStubSettings.Builder>
com.google.cloud.pubsublite.v1.stub.PublisherServiceStubSettings.Builder
- Enclosing class:
- PublisherServiceStubSettings
public static class PublisherServiceStubSettings.Builder
extends com.google.api.gax.rpc.StubSettings.Builder<PublisherServiceStubSettings,PublisherServiceStubSettings.Builder>
Builder for PublisherServiceStubSettings.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBuilder()protectedBuilder(com.google.api.gax.rpc.ClientContext clientContext) protectedBuilder(PublisherServiceStubSettings settings) -
Method Summary
Modifier and TypeMethodDescriptionapplyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.build()Returns the endpoint set by the user or the the service's default endpoint.com.google.api.gax.rpc.StreamingCallSettings.Builder<PublishRequest,PublishResponse> Returns the builder for the settings used for calls to publish.com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> Methods inherited from class com.google.api.gax.rpc.StubSettings.Builder
applyToAllUnaryMethods, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, self, setBackgroundExecutorProvider, setClock, setCredentialsProvider, setEndpoint, setExecutorProvider, setGdchApiAudience, setHeaderProvider, setInternalHeaderProvider, setMtlsEndpoint, setQuotaProjectId, setStreamWatchdogCheckInterval, setStreamWatchdogProvider, setSwitchToMtlsEndpointAllowed, setTracerFactory, setTransportChannelProvider, setUniverseDomain, toString
-
Constructor Details
-
Builder
protected Builder() -
Builder
protected Builder(com.google.api.gax.rpc.ClientContext clientContext) -
Builder
-
-
Method Details
-
applyToAllUnaryMethods
public PublisherServiceStubSettings.Builder applyToAllUnaryMethods(com.google.api.core.ApiFunction<com.google.api.gax.rpc.UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) Applies the given settings updater function to all of the unary API methods in this service.Note: This method does not support applying settings to streaming methods.
-
unaryMethodSettingsBuilders
public com.google.common.collect.ImmutableList<com.google.api.gax.rpc.UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders() -
publishSettings
public com.google.api.gax.rpc.StreamingCallSettings.Builder<PublishRequest,PublishResponse> publishSettings()Returns the builder for the settings used for calls to publish. -
getEndpoint
Returns the endpoint set by the user or the the service's default endpoint.- Overrides:
getEndpointin classcom.google.api.gax.rpc.StubSettings.Builder<PublisherServiceStubSettings,PublisherServiceStubSettings.Builder>
-
build
- Specified by:
buildin classcom.google.api.gax.rpc.StubSettings.Builder<PublisherServiceStubSettings,PublisherServiceStubSettings.Builder> - Throws:
IOException
-