final case class Documentation(summary: String = "", pages: Seq[Page] = _root_.scala.Seq.empty, rules: Seq[DocumentationRule] = _root_.scala.Seq.empty, documentationRootUrl: String = "", overview: String = "", unknownFields: UnknownFieldSet = ...) extends GeneratedMessage with Updatable[Documentation] with Product with Serializable

Documentation provides the information for describing a service.

Example: <pre><code>documentation: summary: > The Google Calendar API gives access to most calendar features. pages:

  • name: Overview content: &#40;== include google/foo/overview.md ==&#41;
  • name: Tutorial content: &#40;== include google/foo/tutorial.md ==&#41; subpages;
    • name: Java content: &#40;== include google/foo/tutorial_java.md ==&#41; rules:
  • selector: google.calendar.Calendar.Get description: > ...
  • selector: google.calendar.Calendar.Put description: > ... </code></pre> Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded.

Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided.

A number of constructs specific to the API platform are supported in documentation text.

In order to reference a proto element, the following notation can be used: <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre> To override the display text used for the link, this can be used: <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre> Text can be excluded from doc using the following notation: <pre><code>&#40;-- internal comment --&#41;</code></pre>

A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The include directive includes a markdown file from an external source: <pre><code>&#40;== include path/to/file ==&#41;</code></pre> The resource_for directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre> The directive suppress_warning does not directly affect documentation and is documented together with service config validation.

summary

A short summary of what the service does. Can only be provided by plain text.

pages

The top level pages for the documentation set.

rules

A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order.

documentationRootUrl

The URL to the root of documentation.

overview

Declares a single overview page. For example: <pre><code>documentation: summary: ... overview: &#40;== include overview.md ==&#41; </code></pre> This is a shortcut for the following declaration (using pages style): <pre><code>documentation: summary: ... pages:

  • name: Overview content: &#40;== include overview.md ==&#41; </code></pre> Note: you cannot specify both overview field and pages field.
Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[Documentation], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Documentation
  2. Product
  3. Equals
  4. Updatable
  5. GeneratedMessage
  6. Serializable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Documentation(summary: String = "", pages: Seq[Page] = _root_.scala.Seq.empty, rules: Seq[DocumentationRule] = _root_.scala.Seq.empty, documentationRootUrl: String = "", overview: String = "", unknownFields: UnknownFieldSet = ...)

    summary

    A short summary of what the service does. Can only be provided by plain text.

    pages

    The top level pages for the documentation set.

    rules

    A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order.

    documentationRootUrl

    The URL to the root of documentation.

    overview

    Declares a single overview page. For example: <pre><code>documentation: summary: ... overview: &#40;== include overview.md ==&#41; </code></pre> This is a shortcut for the following declaration (using pages style): <pre><code>documentation: summary: ... pages:

    • name: Overview content: &#40;== include overview.md ==&#41; </code></pre> Note: you cannot specify both overview field and pages field.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def addAllPages(__vs: Iterable[Page]): Documentation
  5. def addAllRules(__vs: Iterable[DocumentationRule]): Documentation
  6. def addPages(__vs: Page*): Documentation
  7. def addRules(__vs: DocumentationRule*): Documentation
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clearPages: Documentation
  10. def clearRules: Documentation
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def companion: Documentation.type
    Definition Classes
    Documentation → GeneratedMessage
  13. def discardUnknownFields: Documentation
  14. val documentationRootUrl: String
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getField(__field: FieldDescriptor): PValue
    Definition Classes
    Documentation → GeneratedMessage
  19. def getFieldByNumber(__fieldNumber: Int): Any
    Definition Classes
    Documentation → GeneratedMessage
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val overview: String
  25. val pages: Seq[Page]
  26. val rules: Seq[DocumentationRule]
  27. def serializedSize: Int
    Definition Classes
    Documentation → GeneratedMessage
  28. val summary: String
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. final def toByteArray: Array[Byte]
    Definition Classes
    GeneratedMessage
  31. final def toByteString: ByteString
    Definition Classes
    GeneratedMessage
  32. final def toPMessage: PMessage
    Definition Classes
    GeneratedMessage
  33. def toProtoString: String
    Definition Classes
    Documentation → GeneratedMessage
  34. val unknownFields: UnknownFieldSet
  35. def update(ms: (Lens[Documentation, Documentation]) ⇒ Mutation[Documentation]*): Documentation
    Definition Classes
    Updatable
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  39. def withDocumentationRootUrl(__v: String): Documentation
  40. def withOverview(__v: String): Documentation
  41. def withPages(__v: Seq[Page]): Documentation
  42. def withRules(__v: Seq[DocumentationRule]): Documentation
  43. def withSummary(__v: String): Documentation
  44. def withUnknownFields(__v: UnknownFieldSet): Documentation
  45. final def writeDelimitedTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage
  46. def writeTo(_output__: CodedOutputStream): Unit
    Definition Classes
    Documentation → GeneratedMessage
  47. final def writeTo(output: OutputStream): Unit
    Definition Classes
    GeneratedMessage

Inherited from Product

Inherited from Equals

Inherited from Updatable[Documentation]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped