public class StreamsServiceStubSettings extends StubSettings<StreamsServiceStubSettings>
Settings class to configure an instance of StreamsServiceStub .
The default instance has everything set to sensible defaults:
The default service address (visionai.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 getCluster 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
StreamsServiceStubSettings.Builder streamsServiceSettingsBuilder =
StreamsServiceStubSettings.newBuilder();
streamsServiceSettingsBuilder
.getClusterSettings()
.setRetrySettings(
streamsServiceSettingsBuilder
.getClusterSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
StreamsServiceStubSettings streamsServiceSettings = streamsServiceSettingsBuilder.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()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
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.
Returns
Type
Description
String
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static StreamsServiceStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static StreamsServiceStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static StreamsServiceStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
StreamsServiceStubSettings(StreamsServiceStubSettings.Builder settingsBuilder)
protected StreamsServiceStubSettings(StreamsServiceStubSettings.Builder settingsBuilder)
Methods
createClusterOperationSettings()
public OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationSettings()
Returns the object with the settings used for calls to createCluster.
createClusterSettings()
public UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()
Returns the object with the settings used for calls to createCluster.
createEventOperationSettings()
public OperationCallSettings<CreateEventRequest,Event,OperationMetadata> createEventOperationSettings()
Returns the object with the settings used for calls to createEvent.
createEventSettings()
public UnaryCallSettings<CreateEventRequest,Operation> createEventSettings()
Returns the object with the settings used for calls to createEvent.
createSeriesOperationSettings()
public OperationCallSettings<CreateSeriesRequest,Series,OperationMetadata> createSeriesOperationSettings()
Returns the object with the settings used for calls to createSeries.
createSeriesSettings()
public UnaryCallSettings<CreateSeriesRequest,Operation> createSeriesSettings()
Returns the object with the settings used for calls to createSeries.
createStreamOperationSettings()
public OperationCallSettings<CreateStreamRequest,Stream,OperationMetadata> createStreamOperationSettings()
Returns the object with the settings used for calls to createStream.
createStreamSettings()
public UnaryCallSettings<CreateStreamRequest,Operation> createStreamSettings()
Returns the object with the settings used for calls to createStream.
createStub()
public StreamsServiceStub createStub()
deleteClusterOperationSettings()
public OperationCallSettings<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationSettings()
Returns the object with the settings used for calls to deleteCluster.
deleteClusterSettings()
public UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()
Returns the object with the settings used for calls to deleteCluster.
deleteEventOperationSettings()
public OperationCallSettings<DeleteEventRequest,Empty,OperationMetadata> deleteEventOperationSettings()
Returns the object with the settings used for calls to deleteEvent.
deleteEventSettings()
public UnaryCallSettings<DeleteEventRequest,Operation> deleteEventSettings()
Returns the object with the settings used for calls to deleteEvent.
deleteSeriesOperationSettings()
public OperationCallSettings<DeleteSeriesRequest,Empty,OperationMetadata> deleteSeriesOperationSettings()
Returns the object with the settings used for calls to deleteSeries.
deleteSeriesSettings()
public UnaryCallSettings<DeleteSeriesRequest,Operation> deleteSeriesSettings()
Returns the object with the settings used for calls to deleteSeries.
deleteStreamOperationSettings()
public OperationCallSettings<DeleteStreamRequest,Empty,OperationMetadata> deleteStreamOperationSettings()
Returns the object with the settings used for calls to deleteStream.
deleteStreamSettings()
public UnaryCallSettings<DeleteStreamRequest,Operation> deleteStreamSettings()
Returns the object with the settings used for calls to deleteStream.
generateStreamHlsTokenSettings()
public UnaryCallSettings<GenerateStreamHlsTokenRequest,GenerateStreamHlsTokenResponse> generateStreamHlsTokenSettings()
Returns the object with the settings used for calls to generateStreamHlsToken.
getClusterSettings()
public UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()
Returns the object with the settings used for calls to getCluster.
getEventSettings()
public UnaryCallSettings<GetEventRequest,Event> getEventSettings()
Returns the object with the settings used for calls to getEvent.
getSeriesSettings()
public UnaryCallSettings<GetSeriesRequest,Series> getSeriesSettings()
Returns the object with the settings used for calls to getSeries.
getServiceName()
public String getServiceName()
Returns the default service name.
Returns
Type
Description
String
Overrides
getStreamSettings()
public UnaryCallSettings<GetStreamRequest,Stream> getStreamSettings()
Returns the object with the settings used for calls to getStream.
getStreamThumbnailOperationSettings()
public OperationCallSettings<GetStreamThumbnailRequest,GetStreamThumbnailResponse,OperationMetadata> getStreamThumbnailOperationSettings()
Returns the object with the settings used for calls to getStreamThumbnail.
getStreamThumbnailSettings()
public UnaryCallSettings<GetStreamThumbnailRequest,Operation> getStreamThumbnailSettings()
Returns the object with the settings used for calls to getStreamThumbnail.
public PagedCallSettings<ListClustersRequest,ListClustersResponse,StreamsServiceClient.ListClustersPagedResponse> listClustersSettings()
Returns the object with the settings used for calls to listClusters.
listEventsSettings()
public PagedCallSettings<ListEventsRequest,ListEventsResponse,StreamsServiceClient.ListEventsPagedResponse> listEventsSettings()
Returns the object with the settings used for calls to listEvents.
listSeriesSettings()
public PagedCallSettings<ListSeriesRequest,ListSeriesResponse,StreamsServiceClient.ListSeriesPagedResponse> listSeriesSettings()
Returns the object with the settings used for calls to listSeries.
listStreamsSettings()
public PagedCallSettings<ListStreamsRequest,ListStreamsResponse,StreamsServiceClient.ListStreamsPagedResponse> listStreamsSettings()
Returns the object with the settings used for calls to listStreams.
materializeChannelOperationSettings()
public OperationCallSettings<MaterializeChannelRequest,Channel,OperationMetadata> materializeChannelOperationSettings()
Returns the object with the settings used for calls to materializeChannel.
materializeChannelSettings()
public UnaryCallSettings<MaterializeChannelRequest,Operation> materializeChannelSettings()
Returns the object with the settings used for calls to materializeChannel.
toBuilder()
public StreamsServiceStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateClusterOperationSettings()
public OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationSettings()
Returns the object with the settings used for calls to updateCluster.
updateClusterSettings()
public UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()
Returns the object with the settings used for calls to updateCluster.
updateEventOperationSettings()
public OperationCallSettings<UpdateEventRequest,Event,OperationMetadata> updateEventOperationSettings()
Returns the object with the settings used for calls to updateEvent.
updateEventSettings()
public UnaryCallSettings<UpdateEventRequest,Operation> updateEventSettings()
Returns the object with the settings used for calls to updateEvent.
updateSeriesOperationSettings()
public OperationCallSettings<UpdateSeriesRequest,Series,OperationMetadata> updateSeriesOperationSettings()
Returns the object with the settings used for calls to updateSeries.
updateSeriesSettings()
public UnaryCallSettings<UpdateSeriesRequest,Operation> updateSeriesSettings()
Returns the object with the settings used for calls to updateSeries.
updateStreamOperationSettings()
public OperationCallSettings<UpdateStreamRequest,Stream,OperationMetadata> updateStreamOperationSettings()
Returns the object with the settings used for calls to updateStream.
updateStreamSettings()
public UnaryCallSettings<UpdateStreamRequest,Operation> updateStreamSettings()
Returns the object with the settings used for calls to updateStream.