- 1.72.0 (latest)
- 1.71.0
- 1.69.0
- 1.67.0
- 1.66.0
- 1.63.0
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.48.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.36.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.2
- 1.1.1
- 1.0.0
- 0.4.2
The interfaces provided are listed below, along with usage samples.
DatastreamClient
Service Description: Datastream service
Sample for DatastreamClient:
// 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
try (DatastreamClient datastreamClient = DatastreamClient.create()) {
ConnectionProfileName name =
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
ConnectionProfile response = datastreamClient.getConnectionProfile(name);
}
Classes
AvroFileFormat
AVRO file format configuration.
Protobuf type google.cloud.datastream.v1alpha1.AvroFileFormat
AvroFileFormat.Builder
AVRO file format configuration.
Protobuf type google.cloud.datastream.v1alpha1.AvroFileFormat
CloudDatastreamResourcesProto
CloudDatastreamServiceProto
ConnectionProfile
Protobuf type google.cloud.datastream.v1alpha1.ConnectionProfile
ConnectionProfile.Builder
Protobuf type google.cloud.datastream.v1alpha1.ConnectionProfile
ConnectionProfileName
ConnectionProfileName.Builder
Builder for projects/{project}/locations/{location}/connectionProfiles/{connection_profile}.
CreateConnectionProfileRequest
Protobuf type google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest
CreateConnectionProfileRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.CreateConnectionProfileRequest
CreatePrivateConnectionRequest
Protobuf type google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest
CreatePrivateConnectionRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.CreatePrivateConnectionRequest
CreateRouteRequest
route creation request
Protobuf type google.cloud.datastream.v1alpha1.CreateRouteRequest
CreateRouteRequest.Builder
route creation request
Protobuf type google.cloud.datastream.v1alpha1.CreateRouteRequest
CreateStreamRequest
Protobuf type google.cloud.datastream.v1alpha1.CreateStreamRequest
CreateStreamRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.CreateStreamRequest
DatastreamClient
Service Description: Datastream service
This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:
// 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
try (DatastreamClient datastreamClient = DatastreamClient.create()) {
ConnectionProfileName name =
ConnectionProfileName.of("[PROJECT]", "[LOCATION]", "[CONNECTION_PROFILE]");
ConnectionProfile response = datastreamClient.getConnectionProfile(name);
}
Note: close() needs to be called on the DatastreamClient object to clean up resources such as threads. In the example above, try-with-resources is used, which automatically calls close().
The surface of this class includes several types of Java methods for each of the API's methods:
- A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
- A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
- A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of DatastreamSettings to create(). For example:
To customize credentials:
// 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
DatastreamSettings datastreamSettings =
DatastreamSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
To customize the endpoint:
// 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
DatastreamSettings datastreamSettings =
DatastreamSettings.newBuilder().setEndpoint(myEndpoint).build();
DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// 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
DatastreamSettings datastreamSettings = DatastreamSettings.newHttpJsonBuilder().build();
DatastreamClient datastreamClient = DatastreamClient.create(datastreamSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
DatastreamClient.FetchStaticIpsFixedSizeCollection
DatastreamClient.FetchStaticIpsPage
DatastreamClient.FetchStaticIpsPagedResponse
DatastreamClient.ListConnectionProfilesFixedSizeCollection
DatastreamClient.ListConnectionProfilesPage
DatastreamClient.ListConnectionProfilesPagedResponse
DatastreamClient.ListPrivateConnectionsFixedSizeCollection
DatastreamClient.ListPrivateConnectionsPage
DatastreamClient.ListPrivateConnectionsPagedResponse
DatastreamClient.ListRoutesFixedSizeCollection
DatastreamClient.ListRoutesPage
DatastreamClient.ListRoutesPagedResponse
DatastreamClient.ListStreamsFixedSizeCollection
DatastreamClient.ListStreamsPage
DatastreamClient.ListStreamsPagedResponse
DatastreamGrpc
Datastream service
DatastreamGrpc.DatastreamBlockingStub
Datastream service
DatastreamGrpc.DatastreamFutureStub
Datastream service
DatastreamGrpc.DatastreamImplBase
Datastream service
DatastreamGrpc.DatastreamStub
Datastream service
DatastreamSettings
Settings class to configure an instance of DatastreamClient.
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
DatastreamSettings.Builder datastreamSettingsBuilder = DatastreamSettings.newBuilder();
datastreamSettingsBuilder
.getConnectionProfileSettings()
.setRetrySettings(
datastreamSettingsBuilder
.getConnectionProfileSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
DatastreamSettings datastreamSettings = datastreamSettingsBuilder.build();
DatastreamSettings.Builder
Builder for DatastreamSettings.
DeleteConnectionProfileRequest
Protobuf type google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest
DeleteConnectionProfileRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.DeleteConnectionProfileRequest
DeletePrivateConnectionRequest
Protobuf type google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest
DeletePrivateConnectionRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.DeletePrivateConnectionRequest
DeleteRouteRequest
route deletion request
Protobuf type google.cloud.datastream.v1alpha1.DeleteRouteRequest
DeleteRouteRequest.Builder
route deletion request
Protobuf type google.cloud.datastream.v1alpha1.DeleteRouteRequest
DeleteStreamRequest
Protobuf type google.cloud.datastream.v1alpha1.DeleteStreamRequest
DeleteStreamRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.DeleteStreamRequest
DestinationConfig
The configuration of the stream destination.
Protobuf type google.cloud.datastream.v1alpha1.DestinationConfig
DestinationConfig.Builder
The configuration of the stream destination.
Protobuf type google.cloud.datastream.v1alpha1.DestinationConfig
DiscoverConnectionProfileRequest
Request message for 'discover' ConnectionProfile request.
Protobuf type google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest
DiscoverConnectionProfileRequest.Builder
Request message for 'discover' ConnectionProfile request.
Protobuf type google.cloud.datastream.v1alpha1.DiscoverConnectionProfileRequest
DiscoverConnectionProfileResponse
Protobuf type google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse
DiscoverConnectionProfileResponse.Builder
Protobuf type google.cloud.datastream.v1alpha1.DiscoverConnectionProfileResponse
Error
Represent a user-facing Error.
Protobuf type google.cloud.datastream.v1alpha1.Error
Error.Builder
Represent a user-facing Error.
Protobuf type google.cloud.datastream.v1alpha1.Error
FetchErrorsRequest
Request message for 'FetchErrors' request.
Protobuf type google.cloud.datastream.v1alpha1.FetchErrorsRequest
FetchErrorsRequest.Builder
Request message for 'FetchErrors' request.
Protobuf type google.cloud.datastream.v1alpha1.FetchErrorsRequest
FetchErrorsResponse
Response message for a 'FetchErrors' response.
Protobuf type google.cloud.datastream.v1alpha1.FetchErrorsResponse
FetchErrorsResponse.Builder
Response message for a 'FetchErrors' response.
Protobuf type google.cloud.datastream.v1alpha1.FetchErrorsResponse
FetchStaticIpsRequest
Request message for 'FetchStaticIps' request.
Protobuf type google.cloud.datastream.v1alpha1.FetchStaticIpsRequest
FetchStaticIpsRequest.Builder
Request message for 'FetchStaticIps' request.
Protobuf type google.cloud.datastream.v1alpha1.FetchStaticIpsRequest
FetchStaticIpsResponse
Response message for a 'FetchStaticIps' response.
Protobuf type google.cloud.datastream.v1alpha1.FetchStaticIpsResponse
FetchStaticIpsResponse.Builder
Response message for a 'FetchStaticIps' response.
Protobuf type google.cloud.datastream.v1alpha1.FetchStaticIpsResponse
ForwardSshTunnelConnectivity
Forward SSH Tunnel connectivity.
Protobuf type google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity
ForwardSshTunnelConnectivity.Builder
Forward SSH Tunnel connectivity.
Protobuf type google.cloud.datastream.v1alpha1.ForwardSshTunnelConnectivity
GcsDestinationConfig
Google Cloud Storage destination configuration
Protobuf type google.cloud.datastream.v1alpha1.GcsDestinationConfig
GcsDestinationConfig.Builder
Google Cloud Storage destination configuration
Protobuf type google.cloud.datastream.v1alpha1.GcsDestinationConfig
GcsProfile
Cloud Storage bucket profile.
Protobuf type google.cloud.datastream.v1alpha1.GcsProfile
GcsProfile.Builder
Cloud Storage bucket profile.
Protobuf type google.cloud.datastream.v1alpha1.GcsProfile
GetConnectionProfileRequest
Protobuf type google.cloud.datastream.v1alpha1.GetConnectionProfileRequest
GetConnectionProfileRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.GetConnectionProfileRequest
GetPrivateConnectionRequest
Protobuf type google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest
GetPrivateConnectionRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.GetPrivateConnectionRequest
GetRouteRequest
route get request
Protobuf type google.cloud.datastream.v1alpha1.GetRouteRequest
GetRouteRequest.Builder
route get request
Protobuf type google.cloud.datastream.v1alpha1.GetRouteRequest
GetStreamRequest
Protobuf type google.cloud.datastream.v1alpha1.GetStreamRequest
GetStreamRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.GetStreamRequest
JsonFileFormat
JSON file format configuration.
Protobuf type google.cloud.datastream.v1alpha1.JsonFileFormat
JsonFileFormat.Builder
JSON file format configuration.
Protobuf type google.cloud.datastream.v1alpha1.JsonFileFormat
ListConnectionProfilesRequest
Protobuf type google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest
ListConnectionProfilesRequest.Builder
Protobuf type google.cloud.datastream.v1alpha1.ListConnectionProfilesRequest
ListConnectionProfilesResponse
Protobuf type google.cloud.datastream.v1alpha1.ListConnectionProfilesResponse