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
Modifier and TypeMethodDescriptiongetEnumvalue
(int index) Enum value definitions.int
Enum value definitions.Enum value definitions.getEnumvalueOrBuilder
(int index) Enum value definitions.List<? extends EnumValueOrBuilder>
Enum value definitions.getName()
Enum type name.com.google.protobuf.ByteString
Enum type name.getOptions
(int index) Protocol buffer options.int
Protocol buffer options.Protocol buffer options.getOptionsOrBuilder
(int index) Protocol buffer options.List<? extends OptionOrBuilder>
Protocol buffer options.The source context.The source context.The source syntax.int
The source syntax.boolean
The source context.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
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
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueCount
int getEnumvalueCount()Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueOrBuilderList
List<? extends EnumValueOrBuilder> getEnumvalueOrBuilderList()Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getEnumvalueOrBuilder
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
-
getOptionsList
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsCount
int getOptionsCount()Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsOrBuilderList
List<? extends OptionOrBuilder> getOptionsOrBuilderList()Protocol buffer options.
repeated .google.protobuf.Option options = 3;
-
getOptionsOrBuilder
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.
-