Class StreamingServiceSettings.Builder (0.9.0)

public static class StreamingServiceSettings.Builder extends ClientSettings.Builder<StreamingServiceSettings,StreamingServiceSettings.Builder>

Builder for StreamingServiceSettings.

Inheritance

java.lang.Object > ClientSettings.Builder > StreamingServiceSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(StreamingServiceSettings settings)

protected Builder(StreamingServiceSettings settings)
Parameter
Name Description
settings StreamingServiceSettings

Builder(StreamingServiceStubSettings.Builder stubSettings)

protected Builder(StreamingServiceStubSettings.Builder stubSettings)
Parameter
Name Description
stubSettings StreamingServiceStubSettings.Builder

Methods

acquireLeaseSettings()

public UnaryCallSettings.Builder<AcquireLeaseRequest,Lease> acquireLeaseSettings()

Returns the builder for the settings used for calls to acquireLease.

Returns
Type Description
Builder<AcquireLeaseRequest,Lease>

applyToAllUnaryMethods(ApiFunction<UnaryCallSettings.Builder<?,?>,Void> settingsUpdater)

public StreamingServiceSettings.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<?,?>,java.lang.Void>
Returns
Type Description
StreamingServiceSettings.Builder

build()

public StreamingServiceSettings build()
Returns
Type Description
StreamingServiceSettings
Overrides
Exceptions
Type Description
IOException

getStubSettingsBuilder()

public StreamingServiceStubSettings.Builder getStubSettingsBuilder()
Returns
Type Description
StreamingServiceStubSettings.Builder

receiveEventsSettings()

public StreamingCallSettings.Builder<ReceiveEventsRequest,ReceiveEventsResponse> receiveEventsSettings()

Returns the builder for the settings used for calls to receiveEvents.

Returns
Type Description
Builder<ReceiveEventsRequest,ReceiveEventsResponse>

receivePacketsSettings()

public StreamingCallSettings.Builder<ReceivePacketsRequest,ReceivePacketsResponse> receivePacketsSettings()

Returns the builder for the settings used for calls to receivePackets.

Returns
Type Description
Builder<ReceivePacketsRequest,ReceivePacketsResponse>

releaseLeaseSettings()

public UnaryCallSettings.Builder<ReleaseLeaseRequest,ReleaseLeaseResponse> releaseLeaseSettings()

Returns the builder for the settings used for calls to releaseLease.

Returns
Type Description
Builder<ReleaseLeaseRequest,ReleaseLeaseResponse>

renewLeaseSettings()

public UnaryCallSettings.Builder<RenewLeaseRequest,Lease> renewLeaseSettings()

Returns the builder for the settings used for calls to renewLease.

Returns
Type Description
Builder<RenewLeaseRequest,Lease>

sendPacketsSettings()

public StreamingCallSettings.Builder<SendPacketsRequest,SendPacketsResponse> sendPacketsSettings()

Returns the builder for the settings used for calls to sendPackets.

Returns
Type Description
Builder<SendPacketsRequest,SendPacketsResponse>