DescriptorProto

com.google.protobuf.descriptor.DescriptorProto
See theDescriptorProto companion object
final case class DescriptorProto(name: Option[String], field: Seq[FieldDescriptorProto], extension: Seq[FieldDescriptorProto], nestedType: Seq[DescriptorProto], enumType: Seq[EnumDescriptorProto], extensionRange: Seq[ExtensionRange], oneofDecl: Seq[OneofDescriptorProto], options: Option[MessageOptions], reservedRange: Seq[ReservedRange], reservedName: Seq[String], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[DescriptorProto]

Describes a message type.

Value parameters

reservedName

Reserved field names, which may not be used by fields in the same message. A given name may only be reserved once.

Attributes

Companion
object
Graph
Supertypes
trait Updatable[DescriptorProto]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def addAllReservedName(`__vs`: Iterable[String]): DescriptorProto
def addReservedName(`__vs`: String*): DescriptorProto
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
def getName: String
override def serializedSize: Int

Attributes

Definition Classes
def toProtoString: String

Returns a human-readable ASCII format representation of this message.

Returns a human-readable ASCII format representation of this message.

The original message can be decoded from this format by using fromAscii on the companion object.

Attributes

Returns

human-readable representation of this message.

def withName(`__v`: String): DescriptorProto
def withReservedName(`__v`: Seq[String]): DescriptorProto
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
final def toByteArray: Array[Byte]

Serializes the message and returns a byte array containing its raw bytes

Serializes the message and returns a byte array containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toByteString: ByteString

Serializes the message and returns a ByteString containing its raw bytes

Serializes the message and returns a ByteString containing its raw bytes

Attributes

Inherited from:
GeneratedMessage
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
def update(ms: Lens[DescriptorProto, DescriptorProto] => () => DescriptorProto*): A

Attributes

Inherited from:
Updatable
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
final def writeTo(output: OutputStream): Unit

Serializes the message into the given output stream

Serializes the message into the given output stream

Attributes

Inherited from:
GeneratedMessage