public static enum TransferTypes.TransferOptions.OverwriteWhen extends Enum<TransferTypes.TransferOptions.OverwriteWhen> implements com.google.protobuf.ProtocolMessageEnum
Specifies when to overwrite an object in the sink when an object with matching name is found in the source.Protobuf enum
google.storagetransfer.v1.TransferOptions.OverwriteWhen| Enum Constant and Description |
|---|
ALWAYS
Always overwrite the destination object with the source object, even if
the HTTP Etags or checksum values are the same.
|
DIFFERENT
Overwrites destination objects with the source objects, only if the
objects have the same name but different HTTP ETags or checksum values.
|
NEVER
Never overwrites a destination object if a source object has the
same name.
|
OVERWRITE_WHEN_UNSPECIFIED
Overwrite behavior is unspecified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALWAYS_VALUE
Always overwrite the destination object with the source object, even if
the HTTP Etags or checksum values are the same.
|
static int |
DIFFERENT_VALUE
Overwrites destination objects with the source objects, only if the
objects have the same name but different HTTP ETags or checksum values.
|
static int |
NEVER_VALUE
Never overwrites a destination object if a source object has the
same name.
|
static int |
OVERWRITE_WHEN_UNSPECIFIED_VALUE
Overwrite behavior is unspecified.
|
| Modifier and Type | Method and Description |
|---|---|
static TransferTypes.TransferOptions.OverwriteWhen |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<TransferTypes.TransferOptions.OverwriteWhen> |
internalGetValueMap() |
static TransferTypes.TransferOptions.OverwriteWhen |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static TransferTypes.TransferOptions.OverwriteWhen |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TransferTypes.TransferOptions.OverwriteWhen |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransferTypes.TransferOptions.OverwriteWhen[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransferTypes.TransferOptions.OverwriteWhen OVERWRITE_WHEN_UNSPECIFIED
Overwrite behavior is unspecified.
OVERWRITE_WHEN_UNSPECIFIED = 0;public static final TransferTypes.TransferOptions.OverwriteWhen DIFFERENT
Overwrites destination objects with the source objects, only if the objects have the same name but different HTTP ETags or checksum values.
DIFFERENT = 1;public static final TransferTypes.TransferOptions.OverwriteWhen NEVER
Never overwrites a destination object if a source object has the same name. In this case, the source object is not transferred.
NEVER = 2;public static final TransferTypes.TransferOptions.OverwriteWhen ALWAYS
Always overwrite the destination object with the source object, even if the HTTP Etags or checksum values are the same.
ALWAYS = 3;public static final TransferTypes.TransferOptions.OverwriteWhen UNRECOGNIZED
public static final int OVERWRITE_WHEN_UNSPECIFIED_VALUE
Overwrite behavior is unspecified.
OVERWRITE_WHEN_UNSPECIFIED = 0;public static final int DIFFERENT_VALUE
Overwrites destination objects with the source objects, only if the objects have the same name but different HTTP ETags or checksum values.
DIFFERENT = 1;public static final int NEVER_VALUE
Never overwrites a destination object if a source object has the same name. In this case, the source object is not transferred.
NEVER = 2;public static final int ALWAYS_VALUE
Always overwrite the destination object with the source object, even if the HTTP Etags or checksum values are the same.
ALWAYS = 3;public static TransferTypes.TransferOptions.OverwriteWhen[] values()
for (TransferTypes.TransferOptions.OverwriteWhen c : TransferTypes.TransferOptions.OverwriteWhen.values()) System.out.println(c);
public static TransferTypes.TransferOptions.OverwriteWhen valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static TransferTypes.TransferOptions.OverwriteWhen valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static TransferTypes.TransferOptions.OverwriteWhen forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<TransferTypes.TransferOptions.OverwriteWhen> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static TransferTypes.TransferOptions.OverwriteWhen valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.