public static final class DescriptorProtos.OneofDescriptorProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder> implements DescriptorProtos.OneofDescriptorProtoOrBuilder
Describes a oneof.Protobuf type
google.protobuf.OneofDescriptorProto| Modifier and Type | Method and Description |
|---|---|
DescriptorProtos.OneofDescriptorProto.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
DescriptorProtos.OneofDescriptorProto |
build() |
DescriptorProtos.OneofDescriptorProto |
buildPartial() |
DescriptorProtos.OneofDescriptorProto.Builder |
clear() |
DescriptorProtos.OneofDescriptorProto.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
DescriptorProtos.OneofDescriptorProto.Builder |
clearName()
optional string name = 1; |
DescriptorProtos.OneofDescriptorProto.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
DescriptorProtos.OneofDescriptorProto.Builder |
clearOptions()
optional .google.protobuf.OneofOptions options = 2; |
DescriptorProtos.OneofDescriptorProto.Builder |
clone() |
DescriptorProtos.OneofDescriptorProto |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getName()
optional string name = 1; |
com.google.protobuf.ByteString |
getNameBytes()
optional string name = 1; |
DescriptorProtos.OneofOptions |
getOptions()
optional .google.protobuf.OneofOptions options = 2; |
DescriptorProtos.OneofOptions.Builder |
getOptionsBuilder()
optional .google.protobuf.OneofOptions options = 2; |
DescriptorProtos.OneofOptionsOrBuilder |
getOptionsOrBuilder()
optional .google.protobuf.OneofOptions options = 2; |
boolean |
hasName()
optional string name = 1; |
boolean |
hasOptions()
optional .google.protobuf.OneofOptions options = 2; |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DescriptorProtos.OneofDescriptorProto.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.OneofDescriptorProto.Builder |
mergeFrom(DescriptorProtos.OneofDescriptorProto other) |
DescriptorProtos.OneofDescriptorProto.Builder |
mergeFrom(com.google.protobuf.Message other) |
DescriptorProtos.OneofDescriptorProto.Builder |
mergeOptions(DescriptorProtos.OneofOptions value)
optional .google.protobuf.OneofOptions options = 2; |
DescriptorProtos.OneofDescriptorProto.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DescriptorProtos.OneofDescriptorProto.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
DescriptorProtos.OneofDescriptorProto.Builder |
setName(java.lang.String value)
optional string name = 1; |
DescriptorProtos.OneofDescriptorProto.Builder |
setNameBytes(com.google.protobuf.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; |
DescriptorProtos.OneofDescriptorProto.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
DescriptorProtos.OneofDescriptorProto.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DescriptorProtos.OneofDescriptorProto build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.OneofDescriptorProto buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DescriptorProtos.OneofDescriptorProto.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder mergeFrom(DescriptorProtos.OneofDescriptorProto other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public DescriptorProtos.OneofDescriptorProto.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.OneofDescriptorProto.Builder>java.io.IOExceptionpublic boolean hasName()
optional string name = 1;hasName in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic java.lang.String getName()
optional string name = 1;getName in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
optional string name = 1;getNameBytes in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic DescriptorProtos.OneofDescriptorProto.Builder setName(java.lang.String value)
optional string name = 1;public DescriptorProtos.OneofDescriptorProto.Builder clearName()
optional string name = 1;public DescriptorProtos.OneofDescriptorProto.Builder setNameBytes(com.google.protobuf.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;public DescriptorProtos.OneofOptions.Builder getOptionsBuilder()
optional .google.protobuf.OneofOptions options = 2;public DescriptorProtos.OneofOptionsOrBuilder getOptionsOrBuilder()
optional .google.protobuf.OneofOptions options = 2;getOptionsOrBuilder in interface DescriptorProtos.OneofDescriptorProtoOrBuilderpublic final DescriptorProtos.OneofDescriptorProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>public final DescriptorProtos.OneofDescriptorProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DescriptorProtos.OneofDescriptorProto.Builder>