Class TransferTypes.TransferSpec (1.12.0)

public static final class TransferTypes.TransferSpec extends GeneratedMessageV3 implements TransferTypes.TransferSpecOrBuilder

Configuration for running a transfer.

Protobuf type google.storagetransfer.v1.TransferSpec

Static Fields

AWS_S3_COMPATIBLE_DATA_SOURCE_FIELD_NUMBER

public static final int AWS_S3_COMPATIBLE_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

AWS_S3_DATA_SOURCE_FIELD_NUMBER

public static final int AWS_S3_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

AZURE_BLOB_STORAGE_DATA_SOURCE_FIELD_NUMBER

public static final int AZURE_BLOB_STORAGE_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_DATA_SINK_FIELD_NUMBER

public static final int GCS_DATA_SINK_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_DATA_SOURCE_FIELD_NUMBER

public static final int GCS_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

GCS_INTERMEDIATE_DATA_LOCATION_FIELD_NUMBER

public static final int GCS_INTERMEDIATE_DATA_LOCATION_FIELD_NUMBER
Field Value
TypeDescription
int

HTTP_DATA_SOURCE_FIELD_NUMBER

public static final int HTTP_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_CONDITIONS_FIELD_NUMBER

public static final int OBJECT_CONDITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

POSIX_DATA_SINK_FIELD_NUMBER

public static final int POSIX_DATA_SINK_FIELD_NUMBER
Field Value
TypeDescription
int

POSIX_DATA_SOURCE_FIELD_NUMBER

public static final int POSIX_DATA_SOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

SINK_AGENT_POOL_NAME_FIELD_NUMBER

public static final int SINK_AGENT_POOL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

SOURCE_AGENT_POOL_NAME_FIELD_NUMBER

public static final int SOURCE_AGENT_POOL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSFER_MANIFEST_FIELD_NUMBER

public static final int TRANSFER_MANIFEST_FIELD_NUMBER
Field Value
TypeDescription
int

TRANSFER_OPTIONS_FIELD_NUMBER

public static final int TRANSFER_OPTIONS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TransferTypes.TransferSpec getDefaultInstance()
Returns
TypeDescription
TransferTypes.TransferSpec

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static TransferTypes.TransferSpec.Builder newBuilder()
Returns
TypeDescription
TransferTypes.TransferSpec.Builder

newBuilder(TransferTypes.TransferSpec prototype)

public static TransferTypes.TransferSpec.Builder newBuilder(TransferTypes.TransferSpec prototype)
Parameter
NameDescription
prototypeTransferTypes.TransferSpec
Returns
TypeDescription
TransferTypes.TransferSpec.Builder

parseDelimitedFrom(InputStream input)

public static TransferTypes.TransferSpec parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TransferTypes.TransferSpec parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TransferTypes.TransferSpec parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TransferTypes.TransferSpec parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TransferTypes.TransferSpec parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TransferTypes.TransferSpec parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TransferTypes.TransferSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TransferTypes.TransferSpec
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TransferTypes.TransferSpec> parser()
Returns
TypeDescription
Parser<TransferSpec>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAwsS3CompatibleDataSource()

public TransferTypes.AwsS3CompatibleData getAwsS3CompatibleDataSource()

An AWS S3 compatible data source.

.google.storagetransfer.v1.AwsS3CompatibleData aws_s3_compatible_data_source = 19;

Returns
TypeDescription
TransferTypes.AwsS3CompatibleData

The awsS3CompatibleDataSource.

getAwsS3CompatibleDataSourceOrBuilder()

public TransferTypes.AwsS3CompatibleDataOrBuilder getAwsS3CompatibleDataSourceOrBuilder()

An AWS S3 compatible data source.

.google.storagetransfer.v1.AwsS3CompatibleData aws_s3_compatible_data_source = 19;

Returns
TypeDescription
TransferTypes.AwsS3CompatibleDataOrBuilder

getAwsS3DataSource()

public TransferTypes.AwsS3Data getAwsS3DataSource()

An AWS S3 data source.

.google.storagetransfer.v1.AwsS3Data aws_s3_data_source = 2;

Returns
TypeDescription
TransferTypes.AwsS3Data

The awsS3DataSource.

getAwsS3DataSourceOrBuilder()

