public static enum TransactionOptions.ModeCase extends Enum<TransactionOptions.ModeCase> implements Internal.EnumLite, AbstractMessageLite.InternalOneOfEnum
Enum Constant and Description |
---|
MODE_NOT_SET |
PARTITIONED_DML |
READ_ONLY |
READ_WRITE |
Modifier and Type | Method and Description |
---|---|
static TransactionOptions.ModeCase |
forNumber(int value) |
int |
getNumber() |
static TransactionOptions.ModeCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TransactionOptions.ModeCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionOptions.ModeCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionOptions.ModeCase READ_WRITE
public static final TransactionOptions.ModeCase PARTITIONED_DML
public static final TransactionOptions.ModeCase READ_ONLY
public static final TransactionOptions.ModeCase MODE_NOT_SET
public static TransactionOptions.ModeCase[] values()
for (TransactionOptions.ModeCase c : TransactionOptions.ModeCase.values()) System.out.println(c);
public static TransactionOptions.ModeCase 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 null@Deprecated public static TransactionOptions.ModeCase valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static TransactionOptions.ModeCase forNumber(int value)
public int getNumber()
getNumber
in interface AbstractMessageLite.InternalOneOfEnum
getNumber
in interface Internal.EnumLite
Copyright © 2022 Google LLC. All rights reserved.