public static final class EnumValue.Builder extends GeneratedMessageLite.Builder<EnumValue,EnumValue.Builder> implements EnumValueOrBuilder
Enum value definition.
Protobuf type google.protobuf.EnumValue
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > GeneratedMessageLite.Builder > EnumValue.BuilderImplements
EnumValueOrBuilderMethods
addAllOptions(Iterable<? extends Option> values)
public EnumValue.Builder addAllOptions(Iterable<? extends Option> values)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.protobuf.Option> |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
addOptions(Option value)
public EnumValue.Builder addOptions(Option value)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameter | |
---|---|
Name | Description |
value |
Option |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
addOptions(Option.Builder builderForValue)
public EnumValue.Builder addOptions(Option.Builder builderForValue)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Option.Builder |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
addOptions(int index, Option value)
public EnumValue.Builder addOptions(int index, Option value)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Option |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
addOptions(int index, Option.Builder builderForValue)
public EnumValue.Builder addOptions(int index, Option.Builder builderForValue)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Option.Builder |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
clearName()
public EnumValue.Builder clearName()
Enum value name.
string name = 1;
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
This builder for chaining. |
clearNumber()
public EnumValue.Builder clearNumber()
Enum value number.
int32 number = 2;
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
This builder for chaining. |
clearOptions()
public EnumValue.Builder clearOptions()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
getName()
public String getName()
Enum value name.
string name = 1;
Returns | |
---|---|
Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()
Enum value name.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for name. |
getNumber()
public int getNumber()
Enum value number.
int32 number = 2;
Returns | |
---|---|
Type | Description |
int |
The number. |
getOptions(int index)
public Option getOptions(int index)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Option |
getOptionsCount()
public int getOptionsCount()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Returns | |
---|---|
Type | Description |
int |
getOptionsList()
public List<Option> getOptionsList()
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Returns | |
---|---|
Type | Description |
List<Option> |
removeOptions(int index)
public EnumValue.Builder removeOptions(int index)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
setName(String value)
public EnumValue.Builder setName(String value)
Enum value name.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
String The name to set. |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public EnumValue.Builder setNameBytes(ByteString value)
Enum value name.
string name = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
This builder for chaining. |
setNumber(int value)
public EnumValue.Builder setNumber(int value)
Enum value number.
int32 number = 2;
Parameter | |
---|---|
Name | Description |
value |
int The number to set. |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
This builder for chaining. |
setOptions(int index, Option value)
public EnumValue.Builder setOptions(int index, Option value)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Option |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |
setOptions(int index, Option.Builder builderForValue)
public EnumValue.Builder setOptions(int index, Option.Builder builderForValue)
Protocol buffer options.
repeated .google.protobuf.Option options = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Option.Builder |
Returns | |
---|---|
Type | Description |
EnumValue.Builder |