// Copyright 2024 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package google.api; option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig"; option java_multiple_files = true; option java_outer_classname = "DocumentationProto"; option java_package = "com.google.api"; option objc_class_prefix = "GAPI"; // `Documentation` provides the information for describing a service. // // Example: //
documentation:
//   summary: >
//     The Google Calendar API gives access
//     to most calendar features.
//   pages:
//   - name: Overview
//     content: (== include google/foo/overview.md ==)
//   - name: Tutorial
//     content: (== include google/foo/tutorial.md ==)
//     subpages:
//     - name: Java
//       content: (== include google/foo/tutorial_java.md ==)
//   rules:
//   - selector: google.calendar.Calendar.Get
//     description: >
//       ...
//   - selector: google.calendar.Calendar.Put
//     description: >
//       ...
// [fully.qualified.proto.name][][display text][fully.qualified.proto.name](-- internal comment --)(== include path/to/file ==)(== resource_for v1.shelves.books ==)documentation:
  //   summary: ...
  //   overview: (== include overview.md ==)
  // documentation:
  //   summary: ...
  //   pages:
  //   - name: Overview
  //     content: (== include overview.md ==)
  // pages:
  // - name: Tutorial
  //   content: (== include tutorial.md ==)
  //   subpages:
  //   - name: Java
  //     content: (== include tutorial_java.md ==)
  // (== include {path}
  // ==) to include content from a Markdown file. The content can be
  // used to produce the documentation page such as HTML format page.
  string content = 2;
  // Subpages of this page. The order of subpages specified here will be
  // honored in the generated docset.
  repeated Page subpages = 3;
}