aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Client/Sirikata/Protocol/Subscription.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Client/Sirikata/Protocol/Subscription.cs')
-rw-r--r--OpenSim/Client/Sirikata/Protocol/Subscription.cs856
1 files changed, 856 insertions, 0 deletions
diff --git a/OpenSim/Client/Sirikata/Protocol/Subscription.cs b/OpenSim/Client/Sirikata/Protocol/Subscription.cs
new file mode 100644
index 0000000..06ac8a2
--- /dev/null
+++ b/OpenSim/Client/Sirikata/Protocol/Subscription.cs
@@ -0,0 +1,856 @@
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.Subscription.Protocol._PBJ_Internal {
8
9 public static partial class Subscription {
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_Subscription_Protocol__PBJ_Internal_Address__Descriptor;
17 internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Address, global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder> internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__FieldAccessorTable;
18 internal static pbd::MessageDescriptor internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor;
19 internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe, global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.Builder> internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__FieldAccessorTable;
20 internal static pbd::MessageDescriptor internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor;
21 internal static pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast, global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.Builder> internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__FieldAccessorTable;
22 #endregion
23 #region Descriptor
24 public static pbd::FileDescriptor Descriptor {
25 get { return descriptor; }
26 }
27 private static pbd::FileDescriptor descriptor;
28
29 static Subscription() {
30 byte[] descriptorData = global::System.Convert.FromBase64String(
31 "ChJTdWJzY3JpcHRpb24ucHJvdG8SLFNpcmlrYXRhLlN1YnNjcmlwdGlvbi5Q" +
32 "cm90b2NvbC5fUEJKX0ludGVybmFsIiwKB0FkZHJlc3MSEAoIaG9zdG5hbWUY" +
33 "ASABKAkSDwoHc2VydmljZRgCIAEoCSKMAQoJU3Vic2NyaWJlElAKEWJyb2Fk" +
34 "Y2FzdF9hZGRyZXNzGAcgASgLMjUuU2lyaWthdGEuU3Vic2NyaXB0aW9uLlBy" +
35 "b3RvY29sLl9QQkpfSW50ZXJuYWwuQWRkcmVzcxIWCg5icm9hZGNhc3RfbmFt" +
36 "ZRgIIAEoDBIVCg11cGRhdGVfcGVyaW9kGAkgASgQIiMKCUJyb2FkY2FzdBIW" +
37 "Cg5icm9hZGNhc3RfbmFtZRgHIAEoDA==");
38 pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
39 descriptor = root;
40 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor = Descriptor.MessageTypes[0];
41 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__FieldAccessorTable =
42 new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Address, global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder>(internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor,
43 new string[] { "Hostname", "Service", });
44 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor = Descriptor.MessageTypes[1];
45 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__FieldAccessorTable =
46 new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe, global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.Builder>(internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor,
47 new string[] { "BroadcastAddress", "BroadcastName", "UpdatePeriod", });
48 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor = Descriptor.MessageTypes[2];
49 internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__FieldAccessorTable =
50 new pb::FieldAccess.FieldAccessorTable<global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast, global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.Builder>(internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor,
51 new string[] { "BroadcastName", });
52 return null;
53 };
54 pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
55 new pbd::FileDescriptor[] {
56 }, assigner);
57 }
58 #endregion
59
60 }
61 #region Messages
62 public sealed partial class Address : pb::GeneratedMessage<Address, Address.Builder> {
63 private static readonly Address defaultInstance = new Builder().BuildPartial();
64 public static Address DefaultInstance {
65 get { return defaultInstance; }
66 }
67
68 public override Address DefaultInstanceForType {
69 get { return defaultInstance; }
70 }
71
72 protected override Address ThisMessage {
73 get { return this; }
74 }
75
76 public static pbd::MessageDescriptor Descriptor {
77 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor; }
78 }
79
80 protected override pb::FieldAccess.FieldAccessorTable<Address, Address.Builder> InternalFieldAccessors {
81 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__FieldAccessorTable; }
82 }
83
84 public const int HostnameFieldNumber = 1;
85 private bool hasHostname;
86 private string hostname_ = "";
87 public bool HasHostname {
88 get { return hasHostname; }
89 }
90 public string Hostname {
91 get { return hostname_; }
92 }
93
94 public const int ServiceFieldNumber = 2;
95 private bool hasService;
96 private string service_ = "";
97 public bool HasService {
98 get { return hasService; }
99 }
100 public string Service {
101 get { return service_; }
102 }
103
104 public override bool IsInitialized {
105 get {
106 return true;
107 }
108 }
109
110 public override void WriteTo(pb::CodedOutputStream output) {
111 if (HasHostname) {
112 output.WriteString(1, Hostname);
113 }
114 if (HasService) {
115 output.WriteString(2, Service);
116 }
117 UnknownFields.WriteTo(output);
118 }
119
120 private int memoizedSerializedSize = -1;
121 public override int SerializedSize {
122 get {
123 int size = memoizedSerializedSize;
124 if (size != -1) return size;
125
126 size = 0;
127 if (HasHostname) {
128 size += pb::CodedOutputStream.ComputeStringSize(1, Hostname);
129 }
130 if (HasService) {
131 size += pb::CodedOutputStream.ComputeStringSize(2, Service);
132 }
133 size += UnknownFields.SerializedSize;
134 memoizedSerializedSize = size;
135 return size;
136 }
137 }
138
139 public static Address ParseFrom(pb::ByteString data) {
140 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
141 }
142 public static Address ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
143 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
144 }
145 public static Address ParseFrom(byte[] data) {
146 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
147 }
148 public static Address ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
149 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
150 }
151 public static Address ParseFrom(global::System.IO.Stream input) {
152 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
153 }
154 public static Address ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
155 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
156 }
157 public static Address ParseDelimitedFrom(global::System.IO.Stream input) {
158 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
159 }
160 public static Address ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
161 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
162 }
163 public static Address ParseFrom(pb::CodedInputStream input) {
164 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
165 }
166 public static Address ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
167 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
168 }
169 public static Builder CreateBuilder() { return new Builder(); }
170 public override Builder ToBuilder() { return CreateBuilder(this); }
171 public override Builder CreateBuilderForType() { return new Builder(); }
172 public static Builder CreateBuilder(Address prototype) {
173 return (Builder) new Builder().MergeFrom(prototype);
174 }
175
176 public sealed partial class Builder : pb::GeneratedBuilder<Address, Builder> {
177 protected override Builder ThisBuilder {
178 get { return this; }
179 }
180 public Builder() {}
181
182 Address result = new Address();
183
184 protected override Address MessageBeingBuilt {
185 get { return result; }
186 }
187
188 public override Builder Clear() {
189 result = new Address();
190 return this;
191 }
192
193 public override Builder Clone() {
194 return new Builder().MergeFrom(result);
195 }
196
197 public override pbd::MessageDescriptor DescriptorForType {
198 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Descriptor; }
199 }
200
201 public override Address DefaultInstanceForType {
202 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance; }
203 }
204
205 public override Address BuildPartial() {
206 if (result == null) {
207 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
208 }
209 Address returnMe = result;
210 result = null;
211 return returnMe;
212 }
213
214 public override Builder MergeFrom(pb::IMessage other) {
215 if (other is Address) {
216 return MergeFrom((Address) other);
217 } else {
218 base.MergeFrom(other);
219 return this;
220 }
221 }
222
223 public override Builder MergeFrom(Address other) {
224 if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance) return this;
225 if (other.HasHostname) {
226 Hostname = other.Hostname;
227 }
228 if (other.HasService) {
229 Service = other.Service;
230 }
231 this.MergeUnknownFields(other.UnknownFields);
232 return this;
233 }
234
235 public override Builder MergeFrom(pb::CodedInputStream input) {
236 return MergeFrom(input, pb::ExtensionRegistry.Empty);
237 }
238
239 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
240 pb::UnknownFieldSet.Builder unknownFields = null;
241 while (true) {
242 uint tag = input.ReadTag();
243 switch (tag) {
244 case 0: {
245 if (unknownFields != null) {
246 this.UnknownFields = unknownFields.Build();
247 }
248 return this;
249 }
250 default: {
251 if (pb::WireFormat.IsEndGroupTag(tag)) {
252 if (unknownFields != null) {
253 this.UnknownFields = unknownFields.Build();
254 }
255 return this;
256 }
257 if (unknownFields == null) {
258 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
259 }
260 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
261 break;
262 }
263 case 10: {
264 Hostname = input.ReadString();
265 break;
266 }
267 case 18: {
268 Service = input.ReadString();
269 break;
270 }
271 }
272 }
273 }
274
275
276 public bool HasHostname {
277 get { return result.HasHostname; }
278 }
279 public string Hostname {
280 get { return result.Hostname; }
281 set { SetHostname(value); }
282 }
283 public Builder SetHostname(string value) {
284 pb::ThrowHelper.ThrowIfNull(value, "value");
285 result.hasHostname = true;
286 result.hostname_ = value;
287 return this;
288 }
289 public Builder ClearHostname() {
290 result.hasHostname = false;
291 result.hostname_ = "";
292 return this;
293 }
294
295 public bool HasService {
296 get { return result.HasService; }
297 }
298 public string Service {
299 get { return result.Service; }
300 set { SetService(value); }
301 }
302 public Builder SetService(string value) {
303 pb::ThrowHelper.ThrowIfNull(value, "value");
304 result.hasService = true;
305 result.service_ = value;
306 return this;
307 }
308 public Builder ClearService() {
309 result.hasService = false;
310 result.service_ = "";
311 return this;
312 }
313 }
314 static Address() {
315 object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
316 }
317 }
318
319 public sealed partial class Subscribe : pb::GeneratedMessage<Subscribe, Subscribe.Builder> {
320 private static readonly Subscribe defaultInstance = new Builder().BuildPartial();
321 public static Subscribe DefaultInstance {
322 get { return defaultInstance; }
323 }
324
325 public override Subscribe DefaultInstanceForType {
326 get { return defaultInstance; }
327 }
328
329 protected override Subscribe ThisMessage {
330 get { return this; }
331 }
332
333 public static pbd::MessageDescriptor Descriptor {
334 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor; }
335 }
336
337 protected override pb::FieldAccess.FieldAccessorTable<Subscribe, Subscribe.Builder> InternalFieldAccessors {
338 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__FieldAccessorTable; }
339 }
340
341 public const int BroadcastAddressFieldNumber = 7;
342 private bool hasBroadcastAddress;
343 private global::Sirikata.Subscription.Protocol._PBJ_Internal.Address broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance;
344 public bool HasBroadcastAddress {
345 get { return hasBroadcastAddress; }
346 }
347 public global::Sirikata.Subscription.Protocol._PBJ_Internal.Address BroadcastAddress {
348 get { return broadcastAddress_; }
349 }
350
351 public const int BroadcastNameFieldNumber = 8;
352 private bool hasBroadcastName;
353 private pb::ByteString broadcastName_ = pb::ByteString.Empty;
354 public bool HasBroadcastName {
355 get { return hasBroadcastName; }
356 }
357 public pb::ByteString BroadcastName {
358 get { return broadcastName_; }
359 }
360
361 public const int UpdatePeriodFieldNumber = 9;
362 private bool hasUpdatePeriod;
363 private long updatePeriod_ = 0;
364 public bool HasUpdatePeriod {
365 get { return hasUpdatePeriod; }
366 }
367 public long UpdatePeriod {
368 get { return updatePeriod_; }
369 }
370
371 public override bool IsInitialized {
372 get {
373 return true;
374 }
375 }
376
377 public override void WriteTo(pb::CodedOutputStream output) {
378 if (HasBroadcastAddress) {
379 output.WriteMessage(7, BroadcastAddress);
380 }
381 if (HasBroadcastName) {
382 output.WriteBytes(8, BroadcastName);
383 }
384 if (HasUpdatePeriod) {
385 output.WriteSFixed64(9, UpdatePeriod);
386 }
387 UnknownFields.WriteTo(output);
388 }
389
390 private int memoizedSerializedSize = -1;
391 public override int SerializedSize {
392 get {
393 int size = memoizedSerializedSize;
394 if (size != -1) return size;
395
396 size = 0;
397 if (HasBroadcastAddress) {
398 size += pb::CodedOutputStream.ComputeMessageSize(7, BroadcastAddress);
399 }
400 if (HasBroadcastName) {
401 size += pb::CodedOutputStream.ComputeBytesSize(8, BroadcastName);
402 }
403 if (HasUpdatePeriod) {
404 size += pb::CodedOutputStream.ComputeSFixed64Size(9, UpdatePeriod);
405 }
406 size += UnknownFields.SerializedSize;
407 memoizedSerializedSize = size;
408 return size;
409 }
410 }
411
412 public static Subscribe ParseFrom(pb::ByteString data) {
413 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
414 }
415 public static Subscribe ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
416 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
417 }
418 public static Subscribe ParseFrom(byte[] data) {
419 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
420 }
421 public static Subscribe ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
422 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
423 }
424 public static Subscribe ParseFrom(global::System.IO.Stream input) {
425 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
426 }
427 public static Subscribe ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
428 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
429 }
430 public static Subscribe ParseDelimitedFrom(global::System.IO.Stream input) {
431 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
432 }
433 public static Subscribe ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
434 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
435 }
436 public static Subscribe ParseFrom(pb::CodedInputStream input) {
437 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
438 }
439 public static Subscribe ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
440 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
441 }
442 public static Builder CreateBuilder() { return new Builder(); }
443 public override Builder ToBuilder() { return CreateBuilder(this); }
444 public override Builder CreateBuilderForType() { return new Builder(); }
445 public static Builder CreateBuilder(Subscribe prototype) {
446 return (Builder) new Builder().MergeFrom(prototype);
447 }
448
449 public sealed partial class Builder : pb::GeneratedBuilder<Subscribe, Builder> {
450 protected override Builder ThisBuilder {
451 get { return this; }
452 }
453 public Builder() {}
454
455 Subscribe result = new Subscribe();
456
457 protected override Subscribe MessageBeingBuilt {
458 get { return result; }
459 }
460
461 public override Builder Clear() {
462 result = new Subscribe();
463 return this;
464 }
465
466 public override Builder Clone() {
467 return new Builder().MergeFrom(result);
468 }
469
470 public override pbd::MessageDescriptor DescriptorForType {
471 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.Descriptor; }
472 }
473
474 public override Subscribe DefaultInstanceForType {
475 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.DefaultInstance; }
476 }
477
478 public override Subscribe BuildPartial() {
479 if (result == null) {
480 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
481 }
482 Subscribe returnMe = result;
483 result = null;
484 return returnMe;
485 }
486
487 public override Builder MergeFrom(pb::IMessage other) {
488 if (other is Subscribe) {
489 return MergeFrom((Subscribe) other);
490 } else {
491 base.MergeFrom(other);
492 return this;
493 }
494 }
495
496 public override Builder MergeFrom(Subscribe other) {
497 if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.DefaultInstance) return this;
498 if (other.HasBroadcastAddress) {
499 MergeBroadcastAddress(other.BroadcastAddress);
500 }
501 if (other.HasBroadcastName) {
502 BroadcastName = other.BroadcastName;
503 }
504 if (other.HasUpdatePeriod) {
505 UpdatePeriod = other.UpdatePeriod;
506 }
507 this.MergeUnknownFields(other.UnknownFields);
508 return this;
509 }
510
511 public override Builder MergeFrom(pb::CodedInputStream input) {
512 return MergeFrom(input, pb::ExtensionRegistry.Empty);
513 }
514
515 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
516 pb::UnknownFieldSet.Builder unknownFields = null;
517 while (true) {
518 uint tag = input.ReadTag();
519 switch (tag) {
520 case 0: {
521 if (unknownFields != null) {
522 this.UnknownFields = unknownFields.Build();
523 }
524 return this;
525 }
526 default: {
527 if (pb::WireFormat.IsEndGroupTag(tag)) {
528 if (unknownFields != null) {
529 this.UnknownFields = unknownFields.Build();
530 }
531 return this;
532 }
533 if (unknownFields == null) {
534 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
535 }
536 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
537 break;
538 }
539 case 58: {
540 global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder subBuilder = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.CreateBuilder();
541 if (HasBroadcastAddress) {
542 subBuilder.MergeFrom(BroadcastAddress);
543 }
544 input.ReadMessage(subBuilder, extensionRegistry);
545 BroadcastAddress = subBuilder.BuildPartial();
546 break;
547 }
548 case 66: {
549 BroadcastName = input.ReadBytes();
550 break;
551 }
552 case 73: {
553 UpdatePeriod = input.ReadSFixed64();
554 break;
555 }
556 }
557 }
558 }
559
560
561 public bool HasBroadcastAddress {
562 get { return result.HasBroadcastAddress; }
563 }
564 public global::Sirikata.Subscription.Protocol._PBJ_Internal.Address BroadcastAddress {
565 get { return result.BroadcastAddress; }
566 set { SetBroadcastAddress(value); }
567 }
568 public Builder SetBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address value) {
569 pb::ThrowHelper.ThrowIfNull(value, "value");
570 result.hasBroadcastAddress = true;
571 result.broadcastAddress_ = value;
572 return this;
573 }
574 public Builder SetBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder builderForValue) {
575 pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
576 result.hasBroadcastAddress = true;
577 result.broadcastAddress_ = builderForValue.Build();
578 return this;
579 }
580 public Builder MergeBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address value) {
581 pb::ThrowHelper.ThrowIfNull(value, "value");
582 if (result.HasBroadcastAddress &&
583 result.broadcastAddress_ != global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance) {
584 result.broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.CreateBuilder(result.broadcastAddress_).MergeFrom(value).BuildPartial();
585 } else {
586 result.broadcastAddress_ = value;
587 }
588 result.hasBroadcastAddress = true;
589 return this;
590 }
591 public Builder ClearBroadcastAddress() {
592 result.hasBroadcastAddress = false;
593 result.broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance;
594 return this;
595 }
596
597 public bool HasBroadcastName {
598 get { return result.HasBroadcastName; }
599 }
600 public pb::ByteString BroadcastName {
601 get { return result.BroadcastName; }
602 set { SetBroadcastName(value); }
603 }
604 public Builder SetBroadcastName(pb::ByteString value) {
605 pb::ThrowHelper.ThrowIfNull(value, "value");
606 result.hasBroadcastName = true;
607 result.broadcastName_ = value;
608 return this;
609 }
610 public Builder ClearBroadcastName() {
611 result.hasBroadcastName = false;
612 result.broadcastName_ = pb::ByteString.Empty;
613 return this;
614 }
615
616 public bool HasUpdatePeriod {
617 get { return result.HasUpdatePeriod; }
618 }
619 public long UpdatePeriod {
620 get { return result.UpdatePeriod; }
621 set { SetUpdatePeriod(value); }
622 }
623 public Builder SetUpdatePeriod(long value) {
624 result.hasUpdatePeriod = true;
625 result.updatePeriod_ = value;
626 return this;
627 }
628 public Builder ClearUpdatePeriod() {
629 result.hasUpdatePeriod = false;
630 result.updatePeriod_ = 0;
631 return this;
632 }
633 }
634 static Subscribe() {
635 object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
636 }
637 }
638
639 public sealed partial class Broadcast : pb::GeneratedMessage<Broadcast, Broadcast.Builder> {
640 private static readonly Broadcast defaultInstance = new Builder().BuildPartial();
641 public static Broadcast DefaultInstance {
642 get { return defaultInstance; }
643 }
644
645 public override Broadcast DefaultInstanceForType {
646 get { return defaultInstance; }
647 }
648
649 protected override Broadcast ThisMessage {
650 get { return this; }
651 }
652
653 public static pbd::MessageDescriptor Descriptor {
654 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor; }
655 }
656
657 protected override pb::FieldAccess.FieldAccessorTable<Broadcast, Broadcast.Builder> InternalFieldAccessors {
658 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__FieldAccessorTable; }
659 }
660
661 public const int BroadcastNameFieldNumber = 7;
662 private bool hasBroadcastName;
663 private pb::ByteString broadcastName_ = pb::ByteString.Empty;
664 public bool HasBroadcastName {
665 get { return hasBroadcastName; }
666 }
667 public pb::ByteString BroadcastName {
668 get { return broadcastName_; }
669 }
670
671 public override bool IsInitialized {
672 get {
673 return true;
674 }
675 }
676
677 public override void WriteTo(pb::CodedOutputStream output) {
678 if (HasBroadcastName) {
679 output.WriteBytes(7, BroadcastName);
680 }
681 UnknownFields.WriteTo(output);
682 }
683
684 private int memoizedSerializedSize = -1;
685 public override int SerializedSize {
686 get {
687 int size = memoizedSerializedSize;
688 if (size != -1) return size;
689
690 size = 0;
691 if (HasBroadcastName) {
692 size += pb::CodedOutputStream.ComputeBytesSize(7, BroadcastName);
693 }
694 size += UnknownFields.SerializedSize;
695 memoizedSerializedSize = size;
696 return size;
697 }
698 }
699
700 public static Broadcast ParseFrom(pb::ByteString data) {
701 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
702 }
703 public static Broadcast ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
704 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
705 }
706 public static Broadcast ParseFrom(byte[] data) {
707 return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
708 }
709 public static Broadcast ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
710 return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
711 }
712 public static Broadcast ParseFrom(global::System.IO.Stream input) {
713 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
714 }
715 public static Broadcast ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
716 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
717 }
718 public static Broadcast ParseDelimitedFrom(global::System.IO.Stream input) {
719 return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
720 }
721 public static Broadcast ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
722 return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
723 }
724 public static Broadcast ParseFrom(pb::CodedInputStream input) {
725 return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
726 }
727 public static Broadcast ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
728 return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
729 }
730 public static Builder CreateBuilder() { return new Builder(); }
731 public override Builder ToBuilder() { return CreateBuilder(this); }
732 public override Builder CreateBuilderForType() { return new Builder(); }
733 public static Builder CreateBuilder(Broadcast prototype) {
734 return (Builder) new Builder().MergeFrom(prototype);
735 }
736
737 public sealed partial class Builder : pb::GeneratedBuilder<Broadcast, Builder> {
738 protected override Builder ThisBuilder {
739 get { return this; }
740 }
741 public Builder() {}
742
743 Broadcast result = new Broadcast();
744
745 protected override Broadcast MessageBeingBuilt {
746 get { return result; }
747 }
748
749 public override Builder Clear() {
750 result = new Broadcast();
751 return this;
752 }
753
754 public override Builder Clone() {
755 return new Builder().MergeFrom(result);
756 }
757
758 public override pbd::MessageDescriptor DescriptorForType {
759 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.Descriptor; }
760 }
761
762 public override Broadcast DefaultInstanceForType {
763 get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.DefaultInstance; }
764 }
765
766 public override Broadcast BuildPartial() {
767 if (result == null) {
768 throw new global::System.InvalidOperationException("build() has already been called on this Builder");
769 }
770 Broadcast returnMe = result;
771 result = null;
772 return returnMe;
773 }
774
775 public override Builder MergeFrom(pb::IMessage other) {
776 if (other is Broadcast) {
777 return MergeFrom((Broadcast) other);
778 } else {
779 base.MergeFrom(other);
780 return this;
781 }
782 }
783
784 public override Builder MergeFrom(Broadcast other) {
785 if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.DefaultInstance) return this;
786 if (other.HasBroadcastName) {
787 BroadcastName = other.BroadcastName;
788 }
789 this.MergeUnknownFields(other.UnknownFields);
790 return this;
791 }
792
793 public override Builder MergeFrom(pb::CodedInputStream input) {
794 return MergeFrom(input, pb::ExtensionRegistry.Empty);
795 }
796
797 public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
798 pb::UnknownFieldSet.Builder unknownFields = null;
799 while (true) {
800 uint tag = input.ReadTag();
801 switch (tag) {
802 case 0: {
803 if (unknownFields != null) {
804 this.UnknownFields = unknownFields.Build();
805 }
806 return this;
807 }
808 default: {
809 if (pb::WireFormat.IsEndGroupTag(tag)) {
810 if (unknownFields != null) {
811 this.UnknownFields = unknownFields.Build();
812 }
813 return this;
814 }
815 if (unknownFields == null) {
816 unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
817 }
818 ParseUnknownField(input, unknownFields, extensionRegistry, tag);
819 break;
820 }
821 case 58: {
822 BroadcastName = input.ReadBytes();
823 break;
824 }
825 }
826 }
827 }
828
829
830 public bool HasBroadcastName {
831 get { return result.HasBroadcastName; }
832 }
833 public pb::ByteString BroadcastName {
834 get { return result.BroadcastName; }
835 set { SetBroadcastName(value); }
836 }
837 public Builder SetBroadcastName(pb::ByteString value) {
838 pb::ThrowHelper.ThrowIfNull(value, "value");
839 result.hasBroadcastName = true;
840 result.broadcastName_ = value;
841 return this;
842 }
843 public Builder ClearBroadcastName() {
844 result.hasBroadcastName = false;
845 result.broadcastName_ = pb::ByteString.Empty;
846 return this;
847 }
848 }
849 static Broadcast() {
850 object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
851 }
852 }
853
854 #endregion
855
856}