Package com.google.protobuf
Class DescriptorProtos.EnumValueDescriptorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.EnumValueDescriptorProto,DescriptorProtos.EnumValueDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.EnumValueDescriptorProto.Builder
-
- All Implemented Interfaces:
DescriptorProtos.EnumValueDescriptorProtoOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.EnumValueDescriptorProto
public static final class DescriptorProtos.EnumValueDescriptorProto.Builder extends GeneratedMessageLite.Builder<DescriptorProtos.EnumValueDescriptorProto,DescriptorProtos.EnumValueDescriptorProto.Builder> implements DescriptorProtos.EnumValueDescriptorProtoOrBuilder
Describes a value within an enum.
Protobuf typegoogle.protobuf.EnumValueDescriptorProto
-
-
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 Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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;
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;
boolean
hasName()
optional string name = 1;
boolean
hasNumber()
optional int32 number = 2;
boolean
hasOptions()
optional .google.protobuf.EnumValueOptions options = 3;
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 value)
optional .google.protobuf.EnumValueOptions options = 3;
DescriptorProtos.EnumValueDescriptorProto.Builder
setOptions(DescriptorProtos.EnumValueOptions.Builder builderForValue)
optional .google.protobuf.EnumValueOptions options = 3;
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
hasName
public boolean hasName()
optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.EnumValueDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.EnumValueDescriptorProto.Builder clearName()
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.EnumValueDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasNumber
public boolean hasNumber()
optional int32 number = 2;
- Specified by:
hasNumber
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- Whether the number field is set.
-
getNumber
public int getNumber()
optional int32 number = 2;
- Specified by:
getNumber
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- The number.
-
setNumber
public DescriptorProtos.EnumValueDescriptorProto.Builder setNumber(int value)
optional int32 number = 2;
- Parameters:
value
- The number to set.- Returns:
- This builder for chaining.
-
clearNumber
public DescriptorProtos.EnumValueDescriptorProto.Builder clearNumber()
optional int32 number = 2;
- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.EnumValueOptions options = 3;
- Specified by:
hasOptions
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.EnumValueOptions getOptions()
optional .google.protobuf.EnumValueOptions options = 3;
- Specified by:
getOptions
in interfaceDescriptorProtos.EnumValueDescriptorProtoOrBuilder
- Returns:
- The options.
-
setOptions
public DescriptorProtos.EnumValueDescriptorProto.Builder setOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3;
-
setOptions
public DescriptorProtos.EnumValueDescriptorProto.Builder setOptions(DescriptorProtos.EnumValueOptions.Builder builderForValue)
optional .google.protobuf.EnumValueOptions options = 3;
-
mergeOptions
public DescriptorProtos.EnumValueDescriptorProto.Builder mergeOptions(DescriptorProtos.EnumValueOptions value)
optional .google.protobuf.EnumValueOptions options = 3;
-
clearOptions
public DescriptorProtos.EnumValueDescriptorProto.Builder clearOptions()
optional .google.protobuf.EnumValueOptions options = 3;
-
-