-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathPrimitive.pbobjc.h
208 lines (166 loc) · 6.21 KB
/
Primitive.pbobjc.h
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
196
197
198
199
200
201
202
203
204
205
206
207
208
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: primitive.proto
// This CPP symbol can be defined to use imports that match up to the framework
// imports needed when using CocoaPods.
#if !defined(GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS)
#define GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS 0
#endif
#if GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS
#import <Protobuf/GPBProtocolBuffers.h>
#else
#import "GPBProtocolBuffers.h"
#endif
#if GOOGLE_PROTOBUF_OBJC_VERSION < 30002
#error This file was generated by a newer version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
#if 30002 < GOOGLE_PROTOBUF_OBJC_MIN_SUPPORTED_VERSION
#error This file was generated by an older version of protoc which is incompatible with your Protocol Buffer library sources.
#endif
// @@protoc_insertion_point(imports)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CF_EXTERN_C_BEGIN
NS_ASSUME_NONNULL_BEGIN
#pragma mark - Enum RolePermission
/**
* *
* Represents any possible value for permission field,
* then the account is capable of performing such action.
*
* Command and Query related permissions are included in the role,
* which an Account can have.
*
* Grantable permission is set as a relation between two accounts:
* Account A is granting Permission to Account B,
* so that Account B can perform actions over Account A.
**/
typedef GPB_ENUM(RolePermission) {
/**
* Value used if any message's field encounters a value that is not defined
* by this enum. The message will also have C functions to get/set the rawValue
* of the field.
**/
RolePermission_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
/** Command Permissions */
RolePermission_CanAppendRole = 0,
RolePermission_CanCreateRole = 1,
RolePermission_CanDetachRole = 2,
RolePermission_CanAddAssetQty = 3,
RolePermission_CanSubtractAssetQty = 4,
RolePermission_CanAddPeer = 5,
RolePermission_CanRemovePeer = 46,
RolePermission_CanAddSignatory = 6,
RolePermission_CanRemoveSignatory = 7,
RolePermission_CanSetQuorum = 8,
RolePermission_CanCreateAccount = 9,
RolePermission_CanSetDetail = 10,
RolePermission_CanCreateAsset = 11,
RolePermission_CanTransfer = 12,
RolePermission_CanReceive = 13,
RolePermission_CanCreateDomain = 14,
RolePermission_CanAddDomainAssetQty = 43,
RolePermission_CanSubtractDomainAssetQty = 44,
/** Query permissions */
RolePermission_CanReadAssets = 15,
RolePermission_CanGetRoles = 16,
RolePermission_CanGetMyAccount = 17,
RolePermission_CanGetAllAccounts = 18,
RolePermission_CanGetDomainAccounts = 19,
RolePermission_CanGetMySignatories = 20,
RolePermission_CanGetAllSignatories = 21,
RolePermission_CanGetDomainSignatories = 22,
RolePermission_CanGetMyAccAst = 23,
RolePermission_CanGetAllAccAst = 24,
RolePermission_CanGetDomainAccAst = 25,
RolePermission_CanGetMyAccDetail = 26,
RolePermission_CanGetAllAccDetail = 27,
RolePermission_CanGetDomainAccDetail = 28,
RolePermission_CanGetMyAccTxs = 29,
RolePermission_CanGetAllAccTxs = 30,
RolePermission_CanGetDomainAccTxs = 31,
RolePermission_CanGetMyAccAstTxs = 32,
RolePermission_CanGetAllAccAstTxs = 33,
RolePermission_CanGetDomainAccAstTxs = 34,
RolePermission_CanGetMyTxs = 35,
RolePermission_CanGetAllTxs = 36,
RolePermission_CanGetBlocks = 42,
RolePermission_CanGetPeers = 45,
/** Grant permissions */
RolePermission_CanGrantCanSetMyQuorum = 37,
RolePermission_CanGrantCanAddMySignatory = 38,
RolePermission_CanGrantCanRemoveMySignatory = 39,
RolePermission_CanGrantCanTransferMyAssets = 40,
RolePermission_CanGrantCanSetMyAccountDetail = 41,
};
GPBEnumDescriptor *RolePermission_EnumDescriptor(void);
/**
* Checks to see if the given value is defined by the enum or was not known at
* the time this source was generated.
**/
BOOL RolePermission_IsValidValue(int32_t value);
#pragma mark - Enum GrantablePermission
typedef GPB_ENUM(GrantablePermission) {
/**
* Value used if any message's field encounters a value that is not defined
* by this enum. The message will also have C functions to get/set the rawValue
* of the field.
**/
GrantablePermission_GPBUnrecognizedEnumeratorValue = kGPBUnrecognizedEnumeratorValue,
GrantablePermission_CanAddMySignatory = 0,
GrantablePermission_CanRemoveMySignatory = 1,
GrantablePermission_CanSetMyQuorum = 2,
GrantablePermission_CanSetMyAccountDetail = 3,
/** not implemented now */
GrantablePermission_CanTransferMyAssets = 4,
};
GPBEnumDescriptor *GrantablePermission_EnumDescriptor(void);
/**
* Checks to see if the given value is defined by the enum or was not known at
* the time this source was generated.
**/
BOOL GrantablePermission_IsValidValue(int32_t value);
#pragma mark - PrimitiveRoot
/**
* Exposes the extension registry for this file.
*
* The base class provides:
* @code
* + (GPBExtensionRegistry *)extensionRegistry;
* @endcode
* which is a @c GPBExtensionRegistry that includes all the extensions defined by
* this file and all files that it depends on.
**/
@interface PrimitiveRoot : GPBRootObject
@end
#pragma mark - Signature
typedef GPB_ENUM(Signature_FieldNumber) {
Signature_FieldNumber_PublicKey = 1,
Signature_FieldNumber_Signature = 2,
};
@interface Signature : GPBMessage
@property(nonatomic, readwrite, copy, null_resettable) NSString *publicKey;
@property(nonatomic, readwrite, copy, null_resettable) NSString *signature;
@end
#pragma mark - Peer
typedef GPB_ENUM(Peer_FieldNumber) {
Peer_FieldNumber_Address = 1,
Peer_FieldNumber_PeerKey = 2,
};
@interface Peer : GPBMessage
@property(nonatomic, readwrite, copy, null_resettable) NSString *address;
/** hex string */
@property(nonatomic, readwrite, copy, null_resettable) NSString *peerKey;
@end
#pragma mark - AccountDetailRecordId
typedef GPB_ENUM(AccountDetailRecordId_FieldNumber) {
AccountDetailRecordId_FieldNumber_Writer = 1,
AccountDetailRecordId_FieldNumber_Key = 2,
};
@interface AccountDetailRecordId : GPBMessage
@property(nonatomic, readwrite, copy, null_resettable) NSString *writer;
@property(nonatomic, readwrite, copy, null_resettable) NSString *key;
@end
NS_ASSUME_NONNULL_END
CF_EXTERN_C_END
#pragma clang diagnostic pop
// @@protoc_insertion_point(global_scope)