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 total timeout of getChannel to 30 seconds:
// 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 ()
. setTotalTimeout ( Duration . ofSeconds ( 30 ))
. build ());
LivestreamServiceStubSettings livestreamServiceSettings =
livestreamServiceSettingsBuilder . build ();
Static Methods
public static ApiClientHeaderProvider . Builder defaultApiClientHeaderProviderBuilder ()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider . Builder defaultCredentialsProviderBuilder ()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider . Builder defaultExecutorProviderBuilder ()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider . Builder defaultGrpcApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider . Builder defaultGrpcTransportProviderBuilder ()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider . Builder defaultHttpJsonApiClientHeaderProviderBuilder ()
Beta
The surface for customizing headers is not stable yet and may change in the future.
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider . Builder defaultHttpJsonTransportProviderBuilder ()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider ()
getDefaultEndpoint()
public static String getDefaultEndpoint ()
Returns the default service endpoint.
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint ()
Returns the default mTLS service endpoint.
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes ()
Returns the default service scopes.
newBuilder()
public static LivestreamServiceStubSettings . Builder newBuilder ()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static LivestreamServiceStubSettings . Builder newBuilder ( ClientContext clientContext )
Returns a new builder for this class.
newHttpJsonBuilder()
public static LivestreamServiceStubSettings . Builder newHttpJsonBuilder ()
Returns a new REST builder for this class.
Constructors
LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder)
protected LivestreamServiceStubSettings ( LivestreamServiceStubSettings . Builder settingsBuilder )
Methods
createAssetOperationSettings()
public OperationCallSettings<CreateAssetRequest , Asset , OperationMetadata > createAssetOperationSettings ()
Returns the object with the settings used for calls to createAsset.
createAssetSettings()
public UnaryCallSettings<CreateAssetRequest , Operation > createAssetSettings ()
Returns the object with the settings used for calls to createAsset.
createChannelOperationSettings()
public OperationCallSettings<CreateChannelRequest , Channel , OperationMetadata > createChannelOperationSettings ()
Returns the object with the settings used for calls to createChannel.
createChannelSettings()
public UnaryCallSettings<CreateChannelRequest , Operation > createChannelSettings ()
Returns the object with the settings used for calls to createChannel.
createEventSettings()
public UnaryCallSettings<CreateEventRequest , Event > createEventSettings ()
Returns the object with the settings used for calls to createEvent.
public OperationCallSettings<CreateInputRequest , Input , OperationMetadata > createInputOperationSettings ()
Returns the object with the settings used for calls to createInput.
public UnaryCallSettings<CreateInputRequest , Operation > createInputSettings ()
Returns the object with the settings used for calls to createInput.
createStub()
public LivestreamServiceStub createStub ()
deleteAssetOperationSettings()
public OperationCallSettings<DeleteAssetRequest , Empty , OperationMetadata > deleteAssetOperationSettings ()
Returns the object with the settings used for calls to deleteAsset.
deleteAssetSettings()
public UnaryCallSettings<DeleteAssetRequest , Operation > deleteAssetSettings ()
Returns the object with the settings used for calls to deleteAsset.
deleteChannelOperationSettings()
public OperationCallSettings<DeleteChannelRequest , Empty , OperationMetadata > deleteChannelOperationSettings ()
Returns the object with the settings used for calls to deleteChannel.
deleteChannelSettings()
public UnaryCallSettings<DeleteChannelRequest , Operation > deleteChannelSettings ()
Returns the object with the settings used for calls to deleteChannel.
deleteEventSettings()
public UnaryCallSettings<DeleteEventRequest , Empty > deleteEventSettings ()
Returns the object with the settings used for calls to deleteEvent.
public OperationCallSettings<DeleteInputRequest , Empty , OperationMetadata > deleteInputOperationSettings ()
Returns the object with the settings used for calls to deleteInput.
public UnaryCallSettings<DeleteInputRequest , Operation > deleteInputSettings ()
Returns the object with the settings used for calls to deleteInput.
getAssetSettings()
public UnaryCallSettings<GetAssetRequest , Asset > getAssetSettings ()
Returns the object with the settings used for calls to getAsset.
getChannelSettings()
public UnaryCallSettings<GetChannelRequest , Channel > getChannelSettings ()
Returns the object with the settings used for calls to getChannel.
getEventSettings()
public UnaryCallSettings<GetEventRequest , Event > getEventSettings ()
Returns the object with the settings used for calls to getEvent.
public UnaryCallSettings<GetInputRequest , Input > getInputSettings ()
Returns the object with the settings used for calls to getInput.
getLocationSettings()
public UnaryCallSettings<GetLocationRequest , Location > getLocationSettings ()
Returns the object with the settings used for calls to getLocation.
Returns Type Description UnaryCallSettings <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
getPoolSettings()
public UnaryCallSettings<GetPoolRequest , Pool > getPoolSettings ()
Returns the object with the settings used for calls to getPool.
listAssetsSettings()
public PagedCallSettings<ListAssetsRequest , ListAssetsResponse , LivestreamServiceClient . ListAssetsPagedResponse > listAssetsSettings ()
Returns the object with the settings used for calls to listAssets.
listChannelsSettings()
public PagedCallSettings<ListChannelsRequest , ListChannelsResponse , LivestreamServiceClient . ListChannelsPagedResponse > listChannelsSettings ()
Returns the object with the settings used for calls to listChannels.
listEventsSettings()
public PagedCallSettings<ListEventsRequest , ListEventsResponse , LivestreamServiceClient . ListEventsPagedResponse > listEventsSettings ()
Returns the object with the settings used for calls to listEvents.
public PagedCallSettings<ListInputsRequest , ListInputsResponse , LivestreamServiceClient . ListInputsPagedResponse > listInputsSettings ()
Returns the object with the settings used for calls to listInputs.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest , ListLocationsResponse , LivestreamServiceClient . ListLocationsPagedResponse > listLocationsSettings ()
Returns the object with the settings used for calls to listLocations.
startChannelOperationSettings()
public OperationCallSettings<StartChannelRequest , ChannelOperationResponse , OperationMetadata > startChannelOperationSettings ()
Returns the object with the settings used for calls to startChannel.
startChannelSettings()
public UnaryCallSettings<StartChannelRequest , Operation > startChannelSettings ()
Returns the object with the settings used for calls to startChannel.
stopChannelOperationSettings()
public OperationCallSettings<StopChannelRequest , ChannelOperationResponse , OperationMetadata > stopChannelOperationSettings ()
Returns the object with the settings used for calls to stopChannel.
stopChannelSettings()
public UnaryCallSettings<StopChannelRequest , Operation > stopChannelSettings ()
Returns the object with the settings used for calls to stopChannel.
toBuilder()
public LivestreamServiceStubSettings . Builder toBuilder ()
Returns a builder containing all the values of this settings class.
Overrides
updateChannelOperationSettings()
public OperationCallSettings<UpdateChannelRequest , Channel , OperationMetadata > updateChannelOperationSettings ()
Returns the object with the settings used for calls to updateChannel.
updateChannelSettings()
public UnaryCallSettings<UpdateChannelRequest , Operation > updateChannelSettings ()
Returns the object with the settings used for calls to updateChannel.
public OperationCallSettings<UpdateInputRequest , Input , OperationMetadata > updateInputOperationSettings ()
Returns the object with the settings used for calls to updateInput.
public UnaryCallSettings<UpdateInputRequest , Operation > updateInputSettings ()
Returns the object with the settings used for calls to updateInput.
updatePoolOperationSettings()
public OperationCallSettings<UpdatePoolRequest , Pool , OperationMetadata > updatePoolOperationSettings ()
Returns the object with the settings used for calls to updatePool.
updatePoolSettings()
public UnaryCallSettings<UpdatePoolRequest , Operation > updatePoolSettings ()
Returns the object with the settings used for calls to updatePool.