- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.49.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.37.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.24.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.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.0.4
The interfaces provided are listed below, along with usage samples.
StorageTransferServiceClient
Service Description: Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
Sample for StorageTransferServiceClient:
try (StorageTransferServiceClient storageTransferServiceClient =
StorageTransferServiceClient.create()) {
TransferProto.GetGoogleServiceAccountRequest request =
TransferProto.GetGoogleServiceAccountRequest.newBuilder()
.setProjectId("projectId-894832108")
.build();
TransferTypes.GoogleServiceAccount response =
storageTransferServiceClient.getGoogleServiceAccount(request);
}
Classes
StorageTransferServiceClient
Service Description: Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
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:
try (StorageTransferServiceClient storageTransferServiceClient =
StorageTransferServiceClient.create()) {
TransferProto.GetGoogleServiceAccountRequest request =
TransferProto.GetGoogleServiceAccountRequest.newBuilder()
.setProjectId("projectId-894832108")
.build();
TransferTypes.GoogleServiceAccount response =
storageTransferServiceClient.getGoogleServiceAccount(request);
}
Note: close() needs to be called on the StorageTransferServiceClient 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 StorageTransferServiceSettings to create(). For example:
To customize credentials:
StorageTransferServiceSettings storageTransferServiceSettings =
StorageTransferServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
StorageTransferServiceClient storageTransferServiceClient =
StorageTransferServiceClient.create(storageTransferServiceSettings);
To customize the endpoint:
StorageTransferServiceSettings storageTransferServiceSettings =
StorageTransferServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
StorageTransferServiceClient storageTransferServiceClient =
StorageTransferServiceClient.create(storageTransferServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
StorageTransferServiceClient.ListTransferJobsFixedSizeCollection
StorageTransferServiceClient.ListTransferJobsPage
StorageTransferServiceClient.ListTransferJobsPagedResponse
StorageTransferServiceGrpc
Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
StorageTransferServiceGrpc.StorageTransferServiceBlockingStub
Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
StorageTransferServiceGrpc.StorageTransferServiceFutureStub
Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
StorageTransferServiceGrpc.StorageTransferServiceImplBase
Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
StorageTransferServiceGrpc.StorageTransferServiceStub
Storage Transfer Service and its protos. Transfers data between between Google Cloud Storage buckets or from a data source external to Google to a Cloud Storage bucket.
StorageTransferServiceSettings
Settings class to configure an instance of StorageTransferServiceClient.
The default instance has everything set to sensible defaults:
- The default service address (storagetransfer.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 getGoogleServiceAccount to 30 seconds:
StorageTransferServiceSettings.Builder storageTransferServiceSettingsBuilder =
StorageTransferServiceSettings.newBuilder();
storageTransferServiceSettingsBuilder
.getGoogleServiceAccountSettings()
.setRetrySettings(
storageTransferServiceSettingsBuilder
.getGoogleServiceAccountSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
StorageTransferServiceSettings storageTransferServiceSettings =
storageTransferServiceSettingsBuilder.build();
StorageTransferServiceSettings.Builder
Builder for StorageTransferServiceSettings.
TransferProto
TransferProto.CreateTransferJobRequest
Request passed to CreateTransferJob.
Protobuf type google.storagetransfer.v1.CreateTransferJobRequest
TransferProto.CreateTransferJobRequest.Builder
Request passed to CreateTransferJob.
Protobuf type google.storagetransfer.v1.CreateTransferJobRequest
TransferProto.GetGoogleServiceAccountRequest
Request passed to GetGoogleServiceAccount.
Protobuf type google.storagetransfer.v1.GetGoogleServiceAccountRequest
TransferProto.GetGoogleServiceAccountRequest.Builder
Request passed to GetGoogleServiceAccount.
Protobuf type google.storagetransfer.v1.GetGoogleServiceAccountRequest
TransferProto.GetTransferJobRequest
Request passed to GetTransferJob.
Protobuf type google.storagetransfer.v1.GetTransferJobRequest
TransferProto.GetTransferJobRequest.Builder
Request passed to GetTransferJob.
Protobuf type google.storagetransfer.v1.GetTransferJobRequest
TransferProto.ListTransferJobsRequest
projectId
, jobNames
, and jobStatuses
are query parameters that can
be specified when listing transfer jobs.
Protobuf type google.storagetransfer.v1.ListTransferJobsRequest
TransferProto.ListTransferJobsRequest.Builder
projectId
, jobNames
, and jobStatuses
are query parameters that can
be specified when listing transfer jobs.
Protobuf type google.storagetransfer.v1.ListTransferJobsRequest
TransferProto.ListTransferJobsResponse
Response from ListTransferJobs.
Protobuf type google.storagetransfer.v1.ListTransferJobsResponse
TransferProto.ListTransferJobsResponse.Builder
Response from ListTransferJobs.
Protobuf type google.storagetransfer.v1.ListTransferJobsResponse
TransferProto.PauseTransferOperationRequest
Request passed to PauseTransferOperation.
Protobuf type google.storagetransfer.v1.PauseTransferOperationRequest
TransferProto.PauseTransferOperationRequest.Builder
Request passed to PauseTransferOperation.
Protobuf type google.storagetransfer.v1.PauseTransferOperationRequest
TransferProto.ResumeTransferOperationRequest
Request passed to ResumeTransferOperation.
Protobuf type google.storagetransfer.v1.ResumeTransferOperationRequest
TransferProto.ResumeTransferOperationRequest.Builder
Request passed to ResumeTransferOperation.
Protobuf type google.storagetransfer.v1.ResumeTransferOperationRequest
TransferProto.RunTransferJobRequest
Request passed to RunTransferJob.
Protobuf type google.storagetransfer.v1.RunTransferJobRequest
TransferProto.RunTransferJobRequest.Builder
Request passed to RunTransferJob.
Protobuf type google.storagetransfer.v1.RunTransferJobRequest
TransferProto.UpdateTransferJobRequest
Request passed to UpdateTransferJob.
Protobuf type google.storagetransfer.v1.UpdateTransferJobRequest
TransferProto.UpdateTransferJobRequest.Builder
Request passed to UpdateTransferJob.
Protobuf type google.storagetransfer.v1.UpdateTransferJobRequest
TransferTypes
TransferTypes.AwsAccessKey
AWS access key (see AWS Security Credentials). For information on our data retention policy for user credentials, see User credentials.
Protobuf type google.storagetransfer.v1.AwsAccessKey
TransferTypes.AwsAccessKey.Builder
AWS access key (see AWS Security Credentials). For information on our data retention policy for user credentials, see User credentials.
Protobuf type google.storagetransfer.v1.AwsAccessKey
TransferTypes.AwsS3Data
An AwsS3Data resource can be a data source, but not a data sink. In an AwsS3Data resource, an object's name is the S3 object's key name.
Protobuf type google.storagetransfer.v1.AwsS3Data
TransferTypes.AwsS3Data.Builder
An AwsS3Data resource can be a data source, but not a data sink. In an AwsS3Data resource, an object's name is the S3 object's key name.
Protobuf type google.storagetransfer.v1.AwsS3Data
TransferTypes.AzureBlobStorageData
An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the Azure endpoint. In an AzureBlobStorageData resource, a blobs's name is the Azure Blob Storage blob's key name.
Protobuf type google.storagetransfer.v1.AzureBlobStorageData
TransferTypes.AzureBlobStorageData.Builder
An AzureBlobStorageData resource can be a data source, but not a data sink. An AzureBlobStorageData resource represents one Azure container. The storage account determines the Azure endpoint. In an AzureBlobStorageData resource, a blobs's name is the Azure Blob Storage blob's key name.
Protobuf type google.storagetransfer.v1.AzureBlobStorageData
TransferTypes.AzureCredentials
Azure credentials For information on our data retention policy for user credentials, see User credentials.
Protobuf type google.storagetransfer.v1.AzureCredentials
TransferTypes.AzureCredentials.Builder
Azure credentials For information on our data retention policy for user credentials, see User credentials.
Protobuf type google.storagetransfer.v1.AzureCredentials
TransferTypes.ErrorLogEntry
An entry describing an error that has occurred.
Protobuf type google.storagetransfer.v1.ErrorLogEntry
TransferTypes.ErrorLogEntry.Builder
An entry describing an error that has occurred.
Protobuf type google.storagetransfer.v1.ErrorLogEntry
TransferTypes.ErrorSummary
A summary of errors by error code, plus a count and sample error log entries.
Protobuf type google.storagetransfer.v1.ErrorSummary
TransferTypes.ErrorSummary.Builder
A summary of errors by error code, plus a count and sample error log entries.
Protobuf type google.storagetransfer.v1.ErrorSummary
TransferTypes.GcsData
In a GcsData resource, an object's name is the Cloud Storage object's
name and its "last modification time" refers to the object's updated
property of Cloud Storage objects, which changes when the content or the
metadata of the object is updated.
Protobuf type google.storagetransfer.v1.GcsData
TransferTypes.GcsData.Builder
In a GcsData resource, an object's name is the Cloud Storage object's
name and its "last modification time" refers to the object's updated
property of Cloud Storage objects, which changes when the content or the
metadata of the object is updated.
Protobuf type google.storagetransfer.v1.GcsData
TransferTypes.GoogleServiceAccount
Google service account
Protobuf type google.storagetransfer.v1.GoogleServiceAccount
TransferTypes.GoogleServiceAccount.Builder
Google service account
Protobuf type google.storagetransfer.v1.GoogleServiceAccount
TransferTypes.HttpData
An HttpData resource specifies a list of objects on the web to be transferred
over HTTP. The information of the objects to be transferred is contained in
a file referenced by a URL. The first line in the file must be
"TsvHttpData-1.0"
, which specifies the format of the file. Subsequent
lines specify the information of the list of objects, one object per list
entry. Each entry has the following tab-delimited fields:
- HTTP URL \u2014 The location of the object.
- Length \u2014 The size of the object in bytes.
- MD5 \u2014 The base64-encoded MD5 hash of the object. For an example of a valid TSV file, see Transferring data from URLs. When transferring data based on a URL list, keep the following in mind:
- When an object located at
http(s)://hostname:port/<URL-path>
is transferred to a data sink, the name of the object at the data sink is<hostname>/<URL-path>
. - If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred.
- If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail.
- Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can share an object publicly and get a link to it.
- Storage Transfer Service obeys
robots.txt
rules and requires the source HTTP server to supportRange
requests and to return aContent-Length
header in each response. - ObjectConditions have no effect when filtering objects to transfer.
Protobuf type google.storagetransfer.v1.HttpData
TransferTypes.HttpData.Builder
An HttpData resource specifies a list of objects on the web to be transferred
over HTTP. The information of the objects to be transferred is contained in
a file referenced by a URL. The first line in the file must be
"TsvHttpData-1.0"
, which specifies the format of the file. Subsequent
lines specify the information of the list of objects, one object per list
entry. Each entry has the following tab-delimited fields:
- HTTP URL \u2014 The location of the object.
- Length \u2014 The size of the object in bytes.
- MD5 \u2014 The base64-encoded MD5 hash of the object. For an example of a valid TSV file, see Transferring data from URLs. When transferring data based on a URL list, keep the following in mind:
- When an object located at
http(s)://hostname:port/<URL-path>
is transferred to a data sink, the name of the object at the data sink is<hostname>/<URL-path>
. - If the specified size of an object does not match the actual size of the object fetched, the object will not be transferred.
- If the specified MD5 does not match the MD5 computed from the transferred bytes, the object transfer will fail.
- Ensure that each URL you specify is publicly accessible. For example, in Cloud Storage you can share an object publicly and get a link to it.
- Storage Transfer Service obeys
robots.txt
rules and requires the source HTTP server to supportRange
requests and to return aContent-Length
header in each response. - ObjectConditions have no effect when filtering objects to transfer.
Protobuf type google.storagetransfer.v1.HttpData
TransferTypes.NotificationConfig
Specification to configure notifications published to Cloud Pub/Sub.
Notifications will be published to the customer-provided topic using the
following PubsubMessage.attributes
:
"eventType"
: one of the EventType values"payloadFormat"
: one of the PayloadFormat values"projectId"
: the project_id of theTransferOperation
"transferJobName"
: the transfer_job_name of theTransferOperation
"transferOperationName"
: the name of theTransferOperation
ThePubsubMessage.data
will contain a TransferOperation resource formatted according to the specifiedPayloadFormat
.
Protobuf type google.storagetransfer.v1.NotificationConfig
TransferTypes.NotificationConfig.Builder
Specification to configure notifications published to Cloud Pub/Sub.
Notifications will be published to the customer-provided topic using the
following PubsubMessage.attributes
:
"eventType"
: one of the EventType values"payloadFormat"
: one of the PayloadFormat values"projectId"
: the project_id of theTransferOperation
"transferJobName"
: the transfer_job_name of theTransferOperation
"transferOperationName"
: the name of theTransferOperation
ThePubsubMessage.data
will contain a TransferOperation resource formatted according to the specifiedPayloadFormat
.
Protobuf type google.storagetransfer.v1.NotificationConfig
TransferTypes.ObjectConditions
Conditions that determine which objects will be transferred. Applies only
to Cloud Data Sources such as S3, Azure, and Cloud Storage.
The "last modification time" refers to the time of the
last change to the object's content or metadata \u2014 specifically, this is
the updated
property of Cloud Storage objects, the LastModified
field
of S3 objects, and the Last-Modified
header of Azure blobs.
Protobuf type google.storagetransfer.v1.ObjectConditions
TransferTypes.ObjectConditions.Builder
Conditions that determine which objects will be transferred. Applies only
to Cloud Data Sources such as S3, Azure, and Cloud Storage.
The "last modification time" refers to the time of the
last change to the object's content or metadata \u2014 specifically, this is
the updated
property of Cloud Storage objects, the LastModified
field
of S3 objects, and the Last-Modified
header of Azure blobs.
Protobuf type google.storagetransfer.v1.ObjectConditions
TransferTypes.Schedule
Transfers can be scheduled to recur or to run just once.
Protobuf type google.storagetransfer.v1.Schedule
TransferTypes.Schedule.Builder
Transfers can be scheduled to recur or to run just once.
Protobuf type google.storagetransfer.v1.Schedule
TransferTypes.TransferCounters
A collection of counters that report the progress of a transfer operation.
Protobuf type google.storagetransfer.v1.TransferCounters
TransferTypes.TransferCounters.Builder
A collection of counters that report the progress of a transfer operation.
Protobuf type google.storagetransfer.v1.TransferCounters
TransferTypes.TransferJob
This resource represents the configuration of a transfer job that runs periodically.
Protobuf type google.storagetransfer.v1.TransferJob
TransferTypes.TransferJob.Builder
This resource represents the configuration of a transfer job that runs periodically.
Protobuf type google.storagetransfer.v1.TransferJob
TransferTypes.TransferOperation
A description of the execution of a transfer.
Protobuf type google.storagetransfer.v1.TransferOperation
TransferTypes.TransferOperation.Builder
A description of the execution of a transfer.
Protobuf type google.storagetransfer.v1.TransferOperation
TransferTypes.TransferOptions
TransferOptions define the actions to be performed on objects in a transfer.
Protobuf type google.storagetransfer.v1.TransferOptions
TransferTypes.TransferOptions.Builder
TransferOptions define the actions to be performed on objects in a transfer.
Protobuf type google.storagetransfer.v1.TransferOptions
TransferTypes.TransferSpec
Configuration for running a transfer.
Protobuf type google.storagetransfer.v1.TransferSpec
TransferTypes.TransferSpec.Builder
Configuration for running a transfer.
Protobuf type google.storagetransfer.v1.TransferSpec
Interfaces
TransferProto.CreateTransferJobRequestOrBuilder
TransferProto.GetGoogleServiceAccountRequestOrBuilder
TransferProto.GetTransferJobRequestOrBuilder
TransferProto.ListTransferJobsRequestOrBuilder
TransferProto.ListTransferJobsResponseOrBuilder
TransferProto.PauseTransferOperationRequestOrBuilder
TransferProto.ResumeTransferOperationRequestOrBuilder
TransferProto.RunTransferJobRequestOrBuilder
TransferProto.UpdateTransferJobRequestOrBuilder
TransferTypes.AwsAccessKeyOrBuilder
TransferTypes.AwsS3DataOrBuilder
TransferTypes.AzureBlobStorageDataOrBuilder
TransferTypes.AzureCredentialsOrBuilder
TransferTypes.ErrorLogEntryOrBuilder
TransferTypes.ErrorSummaryOrBuilder
TransferTypes.GcsDataOrBuilder
TransferTypes.GoogleServiceAccountOrBuilder
TransferTypes.HttpDataOrBuilder
TransferTypes.NotificationConfigOrBuilder
TransferTypes.ObjectConditionsOrBuilder
TransferTypes.ScheduleOrBuilder
TransferTypes.TransferCountersOrBuilder
TransferTypes.TransferJobOrBuilder
TransferTypes.TransferOperationOrBuilder
TransferTypes.TransferOptionsOrBuilder
TransferTypes.TransferSpecOrBuilder
Enums
TransferTypes.NotificationConfig.EventType
Enum for specifying event types for which notifications are to be published. Additional event types may be added in the future. Clients should either safely ignore unrecognized event types or explicitly specify which event types they are prepared to accept.
Protobuf enum google.storagetransfer.v1.NotificationConfig.EventType
TransferTypes.NotificationConfig.PayloadFormat
Enum for specifying the format of a notification message's payload.
Protobuf enum google.storagetransfer.v1.NotificationConfig.PayloadFormat
TransferTypes.TransferJob.Status
The status of the transfer job.
Protobuf enum google.storagetransfer.v1.TransferJob.Status
TransferTypes.TransferOperation.Status
The status of a TransferOperation.
Protobuf enum google.storagetransfer.v1.TransferOperation.Status