Class LivestreamServiceStubSettings
java.lang.Object
com.google.api.gax.rpc.StubSettings<LivestreamServiceStubSettings>
com.google.cloud.video.livestream.v1.stub.LivestreamServiceStubSettings
@Generated("by gapic-generator-java")
public class LivestreamServiceStubSettings
extends StubSettings<LivestreamServiceStubSettings>
Settings class to configure an instance of
LivestreamServiceStub.
The default instance has everything set to sensible defaults:
- The default service address (livestream.googleapis.com) and default port (443) are used.
- Credentials are acquired automatically through Application Default Credentials.
- Retries are configured for idempotent methods but not for non-idempotent methods.
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 [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) of getChannel:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LivestreamServiceStubSettings.Builder livestreamServiceSettingsBuilder =
LivestreamServiceStubSettings.newBuilder();
livestreamServiceSettingsBuilder
.getChannelSettings()
.setRetrySettings(
livestreamServiceSettingsBuilder
.getChannelSettings()
.getRetrySettings()
.toBuilder()
.setInitialRetryDelayDuration(Duration.ofSeconds(1))
.setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
.setMaxAttempts(5)
.setMaxRetryDelayDuration(Duration.ofSeconds(30))
.setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
.setRetryDelayMultiplier(1.3)
.setRpcTimeoutMultiplier(1.5)
.setTotalTimeoutDuration(Duration.ofSeconds(300))
.build());
LivestreamServiceStubSettings livestreamServiceSettings =
livestreamServiceSettingsBuilder.build();
Please refer to the [Client Side Retry
Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting
retries.
To configure the RetrySettings of a Long Running Operation method, create an OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to configure the RetrySettings for createChannel:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
LivestreamServiceStubSettings.Builder livestreamServiceSettingsBuilder =
LivestreamServiceStubSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
livestreamServiceSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for LivestreamServiceStubSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedLivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionReturns the object with the settings used for calls to createAsset.Returns the object with the settings used for calls to createAsset.Returns the object with the settings used for calls to createChannel.Returns the object with the settings used for calls to createChannel.Returns the object with the settings used for calls to createClip.Returns the object with the settings used for calls to createClip.Returns the object with the settings used for calls to createDvrSession.Returns the object with the settings used for calls to createDvrSession.Returns the object with the settings used for calls to createEvent.Returns the object with the settings used for calls to createInput.Returns the object with the settings used for calls to createInput.Returns a builder for the default credentials for this service.Returns a builder for the default ExecutorProvider for this service.Returns a builder for the default gRPC ChannelProvider for this service.Returns a builder for the default REST ChannelProvider for this service.static TransportChannelProviderOperationCallSettings<DeleteAssetRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteAsset.Returns the object with the settings used for calls to deleteAsset.OperationCallSettings<DeleteChannelRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteChannel.Returns the object with the settings used for calls to deleteChannel.OperationCallSettings<DeleteClipRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteClip.Returns the object with the settings used for calls to deleteClip.OperationCallSettings<DeleteDvrSessionRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteDvrSession.Returns the object with the settings used for calls to deleteDvrSession.UnaryCallSettings<DeleteEventRequest,com.google.protobuf.Empty> Returns the object with the settings used for calls to deleteEvent.OperationCallSettings<DeleteInputRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteInput.Returns the object with the settings used for calls to deleteInput.Returns the object with the settings used for calls to getAsset.Returns the object with the settings used for calls to getChannel.Returns the object with the settings used for calls to getClip.static StringReturns the default service endpoint.static StringReturns the default mTLS service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getDvrSession.Returns the object with the settings used for calls to getEvent.Returns the object with the settings used for calls to getInput.protected LibraryMetadataReturns the object with the settings used for calls to getLocation.Returns the object with the settings used for calls to getPool.Returns the default service name.PagedCallSettings<ListAssetsRequest,ListAssetsResponse, LivestreamServiceClient.ListAssetsPagedResponse> Returns the object with the settings used for calls to listAssets.PagedCallSettings<ListChannelsRequest,ListChannelsResponse, LivestreamServiceClient.ListChannelsPagedResponse> Returns the object with the settings used for calls to listChannels.PagedCallSettings<ListClipsRequest,ListClipsResponse, LivestreamServiceClient.ListClipsPagedResponse> Returns the object with the settings used for calls to listClips.PagedCallSettings<ListDvrSessionsRequest,ListDvrSessionsResponse, LivestreamServiceClient.ListDvrSessionsPagedResponse> Returns the object with the settings used for calls to listDvrSessions.PagedCallSettings<ListEventsRequest,ListEventsResponse, LivestreamServiceClient.ListEventsPagedResponse> Returns the object with the settings used for calls to listEvents.PagedCallSettings<ListInputsRequest,ListInputsResponse, LivestreamServiceClient.ListInputsPagedResponse> Returns the object with the settings used for calls to listInputs.PagedCallSettings<ListLocationsRequest,ListLocationsResponse, LivestreamServiceClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations.Returns a new gRPC builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a new REST builder for this class.Returns the object with the settings used for calls to previewInput.Returns the object with the settings used for calls to startChannel.Returns the object with the settings used for calls to startChannel.Returns the object with the settings used for calls to startDistribution.Returns the object with the settings used for calls to startDistribution.Returns the object with the settings used for calls to stopChannel.Returns the object with the settings used for calls to stopChannel.Returns the object with the settings used for calls to stopDistribution.Returns the object with the settings used for calls to stopDistribution.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateChannel.Returns the object with the settings used for calls to updateChannel.Returns the object with the settings used for calls to updateDvrSession.Returns the object with the settings used for calls to updateDvrSession.Returns the object with the settings used for calls to updateInput.Returns the object with the settings used for calls to updateInput.Returns the object with the settings used for calls to updatePool.Returns the object with the settings used for calls to updatePool.Methods inherited from class com.google.api.gax.rpc.StubSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getMtlsEndpoint, getQuotaProjectId, getStreamWatchdogCheckInterval, getStreamWatchdogCheckIntervalDuration, getStreamWatchdogProvider, getTracerFactory, getTransportChannelProvider, getUniverseDomain, toString
-
Constructor Details
-
LivestreamServiceStubSettings
protected LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
createChannelSettings
Returns the object with the settings used for calls to createChannel. -
createChannelOperationSettings
public OperationCallSettings<CreateChannelRequest,Channel, createChannelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createChannel. -
listChannelsSettings
public PagedCallSettings<ListChannelsRequest,ListChannelsResponse, listChannelsSettings()LivestreamServiceClient.ListChannelsPagedResponse> Returns the object with the settings used for calls to listChannels. -
getChannelSettings
Returns the object with the settings used for calls to getChannel. -
deleteChannelSettings
Returns the object with the settings used for calls to deleteChannel. -
deleteChannelOperationSettings
public OperationCallSettings<DeleteChannelRequest,com.google.protobuf.Empty, deleteChannelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteChannel. -
updateChannelSettings
Returns the object with the settings used for calls to updateChannel. -
updateChannelOperationSettings
public OperationCallSettings<UpdateChannelRequest,Channel, updateChannelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateChannel. -
startChannelSettings
Returns the object with the settings used for calls to startChannel. -
startChannelOperationSettings
public OperationCallSettings<StartChannelRequest,ChannelOperationResponse, startChannelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to startChannel. -
stopChannelSettings
Returns the object with the settings used for calls to stopChannel. -
stopChannelOperationSettings
public OperationCallSettings<StopChannelRequest,ChannelOperationResponse, stopChannelOperationSettings()OperationMetadata> Returns the object with the settings used for calls to stopChannel. -
startDistributionSettings
Returns the object with the settings used for calls to startDistribution. -
startDistributionOperationSettings
public OperationCallSettings<StartDistributionRequest,ChannelOperationResponse, startDistributionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to startDistribution. -
stopDistributionSettings
Returns the object with the settings used for calls to stopDistribution. -
stopDistributionOperationSettings
public OperationCallSettings<StopDistributionRequest,ChannelOperationResponse, stopDistributionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to stopDistribution. -
createInputSettings
Returns the object with the settings used for calls to createInput. -
createInputOperationSettings
public OperationCallSettings<CreateInputRequest,Input, createInputOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createInput. -
listInputsSettings
public PagedCallSettings<ListInputsRequest,ListInputsResponse, listInputsSettings()LivestreamServiceClient.ListInputsPagedResponse> Returns the object with the settings used for calls to listInputs. -
getInputSettings
Returns the object with the settings used for calls to getInput. -
deleteInputSettings
Returns the object with the settings used for calls to deleteInput. -
deleteInputOperationSettings
public OperationCallSettings<DeleteInputRequest,com.google.protobuf.Empty, deleteInputOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteInput. -
updateInputSettings
Returns the object with the settings used for calls to updateInput. -
updateInputOperationSettings
public OperationCallSettings<UpdateInputRequest,Input, updateInputOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateInput. -
previewInputSettings
Returns the object with the settings used for calls to previewInput. -
createEventSettings
Returns the object with the settings used for calls to createEvent. -
listEventsSettings
public PagedCallSettings<ListEventsRequest,ListEventsResponse, listEventsSettings()LivestreamServiceClient.ListEventsPagedResponse> Returns the object with the settings used for calls to listEvents. -
getEventSettings
Returns the object with the settings used for calls to getEvent. -
deleteEventSettings
Returns the object with the settings used for calls to deleteEvent. -
listClipsSettings
public PagedCallSettings<ListClipsRequest,ListClipsResponse, listClipsSettings()LivestreamServiceClient.ListClipsPagedResponse> Returns the object with the settings used for calls to listClips. -
getClipSettings
Returns the object with the settings used for calls to getClip. -
createClipSettings
Returns the object with the settings used for calls to createClip. -
createClipOperationSettings
public OperationCallSettings<CreateClipRequest,Clip, createClipOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createClip. -
deleteClipSettings
Returns the object with the settings used for calls to deleteClip. -
deleteClipOperationSettings
public OperationCallSettings<DeleteClipRequest,com.google.protobuf.Empty, deleteClipOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteClip. -
createDvrSessionSettings
Returns the object with the settings used for calls to createDvrSession. -
createDvrSessionOperationSettings
public OperationCallSettings<CreateDvrSessionRequest,DvrSession, createDvrSessionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createDvrSession. -
listDvrSessionsSettings
public PagedCallSettings<ListDvrSessionsRequest,ListDvrSessionsResponse, listDvrSessionsSettings()LivestreamServiceClient.ListDvrSessionsPagedResponse> Returns the object with the settings used for calls to listDvrSessions. -
getDvrSessionSettings
Returns the object with the settings used for calls to getDvrSession. -
deleteDvrSessionSettings
Returns the object with the settings used for calls to deleteDvrSession. -
deleteDvrSessionOperationSettings
public OperationCallSettings<DeleteDvrSessionRequest,com.google.protobuf.Empty, deleteDvrSessionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteDvrSession. -
updateDvrSessionSettings
Returns the object with the settings used for calls to updateDvrSession. -
updateDvrSessionOperationSettings
public OperationCallSettings<UpdateDvrSessionRequest,DvrSession, updateDvrSessionOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateDvrSession. -
createAssetSettings
Returns the object with the settings used for calls to createAsset. -
createAssetOperationSettings
public OperationCallSettings<CreateAssetRequest,Asset, createAssetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createAsset. -
deleteAssetSettings
Returns the object with the settings used for calls to deleteAsset. -
deleteAssetOperationSettings
public OperationCallSettings<DeleteAssetRequest,com.google.protobuf.Empty, deleteAssetOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteAsset. -
getAssetSettings
Returns the object with the settings used for calls to getAsset. -
listAssetsSettings
public PagedCallSettings<ListAssetsRequest,ListAssetsResponse, listAssetsSettings()LivestreamServiceClient.ListAssetsPagedResponse> Returns the object with the settings used for calls to listAssets. -
getPoolSettings
Returns the object with the settings used for calls to getPool. -
updatePoolSettings
Returns the object with the settings used for calls to updatePool. -
updatePoolOperationSettings
public OperationCallSettings<UpdatePoolRequest,Pool, updatePoolOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updatePool. -
listLocationsSettings
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse, listLocationsSettings()LivestreamServiceClient.ListLocationsPagedResponse> Returns the object with the settings used for calls to listLocations. -
getLocationSettings
Returns the object with the settings used for calls to getLocation. -
createStub
- Throws:
IOException
-
getServiceName
Returns the default service name.- Overrides:
getServiceNamein classStubSettings<LivestreamServiceStubSettings>
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default service endpoint. -
getDefaultMtlsEndpoint
Returns the default mTLS service endpoint. -
getDefaultServiceScopes
Returns the default service scopes. -
defaultCredentialsProviderBuilder
Returns a builder for the default credentials for this service. -
defaultGrpcTransportProviderBuilder
Returns a builder for the default gRPC ChannelProvider for this service. -
defaultHttpJsonTransportProviderBuilder
@BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()Returns a builder for the default REST ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultGrpcApiClientHeaderProviderBuilder
-
defaultHttpJsonApiClientHeaderProviderBuilder
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new gRPC builder for this class. -
newHttpJsonBuilder
Returns a new REST builder for this class. -
newBuilder
Returns a new builder for this class. -
toBuilder
Returns a builder containing all the values of this settings class.- Specified by:
toBuilderin classStubSettings<LivestreamServiceStubSettings>
-
getLibraryMetadata
- Overrides:
getLibraryMetadatain classStubSettings<LivestreamServiceStubSettings>
-