Beta
This library 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 .
public class DatastreamStubSettings extends StubSettings<DatastreamStubSettings>
Settings class to configure an instance of DatastreamStub .
The default instance has everything set to sensible defaults:
The default service address (datastream.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 getConnectionProfile 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
DatastreamStubSettings.Builder datastreamSettingsBuilder = DatastreamStubSettings.newBuilder();
datastreamSettingsBuilder
.getConnectionProfileSettings()
.setRetrySettings(
datastreamSettingsBuilder
.getConnectionProfileSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DatastreamStubSettings datastreamSettings = datastreamSettingsBuilder.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 DatastreamStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static DatastreamStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static DatastreamStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
DatastreamStubSettings(DatastreamStubSettings.Builder settingsBuilder)
protected DatastreamStubSettings(DatastreamStubSettings.Builder settingsBuilder)
Methods
createConnectionProfileOperationSettings()
public OperationCallSettings<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata> createConnectionProfileOperationSettings()
Returns the object with the settings used for calls to createConnectionProfile.
createConnectionProfileSettings()
public UnaryCallSettings<CreateConnectionProfileRequest,Operation> createConnectionProfileSettings()
Returns the object with the settings used for calls to createConnectionProfile.
createPrivateConnectionOperationSettings()
public OperationCallSettings<CreatePrivateConnectionRequest,PrivateConnection,OperationMetadata> createPrivateConnectionOperationSettings()
Returns the object with the settings used for calls to createPrivateConnection.
createPrivateConnectionSettings()
public UnaryCallSettings<CreatePrivateConnectionRequest,Operation> createPrivateConnectionSettings()
Returns the object with the settings used for calls to createPrivateConnection.
createRouteOperationSettings()
public OperationCallSettings<CreateRouteRequest,Route,OperationMetadata> createRouteOperationSettings()
Returns the object with the settings used for calls to createRoute.
createRouteSettings()
public UnaryCallSettings<CreateRouteRequest,Operation> createRouteSettings()
Returns the object with the settings used for calls to createRoute.
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 DatastreamStub createStub()
deleteConnectionProfileOperationSettings()
public OperationCallSettings<DeleteConnectionProfileRequest,Empty,OperationMetadata> deleteConnectionProfileOperationSettings()
Returns the object with the settings used for calls to deleteConnectionProfile.
deleteConnectionProfileSettings()
public UnaryCallSettings<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileSettings()
Returns the object with the settings used for calls to deleteConnectionProfile.
deletePrivateConnectionOperationSettings()
public OperationCallSettings<DeletePrivateConnectionRequest,Empty,OperationMetadata> deletePrivateConnectionOperationSettings()
Returns the object with the settings used for calls to deletePrivateConnection.
deletePrivateConnectionSettings()
public UnaryCallSettings<DeletePrivateConnectionRequest,Operation> deletePrivateConnectionSettings()
Returns the object with the settings used for calls to deletePrivateConnection.
deleteRouteOperationSettings()
public OperationCallSettings<DeleteRouteRequest,Empty,OperationMetadata> deleteRouteOperationSettings()
Returns the object with the settings used for calls to deleteRoute.
deleteRouteSettings()
public UnaryCallSettings<DeleteRouteRequest,Operation> deleteRouteSettings()
Returns the object with the settings used for calls to deleteRoute.
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.
discoverConnectionProfileSettings()
public UnaryCallSettings<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse> discoverConnectionProfileSettings()
Returns the object with the settings used for calls to discoverConnectionProfile.
fetchErrorsOperationSettings()
public OperationCallSettings<FetchErrorsRequest,FetchErrorsResponse,OperationMetadata> fetchErrorsOperationSettings()
Returns the object with the settings used for calls to fetchErrors.
public UnaryCallSettings<FetchErrorsRequest,Operation> fetchErrorsSettings()
Returns the object with the settings used for calls to fetchErrors.
fetchStaticIpsSettings()
public PagedCallSettings<FetchStaticIpsRequest,FetchStaticIpsResponse,DatastreamClient.FetchStaticIpsPagedResponse> fetchStaticIpsSettings()
Returns the object with the settings used for calls to fetchStaticIps.
getConnectionProfileSettings()
public UnaryCallSettings<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileSettings()
Returns the object with the settings used for calls to getConnectionProfile.
getEndpoint()
public String getEndpoint()
Returns the endpoint set by the user or the the service's default endpoint.
Overrides
getPrivateConnectionSettings()
public UnaryCallSettings<GetPrivateConnectionRequest,PrivateConnection> getPrivateConnectionSettings()
Returns the object with the settings used for calls to getPrivateConnection.
getRouteSettings()
public UnaryCallSettings<GetRouteRequest,Route> getRouteSettings()
Returns the object with the settings used for calls to getRoute.
getServiceName()
public String getServiceName()
Returns the default service name.
Overrides
getStreamSettings()
public UnaryCallSettings<GetStreamRequest,Stream> getStreamSettings()
Returns the object with the settings used for calls to getStream.
listConnectionProfilesSettings()
public PagedCallSettings<ListConnectionProfilesRequest,ListConnectionProfilesResponse,DatastreamClient.ListConnectionProfilesPagedResponse> listConnectionProfilesSettings()
Returns the object with the settings used for calls to listConnectionProfiles.
listPrivateConnectionsSettings()
public PagedCallSettings<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse,DatastreamClient.ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings()
Returns the object with the settings used for calls to listPrivateConnections.
listRoutesSettings()
public PagedCallSettings<ListRoutesRequest,ListRoutesResponse,DatastreamClient.ListRoutesPagedResponse> listRoutesSettings()
Returns the object with the settings used for calls to listRoutes.
listStreamsSettings()
public PagedCallSettings<ListStreamsRequest,ListStreamsResponse,DatastreamClient.ListStreamsPagedResponse> listStreamsSettings()
Returns the object with the settings used for calls to listStreams.
toBuilder()
public DatastreamStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateConnectionProfileOperationSettings()
public OperationCallSettings<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata> updateConnectionProfileOperationSettings()
Returns the object with the settings used for calls to updateConnectionProfile.
updateConnectionProfileSettings()
public UnaryCallSettings<UpdateConnectionProfileRequest,Operation> updateConnectionProfileSettings()
Returns the object with the settings used for calls to updateConnectionProfile.
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.