Package com.google.protobuf
Class DescriptorProtos.OneofDescriptorProto.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.OneofDescriptorProto,DescriptorProtos.OneofDescriptorProto.Builder>
-
- com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder
-
- All Implemented Interfaces:
DescriptorProtos.OneofDescriptorProtoOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.OneofDescriptorProto
public static final class DescriptorProtos.OneofDescriptorProto.Builder extends GeneratedMessageLite.Builder<DescriptorProtos.OneofDescriptorProto,DescriptorProtos.OneofDescriptorProto.Builder> implements DescriptorProtos.OneofDescriptorProtoOrBuilder
Describes a oneof.
Protobuf typegoogle.protobuf.OneofDescriptorProto
-
-
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.OneofDescriptorProto.Builder
clearName()
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder
clearOptions()
optional .google.protobuf.OneofOptions options = 2;
java.lang.String
getName()
optional string name = 1;
ByteString
getNameBytes()
optional string name = 1;
DescriptorProtos.OneofOptions
getOptions()
optional .google.protobuf.OneofOptions options = 2;
boolean
hasName()
optional string name = 1;
boolean
hasOptions()
optional .google.protobuf.OneofOptions options = 2;
DescriptorProtos.OneofDescriptorProto.Builder
mergeOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;
DescriptorProtos.OneofDescriptorProto.Builder
setName(java.lang.String value)
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder
setNameBytes(ByteString value)
optional string name = 1;
DescriptorProtos.OneofDescriptorProto.Builder
setOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;
DescriptorProtos.OneofDescriptorProto.Builder
setOptions(DescriptorProtos.OneofOptions.Builder builderForValue)
optional .google.protobuf.OneofOptions options = 2;
-
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.OneofDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.OneofDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.OneofDescriptorProto.Builder clearName()
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.OneofDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1;
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.OneofOptions options = 2;
- Specified by:
hasOptions
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.OneofOptions getOptions()
optional .google.protobuf.OneofOptions options = 2;
- Specified by:
getOptions
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- The options.
-
setOptions
public DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;
-
setOptions
public DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions.Builder builderForValue)
optional .google.protobuf.OneofOptions options = 2;
-
mergeOptions
public DescriptorProtos.OneofDescriptorProto.Builder mergeOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;
-
clearOptions
public DescriptorProtos.OneofDescriptorProto.Builder clearOptions()
optional .google.protobuf.OneofOptions options = 2;
-
-