Object/Class

com.google.protobuf.descriptor

SourceCodeInfo

Related Docs: class SourceCodeInfo | package descriptor

Permalink

object SourceCodeInfo extends GeneratedMessageCompanion[SourceCodeInfo] with Serializable

Linear Supertypes
Serializable, Serializable, GeneratedMessageCompanion[SourceCodeInfo], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SourceCodeInfo
  2. Serializable
  3. Serializable
  4. GeneratedMessageCompanion
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final case class Location(path: Seq[Int] = Nil, span: Seq[Int] = Nil, leadingComments: Option[String] = None, trailingComments: Option[String] = None, leadingDetachedComments: Seq[String] = Nil) extends trueaccord.scalapb.GeneratedMessage with trueaccord.scalapb.Message[Location] with Updatable[Location] with Product with Serializable

    Permalink

    path

    Identifies which part of the FileDescriptorProto was defined at this location. Each element is a field number or an index. They form a path from the root FileDescriptorProto to the place where the definition. For example, this path: [ 4, 3, 2, 7, 1 ] refers to: file.message_type(3) // 4, 3 .field(7) // 2, 7 .name() // 1 This is because FileDescriptorProto.message_type has field number 4: repeated DescriptorProto message_type = 4; and DescriptorProto.field has field number 2: repeated FieldDescriptorProto field = 2; and FieldDescriptorProto.name has field number 1: optional string name = 1; Thus, the above path gives the location of a field name. If we removed the last element: [ 4, 3, 2, 7 ] this path refers to the whole field declaration (from the beginning of the label to the terminating semicolon).

    span

    Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.

    leadingComments

    If this SourceCodeInfo represents a complete declaration, these are any comments appearing before and after the declaration which appear to be attached to the declaration. A series of line comments appearing on consecutive lines, with no other tokens appearing on those lines, will be treated as a single comment. leading_detached_comments will keep paragraphs of comments that appear before (but not connected to) the current element. Each paragraph, separated by empty lines, will be one comment element in the repeated field. Only the comment content is provided; comment markers (e.g. //) are stripped out. For block comments, leading whitespace and an asterisk will be stripped from the beginning of each line other than the first. Newlines are included in the output. Examples: optional int32 foo = 1; // Comment attached to foo. // Comment attached to bar. optional int32 bar = 2; optional string baz = 3; // Comment attached to baz. // Another line attached to baz. // Comment attached to qux. // // Another line attached to qux. optional double qux = 4; // Detached comment for corge. This is not leading or trailing comments // to qux or corge because there are blank lines separating it from // both. // Detached comment for corge paragraph 2. optional string corge = 5; /* Block comment attached * to corge. Leading asterisks * will be removed. */ /* Block comment attached to * grault. */ optional int32 grault = 6; // ignored detached comments.

    Annotations
    @SerialVersionUID()
  2. implicit class SourceCodeInfoLens[UpperPB] extends ObjectLens[UpperPB, SourceCodeInfo]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final val LOCATION_FIELD_NUMBER: Int(1)

    Permalink
  5. object Location extends GeneratedMessageCompanion[Location] with Serializable

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. lazy val defaultInstance: SourceCodeInfo

    Permalink
  9. def descriptor: Descriptor

    Permalink
  10. def enumCompanionForField(__field: FieldDescriptor): GeneratedEnumCompanion[_]

    Permalink
  11. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def fromAscii(s: String): SourceCodeInfo

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  15. def fromFieldsMap(__fieldsMap: Map[FieldDescriptor, Any]): SourceCodeInfo

    Permalink
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. implicit def messageCompanion: GeneratedMessageCompanion[SourceCodeInfo]

    Permalink
  20. def messageCompanionForField(__field: FieldDescriptor): GeneratedMessageCompanion[_]

    Permalink
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. def parseDelimitedFrom(input: InputStream): Option[SourceCodeInfo]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  25. def parseDelimitedFrom(input: CodedInputStream): Option[SourceCodeInfo]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  26. def parseFrom(s: Array[Byte]): SourceCodeInfo

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  27. def parseFrom(input: InputStream): SourceCodeInfo

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  28. def parseFrom(input: CodedInputStream): SourceCodeInfo

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  29. def streamFromDelimitedInput(input: InputStream): Stream[SourceCodeInfo]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toByteArray(a: SourceCodeInfo): Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. def validate(s: Array[Byte]): Try[SourceCodeInfo]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  34. def validateAscii(s: String): Either[TextFormatError, SourceCodeInfo]

    Permalink
    Definition Classes
    GeneratedMessageCompanion
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped