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
Protobuf typegoogle.protobuf.OneofDescriptorProto
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.OneofDescriptorProto.BuilderclearName()optional string name = 1 [json_name = "name"];DescriptorProtos.OneofDescriptorProto.BuilderclearOptions()optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];java.lang.StringgetName()optional string name = 1 [json_name = "name"];ByteStringgetNameBytes()optional string name = 1 [json_name = "name"];DescriptorProtos.OneofOptionsgetOptions()optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];booleanhasName()optional string name = 1 [json_name = "name"];booleanhasOptions()optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];DescriptorProtos.OneofDescriptorProto.BuildermergeOptions(DescriptorProtos.OneofOptions value)optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];DescriptorProtos.OneofDescriptorProto.BuildersetName(java.lang.String value)optional string name = 1 [json_name = "name"];DescriptorProtos.OneofDescriptorProto.BuildersetNameBytes(ByteString value)optional string name = 1 [json_name = "name"];DescriptorProtos.OneofDescriptorProto.BuildersetOptions(DescriptorProtos.OneofOptions value)optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];DescriptorProtos.OneofDescriptorProto.BuildersetOptions(DescriptorProtos.OneofOptions.Builder builderForValue)optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];-
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 [json_name = "name"];- Specified by:
hasNamein interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder- Returns:
- Whether the name field is set.
-
getName
public java.lang.String getName()
optional string name = 1 [json_name = "name"];- Specified by:
getNamein interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder- Returns:
- The name.
-
getNameBytes
public ByteString getNameBytes()
optional string name = 1 [json_name = "name"];- Specified by:
getNameBytesin interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder- Returns:
- The bytes for name.
-
setName
public DescriptorProtos.OneofDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1 [json_name = "name"];- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public DescriptorProtos.OneofDescriptorProto.Builder clearName()
optional string name = 1 [json_name = "name"];- Returns:
- This builder for chaining.
-
setNameBytes
public DescriptorProtos.OneofDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1 [json_name = "name"];- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
hasOptions
public boolean hasOptions()
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];- Specified by:
hasOptionsin interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public DescriptorProtos.OneofOptions getOptions()
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];- Specified by:
getOptionsin interfaceDescriptorProtos.OneofDescriptorProtoOrBuilder- Returns:
- The options.
-
setOptions
public DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];
-
setOptions
public DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions.Builder builderForValue)
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];
-
mergeOptions
public DescriptorProtos.OneofDescriptorProto.Builder mergeOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];
-
clearOptions
public DescriptorProtos.OneofDescriptorProto.Builder clearOptions()
optional .google.protobuf.OneofOptions options = 2 [json_name = "options"];
-
-