1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/api/documentation.proto
6 import proto "github.com/golang/protobuf/proto"
10 // Reference imports to suppress errors if they are not otherwise used.
15 // `Documentation` provides the information for describing a service.
18 // <pre><code>documentation:
20 // The Google Calendar API gives access
21 // to most calendar features.
24 // content: (== include google/foo/overview.md ==)
26 // content: (== include google/foo/tutorial.md ==)
29 // content: (== include google/foo/tutorial_java.md ==)
31 // - selector: google.calendar.Calendar.Get
34 // - selector: google.calendar.Calendar.Put
38 // Documentation is provided in markdown syntax. In addition to
39 // standard markdown features, definition lists, tables and fenced
40 // code blocks are supported. Section headers can be provided and are
41 // interpreted relative to the section nesting of the context where
42 // a documentation fragment is embedded.
44 // Documentation from the IDL is merged with documentation defined
45 // via the config at normalization time, where documentation provided
46 // by config rules overrides IDL provided.
48 // A number of constructs specific to the API platform are supported
49 // in documentation text.
51 // In order to reference a proto element, the following
52 // notation can be used:
53 // <pre><code>[fully.qualified.proto.name][]</code></pre>
54 // To override the display text used for the link, this can be used:
55 // <pre><code>[display text][fully.qualified.proto.name]</code></pre>
56 // Text can be excluded from doc using the following notation:
57 // <pre><code>(-- internal comment --)</code></pre>
58 // Comments can be made conditional using a visibility label. The below
59 // text will be only rendered if the `BETA` label is available:
60 // <pre><code>(--BETA: comment for BETA users --)</code></pre>
61 // A few directives are available in documentation. Note that
62 // directives must appear on a single line to be properly
63 // identified. The `include` directive includes a markdown file from
64 // an external source:
65 // <pre><code>(== include path/to/file ==)</code></pre>
66 // The `resource_for` directive marks a message to be the resource of
67 // a collection in REST view. If it is not specified, tools attempt
68 // to infer the resource from the operations in a collection:
69 // <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
70 // The directive `suppress_warning` does not directly affect documentation
71 // and is documented together with service config validation.
72 type Documentation struct {
73 // A short summary of what the service does. Can only be provided by
75 Summary string `protobuf:"bytes,1,opt,name=summary" json:"summary,omitempty"`
76 // The top level pages for the documentation set.
77 Pages []*Page `protobuf:"bytes,5,rep,name=pages" json:"pages,omitempty"`
78 // A list of documentation rules that apply to individual API elements.
80 // **NOTE:** All service configuration rules follow "last one wins" order.
81 Rules []*DocumentationRule `protobuf:"bytes,3,rep,name=rules" json:"rules,omitempty"`
82 // The URL to the root of documentation.
83 DocumentationRootUrl string `protobuf:"bytes,4,opt,name=documentation_root_url,json=documentationRootUrl" json:"documentation_root_url,omitempty"`
84 // Declares a single overview page. For example:
85 // <pre><code>documentation:
87 // overview: (== include overview.md ==)
89 // This is a shortcut for the following declaration (using pages style):
90 // <pre><code>documentation:
94 // content: (== include overview.md ==)
96 // Note: you cannot specify both `overview` field and `pages` field.
97 Overview string `protobuf:"bytes,2,opt,name=overview" json:"overview,omitempty"`
100 func (m *Documentation) Reset() { *m = Documentation{} }
101 func (m *Documentation) String() string { return proto.CompactTextString(m) }
102 func (*Documentation) ProtoMessage() {}
103 func (*Documentation) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{0} }
105 func (m *Documentation) GetSummary() string {
112 func (m *Documentation) GetPages() []*Page {
119 func (m *Documentation) GetRules() []*DocumentationRule {
126 func (m *Documentation) GetDocumentationRootUrl() string {
128 return m.DocumentationRootUrl
133 func (m *Documentation) GetOverview() string {
140 // A documentation rule provides information about individual API elements.
141 type DocumentationRule struct {
142 // The selector is a comma-separated list of patterns. Each pattern is a
143 // qualified name of the element which may end in "*", indicating a wildcard.
144 // Wildcards are only allowed at the end and for a whole component of the
145 // qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To
146 // specify a default for all applicable elements, the whole pattern "*"
148 Selector string `protobuf:"bytes,1,opt,name=selector" json:"selector,omitempty"`
149 // Description of the selected API(s).
150 Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
151 // Deprecation description of the selected element(s). It can be provided if an
152 // element is marked as `deprecated`.
153 DeprecationDescription string `protobuf:"bytes,3,opt,name=deprecation_description,json=deprecationDescription" json:"deprecation_description,omitempty"`
156 func (m *DocumentationRule) Reset() { *m = DocumentationRule{} }
157 func (m *DocumentationRule) String() string { return proto.CompactTextString(m) }
158 func (*DocumentationRule) ProtoMessage() {}
159 func (*DocumentationRule) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{1} }
161 func (m *DocumentationRule) GetSelector() string {
168 func (m *DocumentationRule) GetDescription() string {
175 func (m *DocumentationRule) GetDeprecationDescription() string {
177 return m.DeprecationDescription
182 // Represents a documentation page. A page can contain subpages to represent
183 // nested documentation set structure.
185 // The name of the page. It will be used as an identity of the page to
186 // generate URI of the page, text of the link to this page in navigation,
187 // etc. The full page name (start from the root page name to this page
188 // concatenated with `.`) can be used as reference to the page in your
189 // documentation. For example:
192 // content: (== include tutorial.md ==)
195 // content: (== include tutorial_java.md ==)
197 // You can reference `Java` page using Markdown reference link syntax:
198 // `[Java][Tutorial.Java]`.
199 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
200 // The Markdown content of the page. You can use <code>(== include {path} ==)</code>
201 // to include content from a Markdown file.
202 Content string `protobuf:"bytes,2,opt,name=content" json:"content,omitempty"`
203 // Subpages of this page. The order of subpages specified here will be
204 // honored in the generated docset.
205 Subpages []*Page `protobuf:"bytes,3,rep,name=subpages" json:"subpages,omitempty"`
208 func (m *Page) Reset() { *m = Page{} }
209 func (m *Page) String() string { return proto.CompactTextString(m) }
210 func (*Page) ProtoMessage() {}
211 func (*Page) Descriptor() ([]byte, []int) { return fileDescriptor6, []int{2} }
213 func (m *Page) GetName() string {
220 func (m *Page) GetContent() string {
227 func (m *Page) GetSubpages() []*Page {
235 proto.RegisterType((*Documentation)(nil), "google.api.Documentation")
236 proto.RegisterType((*DocumentationRule)(nil), "google.api.DocumentationRule")
237 proto.RegisterType((*Page)(nil), "google.api.Page")
240 func init() { proto.RegisterFile("google/api/documentation.proto", fileDescriptor6) }
242 var fileDescriptor6 = []byte{
243 // 356 bytes of a gzipped FileDescriptorProto
244 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xc1, 0x6a, 0xe3, 0x30,
245 0x14, 0x45, 0x71, 0xec, 0xcc, 0x64, 0x5e, 0x98, 0x61, 0x46, 0x0c, 0x19, 0x33, 0xd0, 0x12, 0xb2,
246 0x28, 0x59, 0x14, 0x1b, 0x9a, 0x42, 0x17, 0x5d, 0x35, 0xa4, 0x94, 0xee, 0x8c, 0xa1, 0x9b, 0x6e,
247 0x82, 0xa2, 0xbc, 0x0a, 0x83, 0xad, 0x67, 0x24, 0x39, 0xa5, 0xbf, 0xd0, 0xcf, 0xe8, 0x57, 0xf5,
248 0x73, 0x8a, 0x65, 0x27, 0xb1, 0x29, 0xdd, 0xf9, 0xfa, 0x1e, 0xe9, 0x3e, 0x5d, 0x09, 0x4e, 0x25,
249 0x91, 0xcc, 0x31, 0xe6, 0x65, 0x16, 0x6f, 0x49, 0x54, 0x05, 0x2a, 0xcb, 0x6d, 0x46, 0x2a, 0x2a,
250 0x35, 0x59, 0x62, 0xd0, 0xf8, 0x11, 0x2f, 0xb3, 0xd9, 0xbb, 0x07, 0x3f, 0x57, 0x5d, 0x86, 0x85,
251 0xf0, 0xdd, 0x54, 0x45, 0xc1, 0xf5, 0x4b, 0xe8, 0x4d, 0xbd, 0xf9, 0x8f, 0x74, 0x2f, 0xd9, 0x19,
252 0x0c, 0x4b, 0x2e, 0xd1, 0x84, 0xc3, 0xa9, 0x3f, 0x1f, 0x5f, 0xfc, 0x8e, 0x8e, 0xfb, 0x44, 0x09,
253 0x97, 0x98, 0x36, 0x36, 0x5b, 0xc0, 0x50, 0x57, 0x39, 0x9a, 0xd0, 0x77, 0xdc, 0x49, 0x97, 0xeb,
254 0x65, 0xa5, 0x55, 0x8e, 0x69, 0xc3, 0xb2, 0x4b, 0x98, 0xf4, 0x66, 0x5d, 0x6b, 0x22, 0xbb, 0xae,
255 0x74, 0x1e, 0x06, 0x6e, 0x8a, 0xbf, 0x3d, 0x37, 0x25, 0xb2, 0x0f, 0x3a, 0x67, 0xff, 0x61, 0x44,
256 0x3b, 0xd4, 0xbb, 0x0c, 0x9f, 0xc3, 0x81, 0xe3, 0x0e, 0x7a, 0xf6, 0xea, 0xc1, 0x9f, 0x4f, 0x71,
257 0xf5, 0x0a, 0x83, 0x39, 0x0a, 0x4b, 0xba, 0x3d, 0xdf, 0x41, 0xb3, 0x29, 0x8c, 0xb7, 0x68, 0x84,
258 0xce, 0xca, 0x1a, 0x6f, 0x37, 0xec, 0xfe, 0x62, 0x57, 0xf0, 0x6f, 0x8b, 0xa5, 0x46, 0xd1, 0xcc,
259 0xd8, 0xa5, 0x7d, 0x47, 0x4f, 0x3a, 0xf6, 0xea, 0xe8, 0xce, 0x36, 0x10, 0xd4, 0x15, 0x31, 0x06,
260 0x81, 0xe2, 0x05, 0xb6, 0xd1, 0xee, 0xbb, 0x6e, 0x5c, 0x90, 0xb2, 0xa8, 0x6c, 0x1b, 0xb9, 0x97,
261 0xec, 0x1c, 0x46, 0xa6, 0xda, 0x34, 0xa5, 0xfb, 0x5f, 0x94, 0x7e, 0x20, 0x96, 0x16, 0x7e, 0x09,
262 0x2a, 0x3a, 0xc0, 0x92, 0xf5, 0xce, 0x9f, 0xd4, 0xb7, 0x9f, 0x78, 0x8f, 0xb7, 0x2d, 0x21, 0x29,
263 0xe7, 0x4a, 0x46, 0xa4, 0x65, 0x2c, 0x51, 0xb9, 0xb7, 0x11, 0x37, 0x16, 0x2f, 0x33, 0xe3, 0x9e,
264 0x8f, 0xa9, 0xbb, 0x14, 0x28, 0x48, 0x3d, 0x65, 0xf2, 0xba, 0xa7, 0xde, 0x06, 0xc1, 0xdd, 0x4d,
265 0x72, 0xbf, 0xf9, 0xe6, 0x16, 0x2e, 0x3e, 0x02, 0x00, 0x00, 0xff, 0xff, 0x3e, 0x04, 0x32, 0xbf,
266 0x76, 0x02, 0x00, 0x00,