aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Client/Sirikata/Protocol/Time.pbj.cs245
1 files changed, 0 insertions, 245 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs b/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
deleted file mode 100644
index 15b4ae7..0000000
--- a/OpenSim/Client/Sirikata/Protocol/Time.pbj.cs
+++ /dev/null
@@ -1,245 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using pbd = global::Google.ProtocolBuffers.Descriptors;
29using pb = global::Google.ProtocolBuffers;
30namespace Sirikata.Network.Protocol {
31 public class TimeSync : PBJ.IMessage {
32 protected _PBJ_Internal.TimeSync super;
33 public _PBJ_Internal.TimeSync _PBJSuper{ get { return super;} }
34 public TimeSync() {
35 super=new _PBJ_Internal.TimeSync();
36 }
37 public TimeSync(_PBJ_Internal.TimeSync reference) {
38 super=reference;
39 }
40 public static TimeSync defaultInstance= new TimeSync (_PBJ_Internal.TimeSync.DefaultInstance);
41 public static TimeSync DefaultInstance{
42 get {return defaultInstance;}
43 }
44 public static pbd.MessageDescriptor Descriptor {
45 get { return _PBJ_Internal.TimeSync.Descriptor; } }
46 public static class Types {
47 public enum ReturnOptions {
48 REPLY_RELIABLE=_PBJ_Internal.TimeSync.Types.ReturnOptions.REPLY_RELIABLE,
49 REPLY_ORDERED=_PBJ_Internal.TimeSync.Types.ReturnOptions.REPLY_ORDERED
50 };
51 }
52 public static bool WithinReservedFieldTagRange(int field_tag) {
53 return false||(field_tag>=1&&field_tag<=8)||(field_tag>=1536&&field_tag<=2560)||(field_tag>=229376&&field_tag<=294912);
54 }
55 public static bool WithinExtensionFieldTagRange(int field_tag) {
56 return false;
57 }
58 public const int ClientTimeFieldTag=9;
59 public bool HasClientTime{ get {return super.HasClientTime&&PBJ._PBJ.ValidateTime(super.ClientTime);} }
60 public PBJ.Time ClientTime{ get {
61 if (HasClientTime) {
62 return PBJ._PBJ.CastTime(super.ClientTime);
63 } else {
64 return PBJ._PBJ.CastTime();
65 }
66 }
67 }
68 public const int ServerTimeFieldTag=10;
69 public bool HasServerTime{ get {return super.HasServerTime&&PBJ._PBJ.ValidateTime(super.ServerTime);} }
70 public PBJ.Time ServerTime{ get {
71 if (HasServerTime) {
72 return PBJ._PBJ.CastTime(super.ServerTime);
73 } else {
74 return PBJ._PBJ.CastTime();
75 }
76 }
77 }
78 public const int SyncRoundFieldTag=11;
79 public bool HasSyncRound{ get {return super.HasSyncRound&&PBJ._PBJ.ValidateUint64(super.SyncRound);} }
80 public ulong SyncRound{ get {
81 if (HasSyncRound) {
82 return PBJ._PBJ.CastUint64(super.SyncRound);
83 } else {
84 return PBJ._PBJ.CastUint64();
85 }
86 }
87 }
88 public const int ReturnOptionsFieldTag=14;
89 public bool HasReturnOptions { get {
90 if (!super.HasReturnOptions) return false;
91 return PBJ._PBJ.ValidateFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
92 } }
93 public uint ReturnOptions{ get {
94 if (HasReturnOptions) {
95 return (uint)PBJ._PBJ.CastFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
96 } else {
97 return (uint)PBJ._PBJ.CastFlags((ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
98 }
99 }
100 }
101 public const int RoundTripFieldTag=2561;
102 public bool HasRoundTrip{ get {return super.HasRoundTrip&&PBJ._PBJ.ValidateTime(super.RoundTrip);} }
103 public PBJ.Time RoundTrip{ get {
104 if (HasRoundTrip) {
105 return PBJ._PBJ.CastTime(super.RoundTrip);
106 } else {
107 return PBJ._PBJ.CastTime();
108 }
109 }
110 }
111 public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
112 public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
113 public static Builder CreateBuilder() { return new Builder(); }
114 public static Builder CreateBuilder(TimeSync prototype) {
115 return (Builder)new Builder().MergeFrom(prototype);
116 }
117 public static TimeSync ParseFrom(pb::ByteString data) {
118 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
119 }
120 public static TimeSync ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
121 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
122 }
123 public static TimeSync ParseFrom(byte[] data) {
124 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
125 }
126 public static TimeSync ParseFrom(byte[] data, pb::ExtensionRegistry er) {
127 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
128 }
129 public static TimeSync ParseFrom(global::System.IO.Stream data) {
130 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
131 }
132 public static TimeSync ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
133 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
134 }
135 public static TimeSync ParseFrom(pb::CodedInputStream data) {
136 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data));
137 }
138 public static TimeSync ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
139 return new TimeSync(_PBJ_Internal.TimeSync.ParseFrom(data,er));
140 }
141 protected override bool _HasAllPBJFields{ get {
142 return true
143 ;
144 } }
145 public bool IsInitialized { get {
146 return super.IsInitialized&&_HasAllPBJFields;
147 } }
148 public class Builder : global::PBJ.IMessage.IBuilder{
149 protected override bool _HasAllPBJFields{ get {
150 return true
151 ;
152 } }
153 public bool IsInitialized { get {
154 return super.IsInitialized&&_HasAllPBJFields;
155 } }
156 protected _PBJ_Internal.TimeSync.Builder super;
157 public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
158 public _PBJ_Internal.TimeSync.Builder _PBJSuper{ get { return super;} }
159 public Builder() {super = new _PBJ_Internal.TimeSync.Builder();}
160 public Builder(_PBJ_Internal.TimeSync.Builder other) {
161 super=other;
162 }
163 public Builder Clone() {return new Builder(super.Clone());}
164 public Builder MergeFrom(TimeSync prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
165 public Builder Clear() {super.Clear();return this;}
166 public TimeSync BuildPartial() {return new TimeSync(super.BuildPartial());}
167 public TimeSync Build() {if (_HasAllPBJFields) return new TimeSync(super.Build());return null;}
168 public pbd::MessageDescriptor DescriptorForType {
169 get { return TimeSync.Descriptor; } }
170 public Builder ClearClientTime() { super.ClearClientTime();return this;}
171 public const int ClientTimeFieldTag=9;
172 public bool HasClientTime{ get {return super.HasClientTime&&PBJ._PBJ.ValidateTime(super.ClientTime);} }
173 public PBJ.Time ClientTime{ get {
174 if (HasClientTime) {
175 return PBJ._PBJ.CastTime(super.ClientTime);
176 } else {
177 return PBJ._PBJ.CastTime();
178 }
179 }
180 set {
181 super.ClientTime=(PBJ._PBJ.Construct(value));
182 }
183 }
184 public Builder ClearServerTime() { super.ClearServerTime();return this;}
185 public const int ServerTimeFieldTag=10;
186 public bool HasServerTime{ get {return super.HasServerTime&&PBJ._PBJ.ValidateTime(super.ServerTime);} }
187 public PBJ.Time ServerTime{ get {
188 if (HasServerTime) {
189 return PBJ._PBJ.CastTime(super.ServerTime);
190 } else {
191 return PBJ._PBJ.CastTime();
192 }
193 }
194 set {
195 super.ServerTime=(PBJ._PBJ.Construct(value));
196 }
197 }
198 public Builder ClearSyncRound() { super.ClearSyncRound();return this;}
199 public const int SyncRoundFieldTag=11;
200 public bool HasSyncRound{ get {return super.HasSyncRound&&PBJ._PBJ.ValidateUint64(super.SyncRound);} }
201 public ulong SyncRound{ get {
202 if (HasSyncRound) {
203 return PBJ._PBJ.CastUint64(super.SyncRound);
204 } else {
205 return PBJ._PBJ.CastUint64();
206 }
207 }
208 set {
209 super.SyncRound=(PBJ._PBJ.Construct(value));
210 }
211 }
212 public Builder ClearReturnOptions() { super.ClearReturnOptions();return this;}
213 public const int ReturnOptionsFieldTag=14;
214 public bool HasReturnOptions { get {
215 if (!super.HasReturnOptions) return false;
216 return PBJ._PBJ.ValidateFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
217 } }
218 public uint ReturnOptions{ get {
219 if (HasReturnOptions) {
220 return (uint)PBJ._PBJ.CastFlags(super.ReturnOptions,(ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
221 } else {
222 return (uint)PBJ._PBJ.CastFlags((ulong)Types.ReturnOptions.REPLY_RELIABLE|(ulong)Types.ReturnOptions.REPLY_ORDERED);
223 }
224 }
225 set {
226 super.ReturnOptions=((value));
227 }
228 }
229 public Builder ClearRoundTrip() { super.ClearRoundTrip();return this;}
230 public const int RoundTripFieldTag=2561;
231 public bool HasRoundTrip{ get {return super.HasRoundTrip&&PBJ._PBJ.ValidateTime(super.RoundTrip);} }
232 public PBJ.Time RoundTrip{ get {
233 if (HasRoundTrip) {
234 return PBJ._PBJ.CastTime(super.RoundTrip);
235 } else {
236 return PBJ._PBJ.CastTime();
237 }
238 }
239 set {
240 super.RoundTrip=(PBJ._PBJ.Construct(value));
241 }
242 }
243 }
244 }
245}