aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/Sirikata/Protocol/Time.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Client/Sirikata/Protocol/Time.cs')
-rw-r--r--OpenSim/Client/Sirikata/Protocol/Time.cs454
1 files changed, 454 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Time.cs b/OpenSim/Client/Sirikata/Protocol/Time.cs
new file mode 100644
index 0000000..4ad49cc
--- /dev/null
+++ b/OpenSim/Client/Sirikata/Protocol/Time.cs
@@ -0,0 +1,454 @@
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2
3using pb = global::Google.ProtocolBuffers;
4using pbc = global::Google.ProtocolBuffers.Collections;
5using pbd = global::Google.ProtocolBuffers.Descriptors;
6using scg = global::System.Collections.Generic;
7namespace Sirikata.Network.Protocol._PBJ_Internal {
8
9 public static partial class Time {
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_Network_Protocol__PBJ_Internal_TimeSync__Descriptor;
17 internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync, global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync.Builder> internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__FieldAccessorTable;
18 #endregion
19 #region Descriptor
20 public static pbd::FileDescriptor Descriptor {
21 get { return descriptor; }
22 }
23 private static pbd::FileDescriptor descriptor;
24
25 static Time() {
26 byte[] descriptorData = global::System.Convert.FromBase64String(
27 "CgpUaW1lLnByb3RvEidTaXJpa2F0YS5OZXR3b3JrLlByb3RvY29sLl9QQkpf" +
28 "SW50ZXJuYWwirQEKCFRpbWVTeW5jEhMKC2NsaWVudF90aW1lGAkgASgGEhMK" +
29 "C3NlcnZlcl90aW1lGAogASgGEhIKCnN5bmNfcm91bmQYCyABKAQSFgoOcmV0" +
30 "dXJuX29wdGlvbnMYDiABKA0SEwoKcm91bmRfdHJpcBiBFCABKAYiNgoNUmV0" +
31 "dXJuT3B0aW9ucxISCg5SRVBMWV9SRUxJQUJMRRABEhEKDVJFUExZX09SREVS" +
32 "RUQQAg==");
33 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
34 descriptor = root;
35 internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__Descriptor = Descriptor.MessageTypes[0];
36 internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__FieldAccessorTable =
37 new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync, global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync.Builder>(internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__Descriptor,
38 new string[] { "ClientTime", "ServerTime", "SyncRound", "ReturnOptions", "RoundTrip", });
39 return null;
40 };
41 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
42 new pbd::FileDescriptor[] {
43 }, assigner);
44 }
45 #endregion
46
47 }
48 #region Messages
49 public sealed partial class TimeSync : pb::GeneratedMessage<TimeSync, TimeSync.Builder> {
50 private static readonly TimeSync defaultInstance = new Builder().BuildPartial();
51 public static TimeSync DefaultInstance {
52 get { return defaultInstance; }
53 }
54
55 public override TimeSync DefaultInstanceForType {
56 get { return defaultInstance; }
57 }
58
59 protected override TimeSync ThisMessage {
60 get { return this; }
61 }
62
63 public static pbd::MessageDescriptor Descriptor {
64 get { return global::Sirikata.Network.Protocol._PBJ_Internal.Time.internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__Descriptor; }
65 }
66
67 protected override pb::FieldAccess.FieldAccessorTable<TimeSync, TimeSync.Builder> InternalFieldAccessors {
68 get { return global::Sirikata.Network.Protocol._PBJ_Internal.Time.internal__static_Sirikata_Network_Protocol__PBJ_Internal_TimeSync__FieldAccessorTable; }
69 }
70
71 #region Nested types
72 public static class Types {
73 public enum ReturnOptions {
74 REPLY_RELIABLE = 1,
75 REPLY_ORDERED = 2,
76 }
77
78 }
79 #endregion
80
81 public const int ClientTimeFieldNumber = 9;
82 private bool hasClientTime;
83 private ulong clientTime_ = 0;
84 public bool HasClientTime {
85 get { return hasClientTime; }
86 }
87 [global::System.CLSCompliant(false)]
88 public ulong ClientTime {
89 get { return clientTime_; }
90 }
91
92 public const int ServerTimeFieldNumber = 10;
93 private bool hasServerTime;
94 private ulong serverTime_ = 0;
95 public bool HasServerTime {
96 get { return hasServerTime; }
97 }
98 [global::System.CLSCompliant(false)]
99 public ulong ServerTime {
100 get { return serverTime_; }
101 }
102
103 public const int SyncRoundFieldNumber = 11;
104 private bool hasSyncRound;
105 private ulong syncRound_ = 0UL;
106 public bool HasSyncRound {
107 get { return hasSyncRound; }
108 }
109 [global::System.CLSCompliant(false)]
110 public ulong SyncRound {
111 get { return syncRound_; }
112 }
113
114 public const int ReturnOptionsFieldNumber = 14;
115 private bool hasReturnOptions;
116 private uint returnOptions_ = 0;
117 public bool HasReturnOptions {
118 get { return hasReturnOptions; }
119 }
120 [global::System.CLSCompliant(false)]
121 public uint ReturnOptions {
122 get { return returnOptions_; }
123 }
124
125 public const int RoundTripFieldNumber = 2561;
126 private bool hasRoundTrip;
127 private ulong roundTrip_ = 0;
128 public bool HasRoundTrip {
129 get { return hasRoundTrip; }
130 }
131 [global::System.CLSCompliant(false)]
132 public ulong RoundTrip {
133 get { return roundTrip_; }
134 }
135
136 public override bool IsInitialized {
137 get {
138 return true;
139 }
140 }
141
142 public override void WriteTo(pb::CodedOutputStream output) {
143 if (HasClientTime) {
144 output.WriteFixed64(9, ClientTime);
145 }
146 if (HasServerTime) {
147 output.WriteFixed64(10, ServerTime);
148 }
149 if (HasSyncRound) {
150 output.WriteUInt64(11, SyncRound);
151 }
152 if (HasReturnOptions) {
153 output.WriteUInt32(14, ReturnOptions);
154 }
155 if (HasRoundTrip) {
156 output.WriteFixed64(2561, RoundTrip);
157 }
158 UnknownFields.WriteTo(output);
159 }
160
161 private int memoizedSerializedSize = -1;
162 public override int SerializedSize {
163 get {
164 int size = memoizedSerializedSize;
165 if (size != -1) return size;
166
167 size = 0;
168 if (HasClientTime) {
169 size += pb::CodedOutputStream.ComputeFixed64Size(9, ClientTime);
170 }
171 if (HasServerTime) {
172 size += pb::CodedOutputStream.ComputeFixed64Size(10, ServerTime);
173 }
174 if (HasSyncRound) {
175 size += pb::CodedOutputStream.ComputeUInt64Size(11, SyncRound);
176 }
177 if (HasReturnOptions) {
178 size += pb::CodedOutputStream.ComputeUInt32Size(14, ReturnOptions);
179 }
180 if (HasRoundTrip) {
181 size += pb::CodedOutputStream.ComputeFixed64Size(2561, RoundTrip);
182 }
183 size += UnknownFields.SerializedSize;
184 memoizedSerializedSize = size;
185 return size;
186 }
187 }
188
189 public static TimeSync ParseFrom(pb::ByteString data) {
190 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
191 }
192 public static TimeSync ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
193 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
194 }
195 public static TimeSync ParseFrom(byte[] data) {
196 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
197 }
198 public static TimeSync ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
199 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
200 }
201 public static TimeSync ParseFrom(global::System.IO.Stream input) {
202 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
203 }
204 public static TimeSync ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
205 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
206 }
207 public static TimeSync ParseDelimitedFrom(global::System.IO.Stream input) {
208 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
209 }
210 public static TimeSync ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
211 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
212 }
213 public static TimeSync ParseFrom(pb::CodedInputStream input) {
214 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
215 }
216 public static TimeSync ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
217 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
218 }
219 public static Builder CreateBuilder() { return new Builder(); }
220 public override Builder ToBuilder() { return CreateBuilder(this); }
221 public override Builder CreateBuilderForType() { return new Builder(); }
222 public static Builder CreateBuilder(TimeSync prototype) {
223 return (Builder) new Builder().MergeFrom(prototype);
224 }
225
226 public sealed partial class Builder : pb::GeneratedBuilder<TimeSync, Builder> {
227 protected override Builder ThisBuilder {
228 get { return this; }
229 }
230 public Builder() {}
231
232 TimeSync result = new TimeSync();
233
234 protected override TimeSync MessageBeingBuilt {
235 get { return result; }
236 }
237
238 public override Builder Clear() {
239 result = new TimeSync();
240 return this;
241 }
242
243 public override Builder Clone() {
244 return new Builder().MergeFrom(result);
245 }
246
247 public override pbd::MessageDescriptor DescriptorForType {
248 get { return global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync.Descriptor; }
249 }
250
251 public override TimeSync DefaultInstanceForType {
252 get { return global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync.DefaultInstance; }
253 }
254
255 public override TimeSync BuildPartial() {
256 if (result == null) {
257 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
258 }
259 TimeSync returnMe = result;
260 result = null;
261 return returnMe;
262 }
263
264 public override Builder MergeFrom(pb::IMessage other) {
265 if (other is TimeSync) {
266 return MergeFrom((TimeSync) other);
267 } else {
268 base.MergeFrom(other);
269 return this;
270 }
271 }
272
273 public override Builder MergeFrom(TimeSync other) {
274 if (other == global::Sirikata.Network.Protocol._PBJ_Internal.TimeSync.DefaultInstance) return this;
275 if (other.HasClientTime) {
276 ClientTime = other.ClientTime;
277 }
278 if (other.HasServerTime) {
279 ServerTime = other.ServerTime;
280 }
281 if (other.HasSyncRound) {
282 SyncRound = other.SyncRound;
283 }
284 if (other.HasReturnOptions) {
285 ReturnOptions = other.ReturnOptions;
286 }
287 if (other.HasRoundTrip) {
288 RoundTrip = other.RoundTrip;
289 }
290 this.MergeUnknownFields(other.UnknownFields);
291 return this;
292 }
293
294 public override Builder MergeFrom(pb::CodedInputStream input) {
295 return MergeFrom(input, pb::ExtensionRegistry.Empty);
296 }
297
298 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
299 pb::UnknownFieldSet.Builder unknownFields = null;
300 while (true) {
301 uint tag = input.ReadTag();
302 switch (tag) {
303 case 0: {
304 if (unknownFields != null) {
305 this.UnknownFields = unknownFields.Build();
306 }
307 return this;
308 }
309 default: {
310 if (pb::WireFormat.IsEndGroupTag(tag)) {
311 if (unknownFields != null) {
312 this.UnknownFields = unknownFields.Build();
313 }
314 return this;
315 }
316 if (unknownFields == null) {
317 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
318 }
319 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
320 break;
321 }
322 case 73: {
323 ClientTime = input.ReadFixed64();
324 break;
325 }
326 case 81: {
327 ServerTime = input.ReadFixed64();
328 break;
329 }
330 case 88: {
331 SyncRound = input.ReadUInt64();
332 break;
333 }
334 case 112: {
335 ReturnOptions = input.ReadUInt32();
336 break;
337 }
338 case 20489: {
339 RoundTrip = input.ReadFixed64();
340 break;
341 }
342 }
343 }
344 }
345
346
347 public bool HasClientTime {
348 get { return result.HasClientTime; }
349 }
350 [global::System.CLSCompliant(false)]
351 public ulong ClientTime {
352 get { return result.ClientTime; }
353 set { SetClientTime(value); }
354 }
355 [global::System.CLSCompliant(false)]
356 public Builder SetClientTime(ulong value) {
357 result.hasClientTime = true;
358 result.clientTime_ = value;
359 return this;
360 }
361 public Builder ClearClientTime() {
362 result.hasClientTime = false;
363 result.clientTime_ = 0;
364 return this;
365 }
366
367 public bool HasServerTime {
368 get { return result.HasServerTime; }
369 }
370 [global::System.CLSCompliant(false)]
371 public ulong ServerTime {
372 get { return result.ServerTime; }
373 set { SetServerTime(value); }
374 }
375 [global::System.CLSCompliant(false)]
376 public Builder SetServerTime(ulong value) {
377 result.hasServerTime = true;
378 result.serverTime_ = value;
379 return this;
380 }
381 public Builder ClearServerTime() {
382 result.hasServerTime = false;
383 result.serverTime_ = 0;
384 return this;
385 }
386
387 public bool HasSyncRound {
388 get { return result.HasSyncRound; }
389 }
390 [global::System.CLSCompliant(false)]
391 public ulong SyncRound {
392 get { return result.SyncRound; }
393 set { SetSyncRound(value); }
394 }
395 [global::System.CLSCompliant(false)]
396 public Builder SetSyncRound(ulong value) {
397 result.hasSyncRound = true;
398 result.syncRound_ = value;
399 return this;
400 }
401 public Builder ClearSyncRound() {
402 result.hasSyncRound = false;
403 result.syncRound_ = 0UL;
404 return this;
405 }
406
407 public bool HasReturnOptions {
408 get { return result.HasReturnOptions; }
409 }
410 [global::System.CLSCompliant(false)]
411 public uint ReturnOptions {
412 get { return result.ReturnOptions; }
413 set { SetReturnOptions(value); }
414 }
415 [global::System.CLSCompliant(false)]
416 public Builder SetReturnOptions(uint value) {
417 result.hasReturnOptions = true;
418 result.returnOptions_ = value;
419 return this;
420 }
421 public Builder ClearReturnOptions() {
422 result.hasReturnOptions = false;
423 result.returnOptions_ = 0;
424 return this;
425 }
426
427 public bool HasRoundTrip {
428 get { return result.HasRoundTrip; }
429 }
430 [global::System.CLSCompliant(false)]
431 public ulong RoundTrip {
432 get { return result.RoundTrip; }
433 set { SetRoundTrip(value); }
434 }
435 [global::System.CLSCompliant(false)]
436 public Builder SetRoundTrip(ulong value) {
437 result.hasRoundTrip = true;
438 result.roundTrip_ = value;
439 return this;
440 }
441 public Builder ClearRoundTrip() {
442 result.hasRoundTrip = false;
443 result.roundTrip_ = 0;
444 return this;
445 }
446 }
447 static TimeSync() {
448 object.ReferenceEquals(global::Sirikata.Network.Protocol._PBJ_Internal.Time.Descriptor, null);
449 }
450 }
451
452 #endregion
453
454}