FileDescriptorProto

@SerialVersionUID(0L) 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], unknownFields: UnknownFieldSet) extends GeneratedMessage with Updatable[FileDescriptorProto]

Describes a complete .proto file.

Value Params
dependency

Names of files imported by this file.

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" and "proto3".

weakDependency

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

Companion
object
trait Updatable[FileDescriptorProto]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def addAllDependency(`__vs`: Iterable[String]): FileDescriptorProto
def addAllPublicDependency(`__vs`: Iterable[Int]): FileDescriptorProto
def addAllWeakDependency(`__vs`: Iterable[Int]): FileDescriptorProto
def addDependency(`__vs`: String*): FileDescriptorProto
def getField(`__field`: FieldDescriptor): PValue
def getFieldByNumber(`__fieldNumber`: Int): Any
def getName: String
def getPackage: String
def getSyntax: String
override def serializedSize: Int
Definition Classes
def toProtoString: String
def withDependency(`__v`: Seq[String]): FileDescriptorProto
def withName(`__v`: String): FileDescriptorProto
def withPackage(`__v`: String): FileDescriptorProto
def withSyntax(`__v`: String): FileDescriptorProto
def writeTo(`_output__`: CodedOutputStream): Unit

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
final def toByteArray: Array[Byte]

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

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

Inherited from
GeneratedMessage
final def toByteString: ByteString

Serializes the messgae and returns a ByteString containing its raw bytes

Serializes the messgae and returns a ByteString containing its raw bytes

Inherited from
GeneratedMessage
final def toPMessage: PMessage
Inherited from
GeneratedMessage
Inherited from
Updatable
final def writeDelimitedTo(output: OutputStream): Unit
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

Inherited from
GeneratedMessage