public static class PublisherServiceStubSettings.Builder extends StubSettings.Builder<PublisherServiceStubSettings,PublisherServiceStubSettings.Builder>
Builder for PublisherServiceStubSettings.
Constructors
Builder()
protected Builder()
Builder(ClientContext clientContext)
protected Builder(ClientContext clientContext)
Parameter | |
---|---|
Name | Description |
clientContext | ClientContext |
Builder(PublisherServiceStubSettings settings)
protected Builder(PublisherServiceStubSettings settings)
Parameter | |
---|---|
Name | Description |
settings | PublisherServiceStubSettings |
Methods
applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)
public PublisherServiceStubSettings.Builder applyToAllUnaryMethods(ApiFunction<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.
Parameter | |
---|---|
Name | Description |
settingsUpdater | ApiFunction<Builder<?,?>,Void> |
Returns | |
---|---|
Type | Description |
PublisherServiceStubSettings.Builder |
build()
public PublisherServiceStubSettings build()
Returns | |
---|---|
Type | Description |
PublisherServiceStubSettings |
Exceptions | |
---|---|
Type | Description |
IOException |
publishSettings()
public StreamingCallSettings.Builder<PublishRequest,PublishResponse> publishSettings()
Returns the builder for the settings used for calls to publish.
Returns | |
---|---|
Type | Description |
Builder<PublishRequest,PublishResponse> |
unaryMethodSettingsBuilders()
public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns | |
---|---|
Type | Description |
com.google.common.collect.ImmutableList<Builder<?,?>> |