public static final class DescriptorProtos.OneofDescriptorProto extends GeneratedMessage implements DescriptorProtos.OneofDescriptorProtoOrBuilder
google.protobuf.OneofDescriptorProto
Describes a oneof.
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos.OneofDescriptorProto.Builder
Protobuf type
google.protobuf.OneofDescriptorProto |
GeneratedMessage.BuilderParent, GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_FIELD_NUMBER |
static Parser<DescriptorProtos.OneofDescriptorProto> |
PARSER |
alwaysUseFieldBuildersmemoizedHashCodegetAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseUnknownFieldequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static Parser<DescriptorProtos.OneofDescriptorProto> PARSER
public static final int NAME_FIELD_NUMBER
public static DescriptorProtos.OneofDescriptorProto getDefaultInstance()
public DescriptorProtos.OneofDescriptorProto getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() method of generated message classes in that
this method is an abstract method of the MessageLite interface
whereas getDefaultInstance() is a static method of a specific
class. They return the same thing.getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic final UnknownFieldSet getUnknownFields()
MessageOrBuilderUnknownFieldSet for this message.getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessagepublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageinternalGetFieldAccessorTable in class GeneratedMessagepublic Parser<DescriptorProtos.OneofDescriptorProto> getParserForType()
MessageLitegetParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessagepublic 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 final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessagepublic void writeTo(CodedOutputStream output) throws IOException
MessageLiteoutput. This does not
flush or close the stream.writeTo in interface MessageLitewriteTo in class AbstractMessageIOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitegetSerializedSize in class AbstractMessageprotected Object writeReplace() throws ObjectStreamException
GeneratedMessagereturn super.writeReplace();writeReplace in class GeneratedMessageObjectStreamExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.OneofDescriptorProto.Builder newBuilder()
public DescriptorProtos.OneofDescriptorProto.Builder newBuilderForType()
MessageLitenewBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static DescriptorProtos.OneofDescriptorProto.Builder newBuilder(DescriptorProtos.OneofDescriptorProto prototype)
public DescriptorProtos.OneofDescriptorProto.Builder toBuilder()
MessageLitetoBuilder in interface MessagetoBuilder in interface MessageLiteprotected DescriptorProtos.OneofDescriptorProto.Builder newBuilderForType(GeneratedMessage.BuilderParent parent)
newBuilderForType in class GeneratedMessageCopyright © 2008–2016. All rights reserved.