diff options
author | Adam Frisby | 2009-12-27 15:03:10 +1100 |
---|---|---|
committer | Adam Frisby | 2009-12-27 15:03:10 +1100 |
commit | fd777cc7b964a302f335ad91735f02554582c648 (patch) | |
tree | 4b448a6ea13b3074a5c54beed0a8744127b2930b /OpenSim/Client/Sirikata/Protocol/Persistence.cs | |
parent | * Adding Google.ProtocolBuffers.dll dependency (BSD licensed) (diff) | |
download | opensim-SC_OLD-fd777cc7b964a302f335ad91735f02554582c648.zip opensim-SC_OLD-fd777cc7b964a302f335ad91735f02554582c648.tar.gz opensim-SC_OLD-fd777cc7b964a302f335ad91735f02554582c648.tar.bz2 opensim-SC_OLD-fd777cc7b964a302f335ad91735f02554582c648.tar.xz |
* Implements Sirikata ClientStack Module
* Just a stub (imports all the sirikata protocol, and that's about it.)
Diffstat (limited to 'OpenSim/Client/Sirikata/Protocol/Persistence.cs')
-rw-r--r-- | OpenSim/Client/Sirikata/Protocol/Persistence.cs | 3299 |
1 files changed, 3299 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Persistence.cs b/OpenSim/Client/Sirikata/Protocol/Persistence.cs new file mode 100644 index 0000000..d8f8d33 --- /dev/null +++ b/OpenSim/Client/Sirikata/Protocol/Persistence.cs | |||
@@ -0,0 +1,3299 @@ | |||
1 | // Generated by the protocol buffer compiler. DO NOT EDIT! | ||
2 | |||
3 | using pb = global::Google.ProtocolBuffers; | ||
4 | using pbc = global::Google.ProtocolBuffers.Collections; | ||
5 | using pbd = global::Google.ProtocolBuffers.Descriptors; | ||
6 | using scg = global::System.Collections.Generic; | ||
7 | namespace Sirikata.Persistence.Protocol._PBJ_Internal { | ||
8 | |||
9 | public static partial class Persistence { | ||
10 | |||
11 | #region Extension registration | ||
12 | public static void RegisterAllExtensions(pb::ExtensionRegistry registry) { | ||
13 | } | ||
14 | #endregion | ||
15 | #region Static variables | ||
16 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor; | ||
17 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable; | ||
18 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor; | ||
19 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable; | ||
20 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor; | ||
21 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable; | ||
22 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor; | ||
23 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable; | ||
24 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor; | ||
25 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable; | ||
26 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor; | ||
27 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable; | ||
28 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor; | ||
29 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable; | ||
30 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor; | ||
31 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable; | ||
32 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor; | ||
33 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction, global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable; | ||
34 | internal static pbd::MessageDescriptor internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor; | ||
35 | internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Response, global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Builder> internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable; | ||
36 | #endregion | ||
37 | #region Descriptor | ||
38 | public static pbd::FileDescriptor Descriptor { | ||
39 | get { return descriptor; } | ||
40 | } | ||
41 | private static pbd::FileDescriptor descriptor; | ||
42 | |||
43 | static Persistence() { | ||
44 | byte[] descriptorData = global::System.Convert.FromBase64String( | ||
45 | "ChFQZXJzaXN0ZW5jZS5wcm90bxIrU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJv" + | ||
46 | "dG9jb2wuX1BCSl9JbnRlcm5hbCJHCgpTdG9yYWdlS2V5EhMKC29iamVjdF91" + | ||
47 | "dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgEEhIKCmZpZWxkX25hbWUYCyAB" + | ||
48 | "KAkiHAoMU3RvcmFnZVZhbHVlEgwKBGRhdGEYDCABKAwi/gEKDlN0b3JhZ2VF" + | ||
49 | "bGVtZW50EhMKC29iamVjdF91dWlkGAkgASgMEhAKCGZpZWxkX2lkGAogASgE" + | ||
50 | "EhIKCmZpZWxkX25hbWUYCyABKAkSDAoEZGF0YRgMIAEoDBINCgVpbmRleBgN" + | ||
51 | "IAEoBRJfCg1yZXR1cm5fc3RhdHVzGA8gASgOMkguU2lyaWthdGEuUGVyc2lz" + | ||
52 | "dGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudC5S" + | ||
53 | "ZXR1cm5TdGF0dXMiMwoMUmV0dXJuU3RhdHVzEg8KC0tFWV9NSVNTSU5HEAQS" + | ||
54 | "EgoOSU5URVJOQUxfRVJST1IQBiLaAQoOQ29tcGFyZUVsZW1lbnQSEwoLb2Jq" + | ||
55 | "ZWN0X3V1aWQYCSABKAwSEAoIZmllbGRfaWQYCiABKAQSEgoKZmllbGRfbmFt" + | ||
56 | "ZRgLIAEoCRIMCgRkYXRhGAwgASgMEloKCmNvbXBhcmF0b3IYDiABKA4yRi5T" + | ||
57 | "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLkNv" + | ||
58 | "bXBhcmVFbGVtZW50LkNPTVBBUkFUT1IiIwoKQ09NUEFSQVRPUhIJCgVFUVVB" + | ||
59 | "TBAAEgoKBk5FUVVBTBABIlgKClN0b3JhZ2VTZXQSSgoFcmVhZHMYCSADKAsy" + | ||
60 | "Oy5TaXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFs" + | ||
61 | "LlN0b3JhZ2VFbGVtZW50IlUKB1JlYWRTZXQSSgoFcmVhZHMYCSADKAsyOy5T" + | ||
62 | "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" + | ||
63 | "b3JhZ2VFbGVtZW50IlcKCFdyaXRlU2V0EksKBndyaXRlcxgKIAMoCzI7LlNp" + | ||
64 | "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuU3Rv" + | ||
65 | "cmFnZUVsZW1lbnQi5gEKDFJlYWRXcml0ZVNldBJKCgVyZWFkcxgJIAMoCzI7" + | ||
66 | "LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwu" + | ||
67 | "U3RvcmFnZUVsZW1lbnQSSwoGd3JpdGVzGAogAygLMjsuU2lyaWthdGEuUGVy" + | ||
68 | "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVu" + | ||
69 | "dBIPCgdvcHRpb25zGA4gASgEIiwKE1JlYWRXcml0ZVNldE9wdGlvbnMSFQoR" + | ||
70 | "UkVUVVJOX1JFQURfTkFNRVMQASK3AgoPTWluaXRyYW5zYWN0aW9uEkoKBXJl" + | ||
71 | "YWRzGAkgAygLMjsuU2lyaWthdGEuUGVyc2lzdGVuY2UuUHJvdG9jb2wuX1BC" + | ||
72 | "Sl9JbnRlcm5hbC5TdG9yYWdlRWxlbWVudBJLCgZ3cml0ZXMYCiADKAsyOy5T" + | ||
73 | "aXJpa2F0YS5QZXJzaXN0ZW5jZS5Qcm90b2NvbC5fUEJKX0ludGVybmFsLlN0" + | ||
74 | "b3JhZ2VFbGVtZW50Ek0KCGNvbXBhcmVzGAsgAygLMjsuU2lyaWthdGEuUGVy" + | ||
75 | "c2lzdGVuY2UuUHJvdG9jb2wuX1BCSl9JbnRlcm5hbC5Db21wYXJlRWxlbWVu" + | ||
76 | "dBIPCgdvcHRpb25zGA4gASgEIisKElRyYW5zYWN0aW9uT3B0aW9ucxIVChFS" + | ||
77 | "RVRVUk5fUkVBRF9OQU1FUxABIp8CCghSZXNwb25zZRJKCgVyZWFkcxgJIAMo" + | ||
78 | "CzI7LlNpcmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJu" + | ||
79 | "YWwuU3RvcmFnZUVsZW1lbnQSWQoNcmV0dXJuX3N0YXR1cxgPIAEoDjJCLlNp" + | ||
80 | "cmlrYXRhLlBlcnNpc3RlbmNlLlByb3RvY29sLl9QQkpfSW50ZXJuYWwuUmVz" + | ||
81 | "cG9uc2UuUmV0dXJuU3RhdHVzImwKDFJldHVyblN0YXR1cxILCgdTVUNDRVNT" + | ||
82 | "EAASEwoPREFUQUJBU0VfTE9DS0VEEAMSDwoLS0VZX01JU1NJTkcQBBIVChFD" + | ||
83 | "T01QQVJJU09OX0ZBSUxFRBAFEhIKDklOVEVSTkFMX0VSUk9SEAY="); | ||
84 | pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) { | ||
85 | descriptor = root; | ||
86 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor = Descriptor.MessageTypes[0]; | ||
87 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable = | ||
88 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor, | ||
89 | new string[] { "ObjectUuid", "FieldId", "FieldName", }); | ||
90 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor = Descriptor.MessageTypes[1]; | ||
91 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable = | ||
92 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor, | ||
93 | new string[] { "Data", }); | ||
94 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor = Descriptor.MessageTypes[2]; | ||
95 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable = | ||
96 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor, | ||
97 | new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Index", "ReturnStatus", }); | ||
98 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor = Descriptor.MessageTypes[3]; | ||
99 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable = | ||
100 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor, | ||
101 | new string[] { "ObjectUuid", "FieldId", "FieldName", "Data", "Comparator", }); | ||
102 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor = Descriptor.MessageTypes[4]; | ||
103 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable = | ||
104 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor, | ||
105 | new string[] { "Reads", }); | ||
106 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor = Descriptor.MessageTypes[5]; | ||
107 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable = | ||
108 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor, | ||
109 | new string[] { "Reads", }); | ||
110 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor = Descriptor.MessageTypes[6]; | ||
111 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable = | ||
112 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor, | ||
113 | new string[] { "Writes", }); | ||
114 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor = Descriptor.MessageTypes[7]; | ||
115 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable = | ||
116 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet, global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor, | ||
117 | new string[] { "Reads", "Writes", "Options", }); | ||
118 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor = Descriptor.MessageTypes[8]; | ||
119 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable = | ||
120 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction, global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor, | ||
121 | new string[] { "Reads", "Writes", "Compares", "Options", }); | ||
122 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor = Descriptor.MessageTypes[9]; | ||
123 | internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable = | ||
124 | new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Persistence.Protocol._PBJ_Internal.Response, global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Builder>(internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor, | ||
125 | new string[] { "Reads", "ReturnStatus", }); | ||
126 | return null; | ||
127 | }; | ||
128 | pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, | ||
129 | new pbd::FileDescriptor[] { | ||
130 | }, assigner); | ||
131 | } | ||
132 | #endregion | ||
133 | |||
134 | } | ||
135 | #region Messages | ||
136 | public sealed partial class StorageKey : pb::GeneratedMessage<StorageKey, StorageKey.Builder> { | ||
137 | private static readonly StorageKey defaultInstance = new Builder().BuildPartial(); | ||
138 | public static StorageKey DefaultInstance { | ||
139 | get { return defaultInstance; } | ||
140 | } | ||
141 | |||
142 | public override StorageKey DefaultInstanceForType { | ||
143 | get { return defaultInstance; } | ||
144 | } | ||
145 | |||
146 | protected override StorageKey ThisMessage { | ||
147 | get { return this; } | ||
148 | } | ||
149 | |||
150 | public static pbd::MessageDescriptor Descriptor { | ||
151 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__Descriptor; } | ||
152 | } | ||
153 | |||
154 | protected override pb::FieldAccess.FieldAccessorTable<StorageKey, StorageKey.Builder> InternalFieldAccessors { | ||
155 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageKey__FieldAccessorTable; } | ||
156 | } | ||
157 | |||
158 | public const int ObjectUuidFieldNumber = 9; | ||
159 | private bool hasObjectUuid; | ||
160 | private pb::ByteString objectUuid_ = pb::ByteString.Empty; | ||
161 | public bool HasObjectUuid { | ||
162 | get { return hasObjectUuid; } | ||
163 | } | ||
164 | public pb::ByteString ObjectUuid { | ||
165 | get { return objectUuid_; } | ||
166 | } | ||
167 | |||
168 | public const int FieldIdFieldNumber = 10; | ||
169 | private bool hasFieldId; | ||
170 | private ulong fieldId_ = 0UL; | ||
171 | public bool HasFieldId { | ||
172 | get { return hasFieldId; } | ||
173 | } | ||
174 | [global::System.CLSCompliant(false)] | ||
175 | public ulong FieldId { | ||
176 | get { return fieldId_; } | ||
177 | } | ||
178 | |||
179 | public const int FieldNameFieldNumber = 11; | ||
180 | private bool hasFieldName; | ||
181 | private string fieldName_ = ""; | ||
182 | public bool HasFieldName { | ||
183 | get { return hasFieldName; } | ||
184 | } | ||
185 | public string FieldName { | ||
186 | get { return fieldName_; } | ||
187 | } | ||
188 | |||
189 | public override bool IsInitialized { | ||
190 | get { | ||
191 | return true; | ||
192 | } | ||
193 | } | ||
194 | |||
195 | public override void WriteTo(pb::CodedOutputStream output) { | ||
196 | if (HasObjectUuid) { | ||
197 | output.WriteBytes(9, ObjectUuid); | ||
198 | } | ||
199 | if (HasFieldId) { | ||
200 | output.WriteUInt64(10, FieldId); | ||
201 | } | ||
202 | if (HasFieldName) { | ||
203 | output.WriteString(11, FieldName); | ||
204 | } | ||
205 | UnknownFields.WriteTo(output); | ||
206 | } | ||
207 | |||
208 | private int memoizedSerializedSize = -1; | ||
209 | public override int SerializedSize { | ||
210 | get { | ||
211 | int size = memoizedSerializedSize; | ||
212 | if (size != -1) return size; | ||
213 | |||
214 | size = 0; | ||
215 | if (HasObjectUuid) { | ||
216 | size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid); | ||
217 | } | ||
218 | if (HasFieldId) { | ||
219 | size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId); | ||
220 | } | ||
221 | if (HasFieldName) { | ||
222 | size += pb::CodedOutputStream.ComputeStringSize(11, FieldName); | ||
223 | } | ||
224 | size += UnknownFields.SerializedSize; | ||
225 | memoizedSerializedSize = size; | ||
226 | return size; | ||
227 | } | ||
228 | } | ||
229 | |||
230 | public static StorageKey ParseFrom(pb::ByteString data) { | ||
231 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
232 | } | ||
233 | public static StorageKey ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
234 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
235 | } | ||
236 | public static StorageKey ParseFrom(byte[] data) { | ||
237 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
238 | } | ||
239 | public static StorageKey ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
240 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
241 | } | ||
242 | public static StorageKey ParseFrom(global::System.IO.Stream input) { | ||
243 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
244 | } | ||
245 | public static StorageKey ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
246 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
247 | } | ||
248 | public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input) { | ||
249 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
250 | } | ||
251 | public static StorageKey ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
252 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
253 | } | ||
254 | public static StorageKey ParseFrom(pb::CodedInputStream input) { | ||
255 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
256 | } | ||
257 | public static StorageKey ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
258 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
259 | } | ||
260 | public static Builder CreateBuilder() { return new Builder(); } | ||
261 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
262 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
263 | public static Builder CreateBuilder(StorageKey prototype) { | ||
264 | return (Builder) new Builder().MergeFrom(prototype); | ||
265 | } | ||
266 | |||
267 | public sealed partial class Builder : pb::GeneratedBuilder<StorageKey, Builder> { | ||
268 | protected override Builder ThisBuilder { | ||
269 | get { return this; } | ||
270 | } | ||
271 | public Builder() {} | ||
272 | |||
273 | StorageKey result = new StorageKey(); | ||
274 | |||
275 | protected override StorageKey MessageBeingBuilt { | ||
276 | get { return result; } | ||
277 | } | ||
278 | |||
279 | public override Builder Clear() { | ||
280 | result = new StorageKey(); | ||
281 | return this; | ||
282 | } | ||
283 | |||
284 | public override Builder Clone() { | ||
285 | return new Builder().MergeFrom(result); | ||
286 | } | ||
287 | |||
288 | public override pbd::MessageDescriptor DescriptorForType { | ||
289 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.Descriptor; } | ||
290 | } | ||
291 | |||
292 | public override StorageKey DefaultInstanceForType { | ||
293 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance; } | ||
294 | } | ||
295 | |||
296 | public override StorageKey BuildPartial() { | ||
297 | if (result == null) { | ||
298 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
299 | } | ||
300 | StorageKey returnMe = result; | ||
301 | result = null; | ||
302 | return returnMe; | ||
303 | } | ||
304 | |||
305 | public override Builder MergeFrom(pb::IMessage other) { | ||
306 | if (other is StorageKey) { | ||
307 | return MergeFrom((StorageKey) other); | ||
308 | } else { | ||
309 | base.MergeFrom(other); | ||
310 | return this; | ||
311 | } | ||
312 | } | ||
313 | |||
314 | public override Builder MergeFrom(StorageKey other) { | ||
315 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageKey.DefaultInstance) return this; | ||
316 | if (other.HasObjectUuid) { | ||
317 | ObjectUuid = other.ObjectUuid; | ||
318 | } | ||
319 | if (other.HasFieldId) { | ||
320 | FieldId = other.FieldId; | ||
321 | } | ||
322 | if (other.HasFieldName) { | ||
323 | FieldName = other.FieldName; | ||
324 | } | ||
325 | this.MergeUnknownFields(other.UnknownFields); | ||
326 | return this; | ||
327 | } | ||
328 | |||
329 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
330 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
331 | } | ||
332 | |||
333 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
334 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
335 | while (true) { | ||
336 | uint tag = input.ReadTag(); | ||
337 | switch (tag) { | ||
338 | case 0: { | ||
339 | if (unknownFields != null) { | ||
340 | this.UnknownFields = unknownFields.Build(); | ||
341 | } | ||
342 | return this; | ||
343 | } | ||
344 | default: { | ||
345 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
346 | if (unknownFields != null) { | ||
347 | this.UnknownFields = unknownFields.Build(); | ||
348 | } | ||
349 | return this; | ||
350 | } | ||
351 | if (unknownFields == null) { | ||
352 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
353 | } | ||
354 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
355 | break; | ||
356 | } | ||
357 | case 74: { | ||
358 | ObjectUuid = input.ReadBytes(); | ||
359 | break; | ||
360 | } | ||
361 | case 80: { | ||
362 | FieldId = input.ReadUInt64(); | ||
363 | break; | ||
364 | } | ||
365 | case 90: { | ||
366 | FieldName = input.ReadString(); | ||
367 | break; | ||
368 | } | ||
369 | } | ||
370 | } | ||
371 | } | ||
372 | |||
373 | |||
374 | public bool HasObjectUuid { | ||
375 | get { return result.HasObjectUuid; } | ||
376 | } | ||
377 | public pb::ByteString ObjectUuid { | ||
378 | get { return result.ObjectUuid; } | ||
379 | set { SetObjectUuid(value); } | ||
380 | } | ||
381 | public Builder SetObjectUuid(pb::ByteString value) { | ||
382 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
383 | result.hasObjectUuid = true; | ||
384 | result.objectUuid_ = value; | ||
385 | return this; | ||
386 | } | ||
387 | public Builder ClearObjectUuid() { | ||
388 | result.hasObjectUuid = false; | ||
389 | result.objectUuid_ = pb::ByteString.Empty; | ||
390 | return this; | ||
391 | } | ||
392 | |||
393 | public bool HasFieldId { | ||
394 | get { return result.HasFieldId; } | ||
395 | } | ||
396 | [global::System.CLSCompliant(false)] | ||
397 | public ulong FieldId { | ||
398 | get { return result.FieldId; } | ||
399 | set { SetFieldId(value); } | ||
400 | } | ||
401 | [global::System.CLSCompliant(false)] | ||
402 | public Builder SetFieldId(ulong value) { | ||
403 | result.hasFieldId = true; | ||
404 | result.fieldId_ = value; | ||
405 | return this; | ||
406 | } | ||
407 | public Builder ClearFieldId() { | ||
408 | result.hasFieldId = false; | ||
409 | result.fieldId_ = 0UL; | ||
410 | return this; | ||
411 | } | ||
412 | |||
413 | public bool HasFieldName { | ||
414 | get { return result.HasFieldName; } | ||
415 | } | ||
416 | public string FieldName { | ||
417 | get { return result.FieldName; } | ||
418 | set { SetFieldName(value); } | ||
419 | } | ||
420 | public Builder SetFieldName(string value) { | ||
421 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
422 | result.hasFieldName = true; | ||
423 | result.fieldName_ = value; | ||
424 | return this; | ||
425 | } | ||
426 | public Builder ClearFieldName() { | ||
427 | result.hasFieldName = false; | ||
428 | result.fieldName_ = ""; | ||
429 | return this; | ||
430 | } | ||
431 | } | ||
432 | static StorageKey() { | ||
433 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
434 | } | ||
435 | } | ||
436 | |||
437 | public sealed partial class StorageValue : pb::GeneratedMessage<StorageValue, StorageValue.Builder> { | ||
438 | private static readonly StorageValue defaultInstance = new Builder().BuildPartial(); | ||
439 | public static StorageValue DefaultInstance { | ||
440 | get { return defaultInstance; } | ||
441 | } | ||
442 | |||
443 | public override StorageValue DefaultInstanceForType { | ||
444 | get { return defaultInstance; } | ||
445 | } | ||
446 | |||
447 | protected override StorageValue ThisMessage { | ||
448 | get { return this; } | ||
449 | } | ||
450 | |||
451 | public static pbd::MessageDescriptor Descriptor { | ||
452 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__Descriptor; } | ||
453 | } | ||
454 | |||
455 | protected override pb::FieldAccess.FieldAccessorTable<StorageValue, StorageValue.Builder> InternalFieldAccessors { | ||
456 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageValue__FieldAccessorTable; } | ||
457 | } | ||
458 | |||
459 | public const int DataFieldNumber = 12; | ||
460 | private bool hasData; | ||
461 | private pb::ByteString data_ = pb::ByteString.Empty; | ||
462 | public bool HasData { | ||
463 | get { return hasData; } | ||
464 | } | ||
465 | public pb::ByteString Data { | ||
466 | get { return data_; } | ||
467 | } | ||
468 | |||
469 | public override bool IsInitialized { | ||
470 | get { | ||
471 | return true; | ||
472 | } | ||
473 | } | ||
474 | |||
475 | public override void WriteTo(pb::CodedOutputStream output) { | ||
476 | if (HasData) { | ||
477 | output.WriteBytes(12, Data); | ||
478 | } | ||
479 | UnknownFields.WriteTo(output); | ||
480 | } | ||
481 | |||
482 | private int memoizedSerializedSize = -1; | ||
483 | public override int SerializedSize { | ||
484 | get { | ||
485 | int size = memoizedSerializedSize; | ||
486 | if (size != -1) return size; | ||
487 | |||
488 | size = 0; | ||
489 | if (HasData) { | ||
490 | size += pb::CodedOutputStream.ComputeBytesSize(12, Data); | ||
491 | } | ||
492 | size += UnknownFields.SerializedSize; | ||
493 | memoizedSerializedSize = size; | ||
494 | return size; | ||
495 | } | ||
496 | } | ||
497 | |||
498 | public static StorageValue ParseFrom(pb::ByteString data) { | ||
499 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
500 | } | ||
501 | public static StorageValue ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
502 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
503 | } | ||
504 | public static StorageValue ParseFrom(byte[] data) { | ||
505 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
506 | } | ||
507 | public static StorageValue ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
508 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
509 | } | ||
510 | public static StorageValue ParseFrom(global::System.IO.Stream input) { | ||
511 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
512 | } | ||
513 | public static StorageValue ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
514 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
515 | } | ||
516 | public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input) { | ||
517 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
518 | } | ||
519 | public static StorageValue ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
520 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
521 | } | ||
522 | public static StorageValue ParseFrom(pb::CodedInputStream input) { | ||
523 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
524 | } | ||
525 | public static StorageValue ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
526 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
527 | } | ||
528 | public static Builder CreateBuilder() { return new Builder(); } | ||
529 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
530 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
531 | public static Builder CreateBuilder(StorageValue prototype) { | ||
532 | return (Builder) new Builder().MergeFrom(prototype); | ||
533 | } | ||
534 | |||
535 | public sealed partial class Builder : pb::GeneratedBuilder<StorageValue, Builder> { | ||
536 | protected override Builder ThisBuilder { | ||
537 | get { return this; } | ||
538 | } | ||
539 | public Builder() {} | ||
540 | |||
541 | StorageValue result = new StorageValue(); | ||
542 | |||
543 | protected override StorageValue MessageBeingBuilt { | ||
544 | get { return result; } | ||
545 | } | ||
546 | |||
547 | public override Builder Clear() { | ||
548 | result = new StorageValue(); | ||
549 | return this; | ||
550 | } | ||
551 | |||
552 | public override Builder Clone() { | ||
553 | return new Builder().MergeFrom(result); | ||
554 | } | ||
555 | |||
556 | public override pbd::MessageDescriptor DescriptorForType { | ||
557 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.Descriptor; } | ||
558 | } | ||
559 | |||
560 | public override StorageValue DefaultInstanceForType { | ||
561 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance; } | ||
562 | } | ||
563 | |||
564 | public override StorageValue BuildPartial() { | ||
565 | if (result == null) { | ||
566 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
567 | } | ||
568 | StorageValue returnMe = result; | ||
569 | result = null; | ||
570 | return returnMe; | ||
571 | } | ||
572 | |||
573 | public override Builder MergeFrom(pb::IMessage other) { | ||
574 | if (other is StorageValue) { | ||
575 | return MergeFrom((StorageValue) other); | ||
576 | } else { | ||
577 | base.MergeFrom(other); | ||
578 | return this; | ||
579 | } | ||
580 | } | ||
581 | |||
582 | public override Builder MergeFrom(StorageValue other) { | ||
583 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageValue.DefaultInstance) return this; | ||
584 | if (other.HasData) { | ||
585 | Data = other.Data; | ||
586 | } | ||
587 | this.MergeUnknownFields(other.UnknownFields); | ||
588 | return this; | ||
589 | } | ||
590 | |||
591 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
592 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
593 | } | ||
594 | |||
595 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
596 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
597 | while (true) { | ||
598 | uint tag = input.ReadTag(); | ||
599 | switch (tag) { | ||
600 | case 0: { | ||
601 | if (unknownFields != null) { | ||
602 | this.UnknownFields = unknownFields.Build(); | ||
603 | } | ||
604 | return this; | ||
605 | } | ||
606 | default: { | ||
607 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
608 | if (unknownFields != null) { | ||
609 | this.UnknownFields = unknownFields.Build(); | ||
610 | } | ||
611 | return this; | ||
612 | } | ||
613 | if (unknownFields == null) { | ||
614 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
615 | } | ||
616 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
617 | break; | ||
618 | } | ||
619 | case 98: { | ||
620 | Data = input.ReadBytes(); | ||
621 | break; | ||
622 | } | ||
623 | } | ||
624 | } | ||
625 | } | ||
626 | |||
627 | |||
628 | public bool HasData { | ||
629 | get { return result.HasData; } | ||
630 | } | ||
631 | public pb::ByteString Data { | ||
632 | get { return result.Data; } | ||
633 | set { SetData(value); } | ||
634 | } | ||
635 | public Builder SetData(pb::ByteString value) { | ||
636 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
637 | result.hasData = true; | ||
638 | result.data_ = value; | ||
639 | return this; | ||
640 | } | ||
641 | public Builder ClearData() { | ||
642 | result.hasData = false; | ||
643 | result.data_ = pb::ByteString.Empty; | ||
644 | return this; | ||
645 | } | ||
646 | } | ||
647 | static StorageValue() { | ||
648 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
649 | } | ||
650 | } | ||
651 | |||
652 | public sealed partial class StorageElement : pb::GeneratedMessage<StorageElement, StorageElement.Builder> { | ||
653 | private static readonly StorageElement defaultInstance = new Builder().BuildPartial(); | ||
654 | public static StorageElement DefaultInstance { | ||
655 | get { return defaultInstance; } | ||
656 | } | ||
657 | |||
658 | public override StorageElement DefaultInstanceForType { | ||
659 | get { return defaultInstance; } | ||
660 | } | ||
661 | |||
662 | protected override StorageElement ThisMessage { | ||
663 | get { return this; } | ||
664 | } | ||
665 | |||
666 | public static pbd::MessageDescriptor Descriptor { | ||
667 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__Descriptor; } | ||
668 | } | ||
669 | |||
670 | protected override pb::FieldAccess.FieldAccessorTable<StorageElement, StorageElement.Builder> InternalFieldAccessors { | ||
671 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageElement__FieldAccessorTable; } | ||
672 | } | ||
673 | |||
674 | #region Nested types | ||
675 | public static class Types { | ||
676 | public enum ReturnStatus { | ||
677 | KEY_MISSING = 4, | ||
678 | INTERNAL_ERROR = 6, | ||
679 | } | ||
680 | |||
681 | } | ||
682 | #endregion | ||
683 | |||
684 | public const int ObjectUuidFieldNumber = 9; | ||
685 | private bool hasObjectUuid; | ||
686 | private pb::ByteString objectUuid_ = pb::ByteString.Empty; | ||
687 | public bool HasObjectUuid { | ||
688 | get { return hasObjectUuid; } | ||
689 | } | ||
690 | public pb::ByteString ObjectUuid { | ||
691 | get { return objectUuid_; } | ||
692 | } | ||
693 | |||
694 | public const int FieldIdFieldNumber = 10; | ||
695 | private bool hasFieldId; | ||
696 | private ulong fieldId_ = 0UL; | ||
697 | public bool HasFieldId { | ||
698 | get { return hasFieldId; } | ||
699 | } | ||
700 | [global::System.CLSCompliant(false)] | ||
701 | public ulong FieldId { | ||
702 | get { return fieldId_; } | ||
703 | } | ||
704 | |||
705 | public const int FieldNameFieldNumber = 11; | ||
706 | private bool hasFieldName; | ||
707 | private string fieldName_ = ""; | ||
708 | public bool HasFieldName { | ||
709 | get { return hasFieldName; } | ||
710 | } | ||
711 | public string FieldName { | ||
712 | get { return fieldName_; } | ||
713 | } | ||
714 | |||
715 | public const int DataFieldNumber = 12; | ||
716 | private bool hasData; | ||
717 | private pb::ByteString data_ = pb::ByteString.Empty; | ||
718 | public bool HasData { | ||
719 | get { return hasData; } | ||
720 | } | ||
721 | public pb::ByteString Data { | ||
722 | get { return data_; } | ||
723 | } | ||
724 | |||
725 | public const int IndexFieldNumber = 13; | ||
726 | private bool hasIndex; | ||
727 | private int index_ = 0; | ||
728 | public bool HasIndex { | ||
729 | get { return hasIndex; } | ||
730 | } | ||
731 | public int Index { | ||
732 | get { return index_; } | ||
733 | } | ||
734 | |||
735 | public const int ReturnStatusFieldNumber = 15; | ||
736 | private bool hasReturnStatus; | ||
737 | private global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING; | ||
738 | public bool HasReturnStatus { | ||
739 | get { return hasReturnStatus; } | ||
740 | } | ||
741 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus { | ||
742 | get { return returnStatus_; } | ||
743 | } | ||
744 | |||
745 | public override bool IsInitialized { | ||
746 | get { | ||
747 | return true; | ||
748 | } | ||
749 | } | ||
750 | |||
751 | public override void WriteTo(pb::CodedOutputStream output) { | ||
752 | if (HasObjectUuid) { | ||
753 | output.WriteBytes(9, ObjectUuid); | ||
754 | } | ||
755 | if (HasFieldId) { | ||
756 | output.WriteUInt64(10, FieldId); | ||
757 | } | ||
758 | if (HasFieldName) { | ||
759 | output.WriteString(11, FieldName); | ||
760 | } | ||
761 | if (HasData) { | ||
762 | output.WriteBytes(12, Data); | ||
763 | } | ||
764 | if (HasIndex) { | ||
765 | output.WriteInt32(13, Index); | ||
766 | } | ||
767 | if (HasReturnStatus) { | ||
768 | output.WriteEnum(15, (int) ReturnStatus); | ||
769 | } | ||
770 | UnknownFields.WriteTo(output); | ||
771 | } | ||
772 | |||
773 | private int memoizedSerializedSize = -1; | ||
774 | public override int SerializedSize { | ||
775 | get { | ||
776 | int size = memoizedSerializedSize; | ||
777 | if (size != -1) return size; | ||
778 | |||
779 | size = 0; | ||
780 | if (HasObjectUuid) { | ||
781 | size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid); | ||
782 | } | ||
783 | if (HasFieldId) { | ||
784 | size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId); | ||
785 | } | ||
786 | if (HasFieldName) { | ||
787 | size += pb::CodedOutputStream.ComputeStringSize(11, FieldName); | ||
788 | } | ||
789 | if (HasData) { | ||
790 | size += pb::CodedOutputStream.ComputeBytesSize(12, Data); | ||
791 | } | ||
792 | if (HasIndex) { | ||
793 | size += pb::CodedOutputStream.ComputeInt32Size(13, Index); | ||
794 | } | ||
795 | if (HasReturnStatus) { | ||
796 | size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus); | ||
797 | } | ||
798 | size += UnknownFields.SerializedSize; | ||
799 | memoizedSerializedSize = size; | ||
800 | return size; | ||
801 | } | ||
802 | } | ||
803 | |||
804 | public static StorageElement ParseFrom(pb::ByteString data) { | ||
805 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
806 | } | ||
807 | public static StorageElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
808 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
809 | } | ||
810 | public static StorageElement ParseFrom(byte[] data) { | ||
811 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
812 | } | ||
813 | public static StorageElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
814 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
815 | } | ||
816 | public static StorageElement ParseFrom(global::System.IO.Stream input) { | ||
817 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
818 | } | ||
819 | public static StorageElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
820 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
821 | } | ||
822 | public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input) { | ||
823 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
824 | } | ||
825 | public static StorageElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
826 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
827 | } | ||
828 | public static StorageElement ParseFrom(pb::CodedInputStream input) { | ||
829 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
830 | } | ||
831 | public static StorageElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
832 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
833 | } | ||
834 | public static Builder CreateBuilder() { return new Builder(); } | ||
835 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
836 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
837 | public static Builder CreateBuilder(StorageElement prototype) { | ||
838 | return (Builder) new Builder().MergeFrom(prototype); | ||
839 | } | ||
840 | |||
841 | public sealed partial class Builder : pb::GeneratedBuilder<StorageElement, Builder> { | ||
842 | protected override Builder ThisBuilder { | ||
843 | get { return this; } | ||
844 | } | ||
845 | public Builder() {} | ||
846 | |||
847 | StorageElement result = new StorageElement(); | ||
848 | |||
849 | protected override StorageElement MessageBeingBuilt { | ||
850 | get { return result; } | ||
851 | } | ||
852 | |||
853 | public override Builder Clear() { | ||
854 | result = new StorageElement(); | ||
855 | return this; | ||
856 | } | ||
857 | |||
858 | public override Builder Clone() { | ||
859 | return new Builder().MergeFrom(result); | ||
860 | } | ||
861 | |||
862 | public override pbd::MessageDescriptor DescriptorForType { | ||
863 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Descriptor; } | ||
864 | } | ||
865 | |||
866 | public override StorageElement DefaultInstanceForType { | ||
867 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance; } | ||
868 | } | ||
869 | |||
870 | public override StorageElement BuildPartial() { | ||
871 | if (result == null) { | ||
872 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
873 | } | ||
874 | StorageElement returnMe = result; | ||
875 | result = null; | ||
876 | return returnMe; | ||
877 | } | ||
878 | |||
879 | public override Builder MergeFrom(pb::IMessage other) { | ||
880 | if (other is StorageElement) { | ||
881 | return MergeFrom((StorageElement) other); | ||
882 | } else { | ||
883 | base.MergeFrom(other); | ||
884 | return this; | ||
885 | } | ||
886 | } | ||
887 | |||
888 | public override Builder MergeFrom(StorageElement other) { | ||
889 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.DefaultInstance) return this; | ||
890 | if (other.HasObjectUuid) { | ||
891 | ObjectUuid = other.ObjectUuid; | ||
892 | } | ||
893 | if (other.HasFieldId) { | ||
894 | FieldId = other.FieldId; | ||
895 | } | ||
896 | if (other.HasFieldName) { | ||
897 | FieldName = other.FieldName; | ||
898 | } | ||
899 | if (other.HasData) { | ||
900 | Data = other.Data; | ||
901 | } | ||
902 | if (other.HasIndex) { | ||
903 | Index = other.Index; | ||
904 | } | ||
905 | if (other.HasReturnStatus) { | ||
906 | ReturnStatus = other.ReturnStatus; | ||
907 | } | ||
908 | this.MergeUnknownFields(other.UnknownFields); | ||
909 | return this; | ||
910 | } | ||
911 | |||
912 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
913 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
914 | } | ||
915 | |||
916 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
917 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
918 | while (true) { | ||
919 | uint tag = input.ReadTag(); | ||
920 | switch (tag) { | ||
921 | case 0: { | ||
922 | if (unknownFields != null) { | ||
923 | this.UnknownFields = unknownFields.Build(); | ||
924 | } | ||
925 | return this; | ||
926 | } | ||
927 | default: { | ||
928 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
929 | if (unknownFields != null) { | ||
930 | this.UnknownFields = unknownFields.Build(); | ||
931 | } | ||
932 | return this; | ||
933 | } | ||
934 | if (unknownFields == null) { | ||
935 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
936 | } | ||
937 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
938 | break; | ||
939 | } | ||
940 | case 74: { | ||
941 | ObjectUuid = input.ReadBytes(); | ||
942 | break; | ||
943 | } | ||
944 | case 80: { | ||
945 | FieldId = input.ReadUInt64(); | ||
946 | break; | ||
947 | } | ||
948 | case 90: { | ||
949 | FieldName = input.ReadString(); | ||
950 | break; | ||
951 | } | ||
952 | case 98: { | ||
953 | Data = input.ReadBytes(); | ||
954 | break; | ||
955 | } | ||
956 | case 104: { | ||
957 | Index = input.ReadInt32(); | ||
958 | break; | ||
959 | } | ||
960 | case 120: { | ||
961 | int rawValue = input.ReadEnum(); | ||
962 | if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus), rawValue)) { | ||
963 | if (unknownFields == null) { | ||
964 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
965 | } | ||
966 | unknownFields.MergeVarintField(15, (ulong) rawValue); | ||
967 | } else { | ||
968 | ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus) rawValue; | ||
969 | } | ||
970 | break; | ||
971 | } | ||
972 | } | ||
973 | } | ||
974 | } | ||
975 | |||
976 | |||
977 | public bool HasObjectUuid { | ||
978 | get { return result.HasObjectUuid; } | ||
979 | } | ||
980 | public pb::ByteString ObjectUuid { | ||
981 | get { return result.ObjectUuid; } | ||
982 | set { SetObjectUuid(value); } | ||
983 | } | ||
984 | public Builder SetObjectUuid(pb::ByteString value) { | ||
985 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
986 | result.hasObjectUuid = true; | ||
987 | result.objectUuid_ = value; | ||
988 | return this; | ||
989 | } | ||
990 | public Builder ClearObjectUuid() { | ||
991 | result.hasObjectUuid = false; | ||
992 | result.objectUuid_ = pb::ByteString.Empty; | ||
993 | return this; | ||
994 | } | ||
995 | |||
996 | public bool HasFieldId { | ||
997 | get { return result.HasFieldId; } | ||
998 | } | ||
999 | [global::System.CLSCompliant(false)] | ||
1000 | public ulong FieldId { | ||
1001 | get { return result.FieldId; } | ||
1002 | set { SetFieldId(value); } | ||
1003 | } | ||
1004 | [global::System.CLSCompliant(false)] | ||
1005 | public Builder SetFieldId(ulong value) { | ||
1006 | result.hasFieldId = true; | ||
1007 | result.fieldId_ = value; | ||
1008 | return this; | ||
1009 | } | ||
1010 | public Builder ClearFieldId() { | ||
1011 | result.hasFieldId = false; | ||
1012 | result.fieldId_ = 0UL; | ||
1013 | return this; | ||
1014 | } | ||
1015 | |||
1016 | public bool HasFieldName { | ||
1017 | get { return result.HasFieldName; } | ||
1018 | } | ||
1019 | public string FieldName { | ||
1020 | get { return result.FieldName; } | ||
1021 | set { SetFieldName(value); } | ||
1022 | } | ||
1023 | public Builder SetFieldName(string value) { | ||
1024 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1025 | result.hasFieldName = true; | ||
1026 | result.fieldName_ = value; | ||
1027 | return this; | ||
1028 | } | ||
1029 | public Builder ClearFieldName() { | ||
1030 | result.hasFieldName = false; | ||
1031 | result.fieldName_ = ""; | ||
1032 | return this; | ||
1033 | } | ||
1034 | |||
1035 | public bool HasData { | ||
1036 | get { return result.HasData; } | ||
1037 | } | ||
1038 | public pb::ByteString Data { | ||
1039 | get { return result.Data; } | ||
1040 | set { SetData(value); } | ||
1041 | } | ||
1042 | public Builder SetData(pb::ByteString value) { | ||
1043 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1044 | result.hasData = true; | ||
1045 | result.data_ = value; | ||
1046 | return this; | ||
1047 | } | ||
1048 | public Builder ClearData() { | ||
1049 | result.hasData = false; | ||
1050 | result.data_ = pb::ByteString.Empty; | ||
1051 | return this; | ||
1052 | } | ||
1053 | |||
1054 | public bool HasIndex { | ||
1055 | get { return result.HasIndex; } | ||
1056 | } | ||
1057 | public int Index { | ||
1058 | get { return result.Index; } | ||
1059 | set { SetIndex(value); } | ||
1060 | } | ||
1061 | public Builder SetIndex(int value) { | ||
1062 | result.hasIndex = true; | ||
1063 | result.index_ = value; | ||
1064 | return this; | ||
1065 | } | ||
1066 | public Builder ClearIndex() { | ||
1067 | result.hasIndex = false; | ||
1068 | result.index_ = 0; | ||
1069 | return this; | ||
1070 | } | ||
1071 | |||
1072 | public bool HasReturnStatus { | ||
1073 | get { return result.HasReturnStatus; } | ||
1074 | } | ||
1075 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus ReturnStatus { | ||
1076 | get { return result.ReturnStatus; } | ||
1077 | set { SetReturnStatus(value); } | ||
1078 | } | ||
1079 | public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus value) { | ||
1080 | result.hasReturnStatus = true; | ||
1081 | result.returnStatus_ = value; | ||
1082 | return this; | ||
1083 | } | ||
1084 | public Builder ClearReturnStatus() { | ||
1085 | result.hasReturnStatus = false; | ||
1086 | result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Types.ReturnStatus.KEY_MISSING; | ||
1087 | return this; | ||
1088 | } | ||
1089 | } | ||
1090 | static StorageElement() { | ||
1091 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
1092 | } | ||
1093 | } | ||
1094 | |||
1095 | public sealed partial class CompareElement : pb::GeneratedMessage<CompareElement, CompareElement.Builder> { | ||
1096 | private static readonly CompareElement defaultInstance = new Builder().BuildPartial(); | ||
1097 | public static CompareElement DefaultInstance { | ||
1098 | get { return defaultInstance; } | ||
1099 | } | ||
1100 | |||
1101 | public override CompareElement DefaultInstanceForType { | ||
1102 | get { return defaultInstance; } | ||
1103 | } | ||
1104 | |||
1105 | protected override CompareElement ThisMessage { | ||
1106 | get { return this; } | ||
1107 | } | ||
1108 | |||
1109 | public static pbd::MessageDescriptor Descriptor { | ||
1110 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__Descriptor; } | ||
1111 | } | ||
1112 | |||
1113 | protected override pb::FieldAccess.FieldAccessorTable<CompareElement, CompareElement.Builder> InternalFieldAccessors { | ||
1114 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_CompareElement__FieldAccessorTable; } | ||
1115 | } | ||
1116 | |||
1117 | #region Nested types | ||
1118 | public static class Types { | ||
1119 | public enum COMPARATOR { | ||
1120 | EQUAL = 0, | ||
1121 | NEQUAL = 1, | ||
1122 | } | ||
1123 | |||
1124 | } | ||
1125 | #endregion | ||
1126 | |||
1127 | public const int ObjectUuidFieldNumber = 9; | ||
1128 | private bool hasObjectUuid; | ||
1129 | private pb::ByteString objectUuid_ = pb::ByteString.Empty; | ||
1130 | public bool HasObjectUuid { | ||
1131 | get { return hasObjectUuid; } | ||
1132 | } | ||
1133 | public pb::ByteString ObjectUuid { | ||
1134 | get { return objectUuid_; } | ||
1135 | } | ||
1136 | |||
1137 | public const int FieldIdFieldNumber = 10; | ||
1138 | private bool hasFieldId; | ||
1139 | private ulong fieldId_ = 0UL; | ||
1140 | public bool HasFieldId { | ||
1141 | get { return hasFieldId; } | ||
1142 | } | ||
1143 | [global::System.CLSCompliant(false)] | ||
1144 | public ulong FieldId { | ||
1145 | get { return fieldId_; } | ||
1146 | } | ||
1147 | |||
1148 | public const int FieldNameFieldNumber = 11; | ||
1149 | private bool hasFieldName; | ||
1150 | private string fieldName_ = ""; | ||
1151 | public bool HasFieldName { | ||
1152 | get { return hasFieldName; } | ||
1153 | } | ||
1154 | public string FieldName { | ||
1155 | get { return fieldName_; } | ||
1156 | } | ||
1157 | |||
1158 | public const int DataFieldNumber = 12; | ||
1159 | private bool hasData; | ||
1160 | private pb::ByteString data_ = pb::ByteString.Empty; | ||
1161 | public bool HasData { | ||
1162 | get { return hasData; } | ||
1163 | } | ||
1164 | public pb::ByteString Data { | ||
1165 | get { return data_; } | ||
1166 | } | ||
1167 | |||
1168 | public const int ComparatorFieldNumber = 14; | ||
1169 | private bool hasComparator; | ||
1170 | private global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL; | ||
1171 | public bool HasComparator { | ||
1172 | get { return hasComparator; } | ||
1173 | } | ||
1174 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator { | ||
1175 | get { return comparator_; } | ||
1176 | } | ||
1177 | |||
1178 | public override bool IsInitialized { | ||
1179 | get { | ||
1180 | return true; | ||
1181 | } | ||
1182 | } | ||
1183 | |||
1184 | public override void WriteTo(pb::CodedOutputStream output) { | ||
1185 | if (HasObjectUuid) { | ||
1186 | output.WriteBytes(9, ObjectUuid); | ||
1187 | } | ||
1188 | if (HasFieldId) { | ||
1189 | output.WriteUInt64(10, FieldId); | ||
1190 | } | ||
1191 | if (HasFieldName) { | ||
1192 | output.WriteString(11, FieldName); | ||
1193 | } | ||
1194 | if (HasData) { | ||
1195 | output.WriteBytes(12, Data); | ||
1196 | } | ||
1197 | if (HasComparator) { | ||
1198 | output.WriteEnum(14, (int) Comparator); | ||
1199 | } | ||
1200 | UnknownFields.WriteTo(output); | ||
1201 | } | ||
1202 | |||
1203 | private int memoizedSerializedSize = -1; | ||
1204 | public override int SerializedSize { | ||
1205 | get { | ||
1206 | int size = memoizedSerializedSize; | ||
1207 | if (size != -1) return size; | ||
1208 | |||
1209 | size = 0; | ||
1210 | if (HasObjectUuid) { | ||
1211 | size += pb::CodedOutputStream.ComputeBytesSize(9, ObjectUuid); | ||
1212 | } | ||
1213 | if (HasFieldId) { | ||
1214 | size += pb::CodedOutputStream.ComputeUInt64Size(10, FieldId); | ||
1215 | } | ||
1216 | if (HasFieldName) { | ||
1217 | size += pb::CodedOutputStream.ComputeStringSize(11, FieldName); | ||
1218 | } | ||
1219 | if (HasData) { | ||
1220 | size += pb::CodedOutputStream.ComputeBytesSize(12, Data); | ||
1221 | } | ||
1222 | if (HasComparator) { | ||
1223 | size += pb::CodedOutputStream.ComputeEnumSize(14, (int) Comparator); | ||
1224 | } | ||
1225 | size += UnknownFields.SerializedSize; | ||
1226 | memoizedSerializedSize = size; | ||
1227 | return size; | ||
1228 | } | ||
1229 | } | ||
1230 | |||
1231 | public static CompareElement ParseFrom(pb::ByteString data) { | ||
1232 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1233 | } | ||
1234 | public static CompareElement ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
1235 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1236 | } | ||
1237 | public static CompareElement ParseFrom(byte[] data) { | ||
1238 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1239 | } | ||
1240 | public static CompareElement ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
1241 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1242 | } | ||
1243 | public static CompareElement ParseFrom(global::System.IO.Stream input) { | ||
1244 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1245 | } | ||
1246 | public static CompareElement ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1247 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1248 | } | ||
1249 | public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input) { | ||
1250 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
1251 | } | ||
1252 | public static CompareElement ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1253 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
1254 | } | ||
1255 | public static CompareElement ParseFrom(pb::CodedInputStream input) { | ||
1256 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1257 | } | ||
1258 | public static CompareElement ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1259 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1260 | } | ||
1261 | public static Builder CreateBuilder() { return new Builder(); } | ||
1262 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
1263 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
1264 | public static Builder CreateBuilder(CompareElement prototype) { | ||
1265 | return (Builder) new Builder().MergeFrom(prototype); | ||
1266 | } | ||
1267 | |||
1268 | public sealed partial class Builder : pb::GeneratedBuilder<CompareElement, Builder> { | ||
1269 | protected override Builder ThisBuilder { | ||
1270 | get { return this; } | ||
1271 | } | ||
1272 | public Builder() {} | ||
1273 | |||
1274 | CompareElement result = new CompareElement(); | ||
1275 | |||
1276 | protected override CompareElement MessageBeingBuilt { | ||
1277 | get { return result; } | ||
1278 | } | ||
1279 | |||
1280 | public override Builder Clear() { | ||
1281 | result = new CompareElement(); | ||
1282 | return this; | ||
1283 | } | ||
1284 | |||
1285 | public override Builder Clone() { | ||
1286 | return new Builder().MergeFrom(result); | ||
1287 | } | ||
1288 | |||
1289 | public override pbd::MessageDescriptor DescriptorForType { | ||
1290 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Descriptor; } | ||
1291 | } | ||
1292 | |||
1293 | public override CompareElement DefaultInstanceForType { | ||
1294 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance; } | ||
1295 | } | ||
1296 | |||
1297 | public override CompareElement BuildPartial() { | ||
1298 | if (result == null) { | ||
1299 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
1300 | } | ||
1301 | CompareElement returnMe = result; | ||
1302 | result = null; | ||
1303 | return returnMe; | ||
1304 | } | ||
1305 | |||
1306 | public override Builder MergeFrom(pb::IMessage other) { | ||
1307 | if (other is CompareElement) { | ||
1308 | return MergeFrom((CompareElement) other); | ||
1309 | } else { | ||
1310 | base.MergeFrom(other); | ||
1311 | return this; | ||
1312 | } | ||
1313 | } | ||
1314 | |||
1315 | public override Builder MergeFrom(CompareElement other) { | ||
1316 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.DefaultInstance) return this; | ||
1317 | if (other.HasObjectUuid) { | ||
1318 | ObjectUuid = other.ObjectUuid; | ||
1319 | } | ||
1320 | if (other.HasFieldId) { | ||
1321 | FieldId = other.FieldId; | ||
1322 | } | ||
1323 | if (other.HasFieldName) { | ||
1324 | FieldName = other.FieldName; | ||
1325 | } | ||
1326 | if (other.HasData) { | ||
1327 | Data = other.Data; | ||
1328 | } | ||
1329 | if (other.HasComparator) { | ||
1330 | Comparator = other.Comparator; | ||
1331 | } | ||
1332 | this.MergeUnknownFields(other.UnknownFields); | ||
1333 | return this; | ||
1334 | } | ||
1335 | |||
1336 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
1337 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
1338 | } | ||
1339 | |||
1340 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1341 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
1342 | while (true) { | ||
1343 | uint tag = input.ReadTag(); | ||
1344 | switch (tag) { | ||
1345 | case 0: { | ||
1346 | if (unknownFields != null) { | ||
1347 | this.UnknownFields = unknownFields.Build(); | ||
1348 | } | ||
1349 | return this; | ||
1350 | } | ||
1351 | default: { | ||
1352 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
1353 | if (unknownFields != null) { | ||
1354 | this.UnknownFields = unknownFields.Build(); | ||
1355 | } | ||
1356 | return this; | ||
1357 | } | ||
1358 | if (unknownFields == null) { | ||
1359 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
1360 | } | ||
1361 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
1362 | break; | ||
1363 | } | ||
1364 | case 74: { | ||
1365 | ObjectUuid = input.ReadBytes(); | ||
1366 | break; | ||
1367 | } | ||
1368 | case 80: { | ||
1369 | FieldId = input.ReadUInt64(); | ||
1370 | break; | ||
1371 | } | ||
1372 | case 90: { | ||
1373 | FieldName = input.ReadString(); | ||
1374 | break; | ||
1375 | } | ||
1376 | case 98: { | ||
1377 | Data = input.ReadBytes(); | ||
1378 | break; | ||
1379 | } | ||
1380 | case 112: { | ||
1381 | int rawValue = input.ReadEnum(); | ||
1382 | if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR), rawValue)) { | ||
1383 | if (unknownFields == null) { | ||
1384 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
1385 | } | ||
1386 | unknownFields.MergeVarintField(14, (ulong) rawValue); | ||
1387 | } else { | ||
1388 | Comparator = (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR) rawValue; | ||
1389 | } | ||
1390 | break; | ||
1391 | } | ||
1392 | } | ||
1393 | } | ||
1394 | } | ||
1395 | |||
1396 | |||
1397 | public bool HasObjectUuid { | ||
1398 | get { return result.HasObjectUuid; } | ||
1399 | } | ||
1400 | public pb::ByteString ObjectUuid { | ||
1401 | get { return result.ObjectUuid; } | ||
1402 | set { SetObjectUuid(value); } | ||
1403 | } | ||
1404 | public Builder SetObjectUuid(pb::ByteString value) { | ||
1405 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1406 | result.hasObjectUuid = true; | ||
1407 | result.objectUuid_ = value; | ||
1408 | return this; | ||
1409 | } | ||
1410 | public Builder ClearObjectUuid() { | ||
1411 | result.hasObjectUuid = false; | ||
1412 | result.objectUuid_ = pb::ByteString.Empty; | ||
1413 | return this; | ||
1414 | } | ||
1415 | |||
1416 | public bool HasFieldId { | ||
1417 | get { return result.HasFieldId; } | ||
1418 | } | ||
1419 | [global::System.CLSCompliant(false)] | ||
1420 | public ulong FieldId { | ||
1421 | get { return result.FieldId; } | ||
1422 | set { SetFieldId(value); } | ||
1423 | } | ||
1424 | [global::System.CLSCompliant(false)] | ||
1425 | public Builder SetFieldId(ulong value) { | ||
1426 | result.hasFieldId = true; | ||
1427 | result.fieldId_ = value; | ||
1428 | return this; | ||
1429 | } | ||
1430 | public Builder ClearFieldId() { | ||
1431 | result.hasFieldId = false; | ||
1432 | result.fieldId_ = 0UL; | ||
1433 | return this; | ||
1434 | } | ||
1435 | |||
1436 | public bool HasFieldName { | ||
1437 | get { return result.HasFieldName; } | ||
1438 | } | ||
1439 | public string FieldName { | ||
1440 | get { return result.FieldName; } | ||
1441 | set { SetFieldName(value); } | ||
1442 | } | ||
1443 | public Builder SetFieldName(string value) { | ||
1444 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1445 | result.hasFieldName = true; | ||
1446 | result.fieldName_ = value; | ||
1447 | return this; | ||
1448 | } | ||
1449 | public Builder ClearFieldName() { | ||
1450 | result.hasFieldName = false; | ||
1451 | result.fieldName_ = ""; | ||
1452 | return this; | ||
1453 | } | ||
1454 | |||
1455 | public bool HasData { | ||
1456 | get { return result.HasData; } | ||
1457 | } | ||
1458 | public pb::ByteString Data { | ||
1459 | get { return result.Data; } | ||
1460 | set { SetData(value); } | ||
1461 | } | ||
1462 | public Builder SetData(pb::ByteString value) { | ||
1463 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1464 | result.hasData = true; | ||
1465 | result.data_ = value; | ||
1466 | return this; | ||
1467 | } | ||
1468 | public Builder ClearData() { | ||
1469 | result.hasData = false; | ||
1470 | result.data_ = pb::ByteString.Empty; | ||
1471 | return this; | ||
1472 | } | ||
1473 | |||
1474 | public bool HasComparator { | ||
1475 | get { return result.HasComparator; } | ||
1476 | } | ||
1477 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR Comparator { | ||
1478 | get { return result.Comparator; } | ||
1479 | set { SetComparator(value); } | ||
1480 | } | ||
1481 | public Builder SetComparator(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR value) { | ||
1482 | result.hasComparator = true; | ||
1483 | result.comparator_ = value; | ||
1484 | return this; | ||
1485 | } | ||
1486 | public Builder ClearComparator() { | ||
1487 | result.hasComparator = false; | ||
1488 | result.comparator_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Types.COMPARATOR.EQUAL; | ||
1489 | return this; | ||
1490 | } | ||
1491 | } | ||
1492 | static CompareElement() { | ||
1493 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
1494 | } | ||
1495 | } | ||
1496 | |||
1497 | public sealed partial class StorageSet : pb::GeneratedMessage<StorageSet, StorageSet.Builder> { | ||
1498 | private static readonly StorageSet defaultInstance = new Builder().BuildPartial(); | ||
1499 | public static StorageSet DefaultInstance { | ||
1500 | get { return defaultInstance; } | ||
1501 | } | ||
1502 | |||
1503 | public override StorageSet DefaultInstanceForType { | ||
1504 | get { return defaultInstance; } | ||
1505 | } | ||
1506 | |||
1507 | protected override StorageSet ThisMessage { | ||
1508 | get { return this; } | ||
1509 | } | ||
1510 | |||
1511 | public static pbd::MessageDescriptor Descriptor { | ||
1512 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__Descriptor; } | ||
1513 | } | ||
1514 | |||
1515 | protected override pb::FieldAccess.FieldAccessorTable<StorageSet, StorageSet.Builder> InternalFieldAccessors { | ||
1516 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_StorageSet__FieldAccessorTable; } | ||
1517 | } | ||
1518 | |||
1519 | public const int ReadsFieldNumber = 9; | ||
1520 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
1521 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
1522 | get { return reads_; } | ||
1523 | } | ||
1524 | public int ReadsCount { | ||
1525 | get { return reads_.Count; } | ||
1526 | } | ||
1527 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
1528 | return reads_[index]; | ||
1529 | } | ||
1530 | |||
1531 | public override bool IsInitialized { | ||
1532 | get { | ||
1533 | return true; | ||
1534 | } | ||
1535 | } | ||
1536 | |||
1537 | public override void WriteTo(pb::CodedOutputStream output) { | ||
1538 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
1539 | output.WriteMessage(9, element); | ||
1540 | } | ||
1541 | UnknownFields.WriteTo(output); | ||
1542 | } | ||
1543 | |||
1544 | private int memoizedSerializedSize = -1; | ||
1545 | public override int SerializedSize { | ||
1546 | get { | ||
1547 | int size = memoizedSerializedSize; | ||
1548 | if (size != -1) return size; | ||
1549 | |||
1550 | size = 0; | ||
1551 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
1552 | size += pb::CodedOutputStream.ComputeMessageSize(9, element); | ||
1553 | } | ||
1554 | size += UnknownFields.SerializedSize; | ||
1555 | memoizedSerializedSize = size; | ||
1556 | return size; | ||
1557 | } | ||
1558 | } | ||
1559 | |||
1560 | public static StorageSet ParseFrom(pb::ByteString data) { | ||
1561 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1562 | } | ||
1563 | public static StorageSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
1564 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1565 | } | ||
1566 | public static StorageSet ParseFrom(byte[] data) { | ||
1567 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1568 | } | ||
1569 | public static StorageSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
1570 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1571 | } | ||
1572 | public static StorageSet ParseFrom(global::System.IO.Stream input) { | ||
1573 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1574 | } | ||
1575 | public static StorageSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1576 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1577 | } | ||
1578 | public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input) { | ||
1579 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
1580 | } | ||
1581 | public static StorageSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1582 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
1583 | } | ||
1584 | public static StorageSet ParseFrom(pb::CodedInputStream input) { | ||
1585 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1586 | } | ||
1587 | public static StorageSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1588 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1589 | } | ||
1590 | public static Builder CreateBuilder() { return new Builder(); } | ||
1591 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
1592 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
1593 | public static Builder CreateBuilder(StorageSet prototype) { | ||
1594 | return (Builder) new Builder().MergeFrom(prototype); | ||
1595 | } | ||
1596 | |||
1597 | public sealed partial class Builder : pb::GeneratedBuilder<StorageSet, Builder> { | ||
1598 | protected override Builder ThisBuilder { | ||
1599 | get { return this; } | ||
1600 | } | ||
1601 | public Builder() {} | ||
1602 | |||
1603 | StorageSet result = new StorageSet(); | ||
1604 | |||
1605 | protected override StorageSet MessageBeingBuilt { | ||
1606 | get { return result; } | ||
1607 | } | ||
1608 | |||
1609 | public override Builder Clear() { | ||
1610 | result = new StorageSet(); | ||
1611 | return this; | ||
1612 | } | ||
1613 | |||
1614 | public override Builder Clone() { | ||
1615 | return new Builder().MergeFrom(result); | ||
1616 | } | ||
1617 | |||
1618 | public override pbd::MessageDescriptor DescriptorForType { | ||
1619 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.Descriptor; } | ||
1620 | } | ||
1621 | |||
1622 | public override StorageSet DefaultInstanceForType { | ||
1623 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance; } | ||
1624 | } | ||
1625 | |||
1626 | public override StorageSet BuildPartial() { | ||
1627 | if (result == null) { | ||
1628 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
1629 | } | ||
1630 | result.reads_.MakeReadOnly(); | ||
1631 | StorageSet returnMe = result; | ||
1632 | result = null; | ||
1633 | return returnMe; | ||
1634 | } | ||
1635 | |||
1636 | public override Builder MergeFrom(pb::IMessage other) { | ||
1637 | if (other is StorageSet) { | ||
1638 | return MergeFrom((StorageSet) other); | ||
1639 | } else { | ||
1640 | base.MergeFrom(other); | ||
1641 | return this; | ||
1642 | } | ||
1643 | } | ||
1644 | |||
1645 | public override Builder MergeFrom(StorageSet other) { | ||
1646 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageSet.DefaultInstance) return this; | ||
1647 | if (other.reads_.Count != 0) { | ||
1648 | base.AddRange(other.reads_, result.reads_); | ||
1649 | } | ||
1650 | this.MergeUnknownFields(other.UnknownFields); | ||
1651 | return this; | ||
1652 | } | ||
1653 | |||
1654 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
1655 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
1656 | } | ||
1657 | |||
1658 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1659 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
1660 | while (true) { | ||
1661 | uint tag = input.ReadTag(); | ||
1662 | switch (tag) { | ||
1663 | case 0: { | ||
1664 | if (unknownFields != null) { | ||
1665 | this.UnknownFields = unknownFields.Build(); | ||
1666 | } | ||
1667 | return this; | ||
1668 | } | ||
1669 | default: { | ||
1670 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
1671 | if (unknownFields != null) { | ||
1672 | this.UnknownFields = unknownFields.Build(); | ||
1673 | } | ||
1674 | return this; | ||
1675 | } | ||
1676 | if (unknownFields == null) { | ||
1677 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
1678 | } | ||
1679 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
1680 | break; | ||
1681 | } | ||
1682 | case 74: { | ||
1683 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
1684 | input.ReadMessage(subBuilder, extensionRegistry); | ||
1685 | AddReads(subBuilder.BuildPartial()); | ||
1686 | break; | ||
1687 | } | ||
1688 | } | ||
1689 | } | ||
1690 | } | ||
1691 | |||
1692 | |||
1693 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
1694 | get { return result.reads_; } | ||
1695 | } | ||
1696 | public int ReadsCount { | ||
1697 | get { return result.ReadsCount; } | ||
1698 | } | ||
1699 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
1700 | return result.GetReads(index); | ||
1701 | } | ||
1702 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
1703 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1704 | result.reads_[index] = value; | ||
1705 | return this; | ||
1706 | } | ||
1707 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
1708 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1709 | result.reads_[index] = builderForValue.Build(); | ||
1710 | return this; | ||
1711 | } | ||
1712 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
1713 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1714 | result.reads_.Add(value); | ||
1715 | return this; | ||
1716 | } | ||
1717 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
1718 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1719 | result.reads_.Add(builderForValue.Build()); | ||
1720 | return this; | ||
1721 | } | ||
1722 | public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
1723 | base.AddRange(values, result.reads_); | ||
1724 | return this; | ||
1725 | } | ||
1726 | public Builder ClearReads() { | ||
1727 | result.reads_.Clear(); | ||
1728 | return this; | ||
1729 | } | ||
1730 | } | ||
1731 | static StorageSet() { | ||
1732 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
1733 | } | ||
1734 | } | ||
1735 | |||
1736 | public sealed partial class ReadSet : pb::GeneratedMessage<ReadSet, ReadSet.Builder> { | ||
1737 | private static readonly ReadSet defaultInstance = new Builder().BuildPartial(); | ||
1738 | public static ReadSet DefaultInstance { | ||
1739 | get { return defaultInstance; } | ||
1740 | } | ||
1741 | |||
1742 | public override ReadSet DefaultInstanceForType { | ||
1743 | get { return defaultInstance; } | ||
1744 | } | ||
1745 | |||
1746 | protected override ReadSet ThisMessage { | ||
1747 | get { return this; } | ||
1748 | } | ||
1749 | |||
1750 | public static pbd::MessageDescriptor Descriptor { | ||
1751 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__Descriptor; } | ||
1752 | } | ||
1753 | |||
1754 | protected override pb::FieldAccess.FieldAccessorTable<ReadSet, ReadSet.Builder> InternalFieldAccessors { | ||
1755 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadSet__FieldAccessorTable; } | ||
1756 | } | ||
1757 | |||
1758 | public const int ReadsFieldNumber = 9; | ||
1759 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
1760 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
1761 | get { return reads_; } | ||
1762 | } | ||
1763 | public int ReadsCount { | ||
1764 | get { return reads_.Count; } | ||
1765 | } | ||
1766 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
1767 | return reads_[index]; | ||
1768 | } | ||
1769 | |||
1770 | public override bool IsInitialized { | ||
1771 | get { | ||
1772 | return true; | ||
1773 | } | ||
1774 | } | ||
1775 | |||
1776 | public override void WriteTo(pb::CodedOutputStream output) { | ||
1777 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
1778 | output.WriteMessage(9, element); | ||
1779 | } | ||
1780 | UnknownFields.WriteTo(output); | ||
1781 | } | ||
1782 | |||
1783 | private int memoizedSerializedSize = -1; | ||
1784 | public override int SerializedSize { | ||
1785 | get { | ||
1786 | int size = memoizedSerializedSize; | ||
1787 | if (size != -1) return size; | ||
1788 | |||
1789 | size = 0; | ||
1790 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
1791 | size += pb::CodedOutputStream.ComputeMessageSize(9, element); | ||
1792 | } | ||
1793 | size += UnknownFields.SerializedSize; | ||
1794 | memoizedSerializedSize = size; | ||
1795 | return size; | ||
1796 | } | ||
1797 | } | ||
1798 | |||
1799 | public static ReadSet ParseFrom(pb::ByteString data) { | ||
1800 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1801 | } | ||
1802 | public static ReadSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
1803 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1804 | } | ||
1805 | public static ReadSet ParseFrom(byte[] data) { | ||
1806 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
1807 | } | ||
1808 | public static ReadSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
1809 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
1810 | } | ||
1811 | public static ReadSet ParseFrom(global::System.IO.Stream input) { | ||
1812 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1813 | } | ||
1814 | public static ReadSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1815 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1816 | } | ||
1817 | public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input) { | ||
1818 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
1819 | } | ||
1820 | public static ReadSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
1821 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
1822 | } | ||
1823 | public static ReadSet ParseFrom(pb::CodedInputStream input) { | ||
1824 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
1825 | } | ||
1826 | public static ReadSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1827 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
1828 | } | ||
1829 | public static Builder CreateBuilder() { return new Builder(); } | ||
1830 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
1831 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
1832 | public static Builder CreateBuilder(ReadSet prototype) { | ||
1833 | return (Builder) new Builder().MergeFrom(prototype); | ||
1834 | } | ||
1835 | |||
1836 | public sealed partial class Builder : pb::GeneratedBuilder<ReadSet, Builder> { | ||
1837 | protected override Builder ThisBuilder { | ||
1838 | get { return this; } | ||
1839 | } | ||
1840 | public Builder() {} | ||
1841 | |||
1842 | ReadSet result = new ReadSet(); | ||
1843 | |||
1844 | protected override ReadSet MessageBeingBuilt { | ||
1845 | get { return result; } | ||
1846 | } | ||
1847 | |||
1848 | public override Builder Clear() { | ||
1849 | result = new ReadSet(); | ||
1850 | return this; | ||
1851 | } | ||
1852 | |||
1853 | public override Builder Clone() { | ||
1854 | return new Builder().MergeFrom(result); | ||
1855 | } | ||
1856 | |||
1857 | public override pbd::MessageDescriptor DescriptorForType { | ||
1858 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.Descriptor; } | ||
1859 | } | ||
1860 | |||
1861 | public override ReadSet DefaultInstanceForType { | ||
1862 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance; } | ||
1863 | } | ||
1864 | |||
1865 | public override ReadSet BuildPartial() { | ||
1866 | if (result == null) { | ||
1867 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
1868 | } | ||
1869 | result.reads_.MakeReadOnly(); | ||
1870 | ReadSet returnMe = result; | ||
1871 | result = null; | ||
1872 | return returnMe; | ||
1873 | } | ||
1874 | |||
1875 | public override Builder MergeFrom(pb::IMessage other) { | ||
1876 | if (other is ReadSet) { | ||
1877 | return MergeFrom((ReadSet) other); | ||
1878 | } else { | ||
1879 | base.MergeFrom(other); | ||
1880 | return this; | ||
1881 | } | ||
1882 | } | ||
1883 | |||
1884 | public override Builder MergeFrom(ReadSet other) { | ||
1885 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadSet.DefaultInstance) return this; | ||
1886 | if (other.reads_.Count != 0) { | ||
1887 | base.AddRange(other.reads_, result.reads_); | ||
1888 | } | ||
1889 | this.MergeUnknownFields(other.UnknownFields); | ||
1890 | return this; | ||
1891 | } | ||
1892 | |||
1893 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
1894 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
1895 | } | ||
1896 | |||
1897 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
1898 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
1899 | while (true) { | ||
1900 | uint tag = input.ReadTag(); | ||
1901 | switch (tag) { | ||
1902 | case 0: { | ||
1903 | if (unknownFields != null) { | ||
1904 | this.UnknownFields = unknownFields.Build(); | ||
1905 | } | ||
1906 | return this; | ||
1907 | } | ||
1908 | default: { | ||
1909 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
1910 | if (unknownFields != null) { | ||
1911 | this.UnknownFields = unknownFields.Build(); | ||
1912 | } | ||
1913 | return this; | ||
1914 | } | ||
1915 | if (unknownFields == null) { | ||
1916 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
1917 | } | ||
1918 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
1919 | break; | ||
1920 | } | ||
1921 | case 74: { | ||
1922 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
1923 | input.ReadMessage(subBuilder, extensionRegistry); | ||
1924 | AddReads(subBuilder.BuildPartial()); | ||
1925 | break; | ||
1926 | } | ||
1927 | } | ||
1928 | } | ||
1929 | } | ||
1930 | |||
1931 | |||
1932 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
1933 | get { return result.reads_; } | ||
1934 | } | ||
1935 | public int ReadsCount { | ||
1936 | get { return result.ReadsCount; } | ||
1937 | } | ||
1938 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
1939 | return result.GetReads(index); | ||
1940 | } | ||
1941 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
1942 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1943 | result.reads_[index] = value; | ||
1944 | return this; | ||
1945 | } | ||
1946 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
1947 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1948 | result.reads_[index] = builderForValue.Build(); | ||
1949 | return this; | ||
1950 | } | ||
1951 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
1952 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
1953 | result.reads_.Add(value); | ||
1954 | return this; | ||
1955 | } | ||
1956 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
1957 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
1958 | result.reads_.Add(builderForValue.Build()); | ||
1959 | return this; | ||
1960 | } | ||
1961 | public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
1962 | base.AddRange(values, result.reads_); | ||
1963 | return this; | ||
1964 | } | ||
1965 | public Builder ClearReads() { | ||
1966 | result.reads_.Clear(); | ||
1967 | return this; | ||
1968 | } | ||
1969 | } | ||
1970 | static ReadSet() { | ||
1971 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
1972 | } | ||
1973 | } | ||
1974 | |||
1975 | public sealed partial class WriteSet : pb::GeneratedMessage<WriteSet, WriteSet.Builder> { | ||
1976 | private static readonly WriteSet defaultInstance = new Builder().BuildPartial(); | ||
1977 | public static WriteSet DefaultInstance { | ||
1978 | get { return defaultInstance; } | ||
1979 | } | ||
1980 | |||
1981 | public override WriteSet DefaultInstanceForType { | ||
1982 | get { return defaultInstance; } | ||
1983 | } | ||
1984 | |||
1985 | protected override WriteSet ThisMessage { | ||
1986 | get { return this; } | ||
1987 | } | ||
1988 | |||
1989 | public static pbd::MessageDescriptor Descriptor { | ||
1990 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__Descriptor; } | ||
1991 | } | ||
1992 | |||
1993 | protected override pb::FieldAccess.FieldAccessorTable<WriteSet, WriteSet.Builder> InternalFieldAccessors { | ||
1994 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_WriteSet__FieldAccessorTable; } | ||
1995 | } | ||
1996 | |||
1997 | public const int WritesFieldNumber = 10; | ||
1998 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
1999 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2000 | get { return writes_; } | ||
2001 | } | ||
2002 | public int WritesCount { | ||
2003 | get { return writes_.Count; } | ||
2004 | } | ||
2005 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2006 | return writes_[index]; | ||
2007 | } | ||
2008 | |||
2009 | public override bool IsInitialized { | ||
2010 | get { | ||
2011 | return true; | ||
2012 | } | ||
2013 | } | ||
2014 | |||
2015 | public override void WriteTo(pb::CodedOutputStream output) { | ||
2016 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2017 | output.WriteMessage(10, element); | ||
2018 | } | ||
2019 | UnknownFields.WriteTo(output); | ||
2020 | } | ||
2021 | |||
2022 | private int memoizedSerializedSize = -1; | ||
2023 | public override int SerializedSize { | ||
2024 | get { | ||
2025 | int size = memoizedSerializedSize; | ||
2026 | if (size != -1) return size; | ||
2027 | |||
2028 | size = 0; | ||
2029 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2030 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); | ||
2031 | } | ||
2032 | size += UnknownFields.SerializedSize; | ||
2033 | memoizedSerializedSize = size; | ||
2034 | return size; | ||
2035 | } | ||
2036 | } | ||
2037 | |||
2038 | public static WriteSet ParseFrom(pb::ByteString data) { | ||
2039 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2040 | } | ||
2041 | public static WriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
2042 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2043 | } | ||
2044 | public static WriteSet ParseFrom(byte[] data) { | ||
2045 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2046 | } | ||
2047 | public static WriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
2048 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2049 | } | ||
2050 | public static WriteSet ParseFrom(global::System.IO.Stream input) { | ||
2051 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2052 | } | ||
2053 | public static WriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2054 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2055 | } | ||
2056 | public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input) { | ||
2057 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
2058 | } | ||
2059 | public static WriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2060 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
2061 | } | ||
2062 | public static WriteSet ParseFrom(pb::CodedInputStream input) { | ||
2063 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2064 | } | ||
2065 | public static WriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2066 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2067 | } | ||
2068 | public static Builder CreateBuilder() { return new Builder(); } | ||
2069 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
2070 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
2071 | public static Builder CreateBuilder(WriteSet prototype) { | ||
2072 | return (Builder) new Builder().MergeFrom(prototype); | ||
2073 | } | ||
2074 | |||
2075 | public sealed partial class Builder : pb::GeneratedBuilder<WriteSet, Builder> { | ||
2076 | protected override Builder ThisBuilder { | ||
2077 | get { return this; } | ||
2078 | } | ||
2079 | public Builder() {} | ||
2080 | |||
2081 | WriteSet result = new WriteSet(); | ||
2082 | |||
2083 | protected override WriteSet MessageBeingBuilt { | ||
2084 | get { return result; } | ||
2085 | } | ||
2086 | |||
2087 | public override Builder Clear() { | ||
2088 | result = new WriteSet(); | ||
2089 | return this; | ||
2090 | } | ||
2091 | |||
2092 | public override Builder Clone() { | ||
2093 | return new Builder().MergeFrom(result); | ||
2094 | } | ||
2095 | |||
2096 | public override pbd::MessageDescriptor DescriptorForType { | ||
2097 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.Descriptor; } | ||
2098 | } | ||
2099 | |||
2100 | public override WriteSet DefaultInstanceForType { | ||
2101 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance; } | ||
2102 | } | ||
2103 | |||
2104 | public override WriteSet BuildPartial() { | ||
2105 | if (result == null) { | ||
2106 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
2107 | } | ||
2108 | result.writes_.MakeReadOnly(); | ||
2109 | WriteSet returnMe = result; | ||
2110 | result = null; | ||
2111 | return returnMe; | ||
2112 | } | ||
2113 | |||
2114 | public override Builder MergeFrom(pb::IMessage other) { | ||
2115 | if (other is WriteSet) { | ||
2116 | return MergeFrom((WriteSet) other); | ||
2117 | } else { | ||
2118 | base.MergeFrom(other); | ||
2119 | return this; | ||
2120 | } | ||
2121 | } | ||
2122 | |||
2123 | public override Builder MergeFrom(WriteSet other) { | ||
2124 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.WriteSet.DefaultInstance) return this; | ||
2125 | if (other.writes_.Count != 0) { | ||
2126 | base.AddRange(other.writes_, result.writes_); | ||
2127 | } | ||
2128 | this.MergeUnknownFields(other.UnknownFields); | ||
2129 | return this; | ||
2130 | } | ||
2131 | |||
2132 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
2133 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
2134 | } | ||
2135 | |||
2136 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2137 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
2138 | while (true) { | ||
2139 | uint tag = input.ReadTag(); | ||
2140 | switch (tag) { | ||
2141 | case 0: { | ||
2142 | if (unknownFields != null) { | ||
2143 | this.UnknownFields = unknownFields.Build(); | ||
2144 | } | ||
2145 | return this; | ||
2146 | } | ||
2147 | default: { | ||
2148 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
2149 | if (unknownFields != null) { | ||
2150 | this.UnknownFields = unknownFields.Build(); | ||
2151 | } | ||
2152 | return this; | ||
2153 | } | ||
2154 | if (unknownFields == null) { | ||
2155 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
2156 | } | ||
2157 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
2158 | break; | ||
2159 | } | ||
2160 | case 82: { | ||
2161 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
2162 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2163 | AddWrites(subBuilder.BuildPartial()); | ||
2164 | break; | ||
2165 | } | ||
2166 | } | ||
2167 | } | ||
2168 | } | ||
2169 | |||
2170 | |||
2171 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2172 | get { return result.writes_; } | ||
2173 | } | ||
2174 | public int WritesCount { | ||
2175 | get { return result.WritesCount; } | ||
2176 | } | ||
2177 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2178 | return result.GetWrites(index); | ||
2179 | } | ||
2180 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2181 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2182 | result.writes_[index] = value; | ||
2183 | return this; | ||
2184 | } | ||
2185 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2186 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2187 | result.writes_[index] = builderForValue.Build(); | ||
2188 | return this; | ||
2189 | } | ||
2190 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2191 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2192 | result.writes_.Add(value); | ||
2193 | return this; | ||
2194 | } | ||
2195 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2196 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2197 | result.writes_.Add(builderForValue.Build()); | ||
2198 | return this; | ||
2199 | } | ||
2200 | public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
2201 | base.AddRange(values, result.writes_); | ||
2202 | return this; | ||
2203 | } | ||
2204 | public Builder ClearWrites() { | ||
2205 | result.writes_.Clear(); | ||
2206 | return this; | ||
2207 | } | ||
2208 | } | ||
2209 | static WriteSet() { | ||
2210 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
2211 | } | ||
2212 | } | ||
2213 | |||
2214 | public sealed partial class ReadWriteSet : pb::GeneratedMessage<ReadWriteSet, ReadWriteSet.Builder> { | ||
2215 | private static readonly ReadWriteSet defaultInstance = new Builder().BuildPartial(); | ||
2216 | public static ReadWriteSet DefaultInstance { | ||
2217 | get { return defaultInstance; } | ||
2218 | } | ||
2219 | |||
2220 | public override ReadWriteSet DefaultInstanceForType { | ||
2221 | get { return defaultInstance; } | ||
2222 | } | ||
2223 | |||
2224 | protected override ReadWriteSet ThisMessage { | ||
2225 | get { return this; } | ||
2226 | } | ||
2227 | |||
2228 | public static pbd::MessageDescriptor Descriptor { | ||
2229 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__Descriptor; } | ||
2230 | } | ||
2231 | |||
2232 | protected override pb::FieldAccess.FieldAccessorTable<ReadWriteSet, ReadWriteSet.Builder> InternalFieldAccessors { | ||
2233 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_ReadWriteSet__FieldAccessorTable; } | ||
2234 | } | ||
2235 | |||
2236 | #region Nested types | ||
2237 | public static class Types { | ||
2238 | public enum ReadWriteSetOptions { | ||
2239 | RETURN_READ_NAMES = 1, | ||
2240 | } | ||
2241 | |||
2242 | } | ||
2243 | #endregion | ||
2244 | |||
2245 | public const int ReadsFieldNumber = 9; | ||
2246 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
2247 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
2248 | get { return reads_; } | ||
2249 | } | ||
2250 | public int ReadsCount { | ||
2251 | get { return reads_.Count; } | ||
2252 | } | ||
2253 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
2254 | return reads_[index]; | ||
2255 | } | ||
2256 | |||
2257 | public const int WritesFieldNumber = 10; | ||
2258 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
2259 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2260 | get { return writes_; } | ||
2261 | } | ||
2262 | public int WritesCount { | ||
2263 | get { return writes_.Count; } | ||
2264 | } | ||
2265 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2266 | return writes_[index]; | ||
2267 | } | ||
2268 | |||
2269 | public const int OptionsFieldNumber = 14; | ||
2270 | private bool hasOptions; | ||
2271 | private ulong options_ = 0UL; | ||
2272 | public bool HasOptions { | ||
2273 | get { return hasOptions; } | ||
2274 | } | ||
2275 | [global::System.CLSCompliant(false)] | ||
2276 | public ulong Options { | ||
2277 | get { return options_; } | ||
2278 | } | ||
2279 | |||
2280 | public override bool IsInitialized { | ||
2281 | get { | ||
2282 | return true; | ||
2283 | } | ||
2284 | } | ||
2285 | |||
2286 | public override void WriteTo(pb::CodedOutputStream output) { | ||
2287 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
2288 | output.WriteMessage(9, element); | ||
2289 | } | ||
2290 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2291 | output.WriteMessage(10, element); | ||
2292 | } | ||
2293 | if (HasOptions) { | ||
2294 | output.WriteUInt64(14, Options); | ||
2295 | } | ||
2296 | UnknownFields.WriteTo(output); | ||
2297 | } | ||
2298 | |||
2299 | private int memoizedSerializedSize = -1; | ||
2300 | public override int SerializedSize { | ||
2301 | get { | ||
2302 | int size = memoizedSerializedSize; | ||
2303 | if (size != -1) return size; | ||
2304 | |||
2305 | size = 0; | ||
2306 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
2307 | size += pb::CodedOutputStream.ComputeMessageSize(9, element); | ||
2308 | } | ||
2309 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2310 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); | ||
2311 | } | ||
2312 | if (HasOptions) { | ||
2313 | size += pb::CodedOutputStream.ComputeUInt64Size(14, Options); | ||
2314 | } | ||
2315 | size += UnknownFields.SerializedSize; | ||
2316 | memoizedSerializedSize = size; | ||
2317 | return size; | ||
2318 | } | ||
2319 | } | ||
2320 | |||
2321 | public static ReadWriteSet ParseFrom(pb::ByteString data) { | ||
2322 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2323 | } | ||
2324 | public static ReadWriteSet ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
2325 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2326 | } | ||
2327 | public static ReadWriteSet ParseFrom(byte[] data) { | ||
2328 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2329 | } | ||
2330 | public static ReadWriteSet ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
2331 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2332 | } | ||
2333 | public static ReadWriteSet ParseFrom(global::System.IO.Stream input) { | ||
2334 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2335 | } | ||
2336 | public static ReadWriteSet ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2337 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2338 | } | ||
2339 | public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input) { | ||
2340 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
2341 | } | ||
2342 | public static ReadWriteSet ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2343 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
2344 | } | ||
2345 | public static ReadWriteSet ParseFrom(pb::CodedInputStream input) { | ||
2346 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2347 | } | ||
2348 | public static ReadWriteSet ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2349 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2350 | } | ||
2351 | public static Builder CreateBuilder() { return new Builder(); } | ||
2352 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
2353 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
2354 | public static Builder CreateBuilder(ReadWriteSet prototype) { | ||
2355 | return (Builder) new Builder().MergeFrom(prototype); | ||
2356 | } | ||
2357 | |||
2358 | public sealed partial class Builder : pb::GeneratedBuilder<ReadWriteSet, Builder> { | ||
2359 | protected override Builder ThisBuilder { | ||
2360 | get { return this; } | ||
2361 | } | ||
2362 | public Builder() {} | ||
2363 | |||
2364 | ReadWriteSet result = new ReadWriteSet(); | ||
2365 | |||
2366 | protected override ReadWriteSet MessageBeingBuilt { | ||
2367 | get { return result; } | ||
2368 | } | ||
2369 | |||
2370 | public override Builder Clear() { | ||
2371 | result = new ReadWriteSet(); | ||
2372 | return this; | ||
2373 | } | ||
2374 | |||
2375 | public override Builder Clone() { | ||
2376 | return new Builder().MergeFrom(result); | ||
2377 | } | ||
2378 | |||
2379 | public override pbd::MessageDescriptor DescriptorForType { | ||
2380 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.Descriptor; } | ||
2381 | } | ||
2382 | |||
2383 | public override ReadWriteSet DefaultInstanceForType { | ||
2384 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance; } | ||
2385 | } | ||
2386 | |||
2387 | public override ReadWriteSet BuildPartial() { | ||
2388 | if (result == null) { | ||
2389 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
2390 | } | ||
2391 | result.reads_.MakeReadOnly(); | ||
2392 | result.writes_.MakeReadOnly(); | ||
2393 | ReadWriteSet returnMe = result; | ||
2394 | result = null; | ||
2395 | return returnMe; | ||
2396 | } | ||
2397 | |||
2398 | public override Builder MergeFrom(pb::IMessage other) { | ||
2399 | if (other is ReadWriteSet) { | ||
2400 | return MergeFrom((ReadWriteSet) other); | ||
2401 | } else { | ||
2402 | base.MergeFrom(other); | ||
2403 | return this; | ||
2404 | } | ||
2405 | } | ||
2406 | |||
2407 | public override Builder MergeFrom(ReadWriteSet other) { | ||
2408 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.ReadWriteSet.DefaultInstance) return this; | ||
2409 | if (other.reads_.Count != 0) { | ||
2410 | base.AddRange(other.reads_, result.reads_); | ||
2411 | } | ||
2412 | if (other.writes_.Count != 0) { | ||
2413 | base.AddRange(other.writes_, result.writes_); | ||
2414 | } | ||
2415 | if (other.HasOptions) { | ||
2416 | Options = other.Options; | ||
2417 | } | ||
2418 | this.MergeUnknownFields(other.UnknownFields); | ||
2419 | return this; | ||
2420 | } | ||
2421 | |||
2422 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
2423 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
2424 | } | ||
2425 | |||
2426 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2427 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
2428 | while (true) { | ||
2429 | uint tag = input.ReadTag(); | ||
2430 | switch (tag) { | ||
2431 | case 0: { | ||
2432 | if (unknownFields != null) { | ||
2433 | this.UnknownFields = unknownFields.Build(); | ||
2434 | } | ||
2435 | return this; | ||
2436 | } | ||
2437 | default: { | ||
2438 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
2439 | if (unknownFields != null) { | ||
2440 | this.UnknownFields = unknownFields.Build(); | ||
2441 | } | ||
2442 | return this; | ||
2443 | } | ||
2444 | if (unknownFields == null) { | ||
2445 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
2446 | } | ||
2447 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
2448 | break; | ||
2449 | } | ||
2450 | case 74: { | ||
2451 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
2452 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2453 | AddReads(subBuilder.BuildPartial()); | ||
2454 | break; | ||
2455 | } | ||
2456 | case 82: { | ||
2457 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
2458 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2459 | AddWrites(subBuilder.BuildPartial()); | ||
2460 | break; | ||
2461 | } | ||
2462 | case 112: { | ||
2463 | Options = input.ReadUInt64(); | ||
2464 | break; | ||
2465 | } | ||
2466 | } | ||
2467 | } | ||
2468 | } | ||
2469 | |||
2470 | |||
2471 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
2472 | get { return result.reads_; } | ||
2473 | } | ||
2474 | public int ReadsCount { | ||
2475 | get { return result.ReadsCount; } | ||
2476 | } | ||
2477 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
2478 | return result.GetReads(index); | ||
2479 | } | ||
2480 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2481 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2482 | result.reads_[index] = value; | ||
2483 | return this; | ||
2484 | } | ||
2485 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2486 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2487 | result.reads_[index] = builderForValue.Build(); | ||
2488 | return this; | ||
2489 | } | ||
2490 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2491 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2492 | result.reads_.Add(value); | ||
2493 | return this; | ||
2494 | } | ||
2495 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2496 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2497 | result.reads_.Add(builderForValue.Build()); | ||
2498 | return this; | ||
2499 | } | ||
2500 | public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
2501 | base.AddRange(values, result.reads_); | ||
2502 | return this; | ||
2503 | } | ||
2504 | public Builder ClearReads() { | ||
2505 | result.reads_.Clear(); | ||
2506 | return this; | ||
2507 | } | ||
2508 | |||
2509 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2510 | get { return result.writes_; } | ||
2511 | } | ||
2512 | public int WritesCount { | ||
2513 | get { return result.WritesCount; } | ||
2514 | } | ||
2515 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2516 | return result.GetWrites(index); | ||
2517 | } | ||
2518 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2519 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2520 | result.writes_[index] = value; | ||
2521 | return this; | ||
2522 | } | ||
2523 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2524 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2525 | result.writes_[index] = builderForValue.Build(); | ||
2526 | return this; | ||
2527 | } | ||
2528 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2529 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2530 | result.writes_.Add(value); | ||
2531 | return this; | ||
2532 | } | ||
2533 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2534 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2535 | result.writes_.Add(builderForValue.Build()); | ||
2536 | return this; | ||
2537 | } | ||
2538 | public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
2539 | base.AddRange(values, result.writes_); | ||
2540 | return this; | ||
2541 | } | ||
2542 | public Builder ClearWrites() { | ||
2543 | result.writes_.Clear(); | ||
2544 | return this; | ||
2545 | } | ||
2546 | |||
2547 | public bool HasOptions { | ||
2548 | get { return result.HasOptions; } | ||
2549 | } | ||
2550 | [global::System.CLSCompliant(false)] | ||
2551 | public ulong Options { | ||
2552 | get { return result.Options; } | ||
2553 | set { SetOptions(value); } | ||
2554 | } | ||
2555 | [global::System.CLSCompliant(false)] | ||
2556 | public Builder SetOptions(ulong value) { | ||
2557 | result.hasOptions = true; | ||
2558 | result.options_ = value; | ||
2559 | return this; | ||
2560 | } | ||
2561 | public Builder ClearOptions() { | ||
2562 | result.hasOptions = false; | ||
2563 | result.options_ = 0UL; | ||
2564 | return this; | ||
2565 | } | ||
2566 | } | ||
2567 | static ReadWriteSet() { | ||
2568 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
2569 | } | ||
2570 | } | ||
2571 | |||
2572 | public sealed partial class Minitransaction : pb::GeneratedMessage<Minitransaction, Minitransaction.Builder> { | ||
2573 | private static readonly Minitransaction defaultInstance = new Builder().BuildPartial(); | ||
2574 | public static Minitransaction DefaultInstance { | ||
2575 | get { return defaultInstance; } | ||
2576 | } | ||
2577 | |||
2578 | public override Minitransaction DefaultInstanceForType { | ||
2579 | get { return defaultInstance; } | ||
2580 | } | ||
2581 | |||
2582 | protected override Minitransaction ThisMessage { | ||
2583 | get { return this; } | ||
2584 | } | ||
2585 | |||
2586 | public static pbd::MessageDescriptor Descriptor { | ||
2587 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__Descriptor; } | ||
2588 | } | ||
2589 | |||
2590 | protected override pb::FieldAccess.FieldAccessorTable<Minitransaction, Minitransaction.Builder> InternalFieldAccessors { | ||
2591 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Minitransaction__FieldAccessorTable; } | ||
2592 | } | ||
2593 | |||
2594 | #region Nested types | ||
2595 | public static class Types { | ||
2596 | public enum TransactionOptions { | ||
2597 | RETURN_READ_NAMES = 1, | ||
2598 | } | ||
2599 | |||
2600 | } | ||
2601 | #endregion | ||
2602 | |||
2603 | public const int ReadsFieldNumber = 9; | ||
2604 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
2605 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
2606 | get { return reads_; } | ||
2607 | } | ||
2608 | public int ReadsCount { | ||
2609 | get { return reads_.Count; } | ||
2610 | } | ||
2611 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
2612 | return reads_[index]; | ||
2613 | } | ||
2614 | |||
2615 | public const int WritesFieldNumber = 10; | ||
2616 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> writes_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
2617 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2618 | get { return writes_; } | ||
2619 | } | ||
2620 | public int WritesCount { | ||
2621 | get { return writes_.Count; } | ||
2622 | } | ||
2623 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2624 | return writes_[index]; | ||
2625 | } | ||
2626 | |||
2627 | public const int ComparesFieldNumber = 11; | ||
2628 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> compares_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement>(); | ||
2629 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> ComparesList { | ||
2630 | get { return compares_; } | ||
2631 | } | ||
2632 | public int ComparesCount { | ||
2633 | get { return compares_.Count; } | ||
2634 | } | ||
2635 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) { | ||
2636 | return compares_[index]; | ||
2637 | } | ||
2638 | |||
2639 | public const int OptionsFieldNumber = 14; | ||
2640 | private bool hasOptions; | ||
2641 | private ulong options_ = 0UL; | ||
2642 | public bool HasOptions { | ||
2643 | get { return hasOptions; } | ||
2644 | } | ||
2645 | [global::System.CLSCompliant(false)] | ||
2646 | public ulong Options { | ||
2647 | get { return options_; } | ||
2648 | } | ||
2649 | |||
2650 | public override bool IsInitialized { | ||
2651 | get { | ||
2652 | return true; | ||
2653 | } | ||
2654 | } | ||
2655 | |||
2656 | public override void WriteTo(pb::CodedOutputStream output) { | ||
2657 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
2658 | output.WriteMessage(9, element); | ||
2659 | } | ||
2660 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2661 | output.WriteMessage(10, element); | ||
2662 | } | ||
2663 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) { | ||
2664 | output.WriteMessage(11, element); | ||
2665 | } | ||
2666 | if (HasOptions) { | ||
2667 | output.WriteUInt64(14, Options); | ||
2668 | } | ||
2669 | UnknownFields.WriteTo(output); | ||
2670 | } | ||
2671 | |||
2672 | private int memoizedSerializedSize = -1; | ||
2673 | public override int SerializedSize { | ||
2674 | get { | ||
2675 | int size = memoizedSerializedSize; | ||
2676 | if (size != -1) return size; | ||
2677 | |||
2678 | size = 0; | ||
2679 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
2680 | size += pb::CodedOutputStream.ComputeMessageSize(9, element); | ||
2681 | } | ||
2682 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in WritesList) { | ||
2683 | size += pb::CodedOutputStream.ComputeMessageSize(10, element); | ||
2684 | } | ||
2685 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement element in ComparesList) { | ||
2686 | size += pb::CodedOutputStream.ComputeMessageSize(11, element); | ||
2687 | } | ||
2688 | if (HasOptions) { | ||
2689 | size += pb::CodedOutputStream.ComputeUInt64Size(14, Options); | ||
2690 | } | ||
2691 | size += UnknownFields.SerializedSize; | ||
2692 | memoizedSerializedSize = size; | ||
2693 | return size; | ||
2694 | } | ||
2695 | } | ||
2696 | |||
2697 | public static Minitransaction ParseFrom(pb::ByteString data) { | ||
2698 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2699 | } | ||
2700 | public static Minitransaction ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
2701 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2702 | } | ||
2703 | public static Minitransaction ParseFrom(byte[] data) { | ||
2704 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
2705 | } | ||
2706 | public static Minitransaction ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
2707 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
2708 | } | ||
2709 | public static Minitransaction ParseFrom(global::System.IO.Stream input) { | ||
2710 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2711 | } | ||
2712 | public static Minitransaction ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2713 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2714 | } | ||
2715 | public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input) { | ||
2716 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
2717 | } | ||
2718 | public static Minitransaction ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
2719 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
2720 | } | ||
2721 | public static Minitransaction ParseFrom(pb::CodedInputStream input) { | ||
2722 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
2723 | } | ||
2724 | public static Minitransaction ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2725 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
2726 | } | ||
2727 | public static Builder CreateBuilder() { return new Builder(); } | ||
2728 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
2729 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
2730 | public static Builder CreateBuilder(Minitransaction prototype) { | ||
2731 | return (Builder) new Builder().MergeFrom(prototype); | ||
2732 | } | ||
2733 | |||
2734 | public sealed partial class Builder : pb::GeneratedBuilder<Minitransaction, Builder> { | ||
2735 | protected override Builder ThisBuilder { | ||
2736 | get { return this; } | ||
2737 | } | ||
2738 | public Builder() {} | ||
2739 | |||
2740 | Minitransaction result = new Minitransaction(); | ||
2741 | |||
2742 | protected override Minitransaction MessageBeingBuilt { | ||
2743 | get { return result; } | ||
2744 | } | ||
2745 | |||
2746 | public override Builder Clear() { | ||
2747 | result = new Minitransaction(); | ||
2748 | return this; | ||
2749 | } | ||
2750 | |||
2751 | public override Builder Clone() { | ||
2752 | return new Builder().MergeFrom(result); | ||
2753 | } | ||
2754 | |||
2755 | public override pbd::MessageDescriptor DescriptorForType { | ||
2756 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.Descriptor; } | ||
2757 | } | ||
2758 | |||
2759 | public override Minitransaction DefaultInstanceForType { | ||
2760 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance; } | ||
2761 | } | ||
2762 | |||
2763 | public override Minitransaction BuildPartial() { | ||
2764 | if (result == null) { | ||
2765 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
2766 | } | ||
2767 | result.reads_.MakeReadOnly(); | ||
2768 | result.writes_.MakeReadOnly(); | ||
2769 | result.compares_.MakeReadOnly(); | ||
2770 | Minitransaction returnMe = result; | ||
2771 | result = null; | ||
2772 | return returnMe; | ||
2773 | } | ||
2774 | |||
2775 | public override Builder MergeFrom(pb::IMessage other) { | ||
2776 | if (other is Minitransaction) { | ||
2777 | return MergeFrom((Minitransaction) other); | ||
2778 | } else { | ||
2779 | base.MergeFrom(other); | ||
2780 | return this; | ||
2781 | } | ||
2782 | } | ||
2783 | |||
2784 | public override Builder MergeFrom(Minitransaction other) { | ||
2785 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Minitransaction.DefaultInstance) return this; | ||
2786 | if (other.reads_.Count != 0) { | ||
2787 | base.AddRange(other.reads_, result.reads_); | ||
2788 | } | ||
2789 | if (other.writes_.Count != 0) { | ||
2790 | base.AddRange(other.writes_, result.writes_); | ||
2791 | } | ||
2792 | if (other.compares_.Count != 0) { | ||
2793 | base.AddRange(other.compares_, result.compares_); | ||
2794 | } | ||
2795 | if (other.HasOptions) { | ||
2796 | Options = other.Options; | ||
2797 | } | ||
2798 | this.MergeUnknownFields(other.UnknownFields); | ||
2799 | return this; | ||
2800 | } | ||
2801 | |||
2802 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
2803 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
2804 | } | ||
2805 | |||
2806 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
2807 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
2808 | while (true) { | ||
2809 | uint tag = input.ReadTag(); | ||
2810 | switch (tag) { | ||
2811 | case 0: { | ||
2812 | if (unknownFields != null) { | ||
2813 | this.UnknownFields = unknownFields.Build(); | ||
2814 | } | ||
2815 | return this; | ||
2816 | } | ||
2817 | default: { | ||
2818 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
2819 | if (unknownFields != null) { | ||
2820 | this.UnknownFields = unknownFields.Build(); | ||
2821 | } | ||
2822 | return this; | ||
2823 | } | ||
2824 | if (unknownFields == null) { | ||
2825 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
2826 | } | ||
2827 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
2828 | break; | ||
2829 | } | ||
2830 | case 74: { | ||
2831 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
2832 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2833 | AddReads(subBuilder.BuildPartial()); | ||
2834 | break; | ||
2835 | } | ||
2836 | case 82: { | ||
2837 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
2838 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2839 | AddWrites(subBuilder.BuildPartial()); | ||
2840 | break; | ||
2841 | } | ||
2842 | case 90: { | ||
2843 | global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.CreateBuilder(); | ||
2844 | input.ReadMessage(subBuilder, extensionRegistry); | ||
2845 | AddCompares(subBuilder.BuildPartial()); | ||
2846 | break; | ||
2847 | } | ||
2848 | case 112: { | ||
2849 | Options = input.ReadUInt64(); | ||
2850 | break; | ||
2851 | } | ||
2852 | } | ||
2853 | } | ||
2854 | } | ||
2855 | |||
2856 | |||
2857 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
2858 | get { return result.reads_; } | ||
2859 | } | ||
2860 | public int ReadsCount { | ||
2861 | get { return result.ReadsCount; } | ||
2862 | } | ||
2863 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
2864 | return result.GetReads(index); | ||
2865 | } | ||
2866 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2867 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2868 | result.reads_[index] = value; | ||
2869 | return this; | ||
2870 | } | ||
2871 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2872 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2873 | result.reads_[index] = builderForValue.Build(); | ||
2874 | return this; | ||
2875 | } | ||
2876 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2877 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2878 | result.reads_.Add(value); | ||
2879 | return this; | ||
2880 | } | ||
2881 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2882 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2883 | result.reads_.Add(builderForValue.Build()); | ||
2884 | return this; | ||
2885 | } | ||
2886 | public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
2887 | base.AddRange(values, result.reads_); | ||
2888 | return this; | ||
2889 | } | ||
2890 | public Builder ClearReads() { | ||
2891 | result.reads_.Clear(); | ||
2892 | return this; | ||
2893 | } | ||
2894 | |||
2895 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> WritesList { | ||
2896 | get { return result.writes_; } | ||
2897 | } | ||
2898 | public int WritesCount { | ||
2899 | get { return result.WritesCount; } | ||
2900 | } | ||
2901 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetWrites(int index) { | ||
2902 | return result.GetWrites(index); | ||
2903 | } | ||
2904 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2905 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2906 | result.writes_[index] = value; | ||
2907 | return this; | ||
2908 | } | ||
2909 | public Builder SetWrites(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2910 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2911 | result.writes_[index] = builderForValue.Build(); | ||
2912 | return this; | ||
2913 | } | ||
2914 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
2915 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2916 | result.writes_.Add(value); | ||
2917 | return this; | ||
2918 | } | ||
2919 | public Builder AddWrites(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
2920 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2921 | result.writes_.Add(builderForValue.Build()); | ||
2922 | return this; | ||
2923 | } | ||
2924 | public Builder AddRangeWrites(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
2925 | base.AddRange(values, result.writes_); | ||
2926 | return this; | ||
2927 | } | ||
2928 | public Builder ClearWrites() { | ||
2929 | result.writes_.Clear(); | ||
2930 | return this; | ||
2931 | } | ||
2932 | |||
2933 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> ComparesList { | ||
2934 | get { return result.compares_; } | ||
2935 | } | ||
2936 | public int ComparesCount { | ||
2937 | get { return result.ComparesCount; } | ||
2938 | } | ||
2939 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement GetCompares(int index) { | ||
2940 | return result.GetCompares(index); | ||
2941 | } | ||
2942 | public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) { | ||
2943 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2944 | result.compares_[index] = value; | ||
2945 | return this; | ||
2946 | } | ||
2947 | public Builder SetCompares(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) { | ||
2948 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2949 | result.compares_[index] = builderForValue.Build(); | ||
2950 | return this; | ||
2951 | } | ||
2952 | public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement value) { | ||
2953 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
2954 | result.compares_.Add(value); | ||
2955 | return this; | ||
2956 | } | ||
2957 | public Builder AddCompares(global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement.Builder builderForValue) { | ||
2958 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
2959 | result.compares_.Add(builderForValue.Build()); | ||
2960 | return this; | ||
2961 | } | ||
2962 | public Builder AddRangeCompares(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.CompareElement> values) { | ||
2963 | base.AddRange(values, result.compares_); | ||
2964 | return this; | ||
2965 | } | ||
2966 | public Builder ClearCompares() { | ||
2967 | result.compares_.Clear(); | ||
2968 | return this; | ||
2969 | } | ||
2970 | |||
2971 | public bool HasOptions { | ||
2972 | get { return result.HasOptions; } | ||
2973 | } | ||
2974 | [global::System.CLSCompliant(false)] | ||
2975 | public ulong Options { | ||
2976 | get { return result.Options; } | ||
2977 | set { SetOptions(value); } | ||
2978 | } | ||
2979 | [global::System.CLSCompliant(false)] | ||
2980 | public Builder SetOptions(ulong value) { | ||
2981 | result.hasOptions = true; | ||
2982 | result.options_ = value; | ||
2983 | return this; | ||
2984 | } | ||
2985 | public Builder ClearOptions() { | ||
2986 | result.hasOptions = false; | ||
2987 | result.options_ = 0UL; | ||
2988 | return this; | ||
2989 | } | ||
2990 | } | ||
2991 | static Minitransaction() { | ||
2992 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
2993 | } | ||
2994 | } | ||
2995 | |||
2996 | public sealed partial class Response : pb::GeneratedMessage<Response, Response.Builder> { | ||
2997 | private static readonly Response defaultInstance = new Builder().BuildPartial(); | ||
2998 | public static Response DefaultInstance { | ||
2999 | get { return defaultInstance; } | ||
3000 | } | ||
3001 | |||
3002 | public override Response DefaultInstanceForType { | ||
3003 | get { return defaultInstance; } | ||
3004 | } | ||
3005 | |||
3006 | protected override Response ThisMessage { | ||
3007 | get { return this; } | ||
3008 | } | ||
3009 | |||
3010 | public static pbd::MessageDescriptor Descriptor { | ||
3011 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__Descriptor; } | ||
3012 | } | ||
3013 | |||
3014 | protected override pb::FieldAccess.FieldAccessorTable<Response, Response.Builder> InternalFieldAccessors { | ||
3015 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.internal__static_Sirikata_Persistence_Protocol__PBJ_Internal_Response__FieldAccessorTable; } | ||
3016 | } | ||
3017 | |||
3018 | #region Nested types | ||
3019 | public static class Types { | ||
3020 | public enum ReturnStatus { | ||
3021 | SUCCESS = 0, | ||
3022 | DATABASE_LOCKED = 3, | ||
3023 | KEY_MISSING = 4, | ||
3024 | COMPARISON_FAILED = 5, | ||
3025 | INTERNAL_ERROR = 6, | ||
3026 | } | ||
3027 | |||
3028 | } | ||
3029 | #endregion | ||
3030 | |||
3031 | public const int ReadsFieldNumber = 9; | ||
3032 | private pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> reads_ = new pbc::PopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement>(); | ||
3033 | public scg::IList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
3034 | get { return reads_; } | ||
3035 | } | ||
3036 | public int ReadsCount { | ||
3037 | get { return reads_.Count; } | ||
3038 | } | ||
3039 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
3040 | return reads_[index]; | ||
3041 | } | ||
3042 | |||
3043 | public const int ReturnStatusFieldNumber = 15; | ||
3044 | private bool hasReturnStatus; | ||
3045 | private global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS; | ||
3046 | public bool HasReturnStatus { | ||
3047 | get { return hasReturnStatus; } | ||
3048 | } | ||
3049 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus { | ||
3050 | get { return returnStatus_; } | ||
3051 | } | ||
3052 | |||
3053 | public override bool IsInitialized { | ||
3054 | get { | ||
3055 | return true; | ||
3056 | } | ||
3057 | } | ||
3058 | |||
3059 | public override void WriteTo(pb::CodedOutputStream output) { | ||
3060 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
3061 | output.WriteMessage(9, element); | ||
3062 | } | ||
3063 | if (HasReturnStatus) { | ||
3064 | output.WriteEnum(15, (int) ReturnStatus); | ||
3065 | } | ||
3066 | UnknownFields.WriteTo(output); | ||
3067 | } | ||
3068 | |||
3069 | private int memoizedSerializedSize = -1; | ||
3070 | public override int SerializedSize { | ||
3071 | get { | ||
3072 | int size = memoizedSerializedSize; | ||
3073 | if (size != -1) return size; | ||
3074 | |||
3075 | size = 0; | ||
3076 | foreach (global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement element in ReadsList) { | ||
3077 | size += pb::CodedOutputStream.ComputeMessageSize(9, element); | ||
3078 | } | ||
3079 | if (HasReturnStatus) { | ||
3080 | size += pb::CodedOutputStream.ComputeEnumSize(15, (int) ReturnStatus); | ||
3081 | } | ||
3082 | size += UnknownFields.SerializedSize; | ||
3083 | memoizedSerializedSize = size; | ||
3084 | return size; | ||
3085 | } | ||
3086 | } | ||
3087 | |||
3088 | public static Response ParseFrom(pb::ByteString data) { | ||
3089 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
3090 | } | ||
3091 | public static Response ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) { | ||
3092 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
3093 | } | ||
3094 | public static Response ParseFrom(byte[] data) { | ||
3095 | return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed(); | ||
3096 | } | ||
3097 | public static Response ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) { | ||
3098 | return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed(); | ||
3099 | } | ||
3100 | public static Response ParseFrom(global::System.IO.Stream input) { | ||
3101 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
3102 | } | ||
3103 | public static Response ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
3104 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
3105 | } | ||
3106 | public static Response ParseDelimitedFrom(global::System.IO.Stream input) { | ||
3107 | return CreateBuilder().MergeDelimitedFrom(input).BuildParsed(); | ||
3108 | } | ||
3109 | public static Response ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) { | ||
3110 | return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed(); | ||
3111 | } | ||
3112 | public static Response ParseFrom(pb::CodedInputStream input) { | ||
3113 | return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed(); | ||
3114 | } | ||
3115 | public static Response ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
3116 | return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed(); | ||
3117 | } | ||
3118 | public static Builder CreateBuilder() { return new Builder(); } | ||
3119 | public override Builder ToBuilder() { return CreateBuilder(this); } | ||
3120 | public override Builder CreateBuilderForType() { return new Builder(); } | ||
3121 | public static Builder CreateBuilder(Response prototype) { | ||
3122 | return (Builder) new Builder().MergeFrom(prototype); | ||
3123 | } | ||
3124 | |||
3125 | public sealed partial class Builder : pb::GeneratedBuilder<Response, Builder> { | ||
3126 | protected override Builder ThisBuilder { | ||
3127 | get { return this; } | ||
3128 | } | ||
3129 | public Builder() {} | ||
3130 | |||
3131 | Response result = new Response(); | ||
3132 | |||
3133 | protected override Response MessageBeingBuilt { | ||
3134 | get { return result; } | ||
3135 | } | ||
3136 | |||
3137 | public override Builder Clear() { | ||
3138 | result = new Response(); | ||
3139 | return this; | ||
3140 | } | ||
3141 | |||
3142 | public override Builder Clone() { | ||
3143 | return new Builder().MergeFrom(result); | ||
3144 | } | ||
3145 | |||
3146 | public override pbd::MessageDescriptor DescriptorForType { | ||
3147 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Descriptor; } | ||
3148 | } | ||
3149 | |||
3150 | public override Response DefaultInstanceForType { | ||
3151 | get { return global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance; } | ||
3152 | } | ||
3153 | |||
3154 | public override Response BuildPartial() { | ||
3155 | if (result == null) { | ||
3156 | throw new global::System.InvalidOperationException("build() has already been called on this Builder"); | ||
3157 | } | ||
3158 | result.reads_.MakeReadOnly(); | ||
3159 | Response returnMe = result; | ||
3160 | result = null; | ||
3161 | return returnMe; | ||
3162 | } | ||
3163 | |||
3164 | public override Builder MergeFrom(pb::IMessage other) { | ||
3165 | if (other is Response) { | ||
3166 | return MergeFrom((Response) other); | ||
3167 | } else { | ||
3168 | base.MergeFrom(other); | ||
3169 | return this; | ||
3170 | } | ||
3171 | } | ||
3172 | |||
3173 | public override Builder MergeFrom(Response other) { | ||
3174 | if (other == global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.DefaultInstance) return this; | ||
3175 | if (other.reads_.Count != 0) { | ||
3176 | base.AddRange(other.reads_, result.reads_); | ||
3177 | } | ||
3178 | if (other.HasReturnStatus) { | ||
3179 | ReturnStatus = other.ReturnStatus; | ||
3180 | } | ||
3181 | this.MergeUnknownFields(other.UnknownFields); | ||
3182 | return this; | ||
3183 | } | ||
3184 | |||
3185 | public override Builder MergeFrom(pb::CodedInputStream input) { | ||
3186 | return MergeFrom(input, pb::ExtensionRegistry.Empty); | ||
3187 | } | ||
3188 | |||
3189 | public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) { | ||
3190 | pb::UnknownFieldSet.Builder unknownFields = null; | ||
3191 | while (true) { | ||
3192 | uint tag = input.ReadTag(); | ||
3193 | switch (tag) { | ||
3194 | case 0: { | ||
3195 | if (unknownFields != null) { | ||
3196 | this.UnknownFields = unknownFields.Build(); | ||
3197 | } | ||
3198 | return this; | ||
3199 | } | ||
3200 | default: { | ||
3201 | if (pb::WireFormat.IsEndGroupTag(tag)) { | ||
3202 | if (unknownFields != null) { | ||
3203 | this.UnknownFields = unknownFields.Build(); | ||
3204 | } | ||
3205 | return this; | ||
3206 | } | ||
3207 | if (unknownFields == null) { | ||
3208 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
3209 | } | ||
3210 | ParseUnknownField(input, unknownFields, extensionRegistry, tag); | ||
3211 | break; | ||
3212 | } | ||
3213 | case 74: { | ||
3214 | global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder subBuilder = global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.CreateBuilder(); | ||
3215 | input.ReadMessage(subBuilder, extensionRegistry); | ||
3216 | AddReads(subBuilder.BuildPartial()); | ||
3217 | break; | ||
3218 | } | ||
3219 | case 120: { | ||
3220 | int rawValue = input.ReadEnum(); | ||
3221 | if (!global::System.Enum.IsDefined(typeof(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus), rawValue)) { | ||
3222 | if (unknownFields == null) { | ||
3223 | unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields); | ||
3224 | } | ||
3225 | unknownFields.MergeVarintField(15, (ulong) rawValue); | ||
3226 | } else { | ||
3227 | ReturnStatus = (global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus) rawValue; | ||
3228 | } | ||
3229 | break; | ||
3230 | } | ||
3231 | } | ||
3232 | } | ||
3233 | } | ||
3234 | |||
3235 | |||
3236 | public pbc::IPopsicleList<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> ReadsList { | ||
3237 | get { return result.reads_; } | ||
3238 | } | ||
3239 | public int ReadsCount { | ||
3240 | get { return result.ReadsCount; } | ||
3241 | } | ||
3242 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement GetReads(int index) { | ||
3243 | return result.GetReads(index); | ||
3244 | } | ||
3245 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
3246 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3247 | result.reads_[index] = value; | ||
3248 | return this; | ||
3249 | } | ||
3250 | public Builder SetReads(int index, global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
3251 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3252 | result.reads_[index] = builderForValue.Build(); | ||
3253 | return this; | ||
3254 | } | ||
3255 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement value) { | ||
3256 | pb::ThrowHelper.ThrowIfNull(value, "value"); | ||
3257 | result.reads_.Add(value); | ||
3258 | return this; | ||
3259 | } | ||
3260 | public Builder AddReads(global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement.Builder builderForValue) { | ||
3261 | pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue"); | ||
3262 | result.reads_.Add(builderForValue.Build()); | ||
3263 | return this; | ||
3264 | } | ||
3265 | public Builder AddRangeReads(scg::IEnumerable<global::Sirikata.Persistence.Protocol._PBJ_Internal.StorageElement> values) { | ||
3266 | base.AddRange(values, result.reads_); | ||
3267 | return this; | ||
3268 | } | ||
3269 | public Builder ClearReads() { | ||
3270 | result.reads_.Clear(); | ||
3271 | return this; | ||
3272 | } | ||
3273 | |||
3274 | public bool HasReturnStatus { | ||
3275 | get { return result.HasReturnStatus; } | ||
3276 | } | ||
3277 | public global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus ReturnStatus { | ||
3278 | get { return result.ReturnStatus; } | ||
3279 | set { SetReturnStatus(value); } | ||
3280 | } | ||
3281 | public Builder SetReturnStatus(global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus value) { | ||
3282 | result.hasReturnStatus = true; | ||
3283 | result.returnStatus_ = value; | ||
3284 | return this; | ||
3285 | } | ||
3286 | public Builder ClearReturnStatus() { | ||
3287 | result.hasReturnStatus = false; | ||
3288 | result.returnStatus_ = global::Sirikata.Persistence.Protocol._PBJ_Internal.Response.Types.ReturnStatus.SUCCESS; | ||
3289 | return this; | ||
3290 | } | ||
3291 | } | ||
3292 | static Response() { | ||
3293 | object.ReferenceEquals(global::Sirikata.Persistence.Protocol._PBJ_Internal.Persistence.Descriptor, null); | ||
3294 | } | ||
3295 | } | ||
3296 | |||
3297 | #endregion | ||
3298 | |||
3299 | } | ||