Class StreamingServiceSettings.Builder (0.52.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(@Nullable ClientContext clientContext)

protected Builder(@Nullable ClientContext clientContext)
Parameter
Name Description
clientContext @org.jspecify.annotations.Nullable com.google.api.gax.rpc.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

getLocationSettings()

public UnaryCallSettings.Builder<GetLocationRequest,Location> getLocationSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getStubSettingsBuilder()

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

listLocationsSettings()

public PagedCallSettings.Builder<ListLocationsRequest,ListLocationsResponse,StreamingServiceClient.ListLocationsPagedResponse> listLocationsSettings()

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

Returns
Type Description
Builder<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse,ListLocationsPagedResponse>

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>