public static enum Descriptors.FieldDescriptor.Type extends java.lang.Enum<Descriptors.FieldDescriptor.Type>
Enum Constant and Description |
---|
BOOL |
BYTES |
DOUBLE |
ENUM |
FIXED32 |
FIXED64 |
FLOAT |
GROUP |
INT32 |
INT64 |
MESSAGE |
SFIXED32 |
SFIXED64 |
SINT32 |
SINT64 |
STRING |
UINT32 |
UINT64 |
Modifier and Type | Method and Description |
---|---|
Descriptors.FieldDescriptor.JavaType |
getJavaType() |
DescriptorProtos.FieldDescriptorProto.Type |
toProto() |
static Descriptors.FieldDescriptor.Type |
valueOf(DescriptorProtos.FieldDescriptorProto.Type type) |
static Descriptors.FieldDescriptor.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Descriptors.FieldDescriptor.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Descriptors.FieldDescriptor.Type DOUBLE
public static final Descriptors.FieldDescriptor.Type FLOAT
public static final Descriptors.FieldDescriptor.Type INT64
public static final Descriptors.FieldDescriptor.Type UINT64
public static final Descriptors.FieldDescriptor.Type INT32
public static final Descriptors.FieldDescriptor.Type FIXED64
public static final Descriptors.FieldDescriptor.Type FIXED32
public static final Descriptors.FieldDescriptor.Type BOOL
public static final Descriptors.FieldDescriptor.Type STRING
public static final Descriptors.FieldDescriptor.Type GROUP
public static final Descriptors.FieldDescriptor.Type MESSAGE
public static final Descriptors.FieldDescriptor.Type BYTES
public static final Descriptors.FieldDescriptor.Type UINT32
public static final Descriptors.FieldDescriptor.Type ENUM
public static final Descriptors.FieldDescriptor.Type SFIXED32
public static final Descriptors.FieldDescriptor.Type SFIXED64
public static final Descriptors.FieldDescriptor.Type SINT32
public static final Descriptors.FieldDescriptor.Type SINT64
public static Descriptors.FieldDescriptor.Type[] values()
for (Descriptors.FieldDescriptor.Type c : Descriptors.FieldDescriptor.Type.values()) System.out.println(c);
public static Descriptors.FieldDescriptor.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic DescriptorProtos.FieldDescriptorProto.Type toProto()
public Descriptors.FieldDescriptor.JavaType getJavaType()
public static Descriptors.FieldDescriptor.Type valueOf(DescriptorProtos.FieldDescriptorProto.Type type)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.