/** * Get the field's java type. This is just for convenience. Every * {@code FieldDescriptorProto.Type} maps to exactly one Java type. */ public JavaType getJavaType() { return type.getJavaType(); }
public FieldDescriptorProto.Type toProto() { return FieldDescriptorProto.Type.valueOf(ordinal() + 1); } public JavaType getJavaType() { return javaType; }
type = Type.valueOf(proto.getType());
type = Type.valueOf(proto.getType());
type = Type.valueOf(proto.getType());
public static Type valueOf(final FieldDescriptorProto.Type type) { return values()[type.getNumber() - 1]; } }
public static Type valueOf(final FieldDescriptorProto.Type type) { return values()[type.getNumber() - 1]; } }
public FieldDescriptorProto.Type toProto() { return FieldDescriptorProto.Type.valueOf(ordinal() + 1); } public JavaType getJavaType() { return javaType; }
public static Type valueOf(final FieldDescriptorProto.Type type) { return values()[type.getNumber() - 1]; } }
public FieldDescriptorProto.Type toProto() { return FieldDescriptorProto.Type.valueOf(ordinal() + 1); } public JavaType getJavaType() { return javaType; }
/** For internal use only. */ public WireFormat.FieldType getLiteType() { return table[type.ordinal()]; } // I'm pretty sure values() constructs a new array every time, since there
/** * Get the field's java type. This is just for convenience. Every * {@code FieldDescriptorProto.Type} maps to exactly one Java type. */ public JavaType getJavaType() { return type.getJavaType(); }
/** For internal use only. */ public WireFormat.FieldType getLiteType() { return table[type.ordinal()]; } // I'm pretty sure values() constructs a new array every time, since there
/** For internal use only. */ public WireFormat.FieldType getLiteType() { return table[type.ordinal()]; } // I'm pretty sure values() constructs a new array every time, since there
/** * Get the field's java type. This is just for convenience. Every * {@code FieldDescriptorProto.Type} maps to exactly one Java type. */ public JavaType getJavaType() { return type.getJavaType(); }