/
response.proto
195 lines (157 loc) · 5.62 KB
/
response.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
syntax = "proto3";
package proto;
/*-
*
* Hedera Network Services Protobuf
*
* Copyright (C) 2018 - 2021 Hedera Hashgraph, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
option java_package = "com.hederahashgraph.api.proto.java";
// <<<pbj.java_package = "com.hedera.hapi.node.transaction">>> This comment is special code for setting PBJ Compiler java package
option java_multiple_files = true;
import "get_by_key.proto";
import "get_by_solidity_id.proto";
import "contract_call_local.proto";
import "contract_get_bytecode.proto";
import "contract_get_info.proto";
import "contract_get_records.proto";
import "crypto_get_account_balance.proto";
import "crypto_get_account_records.proto";
import "crypto_get_info.proto";
import "crypto_get_live_hash.proto";
import "crypto_get_stakers.proto";
import "file_get_contents.proto";
import "file_get_info.proto";
import "transaction_get_receipt.proto";
import "transaction_get_record.proto";
import "transaction_get_fast_record.proto";
import "consensus_get_topic_info.proto";
import "network_get_version_info.proto";
import "network_get_execution_time.proto";
import "token_get_account_nft_infos.proto";
import "token_get_info.proto";
import "token_get_nft_info.proto";
import "token_get_nft_infos.proto";
import "schedule_get_info.proto";
import "get_account_details.proto";
/**
* A single response, which is returned from the node to the client, after the client sent the node
* a query. This includes all responses.
*/
message Response {
oneof response {
/**
* Get all entities associated with a given key
*/
GetByKeyResponse getByKey = 1;
/**
* Get the IDs in the format used in transactions, given the format used in Solidity
*/
GetBySolidityIDResponse getBySolidityID = 2;
/**
* Response to call a function of a smart contract instance
*/
ContractCallLocalResponse contractCallLocal = 3;
/**
* Get the runtime code for a smart contract instance
*/
ContractGetBytecodeResponse contractGetBytecodeResponse = 5;
/**
* Get information about a smart contract instance
*/
ContractGetInfoResponse contractGetInfo = 4;
/**
* Get all existing records for a smart contract instance
*/
ContractGetRecordsResponse contractGetRecordsResponse = 6;
/**
* Get the current balance in a cryptocurrency account
*/
CryptoGetAccountBalanceResponse cryptogetAccountBalance = 7;
/**
* Get all the records that currently exist for transactions involving an account
*/
CryptoGetAccountRecordsResponse cryptoGetAccountRecords = 8;
/**
* Get all information about an account
*/
CryptoGetInfoResponse cryptoGetInfo = 9;
/**
* Contains a livehash associated to an account
*/
CryptoGetLiveHashResponse cryptoGetLiveHash = 10;
/**
* Get all the accounts that proxy stake to a given account, and how much they proxy stake
*/
CryptoGetStakersResponse cryptoGetProxyStakers = 11;
/**
* Get the contents of a file (the bytes stored in it)
*/
FileGetContentsResponse fileGetContents = 12;
/**
* Get information about a file, such as its expiration date
*/
FileGetInfoResponse fileGetInfo = 13;
/**
* Get a receipt for a transaction
*/
TransactionGetReceiptResponse transactionGetReceipt = 14;
/**
* Get a record for a transaction
*/
TransactionGetRecordResponse transactionGetRecord = 15;
/**
* Get a record for a transaction (lasts 180 seconds)
*/
TransactionGetFastRecordResponse transactionGetFastRecord = 16;
/**
* Parameters of and state of a consensus topic..
*/
ConsensusGetTopicInfoResponse consensusGetTopicInfo = 150;
/**
* Semantic versions of Hedera Services and HAPI proto
*/
NetworkGetVersionInfoResponse networkGetVersionInfo = 151;
/**
* Get all information about a token
*/
TokenGetInfoResponse tokenGetInfo = 152;
/**
* Get all information about a schedule entity
*/
ScheduleGetInfoResponse scheduleGetInfo = 153;
/**
* A list of the NFTs associated with the account
*/
TokenGetAccountNftInfosResponse tokenGetAccountNftInfos = 154;
/**
* All information about an NFT
*/
TokenGetNftInfoResponse tokenGetNftInfo = 155;
/**
* A list of the NFTs for the token
*/
TokenGetNftInfosResponse tokenGetNftInfos = 156;
/**
* Execution times of "sufficiently recent" transactions
*/
NetworkGetExecutionTimeResponse networkGetExecutionTime = 157;
/**
* Gets all information about an account including allowances granted by the account
*/
GetAccountDetailsResponse accountDetails = 158;
}
}