public static final class TransferTypes.MetadataOptions extends GeneratedMessageV3 implements TransferTypes.MetadataOptionsOrBuilder
Specifies the metadata options for running a transfer.
Protobuf type google.storagetransfer.v1.MetadataOptions
Static Fields
public static final int ACL_FIELD_NUMBER
Field Value
public static final int GID_FIELD_NUMBER
Field Value
public static final int KMS_KEY_FIELD_NUMBER
Field Value
public static final int MODE_FIELD_NUMBER
Field Value
public static final int STORAGE_CLASS_FIELD_NUMBER
Field Value
public static final int SYMLINK_FIELD_NUMBER
Field Value
public static final int TEMPORARY_HOLD_FIELD_NUMBER
Field Value
public static final int TIME_CREATED_FIELD_NUMBER
Field Value
public static final int UID_FIELD_NUMBER
Field Value
Static Methods
public static TransferTypes.MetadataOptions getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TransferTypes.MetadataOptions.Builder newBuilder()
Returns
public static TransferTypes.MetadataOptions.Builder newBuilder(TransferTypes.MetadataOptions prototype)
Parameter
Returns
public static TransferTypes.MetadataOptions parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.MetadataOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TransferTypes.MetadataOptions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TransferTypes.MetadataOptions> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public TransferTypes.MetadataOptions.Acl getAcl()
Specifies how each object's ACLs should be preserved for transfers between
Google Cloud Storage buckets. If unspecified, the default behavior is the
same as ACL_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.Acl acl = 5;
Returns
Specifies how each object's ACLs should be preserved for transfers between
Google Cloud Storage buckets. If unspecified, the default behavior is the
same as ACL_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.Acl acl = 5;
Returns
Type |
Description |
int |
The enum numeric value on the wire for acl.
|
public TransferTypes.MetadataOptions getDefaultInstanceForType()
Returns
public TransferTypes.MetadataOptions.GID getGid()
Specifies how each file's POSIX group ID (GID) attribute should be handled
by the transfer. By default, GID is not preserved. Only applicable to
transfers involving POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.GID gid = 3;
Returns
Specifies how each file's POSIX group ID (GID) attribute should be handled
by the transfer. By default, GID is not preserved. Only applicable to
transfers involving POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.GID gid = 3;
Returns
Type |
Description |
int |
The enum numeric value on the wire for gid.
|
public TransferTypes.MetadataOptions.KmsKey getKmsKey()
Specifies how each object's Cloud KMS customer-managed encryption key
(CMEK) is preserved for transfers between Google Cloud Storage buckets. If
unspecified, the default behavior is the same as
KMS_KEY_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.KmsKey kms_key = 8;
Returns
public int getKmsKeyValue()
Specifies how each object's Cloud KMS customer-managed encryption key
(CMEK) is preserved for transfers between Google Cloud Storage buckets. If
unspecified, the default behavior is the same as
KMS_KEY_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.KmsKey kms_key = 8;
Returns
Type |
Description |
int |
The enum numeric value on the wire for kmsKey.
|
public TransferTypes.MetadataOptions.Mode getMode()
Specifies how each file's mode attribute should be handled by the transfer.
By default, mode is not preserved. Only applicable to transfers involving
POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.Mode mode = 2;
Returns
public int getModeValue()
Specifies how each file's mode attribute should be handled by the transfer.
By default, mode is not preserved. Only applicable to transfers involving
POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.Mode mode = 2;
Returns
Type |
Description |
int |
The enum numeric value on the wire for mode.
|
public Parser<TransferTypes.MetadataOptions> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public TransferTypes.MetadataOptions.StorageClass getStorageClass()
Specifies the storage class to set on objects being transferred to Google
Cloud Storage buckets. If unspecified, the default behavior is the same as
STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.StorageClass storage_class = 6;
Returns
public int getStorageClassValue()
Specifies the storage class to set on objects being transferred to Google
Cloud Storage buckets. If unspecified, the default behavior is the same as
STORAGE_CLASS_DESTINATION_BUCKET_DEFAULT.
.google.storagetransfer.v1.MetadataOptions.StorageClass storage_class = 6;
Returns
Type |
Description |
int |
The enum numeric value on the wire for storageClass.
|
public TransferTypes.MetadataOptions.Symlink getSymlink()
Specifies how symlinks should be handled by the transfer. By default,
symlinks are not preserved. Only applicable to transfers involving
POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.Symlink symlink = 1;
Returns
public int getSymlinkValue()
Specifies how symlinks should be handled by the transfer. By default,
symlinks are not preserved. Only applicable to transfers involving
POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.Symlink symlink = 1;
Returns
Type |
Description |
int |
The enum numeric value on the wire for symlink.
|
public TransferTypes.MetadataOptions.TemporaryHold getTemporaryHold()
Specifies how each object's temporary hold status should be preserved for
transfers between Google Cloud Storage buckets. If unspecified, the
default behavior is the same as
TEMPORARY_HOLD_PRESERVE.
.google.storagetransfer.v1.MetadataOptions.TemporaryHold temporary_hold = 7;
Returns
public int getTemporaryHoldValue()
Specifies how each object's temporary hold status should be preserved for
transfers between Google Cloud Storage buckets. If unspecified, the
default behavior is the same as
TEMPORARY_HOLD_PRESERVE.
.google.storagetransfer.v1.MetadataOptions.TemporaryHold temporary_hold = 7;
Returns
Type |
Description |
int |
The enum numeric value on the wire for temporaryHold.
|
public TransferTypes.MetadataOptions.TimeCreated getTimeCreated()
Specifies how each object's timeCreated
metadata is preserved for
transfers between Google Cloud Storage buckets. If unspecified, the
default behavior is the same as
TIME_CREATED_SKIP.
.google.storagetransfer.v1.MetadataOptions.TimeCreated time_created = 9;
Returns
public int getTimeCreatedValue()
Specifies how each object's timeCreated
metadata is preserved for
transfers between Google Cloud Storage buckets. If unspecified, the
default behavior is the same as
TIME_CREATED_SKIP.
.google.storagetransfer.v1.MetadataOptions.TimeCreated time_created = 9;
Returns
Type |
Description |
int |
The enum numeric value on the wire for timeCreated.
|
public TransferTypes.MetadataOptions.UID getUid()
Specifies how each file's POSIX user ID (UID) attribute should be handled
by the transfer. By default, UID is not preserved. Only applicable to
transfers involving POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.UID uid = 4;
Returns
Specifies how each file's POSIX user ID (UID) attribute should be handled
by the transfer. By default, UID is not preserved. Only applicable to
transfers involving POSIX file systems, and ignored for other transfers.
.google.storagetransfer.v1.MetadataOptions.UID uid = 4;
Returns
Type |
Description |
int |
The enum numeric value on the wire for uid.
|
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TransferTypes.MetadataOptions.Builder newBuilderForType()
Returns
protected TransferTypes.MetadataOptions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TransferTypes.MetadataOptions.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions