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.OneofDescriptorProtoinstance, isBuilt| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.OneofDescriptorProto.Builder |
clearName()
optional string name = 1; |
DescriptorProtos.OneofDescriptorProto.Builder |
clearOptions()
optional .google.protobuf.OneofOptions options = 2; |
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(String value)
optional string name = 1; |
DescriptorProtos.OneofDescriptorProto.Builder |
setNameBytes(ByteString value)
optional string name = 1; |
DescriptorProtos.OneofDescriptorProto.Builder |
setOptions(DescriptorProtos.OneofOptions.Builder builderForValue)
optional .google.protobuf.OneofOptions options = 2; |
DescriptorProtos.OneofDescriptorProto.Builder |
setOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2; |
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic String getName()
optional string name = 1;getName in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic DescriptorProtos.OneofDescriptorProto.Builder setName(String value)
optional string name = 1;public DescriptorProtos.OneofDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.OneofDescriptorProto.Builder setNameBytes(ByteString value)
optional string name = 1;public boolean hasOptions()
optional .google.protobuf.OneofOptions options = 2;hasOptions in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic DescriptorProtos.OneofOptions getOptions()
optional .google.protobuf.OneofOptions options = 2;getOptions in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;public DescriptorProtos.OneofDescriptorProto.Builder setOptions(DescriptorProtos.OneofOptions.Builder builderForValue)
optional .google.protobuf.OneofOptions options = 2;public DescriptorProtos.OneofDescriptorProto.Builder mergeOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2;public DescriptorProtos.OneofDescriptorProto.Builder clearOptions()
optional .google.protobuf.OneofOptions options = 2;Copyright © 2008–2016 Google. All rights reserved.