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()
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 DatastreamStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
Returns
newBuilder(ClientContext clientContext)
public static DatastreamStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
Parameter
Returns
newHttpJsonBuilder()
public static DatastreamStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Returns
Constructors
DatastreamStubSettings(DatastreamStubSettings.Builder settingsBuilder)
protected DatastreamStubSettings(DatastreamStubSettings.Builder settingsBuilder)
Parameter
Methods
createConnectionProfileOperationSettings()
public OperationCallSettings<CreateConnectionProfileRequest,ConnectionProfile,OperationMetadata> createConnectionProfileOperationSettings()
Returns the object with the settings used for calls to createConnectionProfile.
Returns
createConnectionProfileSettings()
public UnaryCallSettings<CreateConnectionProfileRequest,Operation> createConnectionProfileSettings()
Returns the object with the settings used for calls to createConnectionProfile.
Returns
createPrivateConnectionOperationSettings()
public OperationCallSettings<CreatePrivateConnectionRequest,PrivateConnection,OperationMetadata> createPrivateConnectionOperationSettings()
Returns the object with the settings used for calls to createPrivateConnection.
Returns
createPrivateConnectionSettings()
public UnaryCallSettings<CreatePrivateConnectionRequest,Operation> createPrivateConnectionSettings()
Returns the object with the settings used for calls to createPrivateConnection.
Returns
createRouteOperationSettings()
public OperationCallSettings<CreateRouteRequest,Route,OperationMetadata> createRouteOperationSettings()
Returns the object with the settings used for calls to createRoute.
Returns
createRouteSettings()
public UnaryCallSettings<CreateRouteRequest,Operation> createRouteSettings()
Returns the object with the settings used for calls to createRoute.
Returns
createStreamOperationSettings()
public OperationCallSettings<CreateStreamRequest,Stream,OperationMetadata> createStreamOperationSettings()
Returns the object with the settings used for calls to createStream.
Returns
createStreamSettings()
public UnaryCallSettings<CreateStreamRequest,Operation> createStreamSettings()
Returns the object with the settings used for calls to createStream.
Returns
createStub()
public DatastreamStub createStub()
Returns
Exceptions
deleteConnectionProfileOperationSettings()
public OperationCallSettings<DeleteConnectionProfileRequest,Empty,OperationMetadata> deleteConnectionProfileOperationSettings()
Returns the object with the settings used for calls to deleteConnectionProfile.
Returns
deleteConnectionProfileSettings()
public UnaryCallSettings<DeleteConnectionProfileRequest,Operation> deleteConnectionProfileSettings()
Returns the object with the settings used for calls to deleteConnectionProfile.
Returns
deletePrivateConnectionOperationSettings()
public OperationCallSettings<DeletePrivateConnectionRequest,Empty,OperationMetadata> deletePrivateConnectionOperationSettings()
Returns the object with the settings used for calls to deletePrivateConnection.
Returns
deletePrivateConnectionSettings()
public UnaryCallSettings<DeletePrivateConnectionRequest,Operation> deletePrivateConnectionSettings()
Returns the object with the settings used for calls to deletePrivateConnection.
Returns
deleteRouteOperationSettings()
public OperationCallSettings<DeleteRouteRequest,Empty,OperationMetadata> deleteRouteOperationSettings()
Returns the object with the settings used for calls to deleteRoute.
Returns
deleteRouteSettings()
public UnaryCallSettings<DeleteRouteRequest,Operation> deleteRouteSettings()
Returns the object with the settings used for calls to deleteRoute.
Returns
deleteStreamOperationSettings()
public OperationCallSettings<DeleteStreamRequest,Empty,OperationMetadata> deleteStreamOperationSettings()
Returns the object with the settings used for calls to deleteStream.
Returns
deleteStreamSettings()
public UnaryCallSettings<DeleteStreamRequest,Operation> deleteStreamSettings()
Returns the object with the settings used for calls to deleteStream.
Returns
discoverConnectionProfileSettings()
public UnaryCallSettings<DiscoverConnectionProfileRequest,DiscoverConnectionProfileResponse> discoverConnectionProfileSettings()
Returns the object with the settings used for calls to discoverConnectionProfile.
Returns
fetchErrorsOperationSettings()
public OperationCallSettings<FetchErrorsRequest,FetchErrorsResponse,OperationMetadata> fetchErrorsOperationSettings()
Returns the object with the settings used for calls to fetchErrors.
Returns
public UnaryCallSettings<FetchErrorsRequest,Operation> fetchErrorsSettings()
Returns the object with the settings used for calls to fetchErrors.
Returns
fetchStaticIpsSettings()
public PagedCallSettings<FetchStaticIpsRequest,FetchStaticIpsResponse,DatastreamClient.FetchStaticIpsPagedResponse> fetchStaticIpsSettings()
Returns the object with the settings used for calls to fetchStaticIps.
Returns
getConnectionProfileSettings()
public UnaryCallSettings<GetConnectionProfileRequest,ConnectionProfile> getConnectionProfileSettings()
Returns the object with the settings used for calls to getConnectionProfile.
Returns
getPrivateConnectionSettings()
public UnaryCallSettings<GetPrivateConnectionRequest,PrivateConnection> getPrivateConnectionSettings()
Returns the object with the settings used for calls to getPrivateConnection.
Returns
getRouteSettings()
public UnaryCallSettings<GetRouteRequest,Route> getRouteSettings()
Returns the object with the settings used for calls to getRoute.
Returns
getStreamSettings()
public UnaryCallSettings<GetStreamRequest,Stream> getStreamSettings()
Returns the object with the settings used for calls to getStream.
Returns
listConnectionProfilesSettings()
public PagedCallSettings<ListConnectionProfilesRequest,ListConnectionProfilesResponse,DatastreamClient.ListConnectionProfilesPagedResponse> listConnectionProfilesSettings()
Returns the object with the settings used for calls to listConnectionProfiles.
Returns
listPrivateConnectionsSettings()
public PagedCallSettings<ListPrivateConnectionsRequest,ListPrivateConnectionsResponse,DatastreamClient.ListPrivateConnectionsPagedResponse> listPrivateConnectionsSettings()
Returns the object with the settings used for calls to listPrivateConnections.
Returns
listRoutesSettings()
public PagedCallSettings<ListRoutesRequest,ListRoutesResponse,DatastreamClient.ListRoutesPagedResponse> listRoutesSettings()
Returns the object with the settings used for calls to listRoutes.
Returns
listStreamsSettings()
public PagedCallSettings<ListStreamsRequest,ListStreamsResponse,DatastreamClient.ListStreamsPagedResponse> listStreamsSettings()
Returns the object with the settings used for calls to listStreams.
Returns
toBuilder()
public DatastreamStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Returns
Overrides
updateConnectionProfileOperationSettings()
public OperationCallSettings<UpdateConnectionProfileRequest,ConnectionProfile,OperationMetadata> updateConnectionProfileOperationSettings()
Returns the object with the settings used for calls to updateConnectionProfile.
Returns
updateConnectionProfileSettings()
public UnaryCallSettings<UpdateConnectionProfileRequest,Operation> updateConnectionProfileSettings()
Returns the object with the settings used for calls to updateConnectionProfile.
Returns
updateStreamOperationSettings()
public OperationCallSettings<UpdateStreamRequest,Stream,OperationMetadata> updateStreamOperationSettings()
Returns the object with the settings used for calls to updateStream.
Returns
updateStreamSettings()
public UnaryCallSettings<UpdateStreamRequest,Operation> updateStreamSettings()
Returns the object with the settings used for calls to updateStream.
Returns