Debian Codegraph @

googleapis/api/servicecontrol/v1/alias.go

raw
1 // Copyright 2022 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
15 // Code generated by aliasgen. DO NOT EDIT.
16
17 // Package servicecontrol aliases all exported identifiers in package
18 // "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb".
19 //
20 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb.
21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
22 // for more details.
23 package servicecontrol
24
25 import (
26 src "cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb"
27 grpc "google.golang.org/grpc"
28 )
29
30 // Deprecated: Please use consts in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
31 const (
32 CheckError_API_KEY_EXPIRED = src.CheckError_API_KEY_EXPIRED
33 CheckError_API_KEY_INVALID = src.CheckError_API_KEY_INVALID
34 CheckError_API_KEY_NOT_FOUND = src.CheckError_API_KEY_NOT_FOUND
35 CheckError_API_TARGET_BLOCKED = src.CheckError_API_TARGET_BLOCKED
36 CheckError_BILLING_DISABLED = src.CheckError_BILLING_DISABLED
37 CheckError_BILLING_STATUS_UNAVAILABLE = src.CheckError_BILLING_STATUS_UNAVAILABLE
38 CheckError_CLIENT_APP_BLOCKED = src.CheckError_CLIENT_APP_BLOCKED
39 CheckError_CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE = src.CheckError_CLOUD_RESOURCE_MANAGER_BACKEND_UNAVAILABLE
40 CheckError_CONSUMER_INVALID = src.CheckError_CONSUMER_INVALID
41 CheckError_ERROR_CODE_UNSPECIFIED = src.CheckError_ERROR_CODE_UNSPECIFIED
42 CheckError_INVALID_CREDENTIAL = src.CheckError_INVALID_CREDENTIAL
43 CheckError_IP_ADDRESS_BLOCKED = src.CheckError_IP_ADDRESS_BLOCKED
44 CheckError_NAMESPACE_LOOKUP_UNAVAILABLE = src.CheckError_NAMESPACE_LOOKUP_UNAVAILABLE
45 CheckError_NOT_FOUND = src.CheckError_NOT_FOUND
46 CheckError_PERMISSION_DENIED = src.CheckError_PERMISSION_DENIED
47 CheckError_PROJECT_DELETED = src.CheckError_PROJECT_DELETED
48 CheckError_PROJECT_INVALID = src.CheckError_PROJECT_INVALID
49 CheckError_REFERER_BLOCKED = src.CheckError_REFERER_BLOCKED
50 CheckError_RESOURCE_EXHAUSTED = src.CheckError_RESOURCE_EXHAUSTED
51 CheckError_SERVICE_NOT_ACTIVATED = src.CheckError_SERVICE_NOT_ACTIVATED
52 CheckError_SERVICE_STATUS_UNAVAILABLE = src.CheckError_SERVICE_STATUS_UNAVAILABLE
53 CheckResponse_ConsumerInfo_CONSUMER_TYPE_UNSPECIFIED = src.CheckResponse_ConsumerInfo_CONSUMER_TYPE_UNSPECIFIED
54 CheckResponse_ConsumerInfo_FOLDER = src.CheckResponse_ConsumerInfo_FOLDER
55 CheckResponse_ConsumerInfo_ORGANIZATION = src.CheckResponse_ConsumerInfo_ORGANIZATION
56 CheckResponse_ConsumerInfo_PROJECT = src.CheckResponse_ConsumerInfo_PROJECT
57 CheckResponse_ConsumerInfo_SERVICE_SPECIFIC = src.CheckResponse_ConsumerInfo_SERVICE_SPECIFIC
58 Operation_HIGH = src.Operation_HIGH
59 Operation_LOW = src.Operation_LOW
60 QuotaError_API_KEY_EXPIRED = src.QuotaError_API_KEY_EXPIRED
61 QuotaError_API_KEY_INVALID = src.QuotaError_API_KEY_INVALID
62 QuotaError_BILLING_NOT_ACTIVE = src.QuotaError_BILLING_NOT_ACTIVE
63 QuotaError_PROJECT_DELETED = src.QuotaError_PROJECT_DELETED
64 QuotaError_RESOURCE_EXHAUSTED = src.QuotaError_RESOURCE_EXHAUSTED
65 QuotaError_UNSPECIFIED = src.QuotaError_UNSPECIFIED
66 QuotaOperation_ADJUST_ONLY = src.QuotaOperation_ADJUST_ONLY
67 QuotaOperation_BEST_EFFORT = src.QuotaOperation_BEST_EFFORT
68 QuotaOperation_CHECK_ONLY = src.QuotaOperation_CHECK_ONLY
69 QuotaOperation_NORMAL = src.QuotaOperation_NORMAL
70 QuotaOperation_QUERY_ONLY = src.QuotaOperation_QUERY_ONLY
71 QuotaOperation_UNSPECIFIED = src.QuotaOperation_UNSPECIFIED
72 )
73
74 // Deprecated: Please use vars in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
75 var (
76 CheckError_Code_name = src.CheckError_Code_name
77 CheckError_Code_value = src.CheckError_Code_value
78 CheckResponse_ConsumerInfo_ConsumerType_name = src.CheckResponse_ConsumerInfo_ConsumerType_name
79 CheckResponse_ConsumerInfo_ConsumerType_value = src.CheckResponse_ConsumerInfo_ConsumerType_value
80 File_google_api_servicecontrol_v1_check_error_proto = src.File_google_api_servicecontrol_v1_check_error_proto
81 File_google_api_servicecontrol_v1_distribution_proto = src.File_google_api_servicecontrol_v1_distribution_proto
82 File_google_api_servicecontrol_v1_http_request_proto = src.File_google_api_servicecontrol_v1_http_request_proto
83 File_google_api_servicecontrol_v1_log_entry_proto = src.File_google_api_servicecontrol_v1_log_entry_proto
84 File_google_api_servicecontrol_v1_metric_value_proto = src.File_google_api_servicecontrol_v1_metric_value_proto
85 File_google_api_servicecontrol_v1_operation_proto = src.File_google_api_servicecontrol_v1_operation_proto
86 File_google_api_servicecontrol_v1_quota_controller_proto = src.File_google_api_servicecontrol_v1_quota_controller_proto
87 File_google_api_servicecontrol_v1_service_controller_proto = src.File_google_api_servicecontrol_v1_service_controller_proto
88 Operation_Importance_name = src.Operation_Importance_name
89 Operation_Importance_value = src.Operation_Importance_value
90 QuotaError_Code_name = src.QuotaError_Code_name
91 QuotaError_Code_value = src.QuotaError_Code_value
92 QuotaOperation_QuotaMode_name = src.QuotaOperation_QuotaMode_name
93 QuotaOperation_QuotaMode_value = src.QuotaOperation_QuotaMode_value
94 )
95
96 // Request message for the AllocateQuota method.
97 //
98 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
99 type AllocateQuotaRequest = src.AllocateQuotaRequest
100
101 // Response message for the AllocateQuota method.
102 //
103 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
104 type AllocateQuotaResponse = src.AllocateQuotaResponse
105
106 // Defines the errors to be returned in
107 // [google.api.servicecontrol.v1.CheckResponse.check_errors][google.api.servicecontrol.v1.CheckResponse.check_errors].
108 //
109 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
110 type CheckError = src.CheckError
111
112 // Error codes for Check responses.
113 //
114 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
115 type CheckError_Code = src.CheckError_Code
116
117 // Request message for the Check method.
118 //
119 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
120 type CheckRequest = src.CheckRequest
121
122 // Response message for the Check method.
123 //
124 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
125 type CheckResponse = src.CheckResponse
126
127 // Contains additional information about the check operation.
128 //
129 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
130 type CheckResponse_CheckInfo = src.CheckResponse_CheckInfo
131
132 // `ConsumerInfo` provides information about the consumer.
133 //
134 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
135 type CheckResponse_ConsumerInfo = src.CheckResponse_ConsumerInfo
136
137 // The type of the consumer as defined in [Google Resource
138 // Manager](https://cloud.google.com/resource-manager/).
139 //
140 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
141 type CheckResponse_ConsumerInfo_ConsumerType = src.CheckResponse_ConsumerInfo_ConsumerType
142
143 // Distribution represents a frequency distribution of double-valued sample
144 // points. It contains the size of the population of sample points plus
145 // additional optional information: * the arithmetic mean of the samples * the
146 // minimum and maximum of the samples * the sum-squared-deviation of the
147 // samples, used to compute variance * a histogram of the values of the sample
148 // points
149 //
150 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
151 type Distribution = src.Distribution
152
153 // Describing buckets with arbitrary user-provided width.
154 //
155 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
156 type Distribution_ExplicitBuckets = src.Distribution_ExplicitBuckets
157 type Distribution_ExplicitBuckets_ = src.Distribution_ExplicitBuckets_
158
159 // Describing buckets with exponentially growing width.
160 //
161 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
162 type Distribution_ExponentialBuckets = src.Distribution_ExponentialBuckets
163 type Distribution_ExponentialBuckets_ = src.Distribution_ExponentialBuckets_
164
165 // Describing buckets with constant width.
166 //
167 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
168 type Distribution_LinearBuckets = src.Distribution_LinearBuckets
169 type Distribution_LinearBuckets_ = src.Distribution_LinearBuckets_
170
171 // A common proto for logging HTTP requests. Only contains semantics defined
172 // by the HTTP specification. Product-specific logging information MUST be
173 // defined in a separate message.
174 //
175 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
176 type HttpRequest = src.HttpRequest
177
178 // An individual log entry.
179 //
180 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
181 type LogEntry = src.LogEntry
182
183 // Additional information about a potentially long-running operation with
184 // which a log entry is associated.
185 //
186 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
187 type LogEntryOperation = src.LogEntryOperation
188
189 // Additional information about the source code location that produced the log
190 // entry.
191 //
192 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
193 type LogEntrySourceLocation = src.LogEntrySourceLocation
194 type LogEntry_ProtoPayload = src.LogEntry_ProtoPayload
195 type LogEntry_StructPayload = src.LogEntry_StructPayload
196 type LogEntry_TextPayload = src.LogEntry_TextPayload
197
198 // Represents a single metric value.
199 //
200 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
201 type MetricValue = src.MetricValue
202
203 // Represents a set of metric values in the same metric. Each metric value in
204 // the set should have a unique combination of start time, end time, and label
205 // values.
206 //
207 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
208 type MetricValueSet = src.MetricValueSet
209 type MetricValue_BoolValue = src.MetricValue_BoolValue
210 type MetricValue_DistributionValue = src.MetricValue_DistributionValue
211 type MetricValue_DoubleValue = src.MetricValue_DoubleValue
212 type MetricValue_Int64Value = src.MetricValue_Int64Value
213 type MetricValue_StringValue = src.MetricValue_StringValue
214
215 // Represents information regarding an operation.
216 //
217 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
218 type Operation = src.Operation
219
220 // Defines the importance of the data contained in the operation.
221 //
222 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
223 type Operation_Importance = src.Operation_Importance
224
225 // QuotaControllerClient is the client API for QuotaController service. For
226 // semantics around ctx use and closing/ending streaming RPCs, please refer to
227 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
228 //
229 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
230 type QuotaControllerClient = src.QuotaControllerClient
231
232 // QuotaControllerServer is the server API for QuotaController service.
233 //
234 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
235 type QuotaControllerServer = src.QuotaControllerServer
236
237 // Represents error information for
238 // [QuotaOperation][google.api.servicecontrol.v1.QuotaOperation].
239 //
240 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
241 type QuotaError = src.QuotaError
242
243 // Error codes related to project config validations are deprecated since the
244 // quota controller methods do not perform these validations. Instead services
245 // have to call the Check method, without quota_properties field, to perform
246 // these validations before calling the quota controller methods. These methods
247 // check only for project deletion to be wipe out compliant.
248 //
249 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
250 type QuotaError_Code = src.QuotaError_Code
251
252 // Represents information regarding a quota operation.
253 //
254 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
255 type QuotaOperation = src.QuotaOperation
256
257 // Supported quota modes.
258 //
259 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
260 type QuotaOperation_QuotaMode = src.QuotaOperation_QuotaMode
261
262 // Request message for the Report method.
263 //
264 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
265 type ReportRequest = src.ReportRequest
266
267 // Response message for the Report method.
268 //
269 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
270 type ReportResponse = src.ReportResponse
271
272 // Represents the processing error of one
273 // [Operation][google.api.servicecontrol.v1.Operation] in the request.
274 //
275 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
276 type ReportResponse_ReportError = src.ReportResponse_ReportError
277
278 // ServiceControllerClient is the client API for ServiceController service.
279 // For semantics around ctx use and closing/ending streaming RPCs, please refer
280 // to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
281 //
282 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
283 type ServiceControllerClient = src.ServiceControllerClient
284
285 // ServiceControllerServer is the server API for ServiceController service.
286 //
287 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
288 type ServiceControllerServer = src.ServiceControllerServer
289
290 // UnimplementedQuotaControllerServer can be embedded to have forward
291 // compatible implementations.
292 //
293 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
294 type UnimplementedQuotaControllerServer = src.UnimplementedQuotaControllerServer
295
296 // UnimplementedServiceControllerServer can be embedded to have forward
297 // compatible implementations.
298 //
299 // Deprecated: Please use types in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
300 type UnimplementedServiceControllerServer = src.UnimplementedServiceControllerServer
301
302 // Deprecated: Please use funcs in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
303 func NewQuotaControllerClient(cc grpc.ClientConnInterface) QuotaControllerClient {
304 return src.NewQuotaControllerClient(cc)
305 }
306
307 // Deprecated: Please use funcs in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
308 func NewServiceControllerClient(cc grpc.ClientConnInterface) ServiceControllerClient {
309 return src.NewServiceControllerClient(cc)
310 }
311
312 // Deprecated: Please use funcs in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
313 func RegisterQuotaControllerServer(s *grpc.Server, srv QuotaControllerServer) {
314 src.RegisterQuotaControllerServer(s, srv)
315 }
316
317 // Deprecated: Please use funcs in: cloud.google.com/go/servicecontrol/apiv1/servicecontrolpb
318 func RegisterServiceControllerServer(s *grpc.Server, srv ServiceControllerServer) {
319 src.RegisterServiceControllerServer(s, srv)
320 }