Interface EnumOrBuilder (3.19.4)
Stay organized with collections
Save and categorize content based on your preferences.
public
interface
EnumOrBuilder
extends
MessageLiteOrBuilder
Methods
getEnumvalue(int index)
public
abstract
EnumValue
getEnumvalue
(
int
index
)
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
getEnumvalueCount()
public
abstract
int
getEnumvalueCount
()
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
getEnumvalueList()
public
abstract
List<EnumValue>
getEnumvalueList
()
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;
getName()
public
abstract
String
getName
()
Enum type name.
string name = 1;
getNameBytes()
public
abstract
ByteString
getNameBytes
()
Enum type name.
string name = 1;
getOptions(int index)
public
abstract
Option
getOptions
(
int
index
)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
getOptionsCount()
public
abstract
int
getOptionsCount
()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
getOptionsList()
public
abstract
List<Option>
getOptionsList
()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
getSourceContext()
public
abstract
SourceContext
getSourceContext
()
The source context.
.google.protobuf.SourceContext source_context = 4;
getSyntax()
public
abstract
Syntax
getSyntax
()
The source syntax.
.google.protobuf.Syntax syntax = 5;
getSyntaxValue()
public
abstract
int
getSyntaxValue
()
The source syntax.
.google.protobuf.Syntax syntax = 5;
The enum numeric value on the wire for syntax.
hasSourceContext()
public
abstract
boolean
hasSourceContext
()
The source context.
.google.protobuf.SourceContext source_context = 4;
Whether the sourceContext field is set.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Interface EnumOrBuilder (3.19.4)\n\n public interface EnumOrBuilder extends MessageLiteOrBuilder\n\nImplements\n----------\n\n[MessageLiteOrBuilder](/java/docs/reference/protobuf/latest/com.google.protobuf.MessageLiteOrBuilder)\n\nMethods\n-------\n\n### getEnumvalue(int index)\n\n public abstract EnumValue getEnumvalue(int index)\n\nEnum value definitions.\n\n`repeated .google.protobuf.EnumValue enumvalue = 2;`\n\n### getEnumvalueCount()\n\n public abstract int getEnumvalueCount()\n\nEnum value definitions.\n\n`repeated .google.protobuf.EnumValue enumvalue = 2;`\n\n### getEnumvalueList()\n\n public abstract List\u003cEnumValue\u003e getEnumvalueList()\n\nEnum value definitions.\n\n`repeated .google.protobuf.EnumValue enumvalue = 2;`\n\n### getName()\n\n public abstract String getName()\n\nEnum type name.\n\n`string name = 1;`\n\n### getNameBytes()\n\n public abstract ByteString getNameBytes()\n\nEnum type name.\n\n`string name = 1;`\n\n### getOptions(int index)\n\n public abstract Option getOptions(int index)\n\nProtocol buffer options.\n\n`repeated .google.protobuf.Option options = 3;`\n\n### getOptionsCount()\n\n public abstract int getOptionsCount()\n\nProtocol buffer options.\n\n`repeated .google.protobuf.Option options = 3;`\n\n### getOptionsList()\n\n public abstract List\u003cOption\u003e getOptionsList()\n\nProtocol buffer options.\n\n`repeated .google.protobuf.Option options = 3;`\n\n### getSourceContext()\n\n public abstract SourceContext getSourceContext()\n\nThe source context.\n\n`.google.protobuf.SourceContext source_context = 4;`\n\n### getSyntax()\n\n public abstract Syntax getSyntax()\n\nThe source syntax.\n\n`.google.protobuf.Syntax syntax = 5;`\n\n### getSyntaxValue()\n\n public abstract int getSyntaxValue()\n\nThe source syntax.\n\n`.google.protobuf.Syntax syntax = 5;`\n\n### hasSourceContext()\n\n public abstract boolean hasSourceContext()\n\nThe source context.\n\n`.google.protobuf.SourceContext source_context = 4;`"]]