@Generated(value="by GAPIC") public class PublisherSettings extends ServiceApiSettings
PublisherApi
.
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:
PublisherSettings.Builder publisherSettingsBuilder =
PublisherSettings.defaultBuilder();
publisherSettingsBuilder.CreateTopicSettings().getRetrySettingsBuilder()
.setTotalTimeout(Duration.standardSeconds(30));
PublisherSettings publisherSettings = publisherSettingsBuilder.build();
Modifier and Type | Class and Description |
---|---|
static class |
PublisherSettings.Builder
Builder for PublisherSettings.
|
Modifier and Type | Field and Description |
---|---|
static ConnectionSettings |
DEFAULT_CONNECTION_SETTINGS
The default connection settings of the service.
|
static java.lang.String |
DEFAULT_SERVICE_ADDRESS
The default address of the service.
|
static int |
DEFAULT_SERVICE_PORT
The default port of the service.
|
static com.google.common.collect.ImmutableList<java.lang.String> |
DEFAULT_SERVICE_SCOPES
The default scopes of the service.
|
Modifier and Type | Method and Description |
---|---|
SimpleCallSettings<Topic,Topic> |
createTopicSettings()
Returns the object with the settings used for calls to createTopic.
|
static PublisherSettings.Builder |
defaultBuilder()
Returns a builder for this class with recommended defaults.
|
SimpleCallSettings<DeleteTopicRequest,Empty> |
deleteTopicSettings()
Returns the object with the settings used for calls to deleteTopic.
|
SimpleCallSettings<GetTopicRequest,Topic> |
getTopicSettings()
Returns the object with the settings used for calls to getTopic.
|
PageStreamingCallSettings<ListTopicsRequest,ListTopicsResponse,Topic> |
listTopicsSettings()
Returns the object with the settings used for calls to listTopics.
|
PageStreamingCallSettings<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse,java.lang.String> |
listTopicSubscriptionsSettings()
Returns the object with the settings used for calls to listTopicSubscriptions.
|
static PublisherSettings.Builder |
newBuilder()
Returns a new builder for this class.
|
BundlingCallSettings<PublishRequest,PublishResponse> |
publishSettings()
Returns the object with the settings used for calls to publish.
|
PublisherSettings.Builder |
toBuilder()
Returns a builder containing all the values of this settings class.
|
getChannelProvider, getExecutorProvider
public static final java.lang.String DEFAULT_SERVICE_ADDRESS
public static final int DEFAULT_SERVICE_PORT
public static final com.google.common.collect.ImmutableList<java.lang.String> DEFAULT_SERVICE_SCOPES
public static final ConnectionSettings DEFAULT_CONNECTION_SETTINGS
public SimpleCallSettings<Topic,Topic> createTopicSettings()
public BundlingCallSettings<PublishRequest,PublishResponse> publishSettings()
public SimpleCallSettings<GetTopicRequest,Topic> getTopicSettings()
public PageStreamingCallSettings<ListTopicsRequest,ListTopicsResponse,Topic> listTopicsSettings()
public PageStreamingCallSettings<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse,java.lang.String> listTopicSubscriptionsSettings()
public SimpleCallSettings<DeleteTopicRequest,Empty> deleteTopicSettings()
public static PublisherSettings.Builder defaultBuilder()
public static PublisherSettings.Builder newBuilder()
public PublisherSettings.Builder toBuilder()