public TransferTypes.AwsS3DataOrBuilder getAwsS3DataSourceOrBuilder()

An AWS S3 data source.

.google.storagetransfer.v1.AwsS3Data aws_s3_data_source = 2;

Returns
TypeDescription
TransferTypes.AwsS3DataOrBuilder

getAzureBlobStorageDataSource()

public TransferTypes.AzureBlobStorageData getAzureBlobStorageDataSource()

An Azure Blob Storage data source.

.google.storagetransfer.v1.AzureBlobStorageData azure_blob_storage_data_source = 8;

Returns
TypeDescription
TransferTypes.AzureBlobStorageData

The azureBlobStorageDataSource.

getAzureBlobStorageDataSourceOrBuilder()

public TransferTypes.AzureBlobStorageDataOrBuilder getAzureBlobStorageDataSourceOrBuilder()

An Azure Blob Storage data source.

.google.storagetransfer.v1.AzureBlobStorageData azure_blob_storage_data_source = 8;

Returns
TypeDescription
TransferTypes.AzureBlobStorageDataOrBuilder

getDataSinkCase()

public TransferTypes.TransferSpec.DataSinkCase getDataSinkCase()
Returns
TypeDescription
TransferTypes.TransferSpec.DataSinkCase

getDataSourceCase()

public TransferTypes.TransferSpec.DataSourceCase getDataSourceCase()
Returns
TypeDescription
TransferTypes.TransferSpec.DataSourceCase

getDefaultInstanceForType()

public TransferTypes.TransferSpec getDefaultInstanceForType()
Returns
TypeDescription
TransferTypes.TransferSpec

getGcsDataSink()

public TransferTypes.GcsData getGcsDataSink()

A Cloud Storage data sink.

.google.storagetransfer.v1.GcsData gcs_data_sink = 4;

Returns
TypeDescription
TransferTypes.GcsData

The gcsDataSink.

getGcsDataSinkOrBuilder()

public TransferTypes.GcsDataOrBuilder getGcsDataSinkOrBuilder()

A Cloud Storage data sink.

.google.storagetransfer.v1.GcsData gcs_data_sink = 4;

Returns
TypeDescription
TransferTypes.GcsDataOrBuilder

getGcsDataSource()

public TransferTypes.GcsData getGcsDataSource()

A Cloud Storage data source.

.google.storagetransfer.v1.GcsData gcs_data_source = 1;

Returns
TypeDescription
TransferTypes.GcsData

The gcsDataSource.

getGcsDataSourceOrBuilder()

public TransferTypes.GcsDataOrBuilder getGcsDataSourceOrBuilder()

A Cloud Storage data source.

.google.storagetransfer.v1.GcsData gcs_data_source = 1;

Returns
TypeDescription
TransferTypes.GcsDataOrBuilder

getGcsIntermediateDataLocation()

public TransferTypes.GcsData getGcsIntermediateDataLocation()

Cloud Storage intermediate data location.

.google.storagetransfer.v1.GcsData gcs_intermediate_data_location = 16;

Returns
TypeDescription
TransferTypes.GcsData

The gcsIntermediateDataLocation.

getGcsIntermediateDataLocationOrBuilder()

public TransferTypes.GcsDataOrBuilder getGcsIntermediateDataLocationOrBuilder()

Cloud Storage intermediate data location.

.google.storagetransfer.v1.GcsData gcs_intermediate_data_location = 16;

Returns
TypeDescription
TransferTypes.GcsDataOrBuilder

getHttpDataSource()

public TransferTypes.HttpData getHttpDataSource()

An HTTP URL data source.

.google.storagetransfer.v1.HttpData http_data_source = 3;

Returns
TypeDescription
TransferTypes.HttpData

The httpDataSource.

getHttpDataSourceOrBuilder()

public TransferTypes.HttpDataOrBuilder getHttpDataSourceOrBuilder()

An HTTP URL data source.

.google.storagetransfer.v1.HttpData http_data_source = 3;

Returns
TypeDescription
TransferTypes.HttpDataOrBuilder

getIntermediateDataLocationCase()

public TransferTypes.TransferSpec.IntermediateDataLocationCase getIntermediateDataLocationCase()
Returns
TypeDescription
TransferTypes.TransferSpec.IntermediateDataLocationCase

getObjectConditions()

