public static final class DescriptorProtos.EnumValueOptions.Builder extends GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.EnumValueOptions,DescriptorProtos.EnumValueOptions.Builder> implements DescriptorProtos.EnumValueOptionsOrBuilder
Protobuf type google.protobuf.EnumValueOptions
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
<Type>addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,List<Type>> extension, Type value)
public DescriptorProtos.EnumValueOptions.Builder <Type>addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,List<Type>> extension, Type value)
Append a value to a repeated extension.
Overrides
<Type>clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,?> extension)
public DescriptorProtos.EnumValueOptions.Builder <Type>clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,?> extension)
Overrides
<Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,Type> extension, Type value)
public DescriptorProtos.EnumValueOptions.Builder <Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,Type> extension, Type value)
Set the value of an extension.
Overrides
<Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,List<Type>> extension, int index, Type value)
public DescriptorProtos.EnumValueOptions.Builder <Type>setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.EnumValueOptions,List<Type>> extension, int index, Type value)
Set the value of one element of a repeated extension.
Overrides
addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
public DescriptorProtos.EnumValueOptions.Builder addAllUninterpretedOption(Iterable<? extends DescriptorProtos.UninterpretedOption> values)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.protobuf.DescriptorProtos.UninterpretedOption>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.EnumValueOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.EnumValueOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.EnumValueOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.EnumValueOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.EnumValueOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
addUninterpretedOptionBuilder()
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
addUninterpretedOptionBuilder(int index)
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
index |
int
|
build()
public DescriptorProtos.EnumValueOptions build()
buildPartial()
public DescriptorProtos.EnumValueOptions buildPartial()
clear()
public DescriptorProtos.EnumValueOptions.Builder clear()
Called by the initialization and clear code paths to allow subclasses to
reset any of their builtin fields back to the initial values.
Overrides
clearDeprecated()
public DescriptorProtos.EnumValueOptions.Builder clearDeprecated()
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
clearField(Descriptors.FieldDescriptor field)
public DescriptorProtos.EnumValueOptions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public DescriptorProtos.EnumValueOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
TODO(jieluo): Clear it when all subclasses have implemented this method.
Overrides
clearUninterpretedOption()
public DescriptorProtos.EnumValueOptions.Builder clearUninterpretedOption()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
clone()
public DescriptorProtos.EnumValueOptions.Builder clone()
Overrides
getDefaultInstanceForType()
public DescriptorProtos.EnumValueOptions getDefaultInstanceForType()
Get an instance of the type with no fields set. Because no fields are set, all getters for
singular fields will return default values and repeated fields will appear empty. This may or
may not be a singleton. This differs from the getDefaultInstance()
method of generated
message classes in that this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific class. They return the
same thing.
getDeprecated()
public boolean getDeprecated()
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns |
Type |
Description |
boolean |
The deprecated.
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Get the message's type's descriptor. This differs from the getDescriptor()
method of
generated message classes in that this method is an abstract method of the Message
interface whereas getDescriptor()
is a static method of a specific class. They return
the same thing.
Overrides
getUninterpretedOption(int index)
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
index |
int
|
getUninterpretedOptionBuilder(int index)
public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
index |
int
|
getUninterpretedOptionBuilderList()
public List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
getUninterpretedOptionCount()
public int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns |
Type |
Description |
int |
|
getUninterpretedOptionList()
public List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
getUninterpretedOptionOrBuilder(int index)
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
index |
int
|
getUninterpretedOptionOrBuilderList()
public List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Returns |
Type |
Description |
List<? extends com.google.protobuf.DescriptorProtos.UninterpretedOptionOrBuilder> |
|
hasDeprecated()
public boolean hasDeprecated()
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Returns |
Type |
Description |
boolean |
Whether the deprecated field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type. We can't have the message
class pass this in to the constructor because of bootstrapping trouble
with DescriptorProtos.
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public DescriptorProtos.EnumValueOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Like Builder#mergeFrom(CodedInputStream), but also parses extensions. The extensions
that you want to be able to parse must be registered in extensionRegistry
. Extensions
not in the registry will be treated as unknown fields.
Overrides
mergeFrom(DescriptorProtos.EnumValueOptions other)
public DescriptorProtos.EnumValueOptions.Builder mergeFrom(DescriptorProtos.EnumValueOptions other)
mergeFrom(Message other)
public DescriptorProtos.EnumValueOptions.Builder mergeFrom(Message other)
Merge other
into the message being built. other
must have the exact same type
as this
(i.e. getDescriptorForType() == other.getDescriptorForType()
).
Merging occurs as follows. For each field:
- For singular primitive fields, if the field is set in
other
, then other
's
value overwrites the value in this message.
- For singular message fields, if the field is set in
other
, it is merged into the
corresponding sub-message of this message using the same merging rules.
- For repeated fields, the elements in
other
are concatenated with the elements in
this message.
For oneof groups, if the other message has one of the fields set, the group of this message
is cleared and replaced by the field of the other message, so that the oneof constraint is
preserved.
This is equivalent to the Message::MergeFrom
method in C++.
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.EnumValueOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeUninterpretedOption(int index)
public DescriptorProtos.EnumValueOptions.Builder removeUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
Parameter |
Name |
Description |
index |
int
|
setDeprecated(boolean value)
public DescriptorProtos.EnumValueOptions.Builder setDeprecated(boolean value)
Is this enum value deprecated?
Depending on the target platform, this can emit Deprecated annotations
for the enum value, or it will be completely ignored; in the very least,
this is a formalization for deprecating enum values.
optional bool deprecated = 1 [default = false];
Parameter |
Name |
Description |
value |
boolean
The deprecated to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public DescriptorProtos.EnumValueOptions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DescriptorProtos.EnumValueOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
public DescriptorProtos.EnumValueOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
public DescriptorProtos.EnumValueOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
setUnknownFields(UnknownFieldSet unknownFields)
public final DescriptorProtos.EnumValueOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides