-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatastore.proto
More file actions
204 lines (174 loc) · 3.6 KB
/
Copy pathdatastore.proto
File metadata and controls
204 lines (174 loc) · 3.6 KB
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
syntax = "proto3";
option java_multiple_files = true;
option java_package = "io.grpc.examples.datastore";
option java_outer_classname = "datastoreProto";
option objc_class_prefix = "HLW";
package semata.datastore.grpc;
service DataStore
{
rpc ProcessCommands (ProcessCommandsRequest) returns (ProcessCommandsReply) {}
rpc Close (CloseRequest) returns (CloseReply) {}
}
message ProcessCommandsRequest
{
string path = 1;
string encryptionKey = 2;
string commands = 3;
repeated Variable variable = 4;
}
message CloseRequest
{
string path = 1;
}
message CloseReply
{
DataStoreErrorDetails errorDetails = 1;
}
message DataStoreErrorDetails
{
int64 errorCode = 1;
string errorMessage = 2;
}
message Variable
{
string name = 1;
StructuredValue value = 2;
}
message ProcessCommandsReply
{
repeated CommandReply reply = 1;
}
message CommandReply
{
oneof reply
{
ModelDetails modelDetails = 1;
CommandSummary commandSummary = 2;
StructuredValue structuredValue = 3;
CommandError commandError = 4;
}
}
message ModelDetails
{
repeated ItemTypeDetails itemType = 1;
}
message CommandSummary
{
bool typesChanged = 1;
uint64 itemsCreated = 2;
uint64 itemsDeleted = 3;
uint64 itemsModified = 4;
uint64 attributesSet = 5;
uint64 associationsAdded = 6;
uint64 associationsRemoved = 7;
string message = 8;
}
message StructuredValue
{
oneof structure
{
Value value = 1;
NamedValueSet set = 2;
NamedValueSetList list = 3;
}
}
message CommandError
{
uint32 errorCode = 1;
string errorMessage = 2;
int32 errorOffset = 3;
repeated string transactionError = 4;
}
message ItemTypeDetails
{
string name = 1;
string description = 2;
string annotation = 3;
repeated AttributeTypeDetails attributeType = 4;
repeated AssociationTypeDetails associationType = 5;
}
message AttributeTypeDetails
{
string name = 1;
string description = 2;
string annotation = 3;
Constraints constraints = 4;
AttributeValueType valueType = 5;
}
message AssociationTypeDetails
{
string name = 1;
string description = 2;
string annotation = 3;
Cardinality cardinality = 4;
repeated AssociateDetails associate = 5;
}
message AssociateDetails
{
string itemTypeName = 1;
string name = 2;
}
message NamedValueSetList
{
repeated NamedValueSet set = 1;
}
message NamedValueSet
{
repeated NamedValue namedValue = 1;
}
message NamedValue
{
string name = 1;
StructuredValue value = 2;
}
enum AttributeValueType
{
ATTRIBUTE_VALUE_TYPE_BOOLEAN = 0;
ATTRIBUTE_VALUE_TYPE_DATE = 1;
ATTRIBUTE_VALUE_TYPE_DATE_TIME = 2;
ATTRIBUTE_VALUE_TYPE_DECIMAL = 3;
ATTRIBUTE_VALUE_TYPE_DOUBLE = 4;
ATTRIBUTE_VALUE_TYPE_INTEGER = 5;
ATTRIBUTE_VALUE_TYPE_STRING = 6;
}
enum Cardinality
{
CARDINALITY_0_1 = 0;
CARDINALITY_0_N = 1;
CARDINALITY_1_1 = 2;
CARDINALITY_1_N = 3;
}
enum Constraints
{
CONSTRAINT_NONE = 0;
CONSTRAINT_MANDATORY = 1;
CONSTRAINT_UNIQUE = 2;
CONSTRAINT_MANDATORY_UNIQUE = 3;
}
enum NullValue
{
NULL = 0;
}
message Value
{
oneof value
{
NullValue valueNull = 1;
bool valueBool = 2;
int64 valueDate = 3;
int64 valueDateTime = 4;
Decimal valueDecimal = 5;
double valueDouble = 6;
int64 valueInteger = 7;
string valueString = 8;
}
}
message Decimal
{
uint32 sign = 1;
int32 exponent = 2;
uint32 significand_0 = 3;
uint32 significand_1 = 4;
uint32 significand_2 = 5;
uint32 significand_3 = 6;
}