Package com.google.protobuf
Class Enum.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Enum,Enum.Builder>
com.google.protobuf.Enum.Builder
- All Implemented Interfaces:
EnumOrBuilder,MessageLite.Builder,MessageLiteOrBuilder,Cloneable
- Enclosing class:
- Enum
public static final class Enum.Builder
extends GeneratedMessageLite.Builder<Enum,Enum.Builder>
implements EnumOrBuilder
Enum type definition.Protobuf type
google.protobuf.Enum-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream -
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllEnumvalue(Iterable<? extends EnumValue> values) Enum value definitions.addAllOptions(Iterable<? extends Option> values) Protocol buffer options.addEnumvalue(int index, EnumValue value) Enum value definitions.addEnumvalue(int index, EnumValue.Builder builderForValue) Enum value definitions.addEnumvalue(EnumValue value) Enum value definitions.addEnumvalue(EnumValue.Builder builderForValue) Enum value definitions.addOptions(int index, Option value) Protocol buffer options.addOptions(int index, Option.Builder builderForValue) Protocol buffer options.addOptions(Option value) Protocol buffer options.addOptions(Option.Builder builderForValue) Protocol buffer options.The source edition string, only valid when syntax is SYNTAX_EDITIONS.Enum value definitions.Enum type name.Protocol buffer options.The source context.The source syntax.The source edition string, only valid when syntax is SYNTAX_EDITIONS.The source edition string, only valid when syntax is SYNTAX_EDITIONS.getEnumvalue(int index) Enum value definitions.intEnum value definitions.Enum value definitions.getName()Enum type name.Enum type name.getOptions(int index) Protocol buffer options.intProtocol buffer options.Protocol buffer options.The source context.The source syntax.intThe source syntax.booleanThe source context.mergeSourceContext(SourceContext value) The source context.removeEnumvalue(int index) Enum value definitions.removeOptions(int index) Protocol buffer options.setEdition(String value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.setEditionBytes(ByteString value) The source edition string, only valid when syntax is SYNTAX_EDITIONS.setEnumvalue(int index, EnumValue value) Enum value definitions.setEnumvalue(int index, EnumValue.Builder builderForValue) Enum value definitions.Enum type name.setNameBytes(ByteString value) Enum type name.setOptions(int index, Option value) Protocol buffer options.setOptions(int index, Option.Builder builderForValue) Protocol buffer options.setSourceContext(SourceContext value) The source context.setSourceContext(SourceContext.Builder builderForValue) The source context.The source syntax.setSyntaxValue(int value) The source syntax.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
getName
Enum type name.
string name = 1;- Specified by:
getNamein interfaceEnumOrBuilder- Returns:
- The name.
-
getNameBytes
Enum type name.
string name = 1;- Specified by:
getNameBytesin interfaceEnumOrBuilder- Returns:
- The bytes for name.
-
setName
Enum type name.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Enum type name.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Enum type name.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getEnumvalueList
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;- Specified by:
getEnumvalueListin interfaceEnumOrBuilder
-
getEnumvalueCount
public int getEnumvalueCount()Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;- Specified by:
getEnumvalueCountin interfaceEnumOrBuilder
-
getEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2;- Specified by:
getEnumvaluein interfaceEnumOrBuilder
-
setEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
setEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
addEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
addEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
addEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
addEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
addAllEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
clearEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
removeEnumvalue
Enum value definitions.
repeated .google.protobuf.EnumValue enumvalue = 2; -
getOptionsList
Protocol buffer options.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsListin interfaceEnumOrBuilder
-
getOptionsCount
public int getOptionsCount()Protocol buffer options.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsCountin interfaceEnumOrBuilder
-
getOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3;- Specified by:
getOptionsin interfaceEnumOrBuilder
-
setOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
setOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
addOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
addOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
addOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
addOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
addAllOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
clearOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
removeOptions
Protocol buffer options.
repeated .google.protobuf.Option options = 3; -
hasSourceContext
public boolean hasSourceContext()The source context.
.google.protobuf.SourceContext source_context = 4;- Specified by:
hasSourceContextin interfaceEnumOrBuilder- Returns:
- Whether the sourceContext field is set.
-
getSourceContext
The source context.
.google.protobuf.SourceContext source_context = 4;- Specified by:
getSourceContextin interfaceEnumOrBuilder- Returns:
- The sourceContext.
-
setSourceContext
The source context.
.google.protobuf.SourceContext source_context = 4; -
setSourceContext
The source context.
.google.protobuf.SourceContext source_context = 4; -
mergeSourceContext
The source context.
.google.protobuf.SourceContext source_context = 4; -
clearSourceContext
The source context.
.google.protobuf.SourceContext source_context = 4; -
getSyntaxValue
public int getSyntaxValue()The source syntax.
.google.protobuf.Syntax syntax = 5;- Specified by:
getSyntaxValuein interfaceEnumOrBuilder- Returns:
- The enum numeric value on the wire for syntax.
-
setSyntaxValue
The source syntax.
.google.protobuf.Syntax syntax = 5;- Parameters:
value- The syntax to set.- Returns:
- This builder for chaining.
-
getSyntax
The source syntax.
.google.protobuf.Syntax syntax = 5;- Specified by:
getSyntaxin interfaceEnumOrBuilder- Returns:
- The syntax.
-
setSyntax
The source syntax.
.google.protobuf.Syntax syntax = 5;- Parameters:
value- The enum numeric value on the wire for syntax to set.- Returns:
- This builder for chaining.
-
clearSyntax
The source syntax.
.google.protobuf.Syntax syntax = 5;- Returns:
- This builder for chaining.
-
getEdition
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Specified by:
getEditionin interfaceEnumOrBuilder- Returns:
- The edition.
-
getEditionBytes
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Specified by:
getEditionBytesin interfaceEnumOrBuilder- Returns:
- The bytes for edition.
-
setEdition
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Parameters:
value- The edition to set.- Returns:
- This builder for chaining.
-
clearEdition
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Returns:
- This builder for chaining.
-
setEditionBytes
The source edition string, only valid when syntax is SYNTAX_EDITIONS.
string edition = 6;- Parameters:
value- The bytes for edition to set.- Returns:
- This builder for chaining.
-