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/MessageHeader.pbj.cs | |
parent | * Adding Google.ProtocolBuffers.dll dependency (BSD licensed) (diff) | |
download | opensim-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 '')
-rw-r--r-- | OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs | 312 |
1 files changed, 312 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs b/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs new file mode 100644 index 0000000..eadb43b --- /dev/null +++ b/OpenSim/Client/Sirikata/Protocol/MessageHeader.pbj.cs | |||
@@ -0,0 +1,312 @@ | |||
1 | using pbd = global::Google.ProtocolBuffers.Descriptors; | ||
2 | using pb = global::Google.ProtocolBuffers; | ||
3 | namespace Sirikata.Protocol { | ||
4 | public class Header : PBJ.IMessage { | ||
5 | protected _PBJ_Internal.Header super; | ||
6 | public _PBJ_Internal.Header _PBJSuper{ get { return super;} } | ||
7 | public Header() { | ||
8 | super=new _PBJ_Internal.Header(); | ||
9 | } | ||
10 | public Header(_PBJ_Internal.Header reference) { | ||
11 | super=reference; | ||
12 | } | ||
13 | public static Header defaultInstance= new Header (_PBJ_Internal.Header.DefaultInstance); | ||
14 | public static Header DefaultInstance{ | ||
15 | get {return defaultInstance;} | ||
16 | } | ||
17 | public static pbd.MessageDescriptor Descriptor { | ||
18 | get { return _PBJ_Internal.Header.Descriptor; } } | ||
19 | public static class Types { | ||
20 | public enum ReturnStatus { | ||
21 | SUCCESS=_PBJ_Internal.Header.Types.ReturnStatus.SUCCESS, | ||
22 | NETWORK_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.NETWORK_FAILURE, | ||
23 | TIMEOUT_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.TIMEOUT_FAILURE, | ||
24 | PROTOCOL_ERROR=_PBJ_Internal.Header.Types.ReturnStatus.PROTOCOL_ERROR, | ||
25 | PORT_FAILURE=_PBJ_Internal.Header.Types.ReturnStatus.PORT_FAILURE, | ||
26 | UNKNOWN_OBJECT=_PBJ_Internal.Header.Types.ReturnStatus.UNKNOWN_OBJECT | ||
27 | }; | ||
28 | } | ||
29 | public static bool WithinReservedFieldTagRange(int field_tag) { | ||
30 | return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912); | ||
31 | } | ||
32 | public static bool WithinExtensionFieldTagRange(int field_tag) { | ||
33 | return false; | ||
34 | } | ||
35 | public const int SourceObjectFieldTag=1; | ||
36 | public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} } | ||
37 | public PBJ.UUID SourceObject{ get { | ||
38 | if (HasSourceObject) { | ||
39 | return PBJ._PBJ.CastUuid(super.SourceObject); | ||
40 | } else { | ||
41 | return PBJ._PBJ.CastUuid(); | ||
42 | } | ||
43 | } | ||
44 | } | ||
45 | public const int SourcePortFieldTag=3; | ||
46 | public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} } | ||
47 | public uint SourcePort{ get { | ||
48 | if (HasSourcePort) { | ||
49 | return PBJ._PBJ.CastUint32(super.SourcePort); | ||
50 | } else { | ||
51 | return PBJ._PBJ.CastUint32(); | ||
52 | } | ||
53 | } | ||
54 | } | ||
55 | public const int SourceSpaceFieldTag=1536; | ||
56 | public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} } | ||
57 | public PBJ.UUID SourceSpace{ get { | ||
58 | if (HasSourceSpace) { | ||
59 | return PBJ._PBJ.CastUuid(super.SourceSpace); | ||
60 | } else { | ||
61 | return PBJ._PBJ.CastUuid(); | ||
62 | } | ||
63 | } | ||
64 | } | ||
65 | public const int DestinationObjectFieldTag=2; | ||
66 | public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} } | ||
67 | public PBJ.UUID DestinationObject{ get { | ||
68 | if (HasDestinationObject) { | ||
69 | return PBJ._PBJ.CastUuid(super.DestinationObject); | ||
70 | } else { | ||
71 | return PBJ._PBJ.CastUuid(); | ||
72 | } | ||
73 | } | ||
74 | } | ||
75 | public const int DestinationPortFieldTag=4; | ||
76 | public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} } | ||
77 | public uint DestinationPort{ get { | ||
78 | if (HasDestinationPort) { | ||
79 | return PBJ._PBJ.CastUint32(super.DestinationPort); | ||
80 | } else { | ||
81 | return PBJ._PBJ.CastUint32(); | ||
82 | } | ||
83 | } | ||
84 | } | ||
85 | public const int DestinationSpaceFieldTag=1537; | ||
86 | public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} } | ||
87 | public PBJ.UUID DestinationSpace{ get { | ||
88 | if (HasDestinationSpace) { | ||
89 | return PBJ._PBJ.CastUuid(super.DestinationSpace); | ||
90 | } else { | ||
91 | return PBJ._PBJ.CastUuid(); | ||
92 | } | ||
93 | } | ||
94 | } | ||
95 | public const int IdFieldTag=7; | ||
96 | public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} } | ||
97 | public long Id{ get { | ||
98 | if (HasId) { | ||
99 | return PBJ._PBJ.CastInt64(super.Id); | ||
100 | } else { | ||
101 | return PBJ._PBJ.CastInt64(); | ||
102 | } | ||
103 | } | ||
104 | } | ||
105 | public const int ReplyIdFieldTag=8; | ||
106 | public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} } | ||
107 | public long ReplyId{ get { | ||
108 | if (HasReplyId) { | ||
109 | return PBJ._PBJ.CastInt64(super.ReplyId); | ||
110 | } else { | ||
111 | return PBJ._PBJ.CastInt64(); | ||
112 | } | ||
113 | } | ||
114 | } | ||
115 | public const int ReturnStatusFieldTag=1792; | ||
116 | public bool HasReturnStatus{ get {return super.HasReturnStatus;} } | ||
117 | public Types.ReturnStatus ReturnStatus{ get { | ||
118 | if (HasReturnStatus) { | ||
119 | return (Types.ReturnStatus)super.ReturnStatus; | ||
120 | } else { | ||
121 | return new Types.ReturnStatus(); | ||
122 | } | ||
123 | } | ||
124 | } | ||
125 | public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } } | ||
126 | public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); } | ||
127 | public static Builder CreateBuilder() { return new Builder(); } | ||
128 | public static Builder CreateBuilder(Header prototype) { | ||
129 | return (Builder)new Builder().MergeFrom(prototype); | ||
130 | } | ||
131 | public static Header ParseFrom(pb::ByteString data) { | ||
132 | return new Header(_PBJ_Internal.Header.ParseFrom(data)); | ||
133 | } | ||
134 | public static Header ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) { | ||
135 | return new Header(_PBJ_Internal.Header.ParseFrom(data,er)); | ||
136 | } | ||
137 | public static Header ParseFrom(byte[] data) { | ||
138 | return new Header(_PBJ_Internal.Header.ParseFrom(data)); | ||
139 | } | ||
140 | public static Header ParseFrom(byte[] data, pb::ExtensionRegistry er) { | ||
141 | return new Header(_PBJ_Internal.Header.ParseFrom(data,er)); | ||
142 | } | ||
143 | public static Header ParseFrom(global::System.IO.Stream data) { | ||
144 | return new Header(_PBJ_Internal.Header.ParseFrom(data)); | ||
145 | } | ||
146 | public static Header ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) { | ||
147 | return new Header(_PBJ_Internal.Header.ParseFrom(data,er)); | ||
148 | } | ||
149 | public static Header ParseFrom(pb::CodedInputStream data) { | ||
150 | return new Header(_PBJ_Internal.Header.ParseFrom(data)); | ||
151 | } | ||
152 | public static Header ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) { | ||
153 | return new Header(_PBJ_Internal.Header.ParseFrom(data,er)); | ||
154 | } | ||
155 | protected override bool _HasAllPBJFields{ get { | ||
156 | return true | ||
157 | ; | ||
158 | } } | ||
159 | public bool IsInitialized { get { | ||
160 | return super.IsInitialized&&_HasAllPBJFields; | ||
161 | } } | ||
162 | public class Builder : global::PBJ.IMessage.IBuilder{ | ||
163 | protected override bool _HasAllPBJFields{ get { | ||
164 | return true | ||
165 | ; | ||
166 | } } | ||
167 | public bool IsInitialized { get { | ||
168 | return super.IsInitialized&&_HasAllPBJFields; | ||
169 | } } | ||
170 | protected _PBJ_Internal.Header.Builder super; | ||
171 | public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } } | ||
172 | public _PBJ_Internal.Header.Builder _PBJSuper{ get { return super;} } | ||
173 | public Builder() {super = new _PBJ_Internal.Header.Builder();} | ||
174 | public Builder(_PBJ_Internal.Header.Builder other) { | ||
175 | super=other; | ||
176 | } | ||
177 | public Builder Clone() {return new Builder(super.Clone());} | ||
178 | public Builder MergeFrom(Header prototype) { super.MergeFrom(prototype._PBJSuper);return this;} | ||
179 | public Builder Clear() {super.Clear();return this;} | ||
180 | public Header BuildPartial() {return new Header(super.BuildPartial());} | ||
181 | public Header Build() {if (_HasAllPBJFields) return new Header(super.Build());return null;} | ||
182 | public pbd::MessageDescriptor DescriptorForType { | ||
183 | get { return Header.Descriptor; } } | ||
184 | public Builder ClearSourceObject() { super.ClearSourceObject();return this;} | ||
185 | public const int SourceObjectFieldTag=1; | ||
186 | public bool HasSourceObject{ get {return super.HasSourceObject&&PBJ._PBJ.ValidateUuid(super.SourceObject);} } | ||
187 | public PBJ.UUID SourceObject{ get { | ||
188 | if (HasSourceObject) { | ||
189 | return PBJ._PBJ.CastUuid(super.SourceObject); | ||
190 | } else { | ||
191 | return PBJ._PBJ.CastUuid(); | ||
192 | } | ||
193 | } | ||
194 | set { | ||
195 | super.SourceObject=(PBJ._PBJ.Construct(value)); | ||
196 | } | ||
197 | } | ||
198 | public Builder ClearSourcePort() { super.ClearSourcePort();return this;} | ||
199 | public const int SourcePortFieldTag=3; | ||
200 | public bool HasSourcePort{ get {return super.HasSourcePort&&PBJ._PBJ.ValidateUint32(super.SourcePort);} } | ||
201 | public uint SourcePort{ get { | ||
202 | if (HasSourcePort) { | ||
203 | return PBJ._PBJ.CastUint32(super.SourcePort); | ||
204 | } else { | ||
205 | return PBJ._PBJ.CastUint32(); | ||
206 | } | ||
207 | } | ||
208 | set { | ||
209 | super.SourcePort=(PBJ._PBJ.Construct(value)); | ||
210 | } | ||
211 | } | ||
212 | public Builder ClearSourceSpace() { super.ClearSourceSpace();return this;} | ||
213 | public const int SourceSpaceFieldTag=1536; | ||
214 | public bool HasSourceSpace{ get {return super.HasSourceSpace&&PBJ._PBJ.ValidateUuid(super.SourceSpace);} } | ||
215 | public PBJ.UUID SourceSpace{ get { | ||
216 | if (HasSourceSpace) { | ||
217 | return PBJ._PBJ.CastUuid(super.SourceSpace); | ||
218 | } else { | ||
219 | return PBJ._PBJ.CastUuid(); | ||
220 | } | ||
221 | } | ||
222 | set { | ||
223 | super.SourceSpace=(PBJ._PBJ.Construct(value)); | ||
224 | } | ||
225 | } | ||
226 | public Builder ClearDestinationObject() { super.ClearDestinationObject();return this;} | ||
227 | public const int DestinationObjectFieldTag=2; | ||
228 | public bool HasDestinationObject{ get {return super.HasDestinationObject&&PBJ._PBJ.ValidateUuid(super.DestinationObject);} } | ||
229 | public PBJ.UUID DestinationObject{ get { | ||
230 | if (HasDestinationObject) { | ||
231 | return PBJ._PBJ.CastUuid(super.DestinationObject); | ||
232 | } else { | ||
233 | return PBJ._PBJ.CastUuid(); | ||
234 | } | ||
235 | } | ||
236 | set { | ||
237 | super.DestinationObject=(PBJ._PBJ.Construct(value)); | ||
238 | } | ||
239 | } | ||
240 | public Builder ClearDestinationPort() { super.ClearDestinationPort();return this;} | ||
241 | public const int DestinationPortFieldTag=4; | ||
242 | public bool HasDestinationPort{ get {return super.HasDestinationPort&&PBJ._PBJ.ValidateUint32(super.DestinationPort);} } | ||
243 | public uint DestinationPort{ get { | ||
244 | if (HasDestinationPort) { | ||
245 | return PBJ._PBJ.CastUint32(super.DestinationPort); | ||
246 | } else { | ||
247 | return PBJ._PBJ.CastUint32(); | ||
248 | } | ||
249 | } | ||
250 | set { | ||
251 | super.DestinationPort=(PBJ._PBJ.Construct(value)); | ||
252 | } | ||
253 | } | ||
254 | public Builder ClearDestinationSpace() { super.ClearDestinationSpace();return this;} | ||
255 | public const int DestinationSpaceFieldTag=1537; | ||
256 | public bool HasDestinationSpace{ get {return super.HasDestinationSpace&&PBJ._PBJ.ValidateUuid(super.DestinationSpace);} } | ||
257 | public PBJ.UUID DestinationSpace{ get { | ||
258 | if (HasDestinationSpace) { | ||
259 | return PBJ._PBJ.CastUuid(super.DestinationSpace); | ||
260 | } else { | ||
261 | return PBJ._PBJ.CastUuid(); | ||
262 | } | ||
263 | } | ||
264 | set { | ||
265 | super.DestinationSpace=(PBJ._PBJ.Construct(value)); | ||
266 | } | ||
267 | } | ||
268 | public Builder ClearId() { super.ClearId();return this;} | ||
269 | public const int IdFieldTag=7; | ||
270 | public bool HasId{ get {return super.HasId&&PBJ._PBJ.ValidateInt64(super.Id);} } | ||
271 | public long Id{ get { | ||
272 | if (HasId) { | ||
273 | return PBJ._PBJ.CastInt64(super.Id); | ||
274 | } else { | ||
275 | return PBJ._PBJ.CastInt64(); | ||
276 | } | ||
277 | } | ||
278 | set { | ||
279 | super.Id=(PBJ._PBJ.Construct(value)); | ||
280 | } | ||
281 | } | ||
282 | public Builder ClearReplyId() { super.ClearReplyId();return this;} | ||
283 | public const int ReplyIdFieldTag=8; | ||
284 | public bool HasReplyId{ get {return super.HasReplyId&&PBJ._PBJ.ValidateInt64(super.ReplyId);} } | ||
285 | public long ReplyId{ get { | ||
286 | if (HasReplyId) { | ||
287 | return PBJ._PBJ.CastInt64(super.ReplyId); | ||
288 | } else { | ||
289 | return PBJ._PBJ.CastInt64(); | ||
290 | } | ||
291 | } | ||
292 | set { | ||
293 | super.ReplyId=(PBJ._PBJ.Construct(value)); | ||
294 | } | ||
295 | } | ||
296 | public Builder ClearReturnStatus() { super.ClearReturnStatus();return this;} | ||
297 | public const int ReturnStatusFieldTag=1792; | ||
298 | public bool HasReturnStatus{ get {return super.HasReturnStatus;} } | ||
299 | public Types.ReturnStatus ReturnStatus{ get { | ||
300 | if (HasReturnStatus) { | ||
301 | return (Types.ReturnStatus)super.ReturnStatus; | ||
302 | } else { | ||
303 | return new Types.ReturnStatus(); | ||
304 | } | ||
305 | } | ||
306 | set { | ||
307 | super.ReturnStatus=((_PBJ_Internal.Header.Types.ReturnStatus)value); | ||
308 | } | ||
309 | } | ||
310 | } | ||
311 | } | ||
312 | } | ||