public TransferTypes.ObjectConditions getObjectConditions()

Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.

.google.storagetransfer.v1.ObjectConditions object_conditions = 5;

Returns
TypeDescription
TransferTypes.ObjectConditions

The objectConditions.

getObjectConditionsOrBuilder()

public TransferTypes.ObjectConditionsOrBuilder getObjectConditionsOrBuilder()

Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.

.google.storagetransfer.v1.ObjectConditions object_conditions = 5;

Returns
TypeDescription
TransferTypes.ObjectConditionsOrBuilder

getParserForType()

public Parser<TransferTypes.TransferSpec> getParserForType()
Returns
TypeDescription
Parser<TransferSpec>
Overrides

getPosixDataSink()

public TransferTypes.PosixFilesystem getPosixDataSink()

A POSIX Filesystem data sink.

.google.storagetransfer.v1.PosixFilesystem posix_data_sink = 13;

Returns
TypeDescription
TransferTypes.PosixFilesystem

The posixDataSink.

getPosixDataSinkOrBuilder()

public TransferTypes.PosixFilesystemOrBuilder getPosixDataSinkOrBuilder()

A POSIX Filesystem data sink.

.google.storagetransfer.v1.PosixFilesystem posix_data_sink = 13;

Returns
TypeDescription
TransferTypes.PosixFilesystemOrBuilder

getPosixDataSource()

public TransferTypes.PosixFilesystem getPosixDataSource()

A POSIX Filesystem data source.

.google.storagetransfer.v1.PosixFilesystem posix_data_source = 14;

Returns
TypeDescription
TransferTypes.PosixFilesystem

The posixDataSource.

getPosixDataSourceOrBuilder()

public TransferTypes.PosixFilesystemOrBuilder getPosixDataSourceOrBuilder()

A POSIX Filesystem data source.

.google.storagetransfer.v1.PosixFilesystem posix_data_source = 14;

Returns
TypeDescription
TransferTypes.PosixFilesystemOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSinkAgentPoolName()

public String getSinkAgentPoolName()

Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.

string sink_agent_pool_name = 18;

Returns
TypeDescription
String

The sinkAgentPoolName.

getSinkAgentPoolNameBytes()

public ByteString getSinkAgentPoolNameBytes()

Specifies the agent pool name associated with the posix data sink. When unspecified, the default name is used.

string sink_agent_pool_name = 18;

Returns
TypeDescription
ByteString

The bytes for sinkAgentPoolName.

getSourceAgentPoolName()

public String getSourceAgentPoolName()

Specifies the agent pool name associated with the posix data source. When unspecified, the default name is used.

string source_agent_pool_name = 17;

Returns
TypeDescription
String

The sourceAgentPoolName.

getSourceAgentPoolNameBytes()

public ByteString getSourceAgentPoolNameBytes()

Specifies the agent pool name associated with the posix data source. When unspecified, the default name is used.

string source_agent_pool_name = 17;

Returns
TypeDescription
ByteString

The bytes for sourceAgentPoolName.

getTransferManifest()

public TransferTypes.TransferManifest getTransferManifest()

A manifest file provides a list of objects to be transferred from the data source. This field points to the location of the manifest file. Otherwise, the entire source bucket is used. ObjectConditions still apply.

.google.storagetransfer.v1.TransferManifest transfer_manifest = 15;

Returns
TypeDescription
TransferTypes.TransferManifest

The transferManifest.

getTransferManifestOrBuilder()

public TransferTypes.TransferManifestOrBuilder getTransferManifestOrBuilder()

A manifest file provides a list of objects to be transferred from the data source. This field points to the location of the manifest file. Otherwise, the entire source bucket is used. ObjectConditions still apply.

.google.storagetransfer.v1.TransferManifest transfer_manifest = 15;

Returns
TypeDescription
TransferTypes.TransferManifestOrBuilder

getTransferOptions()

public TransferTypes.TransferOptions getTransferOptions()

If the option delete_objects_unique_in_sink is true and time-based object conditions such as 'last modification time' are specified, the request fails with an INVALID_ARGUMENT error.

.google.storagetransfer.v1.TransferOptions transfer_options = 6;

Returns
TypeDescription
TransferTypes.TransferOptions

The transferOptions.

getTransferOptionsOrBuilder()

