public static enum ReplicaInfo.ReplicaType extends Enum<ReplicaInfo.ReplicaType>
Enum Constant and Description |
---|
READ_ONLY |
READ_WRITE |
TYPE_UNSPECIFIED |
WITNESS |
Modifier and Type | Method and Description |
---|---|
static ReplicaInfo.ReplicaType |
fromProto(ReplicaInfo.ReplicaType proto) |
static ReplicaInfo.ReplicaType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReplicaInfo.ReplicaType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReplicaInfo.ReplicaType TYPE_UNSPECIFIED
public static final ReplicaInfo.ReplicaType READ_WRITE
public static final ReplicaInfo.ReplicaType READ_ONLY
public static final ReplicaInfo.ReplicaType WITNESS
public static ReplicaInfo.ReplicaType[] values()
for (ReplicaInfo.ReplicaType c : ReplicaInfo.ReplicaType.values()) System.out.println(c);
public static ReplicaInfo.ReplicaType 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 static ReplicaInfo.ReplicaType fromProto(ReplicaInfo.ReplicaType proto)
Copyright © 2022 Google LLC. All rights reserved.