public static final class DescriptorProtos.EnumValueDescriptorProto.Builder extends GeneratedMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder> implements DescriptorProtos.EnumValueDescriptorProtoOrBuilder
google.protobuf.EnumValueDescriptorProto
Describes a value within an enum.
| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.EnumValueDescriptorProto |
build()
Constructs the message based on the state of the Builder.
|
DescriptorProtos.EnumValueDescriptorProto |
buildPartial()
Like
MessageLite.Builder.build(), but does not throw an exception if the message
is missing required fields. |
DescriptorProtos.EnumValueDescriptorProto.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.
|
DescriptorProtos.EnumValueDescriptorProto.Builder |
clearName()
optional string name = 1; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
clearNumber()
optional int32 number = 2; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
clearOptions()
optional .google.protobuf.EnumValueOptions options = 3; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
clone()
Clones the Builder.
|
DescriptorProtos.EnumValueDescriptorProto |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType()
Get the message's type's descriptor.
|
java.lang.String |
getName()
optional string name = 1; |
ByteString |
getNameBytes()
optional string name = 1; |
int |
getNumber()
optional int32 number = 2; |
DescriptorProtos.EnumValueOptions |
getOptions()
optional .google.protobuf.EnumValueOptions options = 3; |
DescriptorProtos.EnumValueOptions.Builder |
getOptionsBuilder()
optional .google.protobuf.EnumValueOptions options = 3; |
DescriptorProtos.EnumValueOptionsOrBuilder |
getOptionsOrBuilder()
optional .google.protobuf.EnumValueOptions options = 3; |
boolean |
hasName()
optional string name = 1; |
boolean |
hasNumber()
optional int32 number = 2; |
boolean |
hasOptions()
optional .google.protobuf.EnumValueOptions options = 3; |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
DescriptorProtos.EnumValueDescriptorProto.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry)
Like
MessageLite.Builder.mergeFrom(CodedInputStream), but also
parses extensions. |
DescriptorProtos.EnumValueDescriptorProto.Builder |
mergeFrom(DescriptorProtos.EnumValueDescriptorProto other) |
DescriptorProtos.EnumValueDescriptorProto.Builder |
mergeFrom(Message other)
Merge
other into the message being built. |
DescriptorProtos.EnumValueDescriptorProto.Builder |
mergeOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
setName(java.lang.String value)
optional string name = 1; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
setNumber(int value)
optional int32 number = 2; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
setOptions(DescriptorProtos.EnumValueOptions.Builder builderForValue)
optional .google.protobuf.EnumValueOptions options = 3; |
DescriptorProtos.EnumValueDescriptorProto.Builder |
setOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3; |
addRepeatedField, clearField, getAllFields, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, mergeUnknownFields, newBuilderForField, setField, setRepeatedField, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFromequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasFieldpublic static final Descriptors.Descriptor getDescriptor()
public DescriptorProtos.EnumValueDescriptorProto.Builder clear()
GeneratedMessage.Builderclear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>public DescriptorProtos.EnumValueDescriptorProto.Builder clone()
MessageLite.Builderclone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>Object.clone()public Descriptors.Descriptor getDescriptorForType()
Message.BuilderMessageOrBuilder.getDescriptorForType().getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>public DescriptorProtos.EnumValueDescriptorProto getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() 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.getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto build()
MessageLite.Builderbuild in interface Message.Builderbuild in interface MessageLite.Builderpublic DescriptorProtos.EnumValueDescriptorProto buildPartial()
MessageLite.BuilderMessageLite.Builder.build(), but does not throw an exception if the message
is missing required fields. Instead, a partial message is returned.
Subsequent changes to the Builder will not affect the returned message.buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic DescriptorProtos.EnumValueDescriptorProto.Builder mergeFrom(Message other)
Message.Builderother 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:other,
then other's value overwrites the value in this message.other,
it is merged into the corresponding sub-message of this message
using the same merging rules.other are concatenated
with the elements in this message.
This is equivalent to the Message::MergeFrom method in C++.mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>public DescriptorProtos.EnumValueDescriptorProto.Builder mergeFrom(DescriptorProtos.EnumValueDescriptorProto other)
public final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>public DescriptorProtos.EnumValueDescriptorProto.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
MessageLite.BuilderMessageLite.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.mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<DescriptorProtos.EnumValueDescriptorProto.Builder>java.io.IOExceptionpublic boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic java.lang.String getName()
optional string name = 1;getName in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;public DescriptorProtos.EnumValueDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.EnumValueDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1;public boolean hasNumber()
optional int32 number = 2;hasNumber in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic int getNumber()
optional int32 number = 2;getNumber in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto.Builder setNumber(int value)
optional int32 number = 2;public DescriptorProtos.EnumValueDescriptorProto.Builder clearNumber()
optional int32 number = 2;public boolean hasOptions()
optional .google.protobuf.EnumValueOptions options = 3;hasOptions in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueOptions getOptions()
optional .google.protobuf.EnumValueOptions options = 3;getOptions in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilderpublic DescriptorProtos.EnumValueDescriptorProto.Builder setOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3;public DescriptorProtos.EnumValueDescriptorProto.Builder setOptions(DescriptorProtos.EnumValueOptions.Builder builderForValue)
optional .google.protobuf.EnumValueOptions options = 3;public DescriptorProtos.EnumValueDescriptorProto.Builder mergeOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3;public DescriptorProtos.EnumValueDescriptorProto.Builder clearOptions()
optional .google.protobuf.EnumValueOptions options = 3;public DescriptorProtos.EnumValueOptions.Builder getOptionsBuilder()
optional .google.protobuf.EnumValueOptions options = 3;public DescriptorProtos.EnumValueOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.EnumValueOptions options = 3;getOptionsOrBuilder in interface DescriptorProtos.EnumValueDescriptorProtoOrBuilder