aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
diff options
context:
space:
mode:
authorAdam Frisby2009-12-27 15:03:10 +1100
committerAdam Frisby2009-12-27 15:03:10 +1100
commitfd777cc7b964a302f335ad91735f02554582c648 (patch)
tree4b448a6ea13b3074a5c54beed0a8744127b2930b /OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
parent* Adding Google.ProtocolBuffers.dll dependency (BSD licensed) (diff)
downloadopensim-SC-fd777cc7b964a302f335ad91735f02554582c648.zip
opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.tar.gz
opensim-SC-fd777cc7b964a302f335ad91735f02554582c648.tar.bz2
opensim-SC-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/Time.pbj.cs')
-rw-r--r--OpenSim/Client/Sirikata/Protocol/Time.pbj.cs218
1 files changed, 218 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs b/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
new file mode 100644
index 0000000..c3e9e73
--- /dev/null
+++ b/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
@@ -0,0 +1,218 @@
1using pbd = global::Google.ProtocolBuffers.Descriptors;
2using pb = global::Google.ProtocolBuffers;
3namespace Sirikata.Network.Protocol {
4 public class TimeSync : PBJ.IMessage {
5 protected _PBJ_Internal.TimeSync super;
6 public _PBJ_Internal.TimeSync _PBJSuper{ get { return super;} }
7 public TimeSync() {
8 super=new _PBJ_Internal.TimeSync();
9 }
10 public TimeSync(_PBJ_Internal.TimeSync reference) {
11 super=reference;
12 }
13 public static TimeSync defaultInstance= new TimeSync (_PBJ_Internal.TimeSync.DefaultInstance);
14 public static TimeSync DefaultInstance{
15 get {return defaultInstance;}
16 }
17 public static pbd.MessageDescriptor Descriptor {
18 get { return _PBJ_Internal.TimeSync.Descriptor; } }
19 public static class Types {
20 public enum ReturnOptions {
21 REPLY_RELIABLE=_PBJ_Internal.TimeSync.Types.ReturnOptions.REPLY_RELIABLE,
22 REPLY_ORDERED=_PBJ_Internal.TimeSync.Types.ReturnOptions.REPLY_ORDERED
23 };
24 }
25 public static bool WithinReservedFieldTagRange(int field_tag) {
26 return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
27 }
28 public static bool WithinExtensionFieldTagRange(int field_tag) {
29 return false;
30 }
31 public const int ClientTimeFieldTag=9;
32 public bool HasClientTime{ get {return super.HasClientTime&&PBJ._PBJ.ValidateTime(super.ClientTime);} }
33 public PBJ.Time ClientTime{ get {
34 if (HasClientTime) {
35 return PBJ._PBJ.CastTime(super.ClientTime);
36 } else {
37 return PBJ._PBJ.CastTime();
38 }
39 }
40 }
41 public const int ServerTimeFieldTag=10;
42 public bool HasServerTime{ get {return super.HasServerTime&&PBJ._PBJ.ValidateTime(super.ServerTime);} }
43 public PBJ.Time ServerTime{ get {
44 if (HasServerTime) {
45 return PBJ._PBJ.CastTime(super.ServerTime);
46 } else {
47 return PBJ._PBJ.CastTime();
48 }
49 }
50 }
51 public const int SyncRoundFieldTag=11;
52 public bool HasSyncRound{ get {return super.HasSyncRound&&PBJ._PBJ.ValidateUint64(super.SyncRound);} }
53 public ulong SyncRound{ get {
54 if (HasSyncRound) {
55 return PBJ._PBJ.CastUint64(super.SyncRound);
56 } else {
57 return PBJ._PBJ.CastUint64();
58 }
59 }
60 }
61 public const int ReturnOptionsFieldTag=14;
62 public bool HasReturnOptions { get {
63 if (!super.HasReturnOptions) return false;
64 return PBJ._PBJ.ValidateFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
65 } }
66 public uint ReturnOptions{ get {
67 if (HasReturnOptions) {
68 return (uint)PBJ._PBJ.CastFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
69 } else {
70 return (uint)PBJ._PBJ.CastFlags((ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
71 }
72 }
73 }
74 public const int RoundTripFieldTag=2561;
75 public bool HasRoundTrip{ get {return super.HasRoundTrip&&PBJ._PBJ.ValidateTime(super.RoundTrip);} }
76 public PBJ.Time RoundTrip{ get {
77 if (HasRoundTrip) {
78 return PBJ._PBJ.CastTime(super.RoundTrip);
79 } else {
80 return PBJ._PBJ.CastTime();
81 }
82 }
83 }
84 public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
85 public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
86 public static Builder CreateBuilder() { return new Builder(); }
87 public static Builder CreateBuilder(TimeSync prototype) {
88 return (Builder)new Builder().MergeFrom(prototype);
89 }
90 public static TimeSync ParseFrom(pb::ByteString data) {
91 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
92 }
93 public static TimeSync ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
94 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
95 }
96 public static TimeSync ParseFrom(byte[] data) {
97 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
98 }
99 public static TimeSync ParseFrom(byte[] data, pb::ExtensionRegistry er) {
100 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
101 }
102 public static TimeSync ParseFrom(global::System.IO.Stream data) {
103 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
104 }
105 public static TimeSync ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
106 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
107 }
108 public static TimeSync ParseFrom(pb::CodedInputStream data) {
109 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
110 }
111 public static TimeSync ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
112 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
113 }
114 protected override bool _HasAllPBJFields{ get {
115 return true
116 ;
117 } }
118 public bool IsInitialized { get {
119 return super.IsInitialized&&_HasAllPBJFields;
120 } }
121 public class Builder : global::PBJ.IMessage.IBuilder{
122 protected override bool _HasAllPBJFields{ get {
123 return true
124 ;
125 } }
126 public bool IsInitialized { get {
127 return super.IsInitialized&&_HasAllPBJFields;
128 } }
129 protected _PBJ_Internal.TimeSync.Builder super;
130 public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
131 public _PBJ_Internal.TimeSync.Builder _PBJSuper{ get { return super;} }
132 public Builder() {super = new _PBJ_Internal.TimeSync.Builder();}
133 public Builder(_PBJ_Internal.TimeSync.Builder other) {
134 super=other;
135 }
136 public Builder Clone() {return new Builder(super.Clone());}
137 public Builder MergeFrom(TimeSync prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
138 public Builder Clear() {super.Clear();return this;}
139 public TimeSync BuildPartial() {return new TimeSync(super.BuildPartial());}
140 public TimeSync Build() {if (_HasAllPBJFields) return new TimeSync(super.Build());return null;}
141 public pbd::MessageDescriptor DescriptorForType {
142 get { return TimeSync.Descriptor; } }
143 public Builder ClearClientTime() { super.ClearClientTime();return this;}
144 public const int ClientTimeFieldTag=9;
145 public bool HasClientTime{ get {return super.HasClientTime&&PBJ._PBJ.ValidateTime(super.ClientTime);} }
146 public PBJ.Time ClientTime{ get {
147 if (HasClientTime) {
148 return PBJ._PBJ.CastTime(super.ClientTime);
149 } else {
150 return PBJ._PBJ.CastTime();
151 }
152 }
153 set {
154 super.ClientTime=(PBJ._PBJ.Construct(value));
155 }
156 }
157 public Builder ClearServerTime() { super.ClearServerTime();return this;}
158 public const int ServerTimeFieldTag=10;
159 public bool HasServerTime{ get {return super.HasServerTime&&PBJ._PBJ.ValidateTime(super.ServerTime);} }
160 public PBJ.Time ServerTime{ get {
161 if (HasServerTime) {
162 return PBJ._PBJ.CastTime(super.ServerTime);
163 } else {
164 return PBJ._PBJ.CastTime();
165 }
166 }
167 set {
168 super.ServerTime=(PBJ._PBJ.Construct(value));
169 }
170 }
171 public Builder ClearSyncRound() { super.ClearSyncRound();return this;}
172 public const int SyncRoundFieldTag=11;
173 public bool HasSyncRound{ get {return super.HasSyncRound&&PBJ._PBJ.ValidateUint64(super.SyncRound);} }
174 public ulong SyncRound{ get {
175 if (HasSyncRound) {
176 return PBJ._PBJ.CastUint64(super.SyncRound);
177 } else {
178 return PBJ._PBJ.CastUint64();
179 }
180 }
181 set {
182 super.SyncRound=(PBJ._PBJ.Construct(value));
183 }
184 }
185 public Builder ClearReturnOptions() { super.ClearReturnOptions();return this;}
186 public const int ReturnOptionsFieldTag=14;
187 public bool HasReturnOptions { get {
188 if (!super.HasReturnOptions) return false;
189 return PBJ._PBJ.ValidateFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
190 } }
191 public uint ReturnOptions{ get {
192 if (HasReturnOptions) {
193 return (uint)PBJ._PBJ.CastFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
194 } else {
195 return (uint)PBJ._PBJ.CastFlags((ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
196 }
197 }
198 set {
199 super.ReturnOptions=((value));
200 }
201 }
202 public Builder ClearRoundTrip() { super.ClearRoundTrip();return this;}
203 public const int RoundTripFieldTag=2561;
204 public bool HasRoundTrip{ get {return super.HasRoundTrip&&PBJ._PBJ.ValidateTime(super.RoundTrip);} }
205 public PBJ.Time RoundTrip{ get {
206 if (HasRoundTrip) {
207 return PBJ._PBJ.CastTime(super.RoundTrip);
208 } else {
209 return PBJ._PBJ.CastTime();
210 }
211 }
212 set {
213 super.RoundTrip=(PBJ._PBJ.Construct(value));
214 }
215 }
216 }
217 }
218}