public static class PublisherSettings.Builder
extends com.google.api.gax.grpc.ServiceApiSettings.Builder
| Modifier and Type | Method and Description |
|---|---|
PublisherSettings.Builder |
applyToAllApiMethods(com.google.api.gax.grpc.ApiCallSettings.Builder apiCallSettings)
Applies the given settings to all of the API methods in this service.
|
PublisherSettings |
build() |
com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.Topic,com.google.pubsub.v1.Topic> |
createTopicSettings()
Returns the builder for the settings used for calls to createTopic.
|
com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.DeleteTopicRequest,com.google.protobuf.Empty> |
deleteTopicSettings()
Returns the builder for the settings used for calls to deleteTopic.
|
protected com.google.api.gax.core.ConnectionSettings |
getDefaultConnectionSettings() |
com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.GetTopicRequest,com.google.pubsub.v1.Topic> |
getTopicSettings()
Returns the builder for the settings used for calls to getTopic.
|
com.google.api.gax.grpc.PageStreamingCallSettings.Builder<com.google.pubsub.v1.ListTopicsRequest,com.google.pubsub.v1.ListTopicsResponse,com.google.pubsub.v1.Topic> |
listTopicsSettings()
Returns the builder for the settings used for calls to listTopics.
|
com.google.api.gax.grpc.PageStreamingCallSettings.Builder<com.google.pubsub.v1.ListTopicSubscriptionsRequest,com.google.pubsub.v1.ListTopicSubscriptionsResponse,String> |
listTopicSubscriptionsSettings()
Returns the builder for the settings used for calls to listTopicSubscriptions.
|
PublisherSettings.Builder |
provideChannelWith(com.google.api.gax.core.ConnectionSettings settings) |
PublisherSettings.Builder |
provideChannelWith(com.google.auth.Credentials credentials) |
PublisherSettings.Builder |
provideChannelWith(List<String> scopes) |
PublisherSettings.Builder |
provideChannelWith(io.grpc.ManagedChannel channel,
boolean shouldAutoClose) |
PublisherSettings.Builder |
provideExecutorWith(ScheduledExecutorService executor,
boolean shouldAutoClose) |
com.google.api.gax.grpc.BundlingCallSettings.Builder<com.google.pubsub.v1.PublishRequest,com.google.pubsub.v1.PublishResponse> |
publishSettings()
Returns the builder for the settings used for calls to publish.
|
PublisherSettings.Builder |
setClientLibHeader(String name,
String version) |
PublisherSettings.Builder |
setGeneratorHeader(String name,
String version) |
protected com.google.api.gax.core.ConnectionSettings getDefaultConnectionSettings()
getDefaultConnectionSettings in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder provideExecutorWith(ScheduledExecutorService executor, boolean shouldAutoClose)
provideExecutorWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder provideChannelWith(io.grpc.ManagedChannel channel, boolean shouldAutoClose)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder provideChannelWith(com.google.api.gax.core.ConnectionSettings settings)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder provideChannelWith(com.google.auth.Credentials credentials)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder provideChannelWith(List<String> scopes)
provideChannelWith in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder setGeneratorHeader(String name, String version)
setGeneratorHeader in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder setClientLibHeader(String name, String version)
setClientLibHeader in class com.google.api.gax.grpc.ServiceApiSettings.Builderpublic PublisherSettings.Builder applyToAllApiMethods(com.google.api.gax.grpc.ApiCallSettings.Builder apiCallSettings) throws Exception
Exceptionpublic com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.Topic,com.google.pubsub.v1.Topic> createTopicSettings()
public com.google.api.gax.grpc.BundlingCallSettings.Builder<com.google.pubsub.v1.PublishRequest,com.google.pubsub.v1.PublishResponse> publishSettings()
public com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.GetTopicRequest,com.google.pubsub.v1.Topic> getTopicSettings()
public com.google.api.gax.grpc.PageStreamingCallSettings.Builder<com.google.pubsub.v1.ListTopicsRequest,com.google.pubsub.v1.ListTopicsResponse,com.google.pubsub.v1.Topic> listTopicsSettings()
public com.google.api.gax.grpc.PageStreamingCallSettings.Builder<com.google.pubsub.v1.ListTopicSubscriptionsRequest,com.google.pubsub.v1.ListTopicSubscriptionsResponse,String> listTopicSubscriptionsSettings()
public com.google.api.gax.grpc.SimpleCallSettings.Builder<com.google.pubsub.v1.DeleteTopicRequest,com.google.protobuf.Empty> deleteTopicSettings()
public PublisherSettings build() throws IOException
build in class com.google.api.gax.grpc.ServiceApiSettings.BuilderIOExceptionCopyright © 2016 Google. All rights reserved.