Package com.google.protobuf
Class DescriptorProtos.OneofDescriptorProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<DescriptorProtos.OneofDescriptorProto,DescriptorProtos.OneofDescriptorProto.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<DescriptorProtos.OneofDescriptorProto,DescriptorProtos.OneofDescriptorProto.Builder>
com.google.protobuf.DescriptorProtos.OneofDescriptorProto.Builder
- All Implemented Interfaces:
DescriptorProtos.OneofDescriptorProtoOrBuilder
,MessageLite.Builder
,MessageLiteOrBuilder
,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 type
google.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 -
Method Summary
Modifier and TypeMethodDescriptionoptional string name = 1;
optional .google.protobuf.OneofOptions options = 2;
getName()
optional string name = 1;
optional string name = 1;
optional .google.protobuf.OneofOptions options = 2;
boolean
hasName()
optional string name = 1;
boolean
optional .google.protobuf.OneofOptions options = 2;
optional .google.protobuf.OneofOptions options = 2;
optional string name = 1;
setNameBytes
(ByteString value) optional string name = 1;
optional .google.protobuf.OneofOptions options = 2;
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
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
hasName
public boolean hasName()optional string name = 1;
- Specified by:
hasName
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- Whether the name field is set.
-
getName
optional string name = 1;
- Specified by:
getName
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- The name.
-
getNameBytes
optional string name = 1;
- Specified by:
getNameBytes
in interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder
- Returns:
- The bytes for name.
-
setName
optional string name = 1;
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
optional string name = 1;
- Returns:
- This builder for chaining.
-
setNameBytes
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
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
optional .google.protobuf.OneofOptions options = 2;
-