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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +151 -8
  5. data/lib/google/cloud/universal_ledger/v1/rest.rb +37 -0
  6. data/lib/google/cloud/universal_ledger/v1/universal_ledger/client.rb +1163 -0
  7. data/lib/google/cloud/universal_ledger/v1/universal_ledger/credentials.rb +47 -0
  8. data/lib/google/cloud/universal_ledger/v1/universal_ledger/paths.rb +69 -0
  9. data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/client.rb +1067 -0
  10. data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest/service_stub.rb +511 -0
  11. data/lib/google/cloud/universal_ledger/v1/universal_ledger/rest.rb +59 -0
  12. data/lib/google/cloud/universal_ledger/v1/universal_ledger.rb +62 -0
  13. data/lib/google/cloud/universal_ledger/v1/version.rb +7 -2
  14. data/lib/google/cloud/universal_ledger/v1.rb +45 -0
  15. data/lib/google/cloud/universalledger/v1/accounts_pb.rb +23 -0
  16. data/lib/google/cloud/universalledger/v1/common_pb.rb +36 -0
  17. data/lib/google/cloud/universalledger/v1/query_pb.rb +39 -0
  18. data/lib/google/cloud/universalledger/v1/status_event_pb.rb +27 -0
  19. data/lib/google/cloud/universalledger/v1/transactions_pb.rb +52 -0
  20. data/lib/google/cloud/universalledger/v1/types_pb.rb +47 -0
  21. data/lib/google/cloud/universalledger/v1/universalledger_pb.rb +41 -0
  22. data/lib/google/cloud/universalledger/v1/universalledger_services_pb.rb +89 -0
  23. data/lib/google-cloud-universal_ledger-v1.rb +21 -0
  24. data/proto_docs/README.md +4 -0
  25. data/proto_docs/google/api/client.rb +593 -0
  26. data/proto_docs/google/api/field_behavior.rb +85 -0
  27. data/proto_docs/google/api/launch_stage.rb +71 -0
  28. data/proto_docs/google/api/resource.rb +227 -0
  29. data/proto_docs/google/cloud/universalledger/v1/accounts.rb +75 -0
  30. data/proto_docs/google/cloud/universalledger/v1/common.rb +272 -0
  31. data/proto_docs/google/cloud/universalledger/v1/query.rb +314 -0
  32. data/proto_docs/google/cloud/universalledger/v1/status_event.rb +88 -0
  33. data/proto_docs/google/cloud/universalledger/v1/transactions.rb +716 -0
  34. data/proto_docs/google/cloud/universalledger/v1/types.rb +618 -0
  35. data/proto_docs/google/cloud/universalledger/v1/universalledger.rb +237 -0
  36. data/proto_docs/google/protobuf/any.rb +145 -0
  37. data/proto_docs/google/protobuf/duration.rb +98 -0
  38. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  39. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  40. data/proto_docs/google/rpc/code.rb +185 -0
  41. metadata +86 -9
