@accrescent/console-client-sdk-angular 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs +1880 -0
- package/fesm2022/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.mjs.map +1 -0
- package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs +364 -0
- package/fesm2022/accrescent-console-client-sdk-angular-buf-validate.mjs.map +1 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs +584 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-api.mjs.map +1 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs +94 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-longrunning.mjs.map +1 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs +32 -0
- package/fesm2022/accrescent-console-client-sdk-angular-google-rpc.mjs.map +1 -0
- package/fesm2022/accrescent-console-client-sdk-angular.mjs +3 -2282
- package/fesm2022/accrescent-console-client-sdk-angular.mjs.map +1 -1
- package/package.json +28 -10
- package/types/accrescent-console-client-sdk-angular-accrescent-console-v1alpha1.d.ts +3021 -0
- package/types/accrescent-console-client-sdk-angular-buf-validate.d.ts +4770 -0
- package/types/accrescent-console-client-sdk-angular-google-api.d.ts +1489 -0
- package/types/accrescent-console-client-sdk-angular-google-longrunning.d.ts +401 -0
- package/types/accrescent-console-client-sdk-angular-google-rpc.d.ts +52 -0
- package/types/accrescent-console-client-sdk-angular.d.ts +1 -1985
- package/README.md +0 -185
|
@@ -0,0 +1,401 @@
|
|
|
1
|
+
import { GenMessage, GenService, GenFile, GenExtension } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
+
import { Any, EmptySchema, Duration, MethodOptions } from '@bufbuild/protobuf/wkt';
|
|
3
|
+
import { Status } from '@accrescent/console-client-sdk-angular/google/rpc';
|
|
4
|
+
import { Message } from '@bufbuild/protobuf';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Describes the file google/longrunning/operations.proto.
|
|
8
|
+
*/
|
|
9
|
+
declare const file_google_longrunning_operations: GenFile;
|
|
10
|
+
/**
|
|
11
|
+
* This resource represents a long-running operation that is the result of a
|
|
12
|
+
* network API call.
|
|
13
|
+
*
|
|
14
|
+
* @generated from message google.longrunning.Operation
|
|
15
|
+
*/
|
|
16
|
+
type Operation = Message<"google.longrunning.Operation"> & {
|
|
17
|
+
/**
|
|
18
|
+
* The server-assigned name, which is only unique within the same service that
|
|
19
|
+
* originally returns it. If you use the default HTTP mapping, the
|
|
20
|
+
* `name` should be a resource name ending with `operations/{unique_id}`.
|
|
21
|
+
*
|
|
22
|
+
* @generated from field: string name = 1;
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Service-specific metadata associated with the operation. It typically
|
|
27
|
+
* contains progress information and common metadata such as create time.
|
|
28
|
+
* Some services might not provide such metadata. Any method that returns a
|
|
29
|
+
* long-running operation should document the metadata type, if any.
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: google.protobuf.Any metadata = 2;
|
|
32
|
+
*/
|
|
33
|
+
metadata?: Any;
|
|
34
|
+
/**
|
|
35
|
+
* If the value is `false`, it means the operation is still in progress.
|
|
36
|
+
* If `true`, the operation is completed, and either `error` or `response` is
|
|
37
|
+
* available.
|
|
38
|
+
*
|
|
39
|
+
* @generated from field: bool done = 3;
|
|
40
|
+
*/
|
|
41
|
+
done: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The operation result, which can be either an `error` or a valid `response`.
|
|
44
|
+
* If `done` == `false`, neither `error` nor `response` is set.
|
|
45
|
+
* If `done` == `true`, exactly one of `error` or `response` can be set.
|
|
46
|
+
* Some services might not provide the result.
|
|
47
|
+
*
|
|
48
|
+
* @generated from oneof google.longrunning.Operation.result
|
|
49
|
+
*/
|
|
50
|
+
result: {
|
|
51
|
+
/**
|
|
52
|
+
* The error result of the operation in case of failure or cancellation.
|
|
53
|
+
*
|
|
54
|
+
* @generated from field: google.rpc.Status error = 4;
|
|
55
|
+
*/
|
|
56
|
+
value: Status;
|
|
57
|
+
case: "error";
|
|
58
|
+
} | {
|
|
59
|
+
/**
|
|
60
|
+
* The normal, successful response of the operation. If the original
|
|
61
|
+
* method returns no data on success, such as `Delete`, the response is
|
|
62
|
+
* `google.protobuf.Empty`. If the original method is standard
|
|
63
|
+
* `Get`/`Create`/`Update`, the response should be the resource. For other
|
|
64
|
+
* methods, the response should have the type `XxxResponse`, where `Xxx`
|
|
65
|
+
* is the original method name. For example, if the original method name
|
|
66
|
+
* is `TakeSnapshot()`, the inferred response type is
|
|
67
|
+
* `TakeSnapshotResponse`.
|
|
68
|
+
*
|
|
69
|
+
* @generated from field: google.protobuf.Any response = 5;
|
|
70
|
+
*/
|
|
71
|
+
value: Any;
|
|
72
|
+
case: "response";
|
|
73
|
+
} | {
|
|
74
|
+
case: undefined;
|
|
75
|
+
value?: undefined;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Describes the message google.longrunning.Operation.
|
|
80
|
+
* Use `create(OperationSchema)` to create a new message.
|
|
81
|
+
*/
|
|
82
|
+
declare const OperationSchema: GenMessage<Operation>;
|
|
83
|
+
/**
|
|
84
|
+
* The request message for
|
|
85
|
+
* [Operations.GetOperation][google.longrunning.Operations.GetOperation].
|
|
86
|
+
*
|
|
87
|
+
* @generated from message google.longrunning.GetOperationRequest
|
|
88
|
+
*/
|
|
89
|
+
type GetOperationRequest = Message<"google.longrunning.GetOperationRequest"> & {
|
|
90
|
+
/**
|
|
91
|
+
* The name of the operation resource.
|
|
92
|
+
*
|
|
93
|
+
* @generated from field: string name = 1;
|
|
94
|
+
*/
|
|
95
|
+
name: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Describes the message google.longrunning.GetOperationRequest.
|
|
99
|
+
* Use `create(GetOperationRequestSchema)` to create a new message.
|
|
100
|
+
*/
|
|
101
|
+
declare const GetOperationRequestSchema: GenMessage<GetOperationRequest>;
|
|
102
|
+
/**
|
|
103
|
+
* The request message for
|
|
104
|
+
* [Operations.ListOperations][google.longrunning.Operations.ListOperations].
|
|
105
|
+
*
|
|
106
|
+
* @generated from message google.longrunning.ListOperationsRequest
|
|
107
|
+
*/
|
|
108
|
+
type ListOperationsRequest = Message<"google.longrunning.ListOperationsRequest"> & {
|
|
109
|
+
/**
|
|
110
|
+
* The name of the operation's parent resource.
|
|
111
|
+
*
|
|
112
|
+
* @generated from field: string name = 4;
|
|
113
|
+
*/
|
|
114
|
+
name: string;
|
|
115
|
+
/**
|
|
116
|
+
* The standard list filter.
|
|
117
|
+
*
|
|
118
|
+
* @generated from field: string filter = 1;
|
|
119
|
+
*/
|
|
120
|
+
filter: string;
|
|
121
|
+
/**
|
|
122
|
+
* The standard list page size.
|
|
123
|
+
*
|
|
124
|
+
* @generated from field: int32 page_size = 2;
|
|
125
|
+
*/
|
|
126
|
+
pageSize: number;
|
|
127
|
+
/**
|
|
128
|
+
* The standard list page token.
|
|
129
|
+
*
|
|
130
|
+
* @generated from field: string page_token = 3;
|
|
131
|
+
*/
|
|
132
|
+
pageToken: string;
|
|
133
|
+
/**
|
|
134
|
+
* When set to `true`, operations that are reachable are returned as normal,
|
|
135
|
+
* and those that are unreachable are returned in the
|
|
136
|
+
* [ListOperationsResponse.unreachable] field.
|
|
137
|
+
*
|
|
138
|
+
* This can only be `true` when reading across collections e.g. when `parent`
|
|
139
|
+
* is set to `"projects/example/locations/-"`.
|
|
140
|
+
*
|
|
141
|
+
* This field is not by default supported and will result in an
|
|
142
|
+
* `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
|
|
143
|
+
* service or product specific documentation.
|
|
144
|
+
*
|
|
145
|
+
* @generated from field: bool return_partial_success = 5;
|
|
146
|
+
*/
|
|
147
|
+
returnPartialSuccess: boolean;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Describes the message google.longrunning.ListOperationsRequest.
|
|
151
|
+
* Use `create(ListOperationsRequestSchema)` to create a new message.
|
|
152
|
+
*/
|
|
153
|
+
declare const ListOperationsRequestSchema: GenMessage<ListOperationsRequest>;
|
|
154
|
+
/**
|
|
155
|
+
* The response message for
|
|
156
|
+
* [Operations.ListOperations][google.longrunning.Operations.ListOperations].
|
|
157
|
+
*
|
|
158
|
+
* @generated from message google.longrunning.ListOperationsResponse
|
|
159
|
+
*/
|
|
160
|
+
type ListOperationsResponse = Message<"google.longrunning.ListOperationsResponse"> & {
|
|
161
|
+
/**
|
|
162
|
+
* A list of operations that matches the specified filter in the request.
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: repeated google.longrunning.Operation operations = 1;
|
|
165
|
+
*/
|
|
166
|
+
operations: Operation[];
|
|
167
|
+
/**
|
|
168
|
+
* The standard List next-page token.
|
|
169
|
+
*
|
|
170
|
+
* @generated from field: string next_page_token = 2;
|
|
171
|
+
*/
|
|
172
|
+
nextPageToken: string;
|
|
173
|
+
/**
|
|
174
|
+
* Unordered list. Unreachable resources. Populated when the request sets
|
|
175
|
+
* `ListOperationsRequest.return_partial_success` and reads across
|
|
176
|
+
* collections e.g. when attempting to list all resources across all supported
|
|
177
|
+
* locations.
|
|
178
|
+
*
|
|
179
|
+
* @generated from field: repeated string unreachable = 3;
|
|
180
|
+
*/
|
|
181
|
+
unreachable: string[];
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Describes the message google.longrunning.ListOperationsResponse.
|
|
185
|
+
* Use `create(ListOperationsResponseSchema)` to create a new message.
|
|
186
|
+
*/
|
|
187
|
+
declare const ListOperationsResponseSchema: GenMessage<ListOperationsResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* The request message for
|
|
190
|
+
* [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
|
|
191
|
+
*
|
|
192
|
+
* @generated from message google.longrunning.CancelOperationRequest
|
|
193
|
+
*/
|
|
194
|
+
type CancelOperationRequest = Message<"google.longrunning.CancelOperationRequest"> & {
|
|
195
|
+
/**
|
|
196
|
+
* The name of the operation resource to be cancelled.
|
|
197
|
+
*
|
|
198
|
+
* @generated from field: string name = 1;
|
|
199
|
+
*/
|
|
200
|
+
name: string;
|
|
201
|
+
};
|
|
202
|
+
/**
|
|
203
|
+
* Describes the message google.longrunning.CancelOperationRequest.
|
|
204
|
+
* Use `create(CancelOperationRequestSchema)` to create a new message.
|
|
205
|
+
*/
|
|
206
|
+
declare const CancelOperationRequestSchema: GenMessage<CancelOperationRequest>;
|
|
207
|
+
/**
|
|
208
|
+
* The request message for
|
|
209
|
+
* [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
|
|
210
|
+
*
|
|
211
|
+
* @generated from message google.longrunning.DeleteOperationRequest
|
|
212
|
+
*/
|
|
213
|
+
type DeleteOperationRequest = Message<"google.longrunning.DeleteOperationRequest"> & {
|
|
214
|
+
/**
|
|
215
|
+
* The name of the operation resource to be deleted.
|
|
216
|
+
*
|
|
217
|
+
* @generated from field: string name = 1;
|
|
218
|
+
*/
|
|
219
|
+
name: string;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* Describes the message google.longrunning.DeleteOperationRequest.
|
|
223
|
+
* Use `create(DeleteOperationRequestSchema)` to create a new message.
|
|
224
|
+
*/
|
|
225
|
+
declare const DeleteOperationRequestSchema: GenMessage<DeleteOperationRequest>;
|
|
226
|
+
/**
|
|
227
|
+
* The request message for
|
|
228
|
+
* [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
|
|
229
|
+
*
|
|
230
|
+
* @generated from message google.longrunning.WaitOperationRequest
|
|
231
|
+
*/
|
|
232
|
+
type WaitOperationRequest = Message<"google.longrunning.WaitOperationRequest"> & {
|
|
233
|
+
/**
|
|
234
|
+
* The name of the operation resource to wait on.
|
|
235
|
+
*
|
|
236
|
+
* @generated from field: string name = 1;
|
|
237
|
+
*/
|
|
238
|
+
name: string;
|
|
239
|
+
/**
|
|
240
|
+
* The maximum duration to wait before timing out. If left blank, the wait
|
|
241
|
+
* will be at most the time permitted by the underlying HTTP/RPC protocol.
|
|
242
|
+
* If RPC context deadline is also specified, the shorter one will be used.
|
|
243
|
+
*
|
|
244
|
+
* @generated from field: google.protobuf.Duration timeout = 2;
|
|
245
|
+
*/
|
|
246
|
+
timeout?: Duration;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Describes the message google.longrunning.WaitOperationRequest.
|
|
250
|
+
* Use `create(WaitOperationRequestSchema)` to create a new message.
|
|
251
|
+
*/
|
|
252
|
+
declare const WaitOperationRequestSchema: GenMessage<WaitOperationRequest>;
|
|
253
|
+
/**
|
|
254
|
+
* A message representing the message types used by a long-running operation.
|
|
255
|
+
*
|
|
256
|
+
* Example:
|
|
257
|
+
*
|
|
258
|
+
* rpc Export(ExportRequest) returns (google.longrunning.Operation) {
|
|
259
|
+
* option (google.longrunning.operation_info) = {
|
|
260
|
+
* response_type: "ExportResponse"
|
|
261
|
+
* metadata_type: "ExportMetadata"
|
|
262
|
+
* };
|
|
263
|
+
* }
|
|
264
|
+
*
|
|
265
|
+
* @generated from message google.longrunning.OperationInfo
|
|
266
|
+
*/
|
|
267
|
+
type OperationInfo = Message<"google.longrunning.OperationInfo"> & {
|
|
268
|
+
/**
|
|
269
|
+
* Required. The message name of the primary return type for this
|
|
270
|
+
* long-running operation.
|
|
271
|
+
* This type will be used to deserialize the LRO's response.
|
|
272
|
+
*
|
|
273
|
+
* If the response is in a different package from the rpc, a fully-qualified
|
|
274
|
+
* message name must be used (e.g. `google.protobuf.Struct`).
|
|
275
|
+
*
|
|
276
|
+
* Note: Altering this value constitutes a breaking change.
|
|
277
|
+
*
|
|
278
|
+
* @generated from field: string response_type = 1;
|
|
279
|
+
*/
|
|
280
|
+
responseType: string;
|
|
281
|
+
/**
|
|
282
|
+
* Required. The message name of the metadata type for this long-running
|
|
283
|
+
* operation.
|
|
284
|
+
*
|
|
285
|
+
* If the response is in a different package from the rpc, a fully-qualified
|
|
286
|
+
* message name must be used (e.g. `google.protobuf.Struct`).
|
|
287
|
+
*
|
|
288
|
+
* Note: Altering this value constitutes a breaking change.
|
|
289
|
+
*
|
|
290
|
+
* @generated from field: string metadata_type = 2;
|
|
291
|
+
*/
|
|
292
|
+
metadataType: string;
|
|
293
|
+
};
|
|
294
|
+
/**
|
|
295
|
+
* Describes the message google.longrunning.OperationInfo.
|
|
296
|
+
* Use `create(OperationInfoSchema)` to create a new message.
|
|
297
|
+
*/
|
|
298
|
+
declare const OperationInfoSchema: GenMessage<OperationInfo>;
|
|
299
|
+
/**
|
|
300
|
+
* Manages long-running operations with an API service.
|
|
301
|
+
*
|
|
302
|
+
* When an API method normally takes long time to complete, it can be designed
|
|
303
|
+
* to return [Operation][google.longrunning.Operation] to the client, and the
|
|
304
|
+
* client can use this interface to receive the real response asynchronously by
|
|
305
|
+
* polling the operation resource, or pass the operation resource to another API
|
|
306
|
+
* (such as Pub/Sub API) to receive the response. Any API service that returns
|
|
307
|
+
* long-running operations should implement the `Operations` interface so
|
|
308
|
+
* developers can have a consistent client experience.
|
|
309
|
+
*
|
|
310
|
+
* @generated from service google.longrunning.Operations
|
|
311
|
+
*/
|
|
312
|
+
declare const Operations: GenService<{
|
|
313
|
+
/**
|
|
314
|
+
* Lists operations that match the specified filter in the request. If the
|
|
315
|
+
* server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
316
|
+
*
|
|
317
|
+
* @generated from rpc google.longrunning.Operations.ListOperations
|
|
318
|
+
*/
|
|
319
|
+
listOperations: {
|
|
320
|
+
methodKind: "unary";
|
|
321
|
+
input: typeof ListOperationsRequestSchema;
|
|
322
|
+
output: typeof ListOperationsResponseSchema;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Gets the latest state of a long-running operation. Clients can use this
|
|
326
|
+
* method to poll the operation result at intervals as recommended by the API
|
|
327
|
+
* service.
|
|
328
|
+
*
|
|
329
|
+
* @generated from rpc google.longrunning.Operations.GetOperation
|
|
330
|
+
*/
|
|
331
|
+
getOperation: {
|
|
332
|
+
methodKind: "unary";
|
|
333
|
+
input: typeof GetOperationRequestSchema;
|
|
334
|
+
output: typeof OperationSchema;
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Deletes a long-running operation. This method indicates that the client is
|
|
338
|
+
* no longer interested in the operation result. It does not cancel the
|
|
339
|
+
* operation. If the server doesn't support this method, it returns
|
|
340
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
341
|
+
*
|
|
342
|
+
* @generated from rpc google.longrunning.Operations.DeleteOperation
|
|
343
|
+
*/
|
|
344
|
+
deleteOperation: {
|
|
345
|
+
methodKind: "unary";
|
|
346
|
+
input: typeof DeleteOperationRequestSchema;
|
|
347
|
+
output: typeof EmptySchema;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Starts asynchronous cancellation on a long-running operation. The server
|
|
351
|
+
* makes a best effort to cancel the operation, but success is not
|
|
352
|
+
* guaranteed. If the server doesn't support this method, it returns
|
|
353
|
+
* `google.rpc.Code.UNIMPLEMENTED`. Clients can use
|
|
354
|
+
* [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
|
|
355
|
+
* other methods to check whether the cancellation succeeded or whether the
|
|
356
|
+
* operation completed despite cancellation. On successful cancellation,
|
|
357
|
+
* the operation is not deleted; instead, it becomes an operation with
|
|
358
|
+
* an [Operation.error][google.longrunning.Operation.error] value with a
|
|
359
|
+
* [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to
|
|
360
|
+
* `Code.CANCELLED`.
|
|
361
|
+
*
|
|
362
|
+
* @generated from rpc google.longrunning.Operations.CancelOperation
|
|
363
|
+
*/
|
|
364
|
+
cancelOperation: {
|
|
365
|
+
methodKind: "unary";
|
|
366
|
+
input: typeof CancelOperationRequestSchema;
|
|
367
|
+
output: typeof EmptySchema;
|
|
368
|
+
};
|
|
369
|
+
/**
|
|
370
|
+
* Waits until the specified long-running operation is done or reaches at most
|
|
371
|
+
* a specified timeout, returning the latest state. If the operation is
|
|
372
|
+
* already done, the latest state is immediately returned. If the timeout
|
|
373
|
+
* specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
|
|
374
|
+
* timeout is used. If the server does not support this method, it returns
|
|
375
|
+
* `google.rpc.Code.UNIMPLEMENTED`.
|
|
376
|
+
* Note that this method is on a best-effort basis. It may return the latest
|
|
377
|
+
* state before the specified timeout (including immediately), meaning even an
|
|
378
|
+
* immediate response is no guarantee that the operation is done.
|
|
379
|
+
*
|
|
380
|
+
* @generated from rpc google.longrunning.Operations.WaitOperation
|
|
381
|
+
*/
|
|
382
|
+
waitOperation: {
|
|
383
|
+
methodKind: "unary";
|
|
384
|
+
input: typeof WaitOperationRequestSchema;
|
|
385
|
+
output: typeof OperationSchema;
|
|
386
|
+
};
|
|
387
|
+
}>;
|
|
388
|
+
/**
|
|
389
|
+
* Additional information regarding long-running operations.
|
|
390
|
+
* In particular, this specifies the types that are returned from
|
|
391
|
+
* long-running operations.
|
|
392
|
+
*
|
|
393
|
+
* Required for methods that return `google.longrunning.Operation`; invalid
|
|
394
|
+
* otherwise.
|
|
395
|
+
*
|
|
396
|
+
* @generated from extension: google.longrunning.OperationInfo operation_info = 1049;
|
|
397
|
+
*/
|
|
398
|
+
declare const operation_info: GenExtension<MethodOptions, OperationInfo>;
|
|
399
|
+
|
|
400
|
+
export { CancelOperationRequestSchema, DeleteOperationRequestSchema, GetOperationRequestSchema, ListOperationsRequestSchema, ListOperationsResponseSchema, OperationInfoSchema, OperationSchema, Operations, WaitOperationRequestSchema, file_google_longrunning_operations, operation_info };
|
|
401
|
+
export type { CancelOperationRequest, DeleteOperationRequest, GetOperationRequest, ListOperationsRequest, ListOperationsResponse, Operation, OperationInfo, WaitOperationRequest };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { GenMessage, GenFile } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
+
import { Any } from '@bufbuild/protobuf/wkt';
|
|
3
|
+
import { Message } from '@bufbuild/protobuf';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Describes the file google/rpc/status.proto.
|
|
7
|
+
*/
|
|
8
|
+
declare const file_google_rpc_status: GenFile;
|
|
9
|
+
/**
|
|
10
|
+
* The `Status` type defines a logical error model that is suitable for
|
|
11
|
+
* different programming environments, including REST APIs and RPC APIs. It is
|
|
12
|
+
* used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
|
13
|
+
* three pieces of data: error code, error message, and error details.
|
|
14
|
+
*
|
|
15
|
+
* You can find out more about this error model and how to work with it in the
|
|
16
|
+
* [API Design Guide](https://cloud.google.com/apis/design/errors).
|
|
17
|
+
*
|
|
18
|
+
* @generated from message google.rpc.Status
|
|
19
|
+
*/
|
|
20
|
+
type Status = Message<"google.rpc.Status"> & {
|
|
21
|
+
/**
|
|
22
|
+
* The status code, which should be an enum value of
|
|
23
|
+
* [google.rpc.Code][google.rpc.Code].
|
|
24
|
+
*
|
|
25
|
+
* @generated from field: int32 code = 1;
|
|
26
|
+
*/
|
|
27
|
+
code: number;
|
|
28
|
+
/**
|
|
29
|
+
* A developer-facing error message, which should be in English. Any
|
|
30
|
+
* user-facing error message should be localized and sent in the
|
|
31
|
+
* [google.rpc.Status.details][google.rpc.Status.details] field, or localized
|
|
32
|
+
* by the client.
|
|
33
|
+
*
|
|
34
|
+
* @generated from field: string message = 2;
|
|
35
|
+
*/
|
|
36
|
+
message: string;
|
|
37
|
+
/**
|
|
38
|
+
* A list of messages that carry the error details. There is a common set of
|
|
39
|
+
* message types for APIs to use.
|
|
40
|
+
*
|
|
41
|
+
* @generated from field: repeated google.protobuf.Any details = 3;
|
|
42
|
+
*/
|
|
43
|
+
details: Any[];
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Describes the message google.rpc.Status.
|
|
47
|
+
* Use `create(StatusSchema)` to create a new message.
|
|
48
|
+
*/
|
|
49
|
+
declare const StatusSchema: GenMessage<Status>;
|
|
50
|
+
|
|
51
|
+
export { StatusSchema, file_google_rpc_status };
|
|
52
|
+
export type { Status };
|