Skip to content

Commit 8edddcb

Browse files
Google APIscopybara-github
authored andcommitted
feat: add support for transaction specific fields in ClientTransaction, annotating the legacy "Any app" field as deprecated
fix!: An existing field `value` is renamed to `values` in message `.google.cloud.universalledger.v1.StringList` fix!: An existing field `value` is renamed to `values` in message `.google.cloud.universalledger.v1.Int64List` fix!: An existing field `value` is renamed to `values` in message `.google.cloud.universalledger.v1.AccountIdList` fix!: An existing field `value` is renamed to `values` in message `.google.cloud.universalledger.v1.BoolList` fix!: An existing field `value` is renamed to `values` in message `.google.cloud.universalledger.v1.DictList` docs: A comment for field `app` in message `.google.cloud.universalledger.v1.ClientTransaction` is changed PiperOrigin-RevId: 893573391
1 parent c8ca5bc commit 8edddcb

2 files changed

Lines changed: 108 additions & 7 deletions

File tree

google/cloud/universalledger/v1/common.proto

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,31 +60,31 @@ message CurrencyValue {
6060
// A list of strings.
6161
message StringList {
6262
// Optional. The string values.
63-
repeated string value = 1 [(google.api.field_behavior) = OPTIONAL];
63+
repeated string values = 1 [(google.api.field_behavior) = OPTIONAL];
6464
}
6565

6666
// A list of int64s.
6767
message Int64List {
6868
// Optional. The int64 values.
69-
repeated int64 value = 1 [(google.api.field_behavior) = OPTIONAL];
69+
repeated int64 values = 1 [(google.api.field_behavior) = OPTIONAL];
7070
}
7171

7272
// A list of account IDs.
7373
message AccountIdList {
7474
// Optional. The account ID values.
75-
repeated string value = 1 [(google.api.field_behavior) = OPTIONAL];
75+
repeated string values = 1 [(google.api.field_behavior) = OPTIONAL];
7676
}
7777

7878
// A list of booleans.
7979
message BoolList {
8080
// Optional. The boolean values.
81-
repeated bool value = 1 [(google.api.field_behavior) = OPTIONAL];
81+
repeated bool values = 1 [(google.api.field_behavior) = OPTIONAL];
8282
}
8383

8484
// A list of dictionaries.
8585
message DictList {
8686
// Optional. The DictValue values.
87-
repeated DictValue value = 1 [(google.api.field_behavior) = OPTIONAL];
87+
repeated DictValue values = 1 [(google.api.field_behavior) = OPTIONAL];
8888
}
8989

9090
// Indices map key to value. For example, `keys[0]` key maps to `values[0]`.

google/cloud/universalledger/v1/types.proto

Lines changed: 103 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.universalledger.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/cloud/universalledger/v1/common.proto";
2121
import "google/cloud/universalledger/v1/status_event.proto";
22+
import "google/cloud/universalledger/v1/transactions.proto";
2223
import "google/protobuf/any.proto";
2324

2425
option csharp_namespace = "Google.Cloud.UniversalLedger.V1";
@@ -33,7 +34,8 @@ option ruby_package = "Google::Cloud::UniversalLedger::V1";
3334
message ClientTransaction {
3435
// The client transaction-specific message.
3536
oneof kind {
36-
// Optional. A client transaction-specific message. Should be any one of:
37+
// Optional. Deprecated: use one of the message specific fields instead.
38+
// A client transaction-specific message. Should be any one of:
3739
//
3840
// <!--
3941
// clang-format off
@@ -64,7 +66,8 @@ message ClientTransaction {
6466
// <!--
6567
// clang-format on
6668
// -->
67-
google.protobuf.Any app = 5 [(google.api.field_behavior) = OPTIONAL];
69+
google.protobuf.Any app = 5
70+
[deprecated = true, (google.api.field_behavior) = OPTIONAL];
6871

6972
// Optional. An operational transaction message. Note this can only be sent
7073
// by the platform operator. Should be any one of:
@@ -79,6 +82,104 @@ message ClientTransaction {
7982
google.protobuf.Any operational = 6
8083
[(google.api.field_behavior) = OPTIONAL];
8184

85+
// Optional. Message for transferring the platform operator role to a new
86+
// account.
87+
TransferPlatformOperator transfer_platform_operator_transaction = 13
88+
[(google.api.field_behavior) = OPTIONAL];
89+
90+
// Optional. Message for creating a new currency operator.
91+
CreateCurrencyOperator create_currency_operator_transaction = 14
92+
[(google.api.field_behavior) = OPTIONAL];
93+
94+
// Optional. Message for transferring the currency operator role to a new
95+
// account.
96+
TransferCurrencyOperator transfer_currency_operator_transaction = 15
97+
[(google.api.field_behavior) = OPTIONAL];
98+
99+
// Optional. Message for creating a new clearinghouse.
100+
CreateClearinghouse create_clearinghouse_transaction = 16
101+
[(google.api.field_behavior) = OPTIONAL];
102+
103+
// Optional. Message for creating a new account manager.
104+
CreateAccountManager create_account_manager_transaction = 17
105+
[(google.api.field_behavior) = OPTIONAL];
106+
107+
// Optional. Message for creating a new token manager associated to the
108+
// currency of the operator sending the request.
109+
CreateTokenManager create_token_manager_transaction = 18
110+
[(google.api.field_behavior) = OPTIONAL];
111+
112+
// Optional. Notifies the network that the target account has deposited
113+
// reserve funds and increases its token issuance limit.
114+
IncreaseTokenIssuanceLimit increase_token_issuance_limit_transaction = 19
115+
[(google.api.field_behavior) = OPTIONAL];
116+
117+
// Optional. Notifies the network that the target account wishes to withdraw
118+
// reserve funds and decreases its token issuance limit.
119+
DecreaseTokenIssuanceLimit decrease_token_issuance_limit_transaction = 20
120+
[(google.api.field_behavior) = OPTIONAL];
121+
122+
// Optional. Message for initiating a settlement operation.
123+
SettlementRequest settlement_request_transaction = 21
124+
[(google.api.field_behavior) = OPTIONAL];
125+
126+
// Optional. Message for minting currency tokens and transferring them to an
127+
// account.
128+
Mint mint_transaction = 22 [(google.api.field_behavior) = OPTIONAL];
129+
130+
// Optional. Message for burning currency tokens from an account.
131+
Burn burn_transaction = 23 [(google.api.field_behavior) = OPTIONAL];
132+
133+
// Optional. Message for creating a new user account.
134+
CreateAccount create_account_transaction = 24
135+
[(google.api.field_behavior) = OPTIONAL];
136+
137+
// Optional. Message for deactivating a user account.
138+
DeactivateAccount deactivate_account_transaction = 25
139+
[(google.api.field_behavior) = OPTIONAL];
140+
141+
// Optional. Message for activating a user account.
142+
ActivateAccount activate_account_transaction = 26
143+
[(google.api.field_behavior) = OPTIONAL];
144+
145+
// Optional. Message for adding roles to an account.
146+
AddRoles add_roles_transaction = 27
147+
[(google.api.field_behavior) = OPTIONAL];
148+
149+
// Optional. Message for removing roles from an account.
150+
RemoveRoles remove_roles_transaction = 28
151+
[(google.api.field_behavior) = OPTIONAL];
152+
153+
// Optional. Message for changing the account manager of an account.
154+
ChangeAccountManager change_account_manager_transaction = 29
155+
[(google.api.field_behavior) = OPTIONAL];
156+
157+
// Optional. Message for transferring tokens from one user account to
158+
// another.
159+
Transfer transfer_transaction = 30 [(google.api.field_behavior) = OPTIONAL];
160+
161+
// Optional. Message for creating a new contract on the ledger.
162+
CreateContract create_contract_transaction = 31
163+
[(google.api.field_behavior) = OPTIONAL];
164+
165+
// Optional. Message for granting permissions to a contract.
166+
GrantContractPermissions grant_contract_permissions_transaction = 32
167+
[(google.api.field_behavior) = OPTIONAL];
168+
169+
// Optional. Message for invoking the execution of a contract method.
170+
InvokeContractMethod invoke_contract_method_transaction = 33
171+
[(google.api.field_behavior) = OPTIONAL];
172+
173+
// Optional. Message for creating a new token manager associated to the
174+
// currency of the operator sending the request.
175+
CreateContractTokenManager create_contract_token_manager_transaction = 34
176+
[(google.api.field_behavior) = OPTIONAL];
177+
178+
// Optional. Message for transferring the token manager role for a currency
179+
// from one account to another.
180+
TransferContractTokenManager transfer_contract_token_manager_transaction =
181+
35 [(google.api.field_behavior) = OPTIONAL];
182+
82183
// Optional. Message for a transaction chain including multiple transaction
83184
// units to execute in sequence.
84185
TransactionChain chain = 8 [(google.api.field_behavior) = OPTIONAL];

0 commit comments

Comments
 (0)