com.google.protobuf.DescriptorProtos.EnumOptions Java Examples
The following examples show how to use
com.google.protobuf.DescriptorProtos.EnumOptions.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DescriptorGenerator.java From api-compiler with Apache License 2.0 | 4 votes |
private EnumOptions generateEnumOptions(Enum e) { EnumOptions.Builder builder = EnumOptions.newBuilder(); setOptions(builder, e.getOptionsList(), ENUM_OPTION_NAME_PREFIX); return builder.build(); }
Example #2
Source File: Descriptors.java From play-store-api with GNU General Public License v3.0 | 4 votes |
/** Get the {@code EnumOptions}, defined in {@code descriptor.proto}. */ public EnumOptions getOptions() { return proto.getOptions(); }