@canton-network/core-ledger-proto 0.1.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/README.md +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts +58 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts +232 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/command_inspection_service.js +560 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts +144 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.client.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/identity_provider_config_service.js +663 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts +76 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/object_meta.js +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts +106 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.client.js +62 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/package_management_service.js +427 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.client.js +35 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts +81 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/participant_pruning_service.js +135 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.client.js +113 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts +413 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/party_management_service.js +867 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.client.js +126 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts +758 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/admin/user_management_service.js +1580 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts +66 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.client.js +38 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts +90 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_completion_service.js +178 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts +99 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.client.js +61 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts +210 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_service.js +436 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts +80 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.client.js +47 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/command_submission_service.js +200 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts +491 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/commands.js +828 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts +149 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/completion.js +196 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts +495 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event.js +723 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts +52 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.client.js +31 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts +150 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/event_query_service.js +291 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts +96 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/experimental_features.js +225 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_common_data.js +85 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts +100 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.client.js +59 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts +877 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/interactive_submission_service.js +1768 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts +259 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/interactive/transaction/v1/interactive_submission_data.js +667 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/offset_checkpoint.js +133 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts +41 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_reference.js +84 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts +68 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.client.js +43 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts +181 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/package_service.js +395 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts +308 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment.js +521 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts +193 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/reassignment_commands.js +350 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts +91 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.client.js +56 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts +448 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/state_service.js +874 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts +54 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.client.js +34 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts +78 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/testing/time_service.js +168 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts +211 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/topology_transaction.js +447 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts +33 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/trace_context.js +69 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts +252 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction.js +410 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts +453 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/transaction_filter.js +815 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts +199 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.client.js +121 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts +424 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/update_service.js +853 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts +500 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/value.js +937 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts +40 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.client.js +25 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts +190 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.d.ts.map +1 -0
- package/dist/_proto/com/daml/ledger/api/v2/version_service.js +400 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts +1028 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/crypto/v30/crypto.js +2110 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts +30 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/sequencing_parameters.js +62 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts +168 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/synchronizer_parameters.js +395 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts +1105 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/topology.js +2294 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts +278 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/protocol/v30/traffic_control_parameters.js +654 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts +166 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/common.js +379 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts +199 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.client.js +136 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts +1195 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_read_service.js +3342 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts +119 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.client.js +76 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts +607 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.d.ts.map +1 -0
- package/dist/_proto/com/digitalasset/canton/topology/admin/v30/topology_manager_write_service.js +1292 -0
- package/dist/_proto/google/protobuf/any.d.ts +177 -0
- package/dist/_proto/google/protobuf/any.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/any.js +175 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts +1638 -0
- package/dist/_proto/google/protobuf/descriptor.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/descriptor.js +2999 -0
- package/dist/_proto/google/protobuf/duration.d.ts +114 -0
- package/dist/_proto/google/protobuf/duration.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/duration.js +113 -0
- package/dist/_proto/google/protobuf/empty.d.ts +33 -0
- package/dist/_proto/google/protobuf/empty.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/empty.js +41 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts +240 -0
- package/dist/_proto/google/protobuf/field_mask.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/field_mask.js +95 -0
- package/dist/_proto/google/protobuf/struct.d.ts +187 -0
- package/dist/_proto/google/protobuf/struct.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/struct.js +417 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts +159 -0
- package/dist/_proto/google/protobuf/timestamp.d.ts.map +1 -0
- package/dist/_proto/google/protobuf/timestamp.js +157 -0
- package/dist/_proto/google/rpc/code.d.ts +219 -0
- package/dist/_proto/google/rpc/code.d.ts.map +1 -0
- package/dist/_proto/google/rpc/code.js +237 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts +594 -0
- package/dist/_proto/google/rpc/context/attribute_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/attribute_context.js +1007 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts +62 -0
- package/dist/_proto/google/rpc/context/audit_context.d.ts.map +1 -0
- package/dist/_proto/google/rpc/context/audit_context.js +111 -0
- package/dist/_proto/google/rpc/error_details.d.ts +549 -0
- package/dist/_proto/google/rpc/error_details.d.ts.map +1 -0
- package/dist/_proto/google/rpc/error_details.js +918 -0
- package/dist/_proto/google/rpc/status.d.ts +55 -0
- package/dist/_proto/google/rpc/status.d.ts.map +1 -0
- package/dist/_proto/google/rpc/status.js +79 -0
- package/dist/_proto/scalapb/scalapb.d.ts +779 -0
- package/dist/_proto/scalapb/scalapb.d.ts.map +1 -0
- package/dist/_proto/scalapb/scalapb.js +1658 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/package.json +29 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
|
|
2
|
+
import type { IBinaryWriter } from '@protobuf-ts/runtime';
|
|
3
|
+
import type { BinaryReadOptions } from '@protobuf-ts/runtime';
|
|
4
|
+
import type { IBinaryReader } from '@protobuf-ts/runtime';
|
|
5
|
+
import type { PartialMessage } from '@protobuf-ts/runtime';
|
|
6
|
+
import type { JsonValue } from '@protobuf-ts/runtime';
|
|
7
|
+
import type { JsonReadOptions } from '@protobuf-ts/runtime';
|
|
8
|
+
import type { JsonWriteOptions } from '@protobuf-ts/runtime';
|
|
9
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
10
|
+
/**
|
|
11
|
+
* A Timestamp represents a point in time independent of any time zone or local
|
|
12
|
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
|
13
|
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
|
14
|
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
|
15
|
+
* Gregorian calendar backwards to year one.
|
|
16
|
+
*
|
|
17
|
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
|
18
|
+
* second table is needed for interpretation, using a [24-hour linear
|
|
19
|
+
* smear](https://developers.google.com/time/smear).
|
|
20
|
+
*
|
|
21
|
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
|
22
|
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
|
23
|
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
|
24
|
+
*
|
|
25
|
+
* # Examples
|
|
26
|
+
*
|
|
27
|
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
|
28
|
+
*
|
|
29
|
+
* Timestamp timestamp;
|
|
30
|
+
* timestamp.set_seconds(time(NULL));
|
|
31
|
+
* timestamp.set_nanos(0);
|
|
32
|
+
*
|
|
33
|
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
|
34
|
+
*
|
|
35
|
+
* struct timeval tv;
|
|
36
|
+
* gettimeofday(&tv, NULL);
|
|
37
|
+
*
|
|
38
|
+
* Timestamp timestamp;
|
|
39
|
+
* timestamp.set_seconds(tv.tv_sec);
|
|
40
|
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
|
41
|
+
*
|
|
42
|
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
|
43
|
+
*
|
|
44
|
+
* FILETIME ft;
|
|
45
|
+
* GetSystemTimeAsFileTime(&ft);
|
|
46
|
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
|
47
|
+
*
|
|
48
|
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
|
49
|
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
|
50
|
+
* Timestamp timestamp;
|
|
51
|
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
|
52
|
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
|
53
|
+
*
|
|
54
|
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
|
55
|
+
*
|
|
56
|
+
* long millis = System.currentTimeMillis();
|
|
57
|
+
*
|
|
58
|
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
|
59
|
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
|
60
|
+
*
|
|
61
|
+
*
|
|
62
|
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
|
63
|
+
*
|
|
64
|
+
* Instant now = Instant.now();
|
|
65
|
+
*
|
|
66
|
+
* Timestamp timestamp =
|
|
67
|
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
|
68
|
+
* .setNanos(now.getNano()).build();
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* Example 6: Compute Timestamp from current time in Python.
|
|
72
|
+
*
|
|
73
|
+
* timestamp = Timestamp()
|
|
74
|
+
* timestamp.GetCurrentTime()
|
|
75
|
+
*
|
|
76
|
+
* # JSON Mapping
|
|
77
|
+
*
|
|
78
|
+
* In JSON format, the Timestamp type is encoded as a string in the
|
|
79
|
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
|
80
|
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
|
81
|
+
* where {year} is always expressed using four digits while {month}, {day},
|
|
82
|
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
|
83
|
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
|
84
|
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
|
85
|
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
|
86
|
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
|
87
|
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
|
88
|
+
*
|
|
89
|
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
|
90
|
+
* 01:30 UTC on January 15, 2017.
|
|
91
|
+
*
|
|
92
|
+
* In JavaScript, one can convert a Date object to this format using the
|
|
93
|
+
* standard
|
|
94
|
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
|
95
|
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
|
96
|
+
* to this format using
|
|
97
|
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
|
98
|
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
|
99
|
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
|
100
|
+
* http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
|
101
|
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
|
102
|
+
*
|
|
103
|
+
*
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf message google.protobuf.Timestamp
|
|
106
|
+
*/
|
|
107
|
+
export interface Timestamp {
|
|
108
|
+
/**
|
|
109
|
+
* Represents seconds of UTC time since Unix epoch
|
|
110
|
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
|
111
|
+
* 9999-12-31T23:59:59Z inclusive.
|
|
112
|
+
*
|
|
113
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
114
|
+
*/
|
|
115
|
+
seconds: bigint;
|
|
116
|
+
/**
|
|
117
|
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
|
118
|
+
* second values with fractions must still have non-negative nanos values
|
|
119
|
+
* that count forward in time. Must be from 0 to 999,999,999
|
|
120
|
+
* inclusive.
|
|
121
|
+
*
|
|
122
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
123
|
+
*/
|
|
124
|
+
nanos: number;
|
|
125
|
+
}
|
|
126
|
+
declare class Timestamp$Type extends MessageType<Timestamp> {
|
|
127
|
+
constructor();
|
|
128
|
+
/**
|
|
129
|
+
* Creates a new `Timestamp` for the current time.
|
|
130
|
+
*/
|
|
131
|
+
now(): Timestamp;
|
|
132
|
+
/**
|
|
133
|
+
* Converts a `Timestamp` to a JavaScript Date.
|
|
134
|
+
*/
|
|
135
|
+
toDate(message: Timestamp): Date;
|
|
136
|
+
/**
|
|
137
|
+
* Converts a JavaScript Date to a `Timestamp`.
|
|
138
|
+
*/
|
|
139
|
+
fromDate(date: Date): Timestamp;
|
|
140
|
+
/**
|
|
141
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
142
|
+
* in the RFC 3339 format.
|
|
143
|
+
*/
|
|
144
|
+
internalJsonWrite(message: Timestamp, options: JsonWriteOptions): JsonValue;
|
|
145
|
+
/**
|
|
146
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
147
|
+
* in the RFC 3339 format.
|
|
148
|
+
*/
|
|
149
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Timestamp): Timestamp;
|
|
150
|
+
create(value?: PartialMessage<Timestamp>): Timestamp;
|
|
151
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Timestamp): Timestamp;
|
|
152
|
+
internalBinaryWrite(message: Timestamp, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated MessageType for protobuf message google.protobuf.Timestamp
|
|
156
|
+
*/
|
|
157
|
+
export declare const Timestamp: Timestamp$Type;
|
|
158
|
+
export {};
|
|
159
|
+
//# sourceMappingURL=timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/protobuf/timestamp.ts"],"names":[],"mappings":"AAkCA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAClD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;AACH,MAAM,WAAW,SAAS;IACtB;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAA;CAChB;AAED,cAAM,cAAe,SAAQ,WAAW,CAAC,SAAS,CAAC;;IAa/C;;OAEG;IACH,GAAG,IAAI,SAAS;IAOhB;;OAEG;IACH,MAAM,CAAC,OAAO,EAAE,SAAS,GAAG,IAAI;IAMhC;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS;IAQ/B;;;OAGG;IACH,iBAAiB,CACb,OAAO,EAAE,SAAS,EAClB,OAAO,EAAE,gBAAgB,GAC1B,SAAS;IAwBZ;;;OAGG;IACH,gBAAgB,CACZ,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,eAAe,EACxB,MAAM,CAAC,EAAE,SAAS,GACnB,SAAS;IAgDZ,MAAM,CAAC,KAAK,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS;IAQpD,kBAAkB,CACd,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,SAAS,GACnB,SAAS;IA+BZ,mBAAmB,CACf,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,aAAa,EACrB,OAAO,EAAE,kBAAkB,GAC5B,aAAa;CAgBnB;AACD;;GAEG;AACH,eAAO,MAAM,SAAS,gBAAuB,CAAA"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { WireType } from '@protobuf-ts/runtime';
|
|
2
|
+
import { UnknownFieldHandler } from '@protobuf-ts/runtime';
|
|
3
|
+
import { reflectionMergePartial } from '@protobuf-ts/runtime';
|
|
4
|
+
import { typeofJsonValue } from '@protobuf-ts/runtime';
|
|
5
|
+
import { PbLong } from '@protobuf-ts/runtime';
|
|
6
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
7
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
8
|
+
class Timestamp$Type extends MessageType {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('google.protobuf.Timestamp', [
|
|
11
|
+
{
|
|
12
|
+
no: 1,
|
|
13
|
+
name: 'seconds',
|
|
14
|
+
kind: 'scalar',
|
|
15
|
+
T: 3 /*ScalarType.INT64*/,
|
|
16
|
+
L: 0 /*LongType.BIGINT*/,
|
|
17
|
+
},
|
|
18
|
+
{ no: 2, name: 'nanos', kind: 'scalar', T: 5 /*ScalarType.INT32*/ },
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new `Timestamp` for the current time.
|
|
23
|
+
*/
|
|
24
|
+
now() {
|
|
25
|
+
const msg = this.create();
|
|
26
|
+
const ms = Date.now();
|
|
27
|
+
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
28
|
+
msg.nanos = (ms % 1000) * 1000000;
|
|
29
|
+
return msg;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Converts a `Timestamp` to a JavaScript Date.
|
|
33
|
+
*/
|
|
34
|
+
toDate(message) {
|
|
35
|
+
return new Date(PbLong.from(message.seconds).toNumber() * 1000 +
|
|
36
|
+
Math.ceil(message.nanos / 1000000));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Converts a JavaScript Date to a `Timestamp`.
|
|
40
|
+
*/
|
|
41
|
+
fromDate(date) {
|
|
42
|
+
const msg = this.create();
|
|
43
|
+
const ms = date.getTime();
|
|
44
|
+
msg.seconds = PbLong.from(Math.floor(ms / 1000)).toBigInt();
|
|
45
|
+
msg.nanos =
|
|
46
|
+
((ms % 1000) + (ms < 0 && ms % 1000 !== 0 ? 1000 : 0)) * 1000000;
|
|
47
|
+
return msg;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
51
|
+
* in the RFC 3339 format.
|
|
52
|
+
*/
|
|
53
|
+
internalJsonWrite(message, options) {
|
|
54
|
+
let ms = PbLong.from(message.seconds).toNumber() * 1000;
|
|
55
|
+
if (ms < Date.parse('0001-01-01T00:00:00Z') ||
|
|
56
|
+
ms > Date.parse('9999-12-31T23:59:59Z'))
|
|
57
|
+
throw new Error('Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.');
|
|
58
|
+
if (message.nanos < 0)
|
|
59
|
+
throw new Error('Unable to encode invalid Timestamp to JSON. Nanos must not be negative.');
|
|
60
|
+
let z = 'Z';
|
|
61
|
+
if (message.nanos > 0) {
|
|
62
|
+
let nanosStr = (message.nanos + 1000000000).toString().substring(1);
|
|
63
|
+
if (nanosStr.substring(3) === '000000')
|
|
64
|
+
z = '.' + nanosStr.substring(0, 3) + 'Z';
|
|
65
|
+
else if (nanosStr.substring(6) === '000')
|
|
66
|
+
z = '.' + nanosStr.substring(0, 6) + 'Z';
|
|
67
|
+
else
|
|
68
|
+
z = '.' + nanosStr + 'Z';
|
|
69
|
+
}
|
|
70
|
+
return new Date(ms).toISOString().replace('.000Z', z);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* In JSON format, the `Timestamp` type is encoded as a string
|
|
74
|
+
* in the RFC 3339 format.
|
|
75
|
+
*/
|
|
76
|
+
internalJsonRead(json, options, target) {
|
|
77
|
+
if (typeof json !== 'string')
|
|
78
|
+
throw new Error('Unable to parse Timestamp from JSON ' +
|
|
79
|
+
typeofJsonValue(json) +
|
|
80
|
+
'.');
|
|
81
|
+
let matches = json.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);
|
|
82
|
+
if (!matches)
|
|
83
|
+
throw new Error('Unable to parse Timestamp from JSON. Invalid format.');
|
|
84
|
+
let ms = Date.parse(matches[1] +
|
|
85
|
+
'-' +
|
|
86
|
+
matches[2] +
|
|
87
|
+
'-' +
|
|
88
|
+
matches[3] +
|
|
89
|
+
'T' +
|
|
90
|
+
matches[4] +
|
|
91
|
+
':' +
|
|
92
|
+
matches[5] +
|
|
93
|
+
':' +
|
|
94
|
+
matches[6] +
|
|
95
|
+
(matches[8] ? matches[8] : 'Z'));
|
|
96
|
+
if (Number.isNaN(ms))
|
|
97
|
+
throw new Error('Unable to parse Timestamp from JSON. Invalid value.');
|
|
98
|
+
if (ms < Date.parse('0001-01-01T00:00:00Z') ||
|
|
99
|
+
ms > Date.parse('9999-12-31T23:59:59Z'))
|
|
100
|
+
throw new globalThis.Error('Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.');
|
|
101
|
+
if (!target)
|
|
102
|
+
target = this.create();
|
|
103
|
+
target.seconds = PbLong.from(ms / 1000).toBigInt();
|
|
104
|
+
target.nanos = 0;
|
|
105
|
+
if (matches[7])
|
|
106
|
+
target.nanos =
|
|
107
|
+
parseInt('1' + matches[7] + '0'.repeat(9 - matches[7].length)) -
|
|
108
|
+
1000000000;
|
|
109
|
+
return target;
|
|
110
|
+
}
|
|
111
|
+
create(value) {
|
|
112
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
113
|
+
message.seconds = 0n;
|
|
114
|
+
message.nanos = 0;
|
|
115
|
+
if (value !== undefined)
|
|
116
|
+
reflectionMergePartial(this, message, value);
|
|
117
|
+
return message;
|
|
118
|
+
}
|
|
119
|
+
internalBinaryRead(reader, length, options, target) {
|
|
120
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
121
|
+
while (reader.pos < end) {
|
|
122
|
+
let [fieldNo, wireType] = reader.tag();
|
|
123
|
+
switch (fieldNo) {
|
|
124
|
+
case /* int64 seconds */ 1:
|
|
125
|
+
message.seconds = reader.int64().toBigInt();
|
|
126
|
+
break;
|
|
127
|
+
case /* int32 nanos */ 2:
|
|
128
|
+
message.nanos = reader.int32();
|
|
129
|
+
break;
|
|
130
|
+
default:
|
|
131
|
+
let u = options.readUnknownField;
|
|
132
|
+
if (u === 'throw')
|
|
133
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
134
|
+
let d = reader.skip(wireType);
|
|
135
|
+
if (u !== false)
|
|
136
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
return message;
|
|
140
|
+
}
|
|
141
|
+
internalBinaryWrite(message, writer, options) {
|
|
142
|
+
/* int64 seconds = 1; */
|
|
143
|
+
if (message.seconds !== 0n)
|
|
144
|
+
writer.tag(1, WireType.Varint).int64(message.seconds);
|
|
145
|
+
/* int32 nanos = 2; */
|
|
146
|
+
if (message.nanos !== 0)
|
|
147
|
+
writer.tag(2, WireType.Varint).int32(message.nanos);
|
|
148
|
+
let u = options.writeUnknownFields;
|
|
149
|
+
if (u !== false)
|
|
150
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
151
|
+
return writer;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* @generated MessageType for protobuf message google.protobuf.Timestamp
|
|
156
|
+
*/
|
|
157
|
+
export const Timestamp = new Timestamp$Type();
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The canonical error codes for gRPC APIs.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
* Sometimes multiple error codes may apply. Services should return
|
|
6
|
+
* the most specific error code that applies. For example, prefer
|
|
7
|
+
* `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
|
|
8
|
+
* Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
|
|
9
|
+
*
|
|
10
|
+
* @generated from protobuf enum google.rpc.Code
|
|
11
|
+
*/
|
|
12
|
+
export declare enum Code {
|
|
13
|
+
/**
|
|
14
|
+
* Not an error; returned on success.
|
|
15
|
+
*
|
|
16
|
+
* HTTP Mapping: 200 OK
|
|
17
|
+
*
|
|
18
|
+
* @generated from protobuf enum value: OK = 0;
|
|
19
|
+
*/
|
|
20
|
+
OK = 0,
|
|
21
|
+
/**
|
|
22
|
+
* The operation was cancelled, typically by the caller.
|
|
23
|
+
*
|
|
24
|
+
* HTTP Mapping: 499 Client Closed Request
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf enum value: CANCELLED = 1;
|
|
27
|
+
*/
|
|
28
|
+
CANCELLED = 1,
|
|
29
|
+
/**
|
|
30
|
+
* Unknown error. For example, this error may be returned when
|
|
31
|
+
* a `Status` value received from another address space belongs to
|
|
32
|
+
* an error space that is not known in this address space. Also
|
|
33
|
+
* errors raised by APIs that do not return enough error information
|
|
34
|
+
* may be converted to this error.
|
|
35
|
+
*
|
|
36
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf enum value: UNKNOWN = 2;
|
|
39
|
+
*/
|
|
40
|
+
UNKNOWN = 2,
|
|
41
|
+
/**
|
|
42
|
+
* The client specified an invalid argument. Note that this differs
|
|
43
|
+
* from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
|
|
44
|
+
* that are problematic regardless of the state of the system
|
|
45
|
+
* (e.g., a malformed file name).
|
|
46
|
+
*
|
|
47
|
+
* HTTP Mapping: 400 Bad Request
|
|
48
|
+
*
|
|
49
|
+
* @generated from protobuf enum value: INVALID_ARGUMENT = 3;
|
|
50
|
+
*/
|
|
51
|
+
INVALID_ARGUMENT = 3,
|
|
52
|
+
/**
|
|
53
|
+
* The deadline expired before the operation could complete. For operations
|
|
54
|
+
* that change the state of the system, this error may be returned
|
|
55
|
+
* even if the operation has completed successfully. For example, a
|
|
56
|
+
* successful response from a server could have been delayed long
|
|
57
|
+
* enough for the deadline to expire.
|
|
58
|
+
*
|
|
59
|
+
* HTTP Mapping: 504 Gateway Timeout
|
|
60
|
+
*
|
|
61
|
+
* @generated from protobuf enum value: DEADLINE_EXCEEDED = 4;
|
|
62
|
+
*/
|
|
63
|
+
DEADLINE_EXCEEDED = 4,
|
|
64
|
+
/**
|
|
65
|
+
* Some requested entity (e.g., file or directory) was not found.
|
|
66
|
+
*
|
|
67
|
+
* Note to server developers: if a request is denied for an entire class
|
|
68
|
+
* of users, such as gradual feature rollout or undocumented allowlist,
|
|
69
|
+
* `NOT_FOUND` may be used. If a request is denied for some users within
|
|
70
|
+
* a class of users, such as user-based access control, `PERMISSION_DENIED`
|
|
71
|
+
* must be used.
|
|
72
|
+
*
|
|
73
|
+
* HTTP Mapping: 404 Not Found
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf enum value: NOT_FOUND = 5;
|
|
76
|
+
*/
|
|
77
|
+
NOT_FOUND = 5,
|
|
78
|
+
/**
|
|
79
|
+
* The entity that a client attempted to create (e.g., file or directory)
|
|
80
|
+
* already exists.
|
|
81
|
+
*
|
|
82
|
+
* HTTP Mapping: 409 Conflict
|
|
83
|
+
*
|
|
84
|
+
* @generated from protobuf enum value: ALREADY_EXISTS = 6;
|
|
85
|
+
*/
|
|
86
|
+
ALREADY_EXISTS = 6,
|
|
87
|
+
/**
|
|
88
|
+
* The caller does not have permission to execute the specified
|
|
89
|
+
* operation. `PERMISSION_DENIED` must not be used for rejections
|
|
90
|
+
* caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
|
|
91
|
+
* instead for those errors). `PERMISSION_DENIED` must not be
|
|
92
|
+
* used if the caller can not be identified (use `UNAUTHENTICATED`
|
|
93
|
+
* instead for those errors). This error code does not imply the
|
|
94
|
+
* request is valid or the requested entity exists or satisfies
|
|
95
|
+
* other pre-conditions.
|
|
96
|
+
*
|
|
97
|
+
* HTTP Mapping: 403 Forbidden
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf enum value: PERMISSION_DENIED = 7;
|
|
100
|
+
*/
|
|
101
|
+
PERMISSION_DENIED = 7,
|
|
102
|
+
/**
|
|
103
|
+
* The request does not have valid authentication credentials for the
|
|
104
|
+
* operation.
|
|
105
|
+
*
|
|
106
|
+
* HTTP Mapping: 401 Unauthorized
|
|
107
|
+
*
|
|
108
|
+
* @generated from protobuf enum value: UNAUTHENTICATED = 16;
|
|
109
|
+
*/
|
|
110
|
+
UNAUTHENTICATED = 16,
|
|
111
|
+
/**
|
|
112
|
+
* Some resource has been exhausted, perhaps a per-user quota, or
|
|
113
|
+
* perhaps the entire file system is out of space.
|
|
114
|
+
*
|
|
115
|
+
* HTTP Mapping: 429 Too Many Requests
|
|
116
|
+
*
|
|
117
|
+
* @generated from protobuf enum value: RESOURCE_EXHAUSTED = 8;
|
|
118
|
+
*/
|
|
119
|
+
RESOURCE_EXHAUSTED = 8,
|
|
120
|
+
/**
|
|
121
|
+
* The operation was rejected because the system is not in a state
|
|
122
|
+
* required for the operation's execution. For example, the directory
|
|
123
|
+
* to be deleted is non-empty, an rmdir operation is applied to
|
|
124
|
+
* a non-directory, etc.
|
|
125
|
+
*
|
|
126
|
+
* Service implementors can use the following guidelines to decide
|
|
127
|
+
* between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
|
|
128
|
+
* (a) Use `UNAVAILABLE` if the client can retry just the failing call.
|
|
129
|
+
* (b) Use `ABORTED` if the client should retry at a higher level. For
|
|
130
|
+
* example, when a client-specified test-and-set fails, indicating the
|
|
131
|
+
* client should restart a read-modify-write sequence.
|
|
132
|
+
* (c) Use `FAILED_PRECONDITION` if the client should not retry until
|
|
133
|
+
* the system state has been explicitly fixed. For example, if an "rmdir"
|
|
134
|
+
* fails because the directory is non-empty, `FAILED_PRECONDITION`
|
|
135
|
+
* should be returned since the client should not retry unless
|
|
136
|
+
* the files are deleted from the directory.
|
|
137
|
+
*
|
|
138
|
+
* HTTP Mapping: 400 Bad Request
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf enum value: FAILED_PRECONDITION = 9;
|
|
141
|
+
*/
|
|
142
|
+
FAILED_PRECONDITION = 9,
|
|
143
|
+
/**
|
|
144
|
+
* The operation was aborted, typically due to a concurrency issue such as
|
|
145
|
+
* a sequencer check failure or transaction abort.
|
|
146
|
+
*
|
|
147
|
+
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
|
148
|
+
* `ABORTED`, and `UNAVAILABLE`.
|
|
149
|
+
*
|
|
150
|
+
* HTTP Mapping: 409 Conflict
|
|
151
|
+
*
|
|
152
|
+
* @generated from protobuf enum value: ABORTED = 10;
|
|
153
|
+
*/
|
|
154
|
+
ABORTED = 10,
|
|
155
|
+
/**
|
|
156
|
+
* The operation was attempted past the valid range. E.g., seeking or
|
|
157
|
+
* reading past end-of-file.
|
|
158
|
+
*
|
|
159
|
+
* Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
|
|
160
|
+
* be fixed if the system state changes. For example, a 32-bit file
|
|
161
|
+
* system will generate `INVALID_ARGUMENT` if asked to read at an
|
|
162
|
+
* offset that is not in the range [0,2^32-1], but it will generate
|
|
163
|
+
* `OUT_OF_RANGE` if asked to read from an offset past the current
|
|
164
|
+
* file size.
|
|
165
|
+
*
|
|
166
|
+
* There is a fair bit of overlap between `FAILED_PRECONDITION` and
|
|
167
|
+
* `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
|
|
168
|
+
* error) when it applies so that callers who are iterating through
|
|
169
|
+
* a space can easily look for an `OUT_OF_RANGE` error to detect when
|
|
170
|
+
* they are done.
|
|
171
|
+
*
|
|
172
|
+
* HTTP Mapping: 400 Bad Request
|
|
173
|
+
*
|
|
174
|
+
* @generated from protobuf enum value: OUT_OF_RANGE = 11;
|
|
175
|
+
*/
|
|
176
|
+
OUT_OF_RANGE = 11,
|
|
177
|
+
/**
|
|
178
|
+
* The operation is not implemented or is not supported/enabled in this
|
|
179
|
+
* service.
|
|
180
|
+
*
|
|
181
|
+
* HTTP Mapping: 501 Not Implemented
|
|
182
|
+
*
|
|
183
|
+
* @generated from protobuf enum value: UNIMPLEMENTED = 12;
|
|
184
|
+
*/
|
|
185
|
+
UNIMPLEMENTED = 12,
|
|
186
|
+
/**
|
|
187
|
+
* Internal errors. This means that some invariants expected by the
|
|
188
|
+
* underlying system have been broken. This error code is reserved
|
|
189
|
+
* for serious errors.
|
|
190
|
+
*
|
|
191
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
192
|
+
*
|
|
193
|
+
* @generated from protobuf enum value: INTERNAL = 13;
|
|
194
|
+
*/
|
|
195
|
+
INTERNAL = 13,
|
|
196
|
+
/**
|
|
197
|
+
* The service is currently unavailable. This is most likely a
|
|
198
|
+
* transient condition, which can be corrected by retrying with
|
|
199
|
+
* a backoff. Note that it is not always safe to retry
|
|
200
|
+
* non-idempotent operations.
|
|
201
|
+
*
|
|
202
|
+
* See the guidelines above for deciding between `FAILED_PRECONDITION`,
|
|
203
|
+
* `ABORTED`, and `UNAVAILABLE`.
|
|
204
|
+
*
|
|
205
|
+
* HTTP Mapping: 503 Service Unavailable
|
|
206
|
+
*
|
|
207
|
+
* @generated from protobuf enum value: UNAVAILABLE = 14;
|
|
208
|
+
*/
|
|
209
|
+
UNAVAILABLE = 14,
|
|
210
|
+
/**
|
|
211
|
+
* Unrecoverable data loss or corruption.
|
|
212
|
+
*
|
|
213
|
+
* HTTP Mapping: 500 Internal Server Error
|
|
214
|
+
*
|
|
215
|
+
* @generated from protobuf enum value: DATA_LOSS = 15;
|
|
216
|
+
*/
|
|
217
|
+
DATA_LOSS = 15
|
|
218
|
+
}
|
|
219
|
+
//# sourceMappingURL=code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../../src/_proto/google/rpc/code.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,oBAAY,IAAI;IACZ;;;;;;OAMG;IACH,EAAE,IAAI;IACN;;;;;;OAMG;IACH,SAAS,IAAI;IACb;;;;;;;;;;OAUG;IACH,OAAO,IAAI;IACX;;;;;;;;;OASG;IACH,gBAAgB,IAAI;IACpB;;;;;;;;;;OAUG;IACH,iBAAiB,IAAI;IACrB;;;;;;;;;;;;OAYG;IACH,SAAS,IAAI;IACb;;;;;;;OAOG;IACH,cAAc,IAAI;IAClB;;;;;;;;;;;;;OAaG;IACH,iBAAiB,IAAI;IACrB;;;;;;;OAOG;IACH,eAAe,KAAK;IACpB;;;;;;;OAOG;IACH,kBAAkB,IAAI;IACtB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,mBAAmB,IAAI;IACvB;;;;;;;;;;OAUG;IACH,OAAO,KAAK;IACZ;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,KAAK;IACjB;;;;;;;OAOG;IACH,aAAa,KAAK;IAClB;;;;;;;;OAQG;IACH,QAAQ,KAAK;IACb;;;;;;;;;;;;OAYG;IACH,WAAW,KAAK;IAChB;;;;;;OAMG;IACH,SAAS,KAAK;CACjB"}
|