Class LivestreamServiceStubSettings (0.3.0)

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:


 LivestreamServiceStubSettings.Builder livestreamServiceSettingsBuilder =
     LivestreamServiceStubSettings.newBuilder();
 livestreamServiceSettingsBuilder
     .getChannelSettings()
     .setRetrySettings(
         livestreamServiceSettingsBuilder
             .getChannelSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 LivestreamServiceStubSettings livestreamServiceSettings =
     livestreamServiceSettingsBuilder.build();
 

Inheritance

java.lang.Object > StubSettings > LivestreamServiceStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static LivestreamServiceStubSettings.Builder newBuilder()

Returns a new builder for this class.

Returns

newBuilder(ClientContext clientContext)

public static LivestreamServiceStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns

Constructors

LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder)

protected LivestreamServiceStubSettings(LivestreamServiceStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderLivestreamServiceStubSettings.Builder

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

createInputOperationSettings()

public OperationCallSettings<CreateInputRequest,Input,OperationMetadata> createInputOperationSettings()

Returns the object with the settings used for calls to createInput.

Returns

createInputSettings()

public UnaryCallSettings<CreateInputRequest,Operation> createInputSettings()

Returns the object with the settings used for calls to createInput.

Returns

createStub()

public LivestreamServiceStub createStub()
Returns
TypeDescription
LivestreamServiceStub
Exceptions
TypeDescription
IOException

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

deleteInputOperationSettings()

public OperationCallSettings<DeleteInputRequest,Empty,OperationMetadata> deleteInputOperationSettings()

Returns the object with the settings used for calls to deleteInput.

Returns

deleteInputSettings()

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

getInputSettings()

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

listInputsSettings()

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

updateInputOperationSettings()

public OperationCallSettings<UpdateInputRequest,Input,OperationMetadata> updateInputOperationSettings()

Returns the object with the settings used for calls to updateInput.

Returns

updateInputSettings()

public UnaryCallSettings<UpdateInputRequest,Operation> updateInputSettings()

Returns the object with the settings used for calls to updateInput.

Returns