-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
service.proto
Latest commit
191 lines (161 loc) · 6.6 KB
/
service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
// 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:// 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";
packagegoogle.api;
import"google/api/auth.proto";
import"google/api/backend.proto";
import"google/api/billing.proto";
import"google/api/client.proto";
import"google/api/context.proto";
import"google/api/control.proto";
import"google/api/documentation.proto";
import"google/api/endpoint.proto";
import"google/api/http.proto";
import"google/api/log.proto";
import"google/api/logging.proto";
import"google/api/metric.proto";
import"google/api/monitored_resource.proto";
import"google/api/monitoring.proto";
import"google/api/quota.proto";
import"google/api/source_info.proto";
import"google/api/system_parameter.proto";
import"google/api/usage.proto";
import"google/protobuf/api.proto";
import"google/protobuf/type.proto";
import"google/protobuf/wrappers.proto";
optiongo_package="google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
optionjava_multiple_files=true;
optionjava_outer_classname="ServiceProto";
optionjava_package="com.google.api";
optionobjc_class_prefix="GAPI";
// `Service` is the root object of Google API service configuration (service
// config). It describes the basic information about a logical service,
// such as the service name and the user-facing title, and delegates other
// aspects to sub-sections. Each sub-section is either a proto message or a
// repeated proto message that configures a specific aspect, such as auth.
// For more information, see each proto message definition.
//
// Example:
//
// type: google.api.Service
// name: calendar.googleapis
// title: Google Calendar API
// apis:
// - name: google.calendar.v3.Calendar
//
// visibility:
// rules:
// - selector: "google.calendar.v3.*"
// restriction: PREVIEW
// backend:
// rules:
// - selector: "google.calendar.v3.*"
// address: calendar.example
//
// authentication:
// providers:
// - id: google_calendar_auth
// jwks_uri: https:// googleapis /oauth2/v1/certs
// issuer: https://securetoken.google
// rules:
// - selector: "*"
// requirements:
// provider_id: google_calendar_auth
messageService{
// The service name, which is a DNS-like logical identifier for the
// service, such as `calendar.googleapis `. The service name
// typically goes through DNS verification to make sure the owner
// of the service also owns the DNS name.
stringname=1;
// The product title for this service, it is the name displayed in Google
// Cloud Console.
stringtitle=2;
// The Google project that owns this service.
stringproducer_project_id=22;
// A unique ID for a specific instance of this message, typically assigned
// by the client for tracking purpose. Must be no longer than 63 characters
// and only lower case letters, digits, '.', '_' and '-' are allowed. If
// empty, the server may choose to generate one instead.
stringid=33;
// A list of API interfaces exported by this service. Only the `name` field
// of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
// the configuration author, as the remaining fields will be derived from the
// IDL during the normalization process. It is an error to specify an API
// interface here which cannot be resolved against the associated IDL files.
repeatedgoogle.protobuf.Apiapis=3;
// A list of all proto message types included in this API service.
// Types referenced directly or indirectly by the `apis` are automatically
// included. Messages which are not referenced but shall be included, such as
// types used by the `google.protobuf.Any` type, should be listed here by
// name by the configuration author. Example:
//
// types:
// - name: google.protobuf.Int32
repeatedgoogle.protobuf.Typetypes=4;
// A list of all enum types included in this API service. Enums referenced
// directly or indirectly by the `apis` are automatically included. Enums
// which are not referenced but shall be included should be listed here by
// name by the configuration author. Example:
//
// enums:
// - name: google.someapi.v1.SomeEnum
repeatedgoogle.protobuf.Enumenums=5;
// Additional API documentation.
Documentationdocumentation=6;
// API backend configuration.
Backendbackend=8;
// HTTP configuration.
Httphttp=9;
// Quota configuration.
Quotaquota=10;
// Auth configuration.
Authenticationauthentication=11;
// Context configuration.
Contextcontext=12;
// Configuration controlling usage of this service.
Usageusage=15;
// Configuration for network endpoints. If this is empty, then an endpoint
// with the same name as the service is automatically generated to service all
// defined APIs.
repeatedEndpointendpoints=18;
// Configuration for the service control plane.
Controlcontrol=21;
// Defines the logs used by this service.
repeatedLogDescriptorlogs=23;
// Defines the metrics used by this service.
repeatedMetricDescriptormetrics=24;
// Defines the monitored resources used by this service. This is required
// by the [Service.monitoring][google.api.Service.monitoring] and
// [Service.logging][google.api.Service.logging] configurations.
repeatedMonitoredResourceDescriptormonitored_resources=25;
// Billing configuration.
Billingbilling=26;
// Logging configuration.
Logginglogging=27;
// Monitoring configuration.
Monitoringmonitoring=28;
// System parameter configuration.
SystemParameterssystem_parameters=29;
// Output only. The source information for this configuration if available.
SourceInfosource_info=37;
// Settings for [Google Cloud Client
// libraries](https://cloud.google /apis/docs/cloud-client-libraries)
// generated from APIs defined as protocol buffers.
Publishingpublishing=45;
// Obsolete. Do not use.
//
// This field has no semantic meaning. The service config compiler always
// sets this field to `3`.
google.protobuf.UInt32Valueconfig_version=20;
}