@@ -0,0 +1,716 @@
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
+ # Initiates a settlement operation between two token managers.
25
+ # The sender must be a clearinghouse account.
26
+ #
27
+ # In the deferred
28
+ # {::Google::Cloud::UniversalLedger::V1::SettlementMode SettlementMode} where the
29
+ # clearinghouse has custody of the token manager funds, this is the only
30
+ # transaction that needs to be sent to execute a settlement between the two
31
+ # token managers.
32
+ # @!attribute [rw] payer_id
33
+ # @return [::String]
34
+ # Required. Immutable. The account ID of the party that needs to make the
35
+ # fund transfer.
36
+ # @!attribute [rw] beneficiary_id
37
+ # @return [::String]
38
+ # Required. Immutable. The account ID of the party that will receive the
39
+ # funds.
40
+ # @!attribute [rw] balance
41
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
42
+ # Required. Immutable. The balance of issued tokens that need to be
43
+ # transferred by the `payer` account to the `beneficiary` account on the
44
+ # ledger.
45
+ # @!attribute [rw] round_id
46
+ # @return [::Integer]
47
+ # Required. Immutable. The round ID at which this settlement amount was
48
+ # computed.
49
+ class SettlementRequest
50
+ include ::Google::Protobuf::MessageExts
51
+ extend ::Google::Protobuf::MessageExts::ClassMethods
52
+ end
53
+
54
+ # Creates a new user account. The sender must be an account manager.
55
+ #
56
+ # If the transaction is successful, the ID of the newly created account is
57
+ # returned as an event in the
58
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
59
+ # of the finalized transaction.
60
+ # @!attribute [rw] public_key
61
+ # @return [::String]
62
+ # Required. The public key of the account owner. Note that this is *not* the
63
+ # public key of the sender. This is the public key of the *new* account owner
64
+ # and it will be stored on the ledger. It will be used to validate the
65
+ # signature of the transactions emanating from the created account.
66
+ #
67
+ # The format of the public key is defined by the `key_format` field.
68
+ # Considered public information.
69
+ # @!attribute [rw] key_format
70
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
71
+ # Optional. Immutable. The key format of the public key. If not
72
+ # specified, defaults to a binary serialized keyset in [Tink wire
73
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
74
+ # Considered public information.
75
+ # @!attribute [rw] roles
76
+ # @return [::Array<::Google::Cloud::UniversalLedger::V1::Role>]
77
+ # Optional. The list of roles to grant to this account.
78
+ # @!attribute [rw] account_status
79
+ # @return [::Google::Cloud::UniversalLedger::V1::AccountStatus]
80
+ # Optional. The status of the account to be created. By default, the account
81
+ # status of a newly created account will be `ACCOUNT_STATUS_ACTIVE`.
82
+ # @!attribute [rw] account_comment
83
+ # @return [::String]
84
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
85
+ # system but stored on the ledger in the account. Considered public
86
+ # information. Maximum length is 128 characters. May be left empty. Once
87
+ # created, the field is immutable.
88
+ # @!attribute [rw] token_manager_id
89
+ # @return [::String]
90
+ # Optional. The ID of the token manager for this account. This field is
91
+ # optional and if not supplied, the default token manager associated to the
92
+ # account manager (that is, the sender of this transaction) will be used. The
93
+ # value is limited to 60 characters.
94
+ class CreateAccount
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # Marks an account as `ACCOUNT_STATUS_INACTIVE`. The sender must be the account
100
+ # manager of the account to deactivate.
101
+ #
102
+ # This implies that the account owner will not be able to make any transactions
103
+ # on the account regardless of the roles.
104
+ # @!attribute [rw] account_id
105
+ # @return [::String]
106
+ # Required. The ID of the account to be deactivated.
107
+ # The value is limited to 60 characters.
108
+ class DeactivateAccount
109
+ include ::Google::Protobuf::MessageExts
110
+ extend ::Google::Protobuf::MessageExts::ClassMethods
111
+ end
112
+
113
+ # Marks an account as `ACCOUNT_STATUS_ACTIVE`. The sender must be the account
114
+ # manager of the account to activate.
115
+ #
116
+ # The account owner can resume normal operations permitted by the roles on the
117
+ # account.
118
+ # @!attribute [rw] account_id
119
+ # @return [::String]
120
+ # Required. The ID of the account to be activated.
121
+ # The value is limited to 60 characters.
122
+ class ActivateAccount
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+
127
+ # Adds the specified roles to the account. The sender must be the account
128
+ # manager of the account to modify.
129
+ # @!attribute [rw] account_id
130
+ # @return [::String]
131
+ # Required. The ID of the account to be modified.
132
+ # The value is limited to 60 characters.
133
+ # @!attribute [rw] roles
134
+ # @return [::Array<::Google::Cloud::UniversalLedger::V1::Role>]
135
+ # Required. The roles to be added.
136
+ class AddRoles
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Removes the specified roles from the account. The sender must be the account
142
+ # manager of the account to modify.
143
+ # @!attribute [rw] account_id
144
+ # @return [::String]
145
+ # Required. The ID of the account to be modified.
146
+ # The value is limited to 60 characters.
147
+ # @!attribute [rw] roles
148
+ # @return [::Array<::Google::Cloud::UniversalLedger::V1::Role>]
149
+ # Required. The roles to be removed.
150
+ class RemoveRoles
151
+ include ::Google::Protobuf::MessageExts
152
+ extend ::Google::Protobuf::MessageExts::ClassMethods
153
+ end
154
+
155
+ # Transfers the responsibility of managing a particular account to another
156
+ # manager. The sender must be the current account manager of the account and,
157
+ # to provide consent, the new manager must also sign this transaction.
158
+ # @!attribute [rw] account_id
159
+ # @return [::String]
160
+ # Required. The ID of the account whose manager is to be changed.
161
+ # The value is limited to 60 characters.
162
+ # @!attribute [rw] next_manager_id
163
+ # @return [::String]
164
+ # Required. The ID of the new proposed account manager. Validation requires
165
+ # that the new manager has also signed this transaction. The value is limited
166
+ # to 60 characters.
167
+ class ChangeAccountManager
168
+ include ::Google::Protobuf::MessageExts
169
+ extend ::Google::Protobuf::MessageExts::ClassMethods
170
+ end
171
+
172
+ # Transactions for token issuance and minting.
173
+ # Notifies the network that the target account has deposited reserve funds and
174
+ # increases its token issuance limit. The sender must be a clearinghouse
175
+ # account.
176
+ # @!attribute [rw] token_manager_id
177
+ # @return [::String]
178
+ # Required. The ID of the institutional account whose mint limit is to be
179
+ # raised. This account must be a token manager for the transaction to be
180
+ # valid.
181
+ # @!attribute [rw] amount
182
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
183
+ # Required. The amount by which to raise the limit. The amount must be
184
+ # positive.
185
+ class IncreaseTokenIssuanceLimit
186
+ include ::Google::Protobuf::MessageExts
187
+ extend ::Google::Protobuf::MessageExts::ClassMethods
188
+ end
189
+
190
+ # Notifies the network that the target account wishes to withdraw reserve funds
191
+ # and decreases its token issuance limit. The sender must be a clearinghouse
192
+ # account.
193
+ #
194
+ # Note that this transaction must be successfully finalized *before* the
195
+ # reserve funds can be withdrawn. This is necessary because it is possible for
196
+ # the transaction to fail (for example, if the minted amount is already above
197
+ # the requested reduced limit).
198
+ # @!attribute [rw] token_manager_id
199
+ # @return [::String]
200
+ # Required. The ID of the institutional account whose mint limit is to be
201
+ # lowered. This account must be a token manager for the transaction to be
202
+ # valid.
203
+ # @!attribute [rw] amount
204
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
205
+ # Required. The amount by which to lower the limit. The amount must be
206
+ # positive. The transaction will fail if the reduced limit will fall below
207
+ # the currently issued tokens.
208
+ class DecreaseTokenIssuanceLimit
209
+ include ::Google::Protobuf::MessageExts
210
+ extend ::Google::Protobuf::MessageExts::ClassMethods
211
+ end
212
+
213
+ # Mints currency tokens and transfers them to a specified account. The sender
214
+ # must be a token manager.
215
+ # @!attribute [rw] mint_amount
216
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
217
+ # Required. The amount to mint. The amount must be such that the total tokens
218
+ # minted by the token manager do not exceed the mint limit. If the amount is
219
+ # higher than that, the transaction must be rejected
220
+ # @!attribute [rw] beneficiary_id
221
+ # @return [::String]
222
+ # Required. The ID of the account to which the minted amount should be
223
+ # transferred. The receiving account must have the `ROLE_RECEIVER` enabled on
224
+ # it.
225
+ class Mint
226
+ include ::Google::Protobuf::MessageExts
227
+ extend ::Google::Protobuf::MessageExts::ClassMethods
228
+ end
229
+
230
+ # Burns currency tokens. The sender must be a token manager and the account
231
+ # supplying the tokens to burn must additionally sign the transaction.
232
+ #
233
+ # The expected flow is that the token manager will have its designated burn
234
+ # account which customers would transfer the tokens to before they are burnt.
235
+ # Alternatively, the customers could directly sign the transaction in which
236
+ # case it would act as an atomic "transfer-and-burn" transaction.
237
+ # @!attribute [rw] burn_amount
238
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
239
+ # Required. The amount to burn.
240
+ # @!attribute [rw] payer_id
241
+ # @return [::String]
242
+ # Required. The ID of the account supplying the tokens to burn. The payer
243
+ # account must have the `ROLE_PAYER` enabled on it.
244
+ class Burn
245
+ include ::Google::Protobuf::MessageExts
246
+ extend ::Google::Protobuf::MessageExts::ClassMethods
247
+ end
248
+
249
+ # Transfers tokens from one user account to another. The sender must be a
250
+ # regular user account, as opposed to a privileged account like a token manager
251
+ # or an account manager.
252
+ #
253
+ # Additionally, the transaction sender must have the `ROLE_PAYER` enabled on
254
+ # it, while the receiver must have the `ROLE_RECEIVER` enabled on it.
255
+ # @!attribute [rw] beneficiary_id
256
+ # @return [::String]
257
+ # Required. The ID of the account that receives the tokens.
258
+ # @!attribute [rw] amount
259
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
260
+ # Required. The amount to transfer. The amount must be positive.
261
+ class Transfer
262
+ include ::Google::Protobuf::MessageExts
263
+ extend ::Google::Protobuf::MessageExts::ClassMethods
264
+ end
265
+
266
+ # Creates a new token manager associated to the currency of the operator
267
+ # sending the request. The sender must be a currency operator.
268
+ #
269
+ # If the transaction is successful, the ID of the newly created account is
270
+ # returned as an event in the
271
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
272
+ # of the finalized transaction.
273
+ # @!attribute [rw] public_key
274
+ # @return [::String]
275
+ # Required. The public key of the new token manager. Note that this is *not*
276
+ # the public key of the operator. This public key will be associated with the
277
+ # token manager and stored on the ledger. It will be used to validate the
278
+ # signature of the transactions emanating from the token manager's account.
279
+ #
280
+ # The format of the public key is defined by the `key_format` field.
281
+ # Considered public information.
282
+ # @!attribute [rw] key_format
283
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
284
+ # Optional. Immutable. The key format of the public key. If not
285
+ # specified, defaults to a binary serialized keyset in [Tink wire
286
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
287
+ # Considered public information.
288
+ # @!attribute [rw] account_comment
289
+ # @return [::String]
290
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
291
+ # system but stored on the ledger in the account. Considered public
292
+ # information. Maximum length is 128 characters. May be left empty. Once
293
+ # created, the field is immutable.
294
+ class CreateTokenManager
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+ end
298
+
299
+ # Creates a new account manager. The sender must be a currency operator.
300
+ #
301
+ # If the transaction is successful, the ID of the newly created account is
302
+ # returned as an event in the
303
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
304
+ # of the finalized transaction.
305
+ # @!attribute [rw] public_key
306
+ # @return [::String]
307
+ # Required. The public key of the new account manager. Note that this is
308
+ # *not* the public key of the operator. This public key will be associated
309
+ # with the account manager and stored on the ledger. It will be used to
310
+ # validate the signature of the transactions emanating from the account
311
+ # manager's account.
312
+ #
313
+ # The format of the public key is defined by the `key_format` field.
314
+ # Considered public information.
315
+ # @!attribute [rw] key_format
316
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
317
+ # Optional. Immutable. The key format of the public key. If not
318
+ # specified, defaults to a binary serialized keyset in [Tink wire
319
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
320
+ # Considered public information.
321
+ # @!attribute [rw] default_token_manager_id
322
+ # @return [::String]
323
+ # Optional. The ID of the default token manager for the accounts that will be
324
+ # created by this manager. The value is limited to 60 characters.
325
+ # @!attribute [rw] account_comment
326
+ # @return [::String]
327
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
328
+ # system but stored on the ledger in the account. Considered public
329
+ # information. Maximum length is 128 characters. May be left empty. Once
330
+ # created, the field is immutable.
331
+ class CreateAccountManager
332
+ include ::Google::Protobuf::MessageExts
333
+ extend ::Google::Protobuf::MessageExts::ClassMethods
334
+ end
335
+
336
+ # Creates a new clearinghouse. The sender must be a currency operator.
337
+ #
338
+ # If the transaction is successful, the ID of the newly created account is
339
+ # returned as an event in the
340
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
341
+ # of the finalized transaction.
342
+ # @!attribute [rw] public_key
343
+ # @return [::String]
344
+ # Required. The public key of the new clearinghouse. Note that this is *not*
345
+ # the public key of the operator. This public key will be associated with the
346
+ # clearinghouse and stored on the ledger. It will be used to validate
347
+ # signature of the transactions emanating from the clearinghouse's account.
348
+ #
349
+ # The format of the public key is defined by the `key_format` field.
350
+ # Considered public information.
351
+ # @!attribute [rw] key_format
352
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
353
+ # Optional. Immutable. The key format of the public key. If not
354
+ # specified, defaults to a binary serialized keyset in [Tink wire
355
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
356
+ # Considered public information.
357
+ # @!attribute [rw] account_comment
358
+ # @return [::String]
359
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
360
+ # system but stored on the ledger in the account. Considered public
361
+ # information. Maximum length is 128 characters. May be left empty. Once
362
+ # created, the field is immutable.
363
+ # @!attribute [rw] settlement_mode
364
+ # @return [::Google::Cloud::UniversalLedger::V1::SettlementMode]
365
+ # Required. The settlement mode for this clearinghouse. Required.
366
+ # Considered public information.
367
+ class CreateClearinghouse
368
+ include ::Google::Protobuf::MessageExts
369
+ extend ::Google::Protobuf::MessageExts::ClassMethods
370
+ end
371
+
372
+ # Transfers the ownership of the platform operator to a new account. The sender
373
+ # must be the current platform operator.
374
+ #
375
+ # If the transaction is successful, deactivates the current platform operator,
376
+ # and the ID of the newly created account is returned as an event in the
377
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
378
+ # of the finalized transaction.
379
+ # @!attribute [rw] public_key
380
+ # @return [::String]
381
+ # Required. The public key of the new platform operator. This public key will
382
+ # be associated with the platform operator and stored on the ledger. It will
383
+ # be used to validate the signature of the transactions emanating from the
384
+ # platform operator's account.
385
+ #
386
+ # The format of the public key is defined by the `key_format` field.
387
+ # Considered public information.
388
+ # @!attribute [rw] key_format
389
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
390
+ # Optional. Immutable. The key format of the public key. If not
391
+ # specified, defaults to a binary serialized keyset in [Tink wire
392
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
393
+ # Considered public information.
394
+ # @!attribute [rw] account_comment
395
+ # @return [::String]
396
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
397
+ # system but stored on the ledger in the account. Considered public
398
+ # information. Maximum length is 128 characters. May be left empty. Once
399
+ # created, the field is immutable.
400
+ class TransferPlatformOperator
401
+ include ::Google::Protobuf::MessageExts
402
+ extend ::Google::Protobuf::MessageExts::ClassMethods
403
+ end
404
+
405
+ # Creates a new currency operator. The sender must be the platform operator.
406
+ #
407
+ # If the transaction is successful, the ID of the newly created account is
408
+ # returned as an event in the
409
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
410
+ # of the finalized transaction.
411
+ #
412
+ # This transaction can introduce a new currency into the system or create an
413
+ # additional currency operator for an existing currency. If an existing
414
+ # currency operator has to be replaced, the
415
+ # {::Google::Cloud::UniversalLedger::V1::TransferCurrencyOperator TransferCurrencyOperator}
416
+ # transaction should be sent instead.
417
+ # @!attribute [rw] public_key
418
+ # @return [::String]
419
+ # Required. The public key of the new currency operator. This public key will
420
+ # be associated with the currency operator and stored on the ledger. It will
421
+ # be used to validate the signature of the transactions emanating from the
422
+ # operator's account.
423
+ #
424
+ # The format of the public key is defined by the `key_format` field.
425
+ # Considered public information.
426
+ # @!attribute [rw] key_format
427
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
428
+ # Optional. Immutable. The key format of the public key. If not
429
+ # specified, defaults to a binary serialized keyset in [Tink wire
430
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
431
+ # Considered public information.
432
+ # @!attribute [rw] account_comment
433
+ # @return [::String]
434
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
435
+ # system but stored on the ledger in the account. Considered public
436
+ # information. Maximum length is 128 characters. May be left empty. Once
437
+ # created, the field is immutable.
438
+ # @!attribute [rw] currency_code
439
+ # @return [::String]
440
+ # Required. The fiat currency associated with this operator, represented as a
441
+ # 3-capital-letter ISO 4217 code.
442
+ # Considered public information.
443
+ class CreateCurrencyOperator
444
+ include ::Google::Protobuf::MessageExts
445
+ extend ::Google::Protobuf::MessageExts::ClassMethods
446
+ end
447
+
448
+ # Transfers the ownership of the given currency operator to a new account. The
449
+ # sender must be the platform operator.
450
+ #
451
+ # If the transaction is successful, deactivates the given currency operator,
452
+ # and the ID of the newly created account is returned as an event in the
453
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
454
+ # of the finalized transaction.
455
+ # @!attribute [rw] public_key
456
+ # @return [::String]
457
+ # Required. The public key of the new currency operator. This public key will
458
+ # be associated with the currency operator and stored on the ledger. It will
459
+ # be used to validate the signature of the transactions emanating from the
460
+ # currency operator's account.
461
+ #
462
+ # The format of the public key is defined by the `key_format` field.
463
+ # Considered public information.
464
+ # @!attribute [rw] key_format
465
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
466
+ # Optional. Immutable. The key format of the public key. If not
467
+ # specified, defaults to a binary serialized keyset in [Tink wire
468
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
469
+ # Considered public information.
470
+ # @!attribute [rw] account_comment
471
+ # @return [::String]
472
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
473
+ # system but stored on the ledger in the account. Considered public
474
+ # information. Maximum length is 128 characters. May be left empty. Once
475
+ # created, the field is immutable.
476
+ # @!attribute [rw] currency_operator_id
477
+ # @return [::String]
478
+ # Required. The ID of the currency operator to be replaced. Must be active.
479
+ # The value is limited to 60 characters.
480
+ class TransferCurrencyOperator
481
+ include ::Google::Protobuf::MessageExts
482
+ extend ::Google::Protobuf::MessageExts::ClassMethods
483
+ end
484
+
485
+ # Triggers the creation of a snapshot of the network. The sender must be
486
+ # the platform operator.
487
+ class CreateSnapshot
488
+ include ::Google::Protobuf::MessageExts
489
+ extend ::Google::Protobuf::MessageExts::ClassMethods
490
+ end
491
+
492
+ # Stores a contract on the ledger.
493
+ # @!attribute [rw] contract_bytes
494
+ # @return [::String]
495
+ # Serialised contract bytes.
496
+ # @!attribute [rw] init_arguments
497
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::UniversalLedger::V1::Value}]
498
+ # Optional. Immutable. Contains arguments for the `__init__` method.
499
+ # @!attribute [rw] contract_comment
500
+ # @return [::String]
501
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
502
+ # system but stored on the ledger in the contract. Considered public
503
+ # information. Maximum length is 128 characters. May be left empty. Once
504
+ # created, the field is immutable.
505
+ class CreateContract
506
+ include ::Google::Protobuf::MessageExts
507
+ extend ::Google::Protobuf::MessageExts::ClassMethods
508
+
509
+ # @!attribute [rw] key
510
+ # @return [::String]
511
+ # @!attribute [rw] value
512
+ # @return [::Google::Cloud::UniversalLedger::V1::Value]
513
+ class InitArgumentsEntry
514
+ include ::Google::Protobuf::MessageExts
515
+ extend ::Google::Protobuf::MessageExts::ClassMethods
516
+ end
517
+ end
518
+
519
+ # Grants permissions to the contract by the transaction sender.
520
+ # If `delegate_contract_id` is specified, the permissions and corresponding
521
+ # storage are granted exclusively to the `delegate_contract_id` contract, not
522
+ # the sender.
523
+ #
524
+ # Note that there is no support for revoking permissions.
525
+ # @!attribute [rw] contract_id
526
+ # @return [::String]
527
+ # Required. The ID of the contract to which permissions are being granted.
528
+ # @!attribute [rw] permissions
529
+ # @return [::Array<::Google::Cloud::UniversalLedger::V1::ContractPermission>]
530
+ # The permissions to be granted.
531
+ # @!attribute [rw] delegate_contract_id
532
+ # @return [::String]
533
+ # Optional. The contract ID for which permissions are being granted.
534
+ # The transaction sender must be the owner of this contract.
535
+ class GrantContractPermissions
536
+ include ::Google::Protobuf::MessageExts
537
+ extend ::Google::Protobuf::MessageExts::ClassMethods
538
+ end
539
+
540
+ # Invokes the execution of a contract method.
541
+ # @!attribute [rw] contract_id
542
+ # @return [::String]
543
+ # Required. The ID of the contract to run.
544
+ # @!attribute [rw] method_name
545
+ # @return [::String]
546
+ # Name of the method to run.
547
+ # @!attribute [rw] method_arguments
548
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::UniversalLedger::V1::Value}]
549
+ # Optional. Immutable. Contains arguments to pass to the method.
550
+ # @!attribute [rw] payment
551
+ # @return [::Google::Cloud::UniversalLedger::V1::CurrencyValue]
552
+ # The amount to be paid.
553
+ # Must be greater than zero when invoking payable methods; and zero for
554
+ # non-payable ones.
555
+ class InvokeContractMethod
556
+ include ::Google::Protobuf::MessageExts
557
+ extend ::Google::Protobuf::MessageExts::ClassMethods
558
+
559
+ # @!attribute [rw] key
560
+ # @return [::String]
561
+ # @!attribute [rw] value
562
+ # @return [::Google::Cloud::UniversalLedger::V1::Value]
563
+ class MethodArgumentsEntry
564
+ include ::Google::Protobuf::MessageExts
565
+ extend ::Google::Protobuf::MessageExts::ClassMethods
566
+ end
567
+ end
568
+
569
+ # Creates a new contract token manager associated with the currency of the
570
+ # operator sending the request. The sender must be a currency operator.
571
+ # The newly created contract token manager is active by default. If the
572
+ # contract token manager has to be replaced, the TransferContractTokenManager
573
+ # transaction should be sent instead. If another contract token manager
574
+ # associated with the same currency exists, this transaction will fail.
575
+ #
576
+ # Unlike regular token managers, contract token managers are not allowed to
577
+ # execute transactions such as mint or burn. They can, however, participate in
578
+ # settlement operations.
579
+ #
580
+ # If the transaction is successful, the ID of the newly created account is
581
+ # returned as an event in the
582
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
583
+ # of the finalized transaction.
584
+ # @!attribute [rw] public_key
585
+ # @return [::String]
586
+ # Required. The public key of the new contract token manager. Note that this
587
+ # is *not* the public key of the operator. This public key will be associated
588
+ # with the contract token manager and stored on the ledger. It will be used
589
+ # to validate the signature of the transactions emanating from the contract
590
+ # token manager's account.
591
+ #
592
+ # The format of the public key is defined by the `key_format` field.
593
+ # Considered public information.
594
+ # @!attribute [rw] account_comment
595
+ # @return [::String]
596
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
597
+ # system but stored on the ledger in the account. Considered public
598
+ # information. Maximum length is 128 characters. May be left empty. Once
599
+ # created, the field is immutable.
600
+ # @!attribute [rw] key_format
601
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
602
+ # Optional. Immutable. The key format of the public key. If not
603
+ # specified, defaults to a binary serialized keyset in [Tink wire
604
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
605
+ # Considered public information.
606
+ class CreateContractTokenManager
607
+ include ::Google::Protobuf::MessageExts
608
+ extend ::Google::Protobuf::MessageExts::ClassMethods
609
+ end
610
+
611
+ # Transfers the ownership of the contract token manager to a new account. The
612
+ # sender must be the current currency operator for the currency.
613
+ #
614
+ # If the transaction is successful, deactivates the current contract token
615
+ # manager for the currency, and the ID of the newly created account is returned
616
+ # as an event in the
617
+ # {::Google::Cloud::UniversalLedger::V1::TransactionCertificate TransactionCertificate}
618
+ # of the finalized transaction.
619
+ # @!attribute [rw] public_key
620
+ # @return [::String]
621
+ # Required. The public key of the new contract token manager. Note that this
622
+ # is *not* the public key of the operator. This is the public key of the
623
+ # *new* contract token manager and it will be stored on the ledger. It will
624
+ # be used to validate the signature of the transactions emanating from the
625
+ # contract token manager's account.
626
+ #
627
+ # The format of the public key is defined by the `key_format` field.
628
+ # Considered public information.
629
+ # @!attribute [rw] account_comment
630
+ # @return [::String]
631
+ # Optional. Immutable. An opaque comment field that is not interpreted by the
632
+ # system but stored on the ledger in the account. Considered public
633
+ # information. Maximum length is 128 characters. May be left empty. Once
634
+ # created, the field is immutable.
635
+ # @!attribute [rw] key_format
636
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
637
+ # Optional. Immutable. The key format of the public key. If not
638
+ # specified, defaults to a binary serialized keyset in [Tink wire
639
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
640
+ # Considered public information.
641
+ class TransferContractTokenManager
642
+ include ::Google::Protobuf::MessageExts
643
+ extend ::Google::Protobuf::MessageExts::ClassMethods
644
+ end
645
+
646
+ # Removes the account signing key from the specified slot. The other slot must
647
+ # not be empty, and must hold the key used to sign the `ClientTransaction`.
648
+ # @!attribute [rw] key_slot
649
+ # @return [::Google::Cloud::UniversalLedger::V1::KeySlot]
650
+ # Required. The key slot we're removing the key from. If this is already
651
+ # empty, the transaction will fail.
652
+ class RemoveSigningPublicKey
653
+ include ::Google::Protobuf::MessageExts
654
+ extend ::Google::Protobuf::MessageExts::ClassMethods
655
+ end
656
+
657
+ # Replaces the account signing key in the specified slot. The other slot must
658
+ # not be empty, and must hold the key used to sign the `ClientTransaction`.
659
+ # @!attribute [rw] key_slot
660
+ # @return [::Google::Cloud::UniversalLedger::V1::KeySlot]
661
+ # Required. The key slot we're replacing the key in.
662
+ # @!attribute [rw] new_public_key
663
+ # @return [::String]
664
+ # Required. The new public key, which will replace the public key in the
665
+ # specified slot.
666
+ #
667
+ # The format of the public key is defined by the new_key_format field.
668
+ # Considered public information.
669
+ # @!attribute [rw] new_key_format
670
+ # @return [::Google::Cloud::UniversalLedger::V1::KeyFormat]
671
+ # Required. The key format of the new public key. See the definition of
672
+ # KeyFormat for a list of supported formats. Considered public information.
673
+ class ReplaceSigningPublicKey
674
+ include ::Google::Protobuf::MessageExts
675
+ extend ::Google::Protobuf::MessageExts::ClassMethods
676
+ end
677
+
678
+ # The settlement mode for a clearinghouse.
679
+ module SettlementMode
680
+ # The settlement mode is unspecified. This value is invalid and should not
681
+ # be used.
682
+ SETTLEMENT_MODE_UNSPECIFIED = 0
683
+
684
+ # The clearinghouse is responsible for tracking the ownership of the
685
+ # off-ledger funds, and periodically issuing
686
+ # {::Google::Cloud::UniversalLedger::V1::SettlementRequest SettlementRequest}
687
+ # transactions to maintain the corresponding balances on the ledger in sync.
688
+ SETTLEMENT_MODE_DEFERRED = 1
689
+
690
+ # The clearinghouse maintains a single pool of funds and the ledger acts as
691
+ # the golden source for the allocation of those funds between the token
692
+ # managers. This settlement mode can also be described as "instant gross
693
+ # settlement."
694
+ SETTLEMENT_MODE_INSTANT = 2
695
+ end
696
+
697
+ # Specifies the format a public key is provided in.
698
+ # New values may be added to this enum in the future.
699
+ module KeyFormat
700
+ # The key format is unspecified. This value is invalid and should not be
701
+ # used.
702
+ KEY_FORMAT_UNSPECIFIED = 0
703
+
704
+ # Deprecated: Use `KEY_FORMAT_PEM_EC_P256_SHA256` instead.
705
+ # A binary serialized keyset in [Tink wire
706
+ # format](https://developers.google.com/tink/wire-format#keyset_serialization).
707
+ KEY_FORMAT_TINK_WIRE_FORMAT = 1
708
+
709
+ # A PEM-encoded elliptic curve signing key using the P-256 curve with
710
+ # SHA256 digest. Signatures must be provided in DER format.
711
+ KEY_FORMAT_PEM_EC_P256_SHA256 = 2
712
+ end
713
+ end
714
+ end
715
+ end
716
+ end