Class VideoStitcherServiceSettings
java.lang.Object
com.google.api.gax.rpc.ClientSettings<VideoStitcherServiceSettings>
com.google.cloud.video.stitcher.v1.VideoStitcherServiceSettings
@Generated("by gapic-generator-java")
public class VideoStitcherServiceSettings
extends ClientSettings<VideoStitcherServiceSettings>
Settings class to configure an instance of
VideoStitcherServiceClient.
The default instance has everything set to sensible defaults:
- The default service address (videostitcher.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 getCdnKey:
// 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
VideoStitcherServiceSettings.Builder videoStitcherServiceSettingsBuilder =
VideoStitcherServiceSettings.newBuilder();
videoStitcherServiceSettingsBuilder
.getCdnKeySettings()
.setRetrySettings(
videoStitcherServiceSettingsBuilder
.getCdnKeySettings()
.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());
VideoStitcherServiceSettings videoStitcherServiceSettings =
videoStitcherServiceSettingsBuilder.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 createCdnKey:
// 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
VideoStitcherServiceSettings.Builder videoStitcherServiceSettingsBuilder =
VideoStitcherServiceSettings.newBuilder();
TimedRetryAlgorithm timedRetryAlgorithm =
OperationalTimedPollAlgorithm.create(
RetrySettings.newBuilder()
.setInitialRetryDelayDuration(Duration.ofMillis(500))
.setRetryDelayMultiplier(1.5)
.setMaxRetryDelayDuration(Duration.ofMillis(5000))
.setTotalTimeoutDuration(Duration.ofHours(24))
.build());
videoStitcherServiceSettingsBuilder
.createClusterOperationSettings()
.setPollingAlgorithm(timedRetryAlgorithm)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for VideoStitcherServiceSettings. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVideoStitcherServiceSettings(VideoStitcherServiceSettings.Builder settingsBuilder) -
Method Summary
Modifier and TypeMethodDescriptionstatic final VideoStitcherServiceSettingsReturns the object with the settings used for calls to createCdnKey.Returns the object with the settings used for calls to createCdnKey.Returns the object with the settings used for calls to createLiveConfig.Returns the object with the settings used for calls to createLiveConfig.Returns the object with the settings used for calls to createLiveSession.Returns the object with the settings used for calls to createSlate.Returns the object with the settings used for calls to createSlate.Returns the object with the settings used for calls to createVodConfig.Returns the object with the settings used for calls to createVodConfig.Returns the object with the settings used for calls to createVodSession.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 ChannelProvider for this service.static TransportChannelProviderOperationCallSettings<DeleteCdnKeyRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteCdnKey.Returns the object with the settings used for calls to deleteCdnKey.OperationCallSettings<DeleteLiveConfigRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteLiveConfig.Returns the object with the settings used for calls to deleteLiveConfig.OperationCallSettings<DeleteSlateRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteSlate.Returns the object with the settings used for calls to deleteSlate.OperationCallSettings<DeleteVodConfigRequest,com.google.protobuf.Empty, OperationMetadata> Returns the object with the settings used for calls to deleteVodConfig.Returns the object with the settings used for calls to deleteVodConfig.Returns the object with the settings used for calls to getCdnKey.static StringReturns the default service endpoint.Returns the default service scopes.Returns the object with the settings used for calls to getLiveAdTagDetail.Returns the object with the settings used for calls to getLiveConfig.Returns the object with the settings used for calls to getLiveSession.Returns the object with the settings used for calls to getSlate.Returns the object with the settings used for calls to getVodAdTagDetail.Returns the object with the settings used for calls to getVodConfig.Returns the object with the settings used for calls to getVodSession.Returns the object with the settings used for calls to getVodStitchDetail.PagedCallSettings<ListCdnKeysRequest,ListCdnKeysResponse, VideoStitcherServiceClient.ListCdnKeysPagedResponse> Returns the object with the settings used for calls to listCdnKeys.PagedCallSettings<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse, VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> Returns the object with the settings used for calls to listLiveAdTagDetails.PagedCallSettings<ListLiveConfigsRequest,ListLiveConfigsResponse, VideoStitcherServiceClient.ListLiveConfigsPagedResponse> Returns the object with the settings used for calls to listLiveConfigs.PagedCallSettings<ListSlatesRequest,ListSlatesResponse, VideoStitcherServiceClient.ListSlatesPagedResponse> Returns the object with the settings used for calls to listSlates.PagedCallSettings<ListVodAdTagDetailsRequest,ListVodAdTagDetailsResponse, VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> Returns the object with the settings used for calls to listVodAdTagDetails.PagedCallSettings<ListVodConfigsRequest,ListVodConfigsResponse, VideoStitcherServiceClient.ListVodConfigsPagedResponse> Returns the object with the settings used for calls to listVodConfigs.PagedCallSettings<ListVodStitchDetailsRequest,ListVodStitchDetailsResponse, VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> Returns the object with the settings used for calls to listVodStitchDetails.Returns a new builder for this class.newBuilder(ClientContext clientContext) Returns a new builder for this class.Returns a builder containing all the values of this settings class.Returns the object with the settings used for calls to updateCdnKey.Returns the object with the settings used for calls to updateCdnKey.Returns the object with the settings used for calls to updateLiveConfig.Returns the object with the settings used for calls to updateLiveConfig.Returns the object with the settings used for calls to updateSlate.Returns the object with the settings used for calls to updateSlate.Returns the object with the settings used for calls to updateVodConfig.Returns the object with the settings used for calls to updateVodConfig.Methods inherited from class com.google.api.gax.rpc.ClientSettings
getApiKey, getBackgroundExecutorProvider, getClock, getCredentialsProvider, getEndpoint, getExecutorProvider, getGdchApiAudience, getHeaderProvider, getInternalHeaderProvider, getQuotaProjectId, getStubSettings, getTransportChannelProvider, getUniverseDomain, getWatchdogCheckInterval, getWatchdogCheckIntervalDuration, getWatchdogProvider, toString
-
Constructor Details
-
VideoStitcherServiceSettings
protected VideoStitcherServiceSettings(VideoStitcherServiceSettings.Builder settingsBuilder) throws IOException - Throws:
IOException
-
-
Method Details
-
createCdnKeySettings
Returns the object with the settings used for calls to createCdnKey. -
createCdnKeyOperationSettings
public OperationCallSettings<CreateCdnKeyRequest,CdnKey, createCdnKeyOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createCdnKey. -
listCdnKeysSettings
public PagedCallSettings<ListCdnKeysRequest,ListCdnKeysResponse, listCdnKeysSettings()VideoStitcherServiceClient.ListCdnKeysPagedResponse> Returns the object with the settings used for calls to listCdnKeys. -
getCdnKeySettings
Returns the object with the settings used for calls to getCdnKey. -
deleteCdnKeySettings
Returns the object with the settings used for calls to deleteCdnKey. -
deleteCdnKeyOperationSettings
public OperationCallSettings<DeleteCdnKeyRequest,com.google.protobuf.Empty, deleteCdnKeyOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteCdnKey. -
updateCdnKeySettings
Returns the object with the settings used for calls to updateCdnKey. -
updateCdnKeyOperationSettings
public OperationCallSettings<UpdateCdnKeyRequest,CdnKey, updateCdnKeyOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateCdnKey. -
createVodSessionSettings
Returns the object with the settings used for calls to createVodSession. -
getVodSessionSettings
Returns the object with the settings used for calls to getVodSession. -
listVodStitchDetailsSettings
public PagedCallSettings<ListVodStitchDetailsRequest,ListVodStitchDetailsResponse, listVodStitchDetailsSettings()VideoStitcherServiceClient.ListVodStitchDetailsPagedResponse> Returns the object with the settings used for calls to listVodStitchDetails. -
getVodStitchDetailSettings
Returns the object with the settings used for calls to getVodStitchDetail. -
listVodAdTagDetailsSettings
public PagedCallSettings<ListVodAdTagDetailsRequest,ListVodAdTagDetailsResponse, listVodAdTagDetailsSettings()VideoStitcherServiceClient.ListVodAdTagDetailsPagedResponse> Returns the object with the settings used for calls to listVodAdTagDetails. -
getVodAdTagDetailSettings
Returns the object with the settings used for calls to getVodAdTagDetail. -
listLiveAdTagDetailsSettings
public PagedCallSettings<ListLiveAdTagDetailsRequest,ListLiveAdTagDetailsResponse, listLiveAdTagDetailsSettings()VideoStitcherServiceClient.ListLiveAdTagDetailsPagedResponse> Returns the object with the settings used for calls to listLiveAdTagDetails. -
getLiveAdTagDetailSettings
Returns the object with the settings used for calls to getLiveAdTagDetail. -
createSlateSettings
Returns the object with the settings used for calls to createSlate. -
createSlateOperationSettings
public OperationCallSettings<CreateSlateRequest,Slate, createSlateOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createSlate. -
listSlatesSettings
public PagedCallSettings<ListSlatesRequest,ListSlatesResponse, listSlatesSettings()VideoStitcherServiceClient.ListSlatesPagedResponse> Returns the object with the settings used for calls to listSlates. -
getSlateSettings
Returns the object with the settings used for calls to getSlate. -
updateSlateSettings
Returns the object with the settings used for calls to updateSlate. -
updateSlateOperationSettings
public OperationCallSettings<UpdateSlateRequest,Slate, updateSlateOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateSlate. -
deleteSlateSettings
Returns the object with the settings used for calls to deleteSlate. -
deleteSlateOperationSettings
public OperationCallSettings<DeleteSlateRequest,com.google.protobuf.Empty, deleteSlateOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteSlate. -
createLiveSessionSettings
Returns the object with the settings used for calls to createLiveSession. -
getLiveSessionSettings
Returns the object with the settings used for calls to getLiveSession. -
createLiveConfigSettings
Returns the object with the settings used for calls to createLiveConfig. -
createLiveConfigOperationSettings
public OperationCallSettings<CreateLiveConfigRequest,LiveConfig, createLiveConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createLiveConfig. -
listLiveConfigsSettings
public PagedCallSettings<ListLiveConfigsRequest,ListLiveConfigsResponse, listLiveConfigsSettings()VideoStitcherServiceClient.ListLiveConfigsPagedResponse> Returns the object with the settings used for calls to listLiveConfigs. -
getLiveConfigSettings
Returns the object with the settings used for calls to getLiveConfig. -
deleteLiveConfigSettings
Returns the object with the settings used for calls to deleteLiveConfig. -
deleteLiveConfigOperationSettings
public OperationCallSettings<DeleteLiveConfigRequest,com.google.protobuf.Empty, deleteLiveConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteLiveConfig. -
updateLiveConfigSettings
Returns the object with the settings used for calls to updateLiveConfig. -
updateLiveConfigOperationSettings
public OperationCallSettings<UpdateLiveConfigRequest,LiveConfig, updateLiveConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateLiveConfig. -
createVodConfigSettings
Returns the object with the settings used for calls to createVodConfig. -
createVodConfigOperationSettings
public OperationCallSettings<CreateVodConfigRequest,VodConfig, createVodConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to createVodConfig. -
listVodConfigsSettings
public PagedCallSettings<ListVodConfigsRequest,ListVodConfigsResponse, listVodConfigsSettings()VideoStitcherServiceClient.ListVodConfigsPagedResponse> Returns the object with the settings used for calls to listVodConfigs. -
getVodConfigSettings
Returns the object with the settings used for calls to getVodConfig. -
deleteVodConfigSettings
Returns the object with the settings used for calls to deleteVodConfig. -
deleteVodConfigOperationSettings
public OperationCallSettings<DeleteVodConfigRequest,com.google.protobuf.Empty, deleteVodConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to deleteVodConfig. -
updateVodConfigSettings
Returns the object with the settings used for calls to updateVodConfig. -
updateVodConfigOperationSettings
public OperationCallSettings<UpdateVodConfigRequest,VodConfig, updateVodConfigOperationSettings()OperationMetadata> Returns the object with the settings used for calls to updateVodConfig. -
create
public static final VideoStitcherServiceSettings create(VideoStitcherServiceStubSettings stub) throws IOException - Throws:
IOException
-
defaultExecutorProviderBuilder
Returns a builder for the default ExecutorProvider for this service. -
getDefaultEndpoint
Returns the default 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 ChannelProvider for this service. -
defaultTransportChannelProvider
-
defaultApiClientHeaderProviderBuilder
-
newBuilder
Returns a new 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 classClientSettings<VideoStitcherServiceSettings>
-