@Generated(value="by gapic-generator") public class PublisherStubSettings extends StubSettings<PublisherStubSettings>
PublisherStub
.
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 total timeout of createTopic to 30 seconds:
PublisherStubSettings.Builder topicAdminSettingsBuilder =
PublisherStubSettings.newBuilder();
topicAdminSettingsBuilder.createTopicSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30));
PublisherStubSettings topicAdminSettings = topicAdminSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
PublisherStubSettings.Builder
Builder for PublisherStubSettings.
|
Modifier | Constructor and Description |
---|---|
protected |
PublisherStubSettings(PublisherStubSettings.Builder settingsBuilder) |
Modifier and Type | Method and Description |
---|---|
PublisherStub |
createStub() |
UnaryCallSettings<com.google.pubsub.v1.Topic,com.google.pubsub.v1.Topic> |
createTopicSettings()
Returns the object with the settings used for calls to createTopic.
|
static ApiClientHeaderProvider.Builder |
defaultApiClientHeaderProviderBuilder() |
static GoogleCredentialsProvider.Builder |
defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
|
static InstantiatingExecutorProvider.Builder |
defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
|
static InstantiatingGrpcChannelProvider.Builder |
defaultGrpcTransportProviderBuilder()
Returns a builder for the default ChannelProvider for this service.
|
static TransportChannelProvider |
defaultTransportChannelProvider() |
UnaryCallSettings<com.google.pubsub.v1.DeleteTopicRequest,Empty> |
deleteTopicSettings()
Returns the object with the settings used for calls to deleteTopic.
|
static String |
getDefaultEndpoint()
Returns the default service endpoint.
|
static List<String> |
getDefaultServiceScopes()
Returns the default service scopes.
|
UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
getIamPolicySettings()
Returns the object with the settings used for calls to getIamPolicy.
|
UnaryCallSettings<com.google.pubsub.v1.GetTopicRequest,com.google.pubsub.v1.Topic> |
getTopicSettings()
Returns the object with the settings used for calls to getTopic.
|
PagedCallSettings<com.google.pubsub.v1.ListTopicsRequest,com.google.pubsub.v1.ListTopicsResponse,TopicAdminClient.ListTopicsPagedResponse> |
listTopicsSettings()
Returns the object with the settings used for calls to listTopics.
|
PagedCallSettings<com.google.pubsub.v1.ListTopicSubscriptionsRequest,com.google.pubsub.v1.ListTopicSubscriptionsResponse,TopicAdminClient.ListTopicSubscriptionsPagedResponse> |
listTopicSubscriptionsSettings()
Returns the object with the settings used for calls to listTopicSubscriptions.
|
static PublisherStubSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
static PublisherStubSettings.Builder |
newBuilder(ClientContext clientContext)
Returns a new builder for this class.
|
BatchingCallSettings<com.google.pubsub.v1.PublishRequest,com.google.pubsub.v1.PublishResponse> |
publishSettings()
Returns the object with the settings used for calls to publish.
|
UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
setIamPolicySettings()
Returns the object with the settings used for calls to setIamPolicy.
|
UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
testIamPermissionsSettings()
Returns the object with the settings used for calls to testIamPermissions.
|
PublisherStubSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
UnaryCallSettings<com.google.pubsub.v1.UpdateTopicRequest,com.google.pubsub.v1.Topic> |
updateTopicSettings()
Returns the object with the settings used for calls to updateTopic.
|
getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getHeaderProvider, getInternalHeaderProvider, getStreamWatchdogCheckInterval, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, toString
protected PublisherStubSettings(PublisherStubSettings.Builder settingsBuilder) throws IOException
IOException
public UnaryCallSettings<com.google.pubsub.v1.Topic,com.google.pubsub.v1.Topic> createTopicSettings()
public UnaryCallSettings<com.google.pubsub.v1.UpdateTopicRequest,com.google.pubsub.v1.Topic> updateTopicSettings()
public BatchingCallSettings<com.google.pubsub.v1.PublishRequest,com.google.pubsub.v1.PublishResponse> publishSettings()
public UnaryCallSettings<com.google.pubsub.v1.GetTopicRequest,com.google.pubsub.v1.Topic> getTopicSettings()
public PagedCallSettings<com.google.pubsub.v1.ListTopicsRequest,com.google.pubsub.v1.ListTopicsResponse,TopicAdminClient.ListTopicsPagedResponse> listTopicsSettings()
public PagedCallSettings<com.google.pubsub.v1.ListTopicSubscriptionsRequest,com.google.pubsub.v1.ListTopicSubscriptionsResponse,TopicAdminClient.ListTopicSubscriptionsPagedResponse> listTopicSubscriptionsSettings()
public UnaryCallSettings<com.google.pubsub.v1.DeleteTopicRequest,Empty> deleteTopicSettings()
public UnaryCallSettings<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> setIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> getIamPolicySettings()
public UnaryCallSettings<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> testIamPermissionsSettings()
@BetaApi(value="A restructuring of stub classes is planned, so this may break in the future") public PublisherStub createStub() throws IOException
IOException
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
public static String getDefaultEndpoint()
public static List<String> getDefaultServiceScopes()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
public static TransportChannelProvider defaultTransportChannelProvider()
@BetaApi(value="The surface for customizing headers is not stable yet and may change in the future.") public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
public static PublisherStubSettings.Builder newBuilder()
public static PublisherStubSettings.Builder newBuilder(ClientContext clientContext)
public PublisherStubSettings.Builder toBuilder()
toBuilder
in class StubSettings<PublisherStubSettings>
Copyright © 2019 Google LLC. All rights reserved.