public static enum FileDescriptor.Syntax extends Enum<FileDescriptor.Syntax>
| Modifier and Type | Method and Description |
|---|---|
static FileDescriptor.Syntax |
fromString(String syntax) |
String |
toString() |
static FileDescriptor.Syntax |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileDescriptor.Syntax[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileDescriptor.Syntax PROTO2
public static final FileDescriptor.Syntax PROTO3
public static FileDescriptor.Syntax[] values()
for (FileDescriptor.Syntax c : FileDescriptor.Syntax.values()) System.out.println(c);
public static FileDescriptor.Syntax 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 FileDescriptor.Syntax fromString(String syntax)
public String toString()
toString in class Enum<FileDescriptor.Syntax>Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.