service.proto 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // Copyright 2015 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.api;
  16. import "google/api/auth.proto";
  17. import "google/api/backend.proto";
  18. import "google/api/billing.proto";
  19. import "google/api/context.proto";
  20. import "google/api/control.proto";
  21. import "google/api/documentation.proto";
  22. import "google/api/endpoint.proto";
  23. import "google/api/http.proto";
  24. import "google/api/label.proto";
  25. import "google/api/log.proto";
  26. import "google/api/logging.proto";
  27. import "google/api/metric.proto";
  28. import "google/api/monitored_resource.proto";
  29. import "google/api/monitoring.proto";
  30. import "google/api/quota.proto";
  31. import "google/api/resource.proto";
  32. import "google/api/source_info.proto";
  33. import "google/api/system_parameter.proto";
  34. import "google/api/usage.proto";
  35. import "google/protobuf/any.proto";
  36. import "google/protobuf/api.proto";
  37. import "google/protobuf/type.proto";
  38. import "google/protobuf/wrappers.proto";
  39. option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
  40. option java_multiple_files = true;
  41. option java_outer_classname = "ServiceProto";
  42. option java_package = "com.google.api";
  43. option objc_class_prefix = "GAPI";
  44. // `Service` is the root object of Google service configuration schema. It
  45. // describes basic information about a service, such as the name and the
  46. // title, and delegates other aspects to sub-sections. Each sub-section is
  47. // either a proto message or a repeated proto message that configures a
  48. // specific aspect, such as auth. See each proto message definition for details.
  49. //
  50. // Example:
  51. //
  52. // type: google.api.Service
  53. // name: calendar.googleapis.com
  54. // title: Google Calendar API
  55. // apis:
  56. // - name: google.calendar.v3.Calendar
  57. // authentication:
  58. // providers:
  59. // - id: google_calendar_auth
  60. // jwks_uri: https://www.googleapis.com/oauth2/v1/certs
  61. // issuer: https://securetoken.google.com
  62. // rules:
  63. // - selector: "*"
  64. // requirements:
  65. // provider_id: google_calendar_auth
  66. message Service {
  67. // The service name, which is a DNS-like logical identifier for the
  68. // service, such as `calendar.googleapis.com`. The service name
  69. // typically goes through DNS verification to make sure the owner
  70. // of the service also owns the DNS name.
  71. string name = 1;
  72. // The product title for this service.
  73. string title = 2;
  74. // The Google project that owns this service.
  75. string producer_project_id = 22;
  76. // A unique ID for a specific instance of this message, typically assigned
  77. // by the client for tracking purpose. Must be no longer than 63 characters
  78. // and only lower case letters, digits, '.', '_' and '-' are allowed. If
  79. // empty, the server may choose to generate one instead.
  80. string id = 33;
  81. // A list of API interfaces exported by this service. Only the `name` field
  82. // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by the configuration
  83. // author, as the remaining fields will be derived from the IDL during the
  84. // normalization process. It is an error to specify an API interface here
  85. // which cannot be resolved against the associated IDL files.
  86. repeated google.protobuf.Api apis = 3;
  87. // A list of all proto message types included in this API service.
  88. // Types referenced directly or indirectly by the `apis` are
  89. // automatically included. Messages which are not referenced but
  90. // shall be included, such as types used by the `google.protobuf.Any` type,
  91. // should be listed here by name. Example:
  92. //
  93. // types:
  94. // - name: google.protobuf.Int32
  95. repeated google.protobuf.Type types = 4;
  96. // A list of all enum types included in this API service. Enums
  97. // referenced directly or indirectly by the `apis` are automatically
  98. // included. Enums which are not referenced but shall be included
  99. // should be listed here by name. Example:
  100. //
  101. // enums:
  102. // - name: google.someapi.v1.SomeEnum
  103. repeated google.protobuf.Enum enums = 5;
  104. // Additional API documentation.
  105. Documentation documentation = 6;
  106. // API backend configuration.
  107. Backend backend = 8;
  108. // HTTP configuration.
  109. Http http = 9;
  110. // Quota configuration.
  111. Quota quota = 10;
  112. // Auth configuration.
  113. Authentication authentication = 11;
  114. // Context configuration.
  115. Context context = 12;
  116. // Configuration controlling usage of this service.
  117. Usage usage = 15;
  118. // Configuration for network endpoints. If this is empty, then an endpoint
  119. // with the same name as the service is automatically generated to service all
  120. // defined APIs.
  121. repeated Endpoint endpoints = 18;
  122. // Configuration for the service control plane.
  123. Control control = 21;
  124. // Defines the logs used by this service.
  125. repeated LogDescriptor logs = 23;
  126. // Defines the metrics used by this service.
  127. repeated MetricDescriptor metrics = 24;
  128. // Defines the monitored resources used by this service. This is required
  129. // by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
  130. repeated MonitoredResourceDescriptor monitored_resources = 25;
  131. // Billing configuration.
  132. Billing billing = 26;
  133. // Logging configuration.
  134. Logging logging = 27;
  135. // Monitoring configuration.
  136. Monitoring monitoring = 28;
  137. // System parameter configuration.
  138. SystemParameters system_parameters = 29;
  139. // Output only. The source information for this configuration if available.
  140. SourceInfo source_info = 37;
  141. // Obsolete. Do not use.
  142. //
  143. // This field has no semantic meaning. The service config compiler always
  144. // sets this field to `3`.
  145. google.protobuf.UInt32Value config_version = 20 [deprecated = true];
  146. }