Class StreamingServiceStubSettings.Builder (0.3.0)

public static class StreamingServiceStubSettings.Builder extends StubSettings.Builder<StreamingServiceStubSettings,StreamingServiceStubSettings.Builder>

Builder for StreamingServiceStubSettings.

Inheritance

java.lang.Object > StubSettings.Builder > StreamingServiceStubSettings.Builder

Constructors

Builder()

protected Builder()

Builder(ClientContext clientContext)

protected Builder(ClientContext clientContext)
Parameter
Name Description
clientContext ClientContext

Builder(StreamingServiceStubSettings settings)

protected Builder(StreamingServiceStubSettings settings)
Parameter
Name Description
settings StreamingServiceStubSettings

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 StreamingServiceStubSettings.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
StreamingServiceStubSettings.Builder

build()

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

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>

unaryMethodSettingsBuilders()

public ImmutableList<UnaryCallSettings.Builder<?,?>> unaryMethodSettingsBuilders()
Returns
Type Description
com.google.common.collect.ImmutableList<Builder<?,?>>