public static enum CommitRequest.Mode extends Enum<CommitRequest.Mode> implements com.google.protobuf.ProtocolMessageEnum
The modes available for commits.Protobuf enum
google.datastore.v1.CommitRequest.Mode
Enum Constant and Description |
---|
MODE_UNSPECIFIED
Unspecified.
|
NON_TRANSACTIONAL
Non-transactional: The mutations may not apply as all or none.
|
TRANSACTIONAL
Transactional: The mutations are either all applied, or none are applied.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
MODE_UNSPECIFIED_VALUE
Unspecified.
|
static int |
NON_TRANSACTIONAL_VALUE
Non-transactional: The mutations may not apply as all or none.
|
static int |
TRANSACTIONAL_VALUE
Transactional: The mutations are either all applied, or none are applied.
|
Modifier and Type | Method and Description |
---|---|
static CommitRequest.Mode |
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<CommitRequest.Mode> |
internalGetValueMap() |
static CommitRequest.Mode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static CommitRequest.Mode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static CommitRequest.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommitRequest.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommitRequest.Mode MODE_UNSPECIFIED
Unspecified. This value must not be used.
MODE_UNSPECIFIED = 0;
public static final CommitRequest.Mode TRANSACTIONAL
Transactional: The mutations are either all applied, or none are applied. Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
TRANSACTIONAL = 1;
public static final CommitRequest.Mode NON_TRANSACTIONAL
Non-transactional: The mutations may not apply as all or none.
NON_TRANSACTIONAL = 2;
public static final CommitRequest.Mode UNRECOGNIZED
public static final int MODE_UNSPECIFIED_VALUE
Unspecified. This value must not be used.
MODE_UNSPECIFIED = 0;
public static final int TRANSACTIONAL_VALUE
Transactional: The mutations are either all applied, or none are applied. Learn about transactions [here](https://cloud.google.com/datastore/docs/concepts/transactions).
TRANSACTIONAL = 1;
public static final int NON_TRANSACTIONAL_VALUE
Non-transactional: The mutations may not apply as all or none.
NON_TRANSACTIONAL = 2;
public static CommitRequest.Mode[] values()
for (CommitRequest.Mode c : CommitRequest.Mode.values()) System.out.println(c);
public static CommitRequest.Mode 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.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static CommitRequest.Mode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static CommitRequest.Mode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<CommitRequest.Mode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static CommitRequest.Mode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.