public TransferTypes.TransferOptionsOrBuilder getTransferOptionsOrBuilder()

If the option delete_objects_unique_in_sink is true and time-based object conditions such as 'last modification time' are specified, the request fails with an INVALID_ARGUMENT error.

.google.storagetransfer.v1.TransferOptions transfer_options = 6;

Returns
TypeDescription
TransferTypes.TransferOptionsOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAwsS3CompatibleDataSource()

public boolean hasAwsS3CompatibleDataSource()

An AWS S3 compatible data source.

.google.storagetransfer.v1.AwsS3CompatibleData aws_s3_compatible_data_source = 19;

Returns
TypeDescription
boolean

Whether the awsS3CompatibleDataSource field is set.

hasAwsS3DataSource()

public boolean hasAwsS3DataSource()

An AWS S3 data source.

.google.storagetransfer.v1.AwsS3Data aws_s3_data_source = 2;

Returns
TypeDescription
boolean

Whether the awsS3DataSource field is set.

hasAzureBlobStorageDataSource()

public boolean hasAzureBlobStorageDataSource()

An Azure Blob Storage data source.

.google.storagetransfer.v1.AzureBlobStorageData azure_blob_storage_data_source = 8;

Returns
TypeDescription
boolean

Whether the azureBlobStorageDataSource field is set.

hasGcsDataSink()

public boolean hasGcsDataSink()

A Cloud Storage data sink.

.google.storagetransfer.v1.GcsData gcs_data_sink = 4;

Returns
TypeDescription
boolean

Whether the gcsDataSink field is set.

hasGcsDataSource()

public boolean hasGcsDataSource()

A Cloud Storage data source.

.google.storagetransfer.v1.GcsData gcs_data_source = 1;

Returns
TypeDescription
boolean

Whether the gcsDataSource field is set.

hasGcsIntermediateDataLocation()

public boolean hasGcsIntermediateDataLocation()

Cloud Storage intermediate data location.

.google.storagetransfer.v1.GcsData gcs_intermediate_data_location = 16;

Returns
TypeDescription
boolean

Whether the gcsIntermediateDataLocation field is set.

hasHttpDataSource()

public boolean hasHttpDataSource()

An HTTP URL data source.

.google.storagetransfer.v1.HttpData http_data_source = 3;

Returns
TypeDescription
boolean

Whether the httpDataSource field is set.

hasObjectConditions()

public boolean hasObjectConditions()

Only objects that satisfy these object conditions are included in the set of data source and data sink objects. Object conditions based on objects' "last modification time" do not exclude objects in a data sink.

.google.storagetransfer.v1.ObjectConditions object_conditions = 5;

Returns
TypeDescription
boolean

Whether the objectConditions field is set.

hasPosixDataSink()

public boolean hasPosixDataSink()

A POSIX Filesystem data sink.

.google.storagetransfer.v1.PosixFilesystem posix_data_sink = 13;

Returns
TypeDescription
boolean

Whether the posixDataSink field is set.

hasPosixDataSource()

public boolean hasPosixDataSource()

A POSIX Filesystem data source.

.google.storagetransfer.v1.PosixFilesystem posix_data_source = 14;

Returns
TypeDescription
boolean

Whether the posixDataSource field is set.

hasTransferManifest()

public boolean hasTransferManifest()

A manifest file provides a list of objects to be transferred from the data source. This field points to the location of the manifest file. Otherwise, the entire source bucket is used. ObjectConditions still apply.

.google.storagetransfer.v1.TransferManifest transfer_manifest = 15;

Returns
TypeDescription
boolean

Whether the transferManifest field is set.

hasTransferOptions()

public boolean hasTransferOptions()

If the option delete_objects_unique_in_sink is true and time-based object conditions such as 'last modification time' are specified, the request fails with an INVALID_ARGUMENT error.

.google.storagetransfer.v1.TransferOptions transfer_options = 6;

Returns
TypeDescription
boolean

Whether the transferOptions field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TransferTypes.TransferSpec.Builder newBuilderForType()
Returns
TypeDescription
TransferTypes.TransferSpec.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TransferTypes.TransferSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TransferTypes.TransferSpec.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TransferTypes.TransferSpec.Builder toBuilder()
Returns
TypeDescription
TransferTypes.TransferSpec.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException