Package com.google.protobuf
Interface EnumOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Enum,Enum.Builder
public interface EnumOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetEdition()The source edition string, only valid when syntax is SYNTAX_EDITIONS.com.google.protobuf.ByteStringgetEditionBytes()The source edition string, only valid when syntax is SYNTAX_EDITIONS.EnumValuegetEnumvalue(int index)Enum value definitions.intgetEnumvalueCount()Enum value definitions.java.util.List<EnumValue>getEnumvalueList()Enum value definitions.EnumValueOrBuildergetEnumvalueOrBuilder(int index)Enum value definitions.java.util.List<? extends EnumValueOrBuilder>getEnumvalueOrBuilderList()Enum value definitions.java.lang.StringgetName()Enum type name.com.google.protobuf.ByteStringgetNameBytes()Enum type name.OptiongetOptions(int index)Protocol buffer options.intgetOptionsCount()Protocol buffer options.java.util.List<Option>getOptionsList()Protocol buffer options.OptionOrBuildergetOptionsOrBuilder(int index)Protocol buffer options.java.util.List<? extends OptionOrBuilder>getOptionsOrBuilderList()Protocol buffer options.SourceContextgetSourceContext()The source context.SourceContextOrBuildergetSourceContextOrBuilder()The source context.SyntaxgetSyntax()The source syntax.intgetSyntaxValue()The source syntax.booleanhasSourceContext()The source context.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
java.lang.String getName()
Enum type name.
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Enum type name.
string name = 1;- Returns:
- The bytes for name.
-
getEnumvalueList
java.util.List<EnumValue> getEnumvalueList()
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalue
EnumValue getEnumvalue(int index)
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueCount
int getEnumvalueCount()
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueOrBuilderList
java.util.List<? extends EnumValueOrBuilder> getEnumvalueOrBuilderList()
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueOrBuilder
EnumValueOrBuilder getEnumvalueOrBuilder(int index)
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getOptionsList
java.util.List<Option> getOptionsList()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptions
Option getOptions(int index)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsCount
int getOptionsCount()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsOrBuilderList
java.util.List<? extends OptionOrBuilder> getOptionsOrBuilderList()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsOrBuilder
OptionOrBuilder getOptionsOrBuilder(int index)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
hasSourceContext
boolean hasSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 4;- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
SourceContext getSourceContext()
The source context.
.google.protobuf.SourceContext source_context = 4;- Returns:
- The sourceContext.
-
getSourceContextOrBuilder
SourceContextOrBuilder getSourceContextOrBuilder()
The source context.
.google.protobuf.SourceContext source_context = 4;
-
getSyntaxValue
int getSyntaxValue()
The source syntax.
.google.protobuf.Syntax syntax = 5;- Returns:
- The enum numeric value on the wire for syntax.
-
getSyntax
Syntax getSyntax()
The source syntax.
.google.protobuf.Syntax syntax = 5;- Returns:
- The syntax.
-
getEdition
java.lang.String getEdition()
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Returns:
- The edition.
-
getEditionBytes
com.google.protobuf.ByteString getEditionBytes()
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Returns:
- The bytes for edition.
-
-