FileDescriptorProto

com.google.protobuf.descriptor.FileDescriptorProto
See theFileDescriptorProto companion object
final case class FileDescriptorProto(name: Option[String], `package`: Option[String], dependency: Seq[String], publicDependency: Seq[Int], weakDependency: Seq[Int], messageType: Seq[DescriptorProto], enumType: Seq[EnumDescriptorProto], service: Seq[ServiceDescriptorProto], extension: Seq[FieldDescriptorProto], options: Option[FileOptions], sourceCodeInfo: Option[SourceCodeInfo], syntax: Option[String], edition: Option[String], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[FileDescriptorProto]

Describes a complete .proto file.

Attributes

dependency

Names of files imported by this file.

edition

The edition of the proto file, which is an opaque string.

messageType

All top-level definitions in this file.

name

file name, relative to root of source tree

package

e.g. "foo", "foo.bar", etc.

publicDependency

Indexes of the public imported files in the dependency list above.

sourceCodeInfo

This field contains optional information about the original source code. You may safely remove this entire field without harming runtime functionality of the descriptors -- the information is needed only by development tools.

syntax

The syntax of the proto file. The supported values are "proto2", "proto3", and "editions". If edition is present, this value must be "editions".

weakDependency

Indexes of the weak imported files in the dependency list. For Google-internal migration only. Do not use.

Companion:
object
Source:
FileDescriptorProto.scala
Graph
Supertypes
trait Updatable[FileDescriptorProto]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def getField(`__field`: FieldDescriptor): PValue

Attributes

Source:
FileDescriptorProto.scala
def getFieldByNumber(`__fieldNumber`: Int): Any

Attributes

Source:
FileDescriptorProto.scala
override def serializedSize: Int

Attributes

Definition Classes
GeneratedMessage
Source:
FileDescriptorProto.scala

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.

Source:
FileDescriptorProto.scala
def withUnknownFields(`__v`: UnknownFieldSet): FileDescriptorProto

Attributes

Source:
FileDescriptorProto.scala
def writeTo(`_output__`: CodedOutputStream): Unit

Serializes the message into the given coded output stream

Serializes the message into the given coded output stream

Attributes

Source:
FileDescriptorProto.scala

Inherited methods

Attributes

Inherited from:
Product

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
Source:
GeneratedMessageCompanion.scala
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
Source:
GeneratedMessageCompanion.scala
final def toPMessage: PMessage

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala

Attributes

Inherited from:
Updatable
Source:
Lenses.scala
final def writeDelimitedTo(output: OutputStream): Unit

Attributes

Inherited from:
GeneratedMessage
Source:
GeneratedMessageCompanion.scala
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
Source:
GeneratedMessageCompanion.scala