google-cloud-universal_ledger-v1 0.a → 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.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +151 -8
- data/lib/google/cloud/universal_ledger/v1/rest.rb +37 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/client.rb +1163 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/credentials.rb +47 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/paths.rb +69 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/client.rb +1067 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/service_stub.rb +511 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest.rb +59 -0
- data/lib/google/cloud/universal_ledger/v1/universal_ledger.rb +62 -0
- data/lib/google/cloud/universal_ledger/v1/version.rb +7 -2
- data/lib/google/cloud/universal_ledger/v1.rb +45 -0
- data/lib/google/cloud/universalledger/v1/accounts_pb.rb +23 -0
- data/lib/google/cloud/universalledger/v1/common_pb.rb +36 -0
- data/lib/google/cloud/universalledger/v1/query_pb.rb +39 -0
- data/lib/google/cloud/universalledger/v1/status_event_pb.rb +27 -0
- data/lib/google/cloud/universalledger/v1/transactions_pb.rb +52 -0
- data/lib/google/cloud/universalledger/v1/types_pb.rb +47 -0
- data/lib/google/cloud/universalledger/v1/universalledger_pb.rb +41 -0
- data/lib/google/cloud/universalledger/v1/universalledger_services_pb.rb +89 -0
- data/lib/google-cloud-universal_ledger-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +593 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/universalledger/v1/accounts.rb +75 -0
- data/proto_docs/google/cloud/universalledger/v1/common.rb +272 -0
- data/proto_docs/google/cloud/universalledger/v1/query.rb +314 -0
- data/proto_docs/google/cloud/universalledger/v1/status_event.rb +88 -0
- data/proto_docs/google/cloud/universalledger/v1/transactions.rb +716 -0
- data/proto_docs/google/cloud/universalledger/v1/types.rb +618 -0
- data/proto_docs/google/cloud/universalledger/v1/universalledger.rb +237 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +128 -0
- data/proto_docs/google/rpc/code.rb +185 -0
- metadata +86 -9
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module UniversalLedger
|
|
23
|
+
module V1
|
|
24
|
+
# Represents the state of an account on the ledger.
|
|
25
|
+
# @!attribute [r] user_details
|
|
26
|
+
# @return [::Google::Cloud::UniversalLedger::V1::UserDetails]
|
|
27
|
+
# Output only. Details for a standard user account.
|
|
28
|
+
#
|
|
29
|
+
# Note: The following fields are mutually exclusive: `user_details`, `account_manager_details`, `token_manager_details`, `contract_token_manager_details`, `contract_details`, `clearinghouse_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
30
|
+
# @!attribute [r] account_manager_details
|
|
31
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountManagerDetails]
|
|
32
|
+
# Output only. Details for an account manager account.
|
|
33
|
+
#
|
|
34
|
+
# Note: The following fields are mutually exclusive: `account_manager_details`, `user_details`, `token_manager_details`, `contract_token_manager_details`, `contract_details`, `clearinghouse_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
35
|
+
# @!attribute [r] token_manager_details
|
|
36
|
+
# @return [::Google::Cloud::UniversalLedger::V1::TokenManagerDetails]
|
|
37
|
+
# Output only. Details for a token manager account.
|
|
38
|
+
#
|
|
39
|
+
# Note: The following fields are mutually exclusive: `token_manager_details`, `user_details`, `account_manager_details`, `contract_token_manager_details`, `contract_details`, `clearinghouse_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
40
|
+
# @!attribute [r] contract_token_manager_details
|
|
41
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ContractTokenManagerDetails]
|
|
42
|
+
# Output only. Details for a contract token manager account.
|
|
43
|
+
#
|
|
44
|
+
# Note: The following fields are mutually exclusive: `contract_token_manager_details`, `user_details`, `account_manager_details`, `token_manager_details`, `contract_details`, `clearinghouse_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
45
|
+
# @!attribute [r] contract_details
|
|
46
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ContractDetails]
|
|
47
|
+
# Output only. Details for a smart contract account.
|
|
48
|
+
#
|
|
49
|
+
# Note: The following fields are mutually exclusive: `contract_details`, `user_details`, `account_manager_details`, `token_manager_details`, `contract_token_manager_details`, `clearinghouse_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
50
|
+
# @!attribute [r] clearinghouse_details
|
|
51
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ClearingHouseDetails]
|
|
52
|
+
# Output only. Details for a clearinghouse account.
|
|
53
|
+
#
|
|
54
|
+
# Note: The following fields are mutually exclusive: `clearinghouse_details`, `user_details`, `account_manager_details`, `token_manager_details`, `contract_token_manager_details`, `contract_details`, `currency_operator_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
55
|
+
# @!attribute [r] currency_operator_details
|
|
56
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyOperatorDetails]
|
|
57
|
+
# Output only. Details for a currency operator account.
|
|
58
|
+
#
|
|
59
|
+
# Note: The following fields are mutually exclusive: `currency_operator_details`, `user_details`, `account_manager_details`, `token_manager_details`, `contract_token_manager_details`, `contract_details`, `clearinghouse_details`, `platform_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
60
|
+
# @!attribute [r] platform_operator_details
|
|
61
|
+
# @return [::Google::Cloud::UniversalLedger::V1::PlatformOperatorDetails]
|
|
62
|
+
# Output only. Details for a platform operator account.
|
|
63
|
+
#
|
|
64
|
+
# Note: The following fields are mutually exclusive: `platform_operator_details`, `user_details`, `account_manager_details`, `token_manager_details`, `contract_token_manager_details`, `contract_details`, `clearinghouse_details`, `currency_operator_details`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
65
|
+
# @!attribute [r] sequence_number
|
|
66
|
+
# @return [::Integer]
|
|
67
|
+
# Output only. The sequence number of this account. This number increments
|
|
68
|
+
# with each transaction sent by this account.
|
|
69
|
+
# @!attribute [r] public_key
|
|
70
|
+
# @return [::String]
|
|
71
|
+
# Output only. The primary public key associated with this account, used for
|
|
72
|
+
# signature verification.
|
|
73
|
+
# @!attribute [r] round_id
|
|
74
|
+
# @return [::Integer]
|
|
75
|
+
# Output only. The ID of the execution round (similar to block "height") at
|
|
76
|
+
# which the account information provided is accurate.
|
|
77
|
+
# @!attribute [r] comment
|
|
78
|
+
# @return [::String]
|
|
79
|
+
# Output only. The account comment stored when this account was created.
|
|
80
|
+
class Account
|
|
81
|
+
include ::Google::Protobuf::MessageExts
|
|
82
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Details specific to an Account Manager.
|
|
86
|
+
# @!attribute [r] num_accounts
|
|
87
|
+
# @return [::Integer]
|
|
88
|
+
# Output only. The number of accounts created by this account manager.
|
|
89
|
+
# @!attribute [r] token_manager_id
|
|
90
|
+
# @return [::String]
|
|
91
|
+
# Output only. The ID of the default token manager for accounts created by
|
|
92
|
+
# this account manager.
|
|
93
|
+
class AccountManagerDetails
|
|
94
|
+
include ::Google::Protobuf::MessageExts
|
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Details specific to a Token Manager.
|
|
99
|
+
# @!attribute [r] issuance_limit
|
|
100
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
101
|
+
# Output only. The amount of tokens this token manager is allowed to mint.
|
|
102
|
+
# @!attribute [r] issued_tokens
|
|
103
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
104
|
+
# Output only. The amount of tokens minted by this token manager.
|
|
105
|
+
# This number will increase when minting and decrease when burning.
|
|
106
|
+
class TokenManagerDetails
|
|
107
|
+
include ::Google::Protobuf::MessageExts
|
|
108
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Details specific to a Contract Token Manager.
|
|
112
|
+
# @!attribute [r] issuance_limit
|
|
113
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
114
|
+
# Output only. The amount of tokens this contract token manager is allowed
|
|
115
|
+
# to provide backing for.
|
|
116
|
+
#
|
|
117
|
+
# Since contract token managers cannot increase or decrease
|
|
118
|
+
# their issuance limit, this should equal the `issued_tokens`.
|
|
119
|
+
# @!attribute [r] issued_tokens
|
|
120
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
121
|
+
# Output only. The amount of tokens this contract token manager is
|
|
122
|
+
# providing backing for (that is, its total liability).
|
|
123
|
+
#
|
|
124
|
+
# This equals to the sum of all balances held in contracts for its currency,
|
|
125
|
+
# plus its net position in the settlement matrix.
|
|
126
|
+
# @!attribute [r] previous_contract_token_manager_id
|
|
127
|
+
# @return [::String]
|
|
128
|
+
# Output only. The account ID of the previous contract token manager for this
|
|
129
|
+
# currency. This forms an audit trail that can be traversed to discover all
|
|
130
|
+
# previous managers. If this is the first contract token manager for the
|
|
131
|
+
# currency, this will be empty.
|
|
132
|
+
# @!attribute [r] account_status
|
|
133
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
|
|
134
|
+
# Output only. The status of this account.
|
|
135
|
+
class ContractTokenManagerDetails
|
|
136
|
+
include ::Google::Protobuf::MessageExts
|
|
137
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Details specific to a User account.
|
|
141
|
+
# @!attribute [r] account_manager_id
|
|
142
|
+
# @return [::String]
|
|
143
|
+
# Output only. The ID of the account manager for this user.
|
|
144
|
+
# @!attribute [r] token_manager_id
|
|
145
|
+
# @return [::String]
|
|
146
|
+
# Output only. The ID of the token manager for this user.
|
|
147
|
+
# @!attribute [r] roles
|
|
148
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::Role>]
|
|
149
|
+
# Output only. The list of roles granted to this account.
|
|
150
|
+
# @!attribute [r] account_status
|
|
151
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
|
|
152
|
+
# Output only. The status of this account.
|
|
153
|
+
# @!attribute [r] balance
|
|
154
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
155
|
+
# Output only. The token balance of this user account.
|
|
156
|
+
# @!attribute [r] contract_account_fields
|
|
157
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::UniversalLedger::V1::Fields}]
|
|
158
|
+
# Output only. The contract account fields (contract ID -> fields) for this
|
|
159
|
+
# user.
|
|
160
|
+
class UserDetails
|
|
161
|
+
include ::Google::Protobuf::MessageExts
|
|
162
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
163
|
+
|
|
164
|
+
# @!attribute [rw] key
|
|
165
|
+
# @return [::String]
|
|
166
|
+
# @!attribute [rw] value
|
|
167
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Fields]
|
|
168
|
+
class ContractAccountFieldsEntry
|
|
169
|
+
include ::Google::Protobuf::MessageExts
|
|
170
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
171
|
+
end
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Details specific to a Currency Operator.
|
|
175
|
+
# @!attribute [r] currency_code
|
|
176
|
+
# @return [::String]
|
|
177
|
+
# Output only. The ID of the currency associated with this account,
|
|
178
|
+
# represented by the 3-letter ISO 4217 code.
|
|
179
|
+
# @!attribute [r] account_status
|
|
180
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
|
|
181
|
+
# Output only. The status of this account.
|
|
182
|
+
# @!attribute [r] previous_currency_operator_id
|
|
183
|
+
# @return [::String]
|
|
184
|
+
# Output only. The ID of the previous currency operator which transferred
|
|
185
|
+
# ownership of the currency operator role to this account. If this is the
|
|
186
|
+
# first currency operator for the currency, this will be empty.
|
|
187
|
+
# @!attribute [r] platform_operator_id
|
|
188
|
+
# @return [::String]
|
|
189
|
+
# Output only. The ID of the platform operator which created this currency
|
|
190
|
+
# operator.
|
|
191
|
+
# @!attribute [r] contract_token_manager_id
|
|
192
|
+
# @return [::String]
|
|
193
|
+
# Output only. The ID of the contract token manager associated with this
|
|
194
|
+
# currency operator.
|
|
195
|
+
# @!attribute [r] clearinghouse_id
|
|
196
|
+
# @return [::String]
|
|
197
|
+
# Output only. The ID of the clearinghouse associated with this currency
|
|
198
|
+
# operator.
|
|
199
|
+
class CurrencyOperatorDetails
|
|
200
|
+
include ::Google::Protobuf::MessageExts
|
|
201
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Details specific to a Platform Operator.
|
|
205
|
+
# @!attribute [r] account_status
|
|
206
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
|
|
207
|
+
# Output only. The status of this account.
|
|
208
|
+
# @!attribute [r] previous_platform_operator_id
|
|
209
|
+
# @return [::String]
|
|
210
|
+
# Output only. The ID of the previous platform operator which transferred
|
|
211
|
+
# ownership of the platform operator role to this account. If this is the
|
|
212
|
+
# first platform operator, this will be empty.
|
|
213
|
+
class PlatformOperatorDetails
|
|
214
|
+
include ::Google::Protobuf::MessageExts
|
|
215
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Details specific to a Clearinghouse.
|
|
219
|
+
# @!attribute [r] account_status
|
|
220
|
+
# @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
|
|
221
|
+
# Output only. The status of this account.
|
|
222
|
+
# @!attribute [r] balances
|
|
223
|
+
# @return [::Array<::Google::Cloud::UniversalLedger::V1::BalanceToSettle>]
|
|
224
|
+
# Output only. The balances that this clearinghouse is currently tracking for
|
|
225
|
+
# settlement.
|
|
226
|
+
# @!attribute [r] settlement_mode
|
|
227
|
+
# @return [::Google::Cloud::UniversalLedger::V1::SettlementMode]
|
|
228
|
+
# Output only. The settlement mode of this clearinghouse.
|
|
229
|
+
class ClearingHouseDetails
|
|
230
|
+
include ::Google::Protobuf::MessageExts
|
|
231
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Details specific to a Smart Contract.
|
|
235
|
+
# @!attribute [r] owner_id
|
|
236
|
+
# @return [::String]
|
|
237
|
+
# Output only. The ID of the owner of the contract.
|
|
238
|
+
# @!attribute [r] code
|
|
239
|
+
# @return [::String]
|
|
240
|
+
# Output only. The serialized contract code.
|
|
241
|
+
# @!attribute [r] contract_fields
|
|
242
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Fields]
|
|
243
|
+
# Output only. The contract fields (field name -> value) for this contract.
|
|
244
|
+
# @!attribute [r] currency_balances
|
|
245
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::UniversalLedger::V1::CurrencyValue}]
|
|
246
|
+
# Output only. The currency balances held by the contract (currency operator
|
|
247
|
+
# -> balance).
|
|
248
|
+
class ContractDetails
|
|
249
|
+
include ::Google::Protobuf::MessageExts
|
|
250
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
251
|
+
|
|
252
|
+
# @!attribute [rw] key
|
|
253
|
+
# @return [::String]
|
|
254
|
+
# @!attribute [rw] value
|
|
255
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
256
|
+
class CurrencyBalancesEntry
|
|
257
|
+
include ::Google::Protobuf::MessageExts
|
|
258
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# A balance to settle between two token managers.
|
|
263
|
+
# @!attribute [r] balance_payer_id
|
|
264
|
+
# @return [::String]
|
|
265
|
+
# Output only. The ID of the account which owes the balance to be settled.
|
|
266
|
+
# @!attribute [r] balance_receiver_id
|
|
267
|
+
# @return [::String]
|
|
268
|
+
# Output only. The ID of the account which is owed the balance to be settled.
|
|
269
|
+
# @!attribute [r] balance
|
|
270
|
+
# @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
|
|
271
|
+
# Output only. The balance to settle. Must be positive.
|
|
272
|
+
class BalanceToSettle
|
|
273
|
+
include ::Google::Protobuf::MessageExts
|
|
274
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
275
|
+
end
|
|
276
|
+
|
|
277
|
+
# A map of fields (field name -> value) from a contract used to represent
|
|
278
|
+
# contract fields or account fields.
|
|
279
|
+
# @!attribute [r] fields
|
|
280
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::UniversalLedger::V1::Value}]
|
|
281
|
+
# Output only. The map of field names to their values.
|
|
282
|
+
class Fields
|
|
283
|
+
include ::Google::Protobuf::MessageExts
|
|
284
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
285
|
+
|
|
286
|
+
# @!attribute [rw] key
|
|
287
|
+
# @return [::String]
|
|
288
|
+
# @!attribute [rw] value
|
|
289
|
+
# @return [::Google::Cloud::UniversalLedger::V1::Value]
|
|
290
|
+
class FieldsEntry
|
|
291
|
+
include ::Google::Protobuf::MessageExts
|
|
292
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
# Information about a redacted field in the response.
|
|
297
|
+
# @!attribute [r] redacted_path
|
|
298
|
+
# @return [::Google::Protobuf::FieldMask]
|
|
299
|
+
# Output only. The fully qualified field paths that were redacted from the
|
|
300
|
+
# payload.
|
|
301
|
+
# @!attribute [r] reason
|
|
302
|
+
# @return [::String]
|
|
303
|
+
# Output only. A human-readable explanation of why the fields were redacted.
|
|
304
|
+
# @!attribute [r] reason_code
|
|
305
|
+
# @return [::Google::Rpc::Code]
|
|
306
|
+
# Output only. A machine readable code for why the fields were redacted.
|
|
307
|
+
class RedactedField
|
|
308
|
+
include ::Google::Protobuf::MessageExts
|
|
309
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
310
|
+
end
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module UniversalLedger
|
|
23
|
+
module V1
|
|
24
|
+
# Represents an event in the processing of a transaction as observed by a
|
|
25
|
+
# single validator.
|
|
26
|
+
#
|
|
27
|
+
# All values reported are from the perspective of the validator handling the
|
|
28
|
+
# request and may differ from the view of other validators.
|
|
29
|
+
# @!attribute [r] event_time
|
|
30
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
31
|
+
# Output only. The time when the event was recorded by this validator.
|
|
32
|
+
# @!attribute [r] event_type
|
|
33
|
+
# @return [::Google::Cloud::UniversalLedger::V1::EventType]
|
|
34
|
+
# Output only. The type of the event.
|
|
35
|
+
# @!attribute [r] event_details
|
|
36
|
+
# @return [::Google::Cloud::UniversalLedger::V1::EventDetails]
|
|
37
|
+
# Output only. Additional details associated with the event.
|
|
38
|
+
class StatusEvent
|
|
39
|
+
include ::Google::Protobuf::MessageExts
|
|
40
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Represents additional details of a status event.
|
|
44
|
+
# @!attribute [r] execution_details
|
|
45
|
+
# @return [::Google::Cloud::UniversalLedger::V1::ExecutionDetails]
|
|
46
|
+
# Output only. Additional details for an execution event.
|
|
47
|
+
class EventDetails
|
|
48
|
+
include ::Google::Protobuf::MessageExts
|
|
49
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Additional details for an execution event.
|
|
53
|
+
# @!attribute [r] round_id
|
|
54
|
+
# @return [::Integer]
|
|
55
|
+
# Output only. The round ID at which the execution event occurred.
|
|
56
|
+
class ExecutionDetails
|
|
57
|
+
include ::Google::Protobuf::MessageExts
|
|
58
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Represents the type of an event in the processing of a transaction, as
|
|
62
|
+
# observed by the validator that the request was routed to.
|
|
63
|
+
module EventType
|
|
64
|
+
# Unknown or unspecified event.
|
|
65
|
+
EVENT_TYPE_UNSPECIFIED = 0
|
|
66
|
+
|
|
67
|
+
# The transaction was received by this validator directly from a client.
|
|
68
|
+
EVENT_TYPE_RECEIVED = 1
|
|
69
|
+
|
|
70
|
+
# The transaction was broadcasted by this to other validators.
|
|
71
|
+
EVENT_TYPE_BROADCASTED = 2
|
|
72
|
+
|
|
73
|
+
# The transaction was ordered and scheduled for execution by this validator.
|
|
74
|
+
EVENT_TYPE_ORDERED = 3
|
|
75
|
+
|
|
76
|
+
# The execution of the transaction has started.
|
|
77
|
+
EVENT_TYPE_EXECUTION_STARTED = 4
|
|
78
|
+
|
|
79
|
+
# The execution of the transaction has completed.
|
|
80
|
+
EVENT_TYPE_EXECUTION_COMPLETED = 5
|
|
81
|
+
|
|
82
|
+
# The transaction has been finalized by this validator.
|
|
83
|
+
EVENT_TYPE_FINALIZED = 6
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|