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 for illustrative purposes only.
// It may require modifications to work in your environment.
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()
Returns
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
Returns
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
Returns
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Returns a builder for the default REST ChannelProvider for this service.
Returns
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
Returns
getDefaultEndpoint()
public static String getDefaultEndpoint()
Returns the default service endpoint.
Returns
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
Returns
newBuilder()
public static LivestreamServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static LivestreamServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static LivestreamServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder)
protected LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder)
Parameter
Methods
createChannelOperationSettings()
public OperationCallSettings<CreateChannelRequest,Channel,OperationMetadata> createChannelOperationSettings()
Returns the object with the settings used for calls to createChannel.
Returns
createChannelSettings()
public UnaryCallSettings<CreateChannelRequest,Operation> createChannelSettings()
Returns the object with the settings used for calls to createChannel.
Returns
createEventSettings()
public UnaryCallSettings<CreateEventRequest,Event> createEventSettings()
Returns the object with the settings used for calls to createEvent.
Returns
public OperationCallSettings<CreateInputRequest,Input,OperationMetadata> createInputOperationSettings()
Returns the object with the settings used for calls to createInput.
Returns
public UnaryCallSettings<CreateInputRequest,Operation> createInputSettings()
Returns the object with the settings used for calls to createInput.
Returns
createStub()
public LivestreamServiceStub createStub()
Returns
Exceptions
deleteChannelOperationSettings()
public OperationCallSettings<DeleteChannelRequest,Empty,OperationMetadata> deleteChannelOperationSettings()
Returns the object with the settings used for calls to deleteChannel.
Returns
deleteChannelSettings()
public UnaryCallSettings<DeleteChannelRequest,Operation> deleteChannelSettings()
Returns the object with the settings used for calls to deleteChannel.
Returns
deleteEventSettings()
public UnaryCallSettings<DeleteEventRequest,Empty> deleteEventSettings()
Returns the object with the settings used for calls to deleteEvent.
Returns
public OperationCallSettings<DeleteInputRequest,Empty,OperationMetadata> deleteInputOperationSettings()
Returns the object with the settings used for calls to deleteInput.
Returns
public UnaryCallSettings<DeleteInputRequest,Operation> deleteInputSettings()
Returns the object with the settings used for calls to deleteInput.
Returns
getChannelSettings()
public UnaryCallSettings<GetChannelRequest,Channel> getChannelSettings()
Returns the object with the settings used for calls to getChannel.
Returns
getEventSettings()
public UnaryCallSettings<GetEventRequest,Event> getEventSettings()
Returns the object with the settings used for calls to getEvent.
Returns
public UnaryCallSettings<GetInputRequest,Input> getInputSettings()
Returns the object with the settings used for calls to getInput.
Returns
listChannelsSettings()
public PagedCallSettings<ListChannelsRequest,ListChannelsResponse,LivestreamServiceClient.ListChannelsPagedResponse> listChannelsSettings()
Returns the object with the settings used for calls to listChannels.
Returns
listEventsSettings()
public PagedCallSettings<ListEventsRequest,ListEventsResponse,LivestreamServiceClient.ListEventsPagedResponse> listEventsSettings()
Returns the object with the settings used for calls to listEvents.
Returns
public PagedCallSettings<ListInputsRequest,ListInputsResponse,LivestreamServiceClient.ListInputsPagedResponse> listInputsSettings()
Returns the object with the settings used for calls to listInputs.
Returns
startChannelOperationSettings()
public OperationCallSettings<StartChannelRequest,ChannelOperationResponse,OperationMetadata> startChannelOperationSettings()
Returns the object with the settings used for calls to startChannel.
Returns
startChannelSettings()
public UnaryCallSettings<StartChannelRequest,Operation> startChannelSettings()
Returns the object with the settings used for calls to startChannel.
Returns
stopChannelOperationSettings()
public OperationCallSettings<StopChannelRequest,ChannelOperationResponse,OperationMetadata> stopChannelOperationSettings()
Returns the object with the settings used for calls to stopChannel.
Returns
stopChannelSettings()
public UnaryCallSettings<StopChannelRequest,Operation> stopChannelSettings()
Returns the object with the settings used for calls to stopChannel.
Returns
toBuilder()
public LivestreamServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateChannelOperationSettings()
public OperationCallSettings<UpdateChannelRequest,Channel,OperationMetadata> updateChannelOperationSettings()
Returns the object with the settings used for calls to updateChannel.
Returns
updateChannelSettings()
public UnaryCallSettings<UpdateChannelRequest,Operation> updateChannelSettings()
Returns the object with the settings used for calls to updateChannel.
Returns
public OperationCallSettings<UpdateInputRequest,Input,OperationMetadata> updateInputOperationSettings()
Returns the object with the settings used for calls to updateInput.
Returns
public UnaryCallSettings<UpdateInputRequest,Operation> updateInputSettings()
Returns the object with the settings used for calls to updateInput.
Returns