123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- using pb = global::Google.ProtocolBuffers;
- using pbc = global::Google.ProtocolBuffers.Collections;
- using pbd = global::Google.ProtocolBuffers.Descriptors;
- using scg = global::System.Collections.Generic;
- namespace Sirikata.Subscription.Protocol._PBJ_Internal {
-
- public static partial class Subscription {
-
- #region Extension registration
- public static void RegisterAllExtensions(pb::ExtensionRegistry registry) {
- }
- #endregion
- #region Static variables
- internal static pbd::MessageDescriptor internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor;
- 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;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor;
- 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;
- internal static pbd::MessageDescriptor internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor;
- 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;
- #endregion
- #region Descriptor
- public static pbd::FileDescriptor Descriptor {
- get { return descriptor; }
- }
- private static pbd::FileDescriptor descriptor;
-
- static Subscription() {
- byte[] descriptorData = global::System.Convert.FromBase64String(
- "ChJTdWJzY3JpcHRpb24ucHJvdG8SLFNpcmlrYXRhLlN1YnNjcmlwdGlvbi5Q" +
- "cm90b2NvbC5fUEJKX0ludGVybmFsIiwKB0FkZHJlc3MSEAoIaG9zdG5hbWUY" +
- "ASABKAkSDwoHc2VydmljZRgCIAEoCSKMAQoJU3Vic2NyaWJlElAKEWJyb2Fk" +
- "Y2FzdF9hZGRyZXNzGAcgASgLMjUuU2lyaWthdGEuU3Vic2NyaXB0aW9uLlBy" +
- "b3RvY29sLl9QQkpfSW50ZXJuYWwuQWRkcmVzcxIWCg5icm9hZGNhc3RfbmFt" +
- "ZRgIIAEoDBIVCg11cGRhdGVfcGVyaW9kGAkgASgQIiMKCUJyb2FkY2FzdBIW" +
- "Cg5icm9hZGNhc3RfbmFtZRgHIAEoDA==");
- pbd::FileDescriptor.InternalDescriptorAssigner assigner = delegate(pbd::FileDescriptor root) {
- descriptor = root;
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor = Descriptor.MessageTypes[0];
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__FieldAccessorTable =
- 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,
- new string[] { "Hostname", "Service", });
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor = Descriptor.MessageTypes[1];
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__FieldAccessorTable =
- 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,
- new string[] { "BroadcastAddress", "BroadcastName", "UpdatePeriod", });
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor = Descriptor.MessageTypes[2];
- internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__FieldAccessorTable =
- 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,
- new string[] { "BroadcastName", });
- return null;
- };
- pbd::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData,
- new pbd::FileDescriptor[] {
- }, assigner);
- }
- #endregion
-
- }
- #region Messages
- public sealed partial class Address : pb::GeneratedMessage<Address, Address.Builder> {
- private static readonly Address defaultInstance = new Builder().BuildPartial();
- public static Address DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Address DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Address ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable<Address, Address.Builder> InternalFieldAccessors {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Address__FieldAccessorTable; }
- }
-
- public const int HostnameFieldNumber = 1;
- private bool hasHostname;
- private string hostname_ = "";
- public bool HasHostname {
- get { return hasHostname; }
- }
- public string Hostname {
- get { return hostname_; }
- }
-
- public const int ServiceFieldNumber = 2;
- private bool hasService;
- private string service_ = "";
- public bool HasService {
- get { return hasService; }
- }
- public string Service {
- get { return service_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasHostname) {
- output.WriteString(1, Hostname);
- }
- if (HasService) {
- output.WriteString(2, Service);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasHostname) {
- size += pb::CodedOutputStream.ComputeStringSize(1, Hostname);
- }
- if (HasService) {
- size += pb::CodedOutputStream.ComputeStringSize(2, Service);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Address ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Address ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Address ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Address ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Address ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Address ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Address ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Address ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Address ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Address ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Address prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder<Address, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Address result = new Address();
-
- protected override Address MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Address();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Descriptor; }
- }
-
- public override Address DefaultInstanceForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance; }
- }
-
- public override Address BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- Address returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Address) {
- return MergeFrom((Address) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Address other) {
- if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance) return this;
- if (other.HasHostname) {
- Hostname = other.Hostname;
- }
- if (other.HasService) {
- Service = other.Service;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 10: {
- Hostname = input.ReadString();
- break;
- }
- case 18: {
- Service = input.ReadString();
- break;
- }
- }
- }
- }
-
-
- public bool HasHostname {
- get { return result.HasHostname; }
- }
- public string Hostname {
- get { return result.Hostname; }
- set { SetHostname(value); }
- }
- public Builder SetHostname(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasHostname = true;
- result.hostname_ = value;
- return this;
- }
- public Builder ClearHostname() {
- result.hasHostname = false;
- result.hostname_ = "";
- return this;
- }
-
- public bool HasService {
- get { return result.HasService; }
- }
- public string Service {
- get { return result.Service; }
- set { SetService(value); }
- }
- public Builder SetService(string value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasService = true;
- result.service_ = value;
- return this;
- }
- public Builder ClearService() {
- result.hasService = false;
- result.service_ = "";
- return this;
- }
- }
- static Address() {
- object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
- }
- }
-
- public sealed partial class Subscribe : pb::GeneratedMessage<Subscribe, Subscribe.Builder> {
- private static readonly Subscribe defaultInstance = new Builder().BuildPartial();
- public static Subscribe DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Subscribe DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Subscribe ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable<Subscribe, Subscribe.Builder> InternalFieldAccessors {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Subscribe__FieldAccessorTable; }
- }
-
- public const int BroadcastAddressFieldNumber = 7;
- private bool hasBroadcastAddress;
- private global::Sirikata.Subscription.Protocol._PBJ_Internal.Address broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance;
- public bool HasBroadcastAddress {
- get { return hasBroadcastAddress; }
- }
- public global::Sirikata.Subscription.Protocol._PBJ_Internal.Address BroadcastAddress {
- get { return broadcastAddress_; }
- }
-
- public const int BroadcastNameFieldNumber = 8;
- private bool hasBroadcastName;
- private pb::ByteString broadcastName_ = pb::ByteString.Empty;
- public bool HasBroadcastName {
- get { return hasBroadcastName; }
- }
- public pb::ByteString BroadcastName {
- get { return broadcastName_; }
- }
-
- public const int UpdatePeriodFieldNumber = 9;
- private bool hasUpdatePeriod;
- private long updatePeriod_ = 0;
- public bool HasUpdatePeriod {
- get { return hasUpdatePeriod; }
- }
- public long UpdatePeriod {
- get { return updatePeriod_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasBroadcastAddress) {
- output.WriteMessage(7, BroadcastAddress);
- }
- if (HasBroadcastName) {
- output.WriteBytes(8, BroadcastName);
- }
- if (HasUpdatePeriod) {
- output.WriteSFixed64(9, UpdatePeriod);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasBroadcastAddress) {
- size += pb::CodedOutputStream.ComputeMessageSize(7, BroadcastAddress);
- }
- if (HasBroadcastName) {
- size += pb::CodedOutputStream.ComputeBytesSize(8, BroadcastName);
- }
- if (HasUpdatePeriod) {
- size += pb::CodedOutputStream.ComputeSFixed64Size(9, UpdatePeriod);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Subscribe ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Subscribe ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Subscribe ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Subscribe ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Subscribe ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Subscribe ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Subscribe ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Subscribe ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Subscribe ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Subscribe ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Subscribe prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder<Subscribe, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Subscribe result = new Subscribe();
-
- protected override Subscribe MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Subscribe();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.Descriptor; }
- }
-
- public override Subscribe DefaultInstanceForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.DefaultInstance; }
- }
-
- public override Subscribe BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- Subscribe returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Subscribe) {
- return MergeFrom((Subscribe) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Subscribe other) {
- if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscribe.DefaultInstance) return this;
- if (other.HasBroadcastAddress) {
- MergeBroadcastAddress(other.BroadcastAddress);
- }
- if (other.HasBroadcastName) {
- BroadcastName = other.BroadcastName;
- }
- if (other.HasUpdatePeriod) {
- UpdatePeriod = other.UpdatePeriod;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 58: {
- global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder subBuilder = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.CreateBuilder();
- if (HasBroadcastAddress) {
- subBuilder.MergeFrom(BroadcastAddress);
- }
- input.ReadMessage(subBuilder, extensionRegistry);
- BroadcastAddress = subBuilder.BuildPartial();
- break;
- }
- case 66: {
- BroadcastName = input.ReadBytes();
- break;
- }
- case 73: {
- UpdatePeriod = input.ReadSFixed64();
- break;
- }
- }
- }
- }
-
-
- public bool HasBroadcastAddress {
- get { return result.HasBroadcastAddress; }
- }
- public global::Sirikata.Subscription.Protocol._PBJ_Internal.Address BroadcastAddress {
- get { return result.BroadcastAddress; }
- set { SetBroadcastAddress(value); }
- }
- public Builder SetBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasBroadcastAddress = true;
- result.broadcastAddress_ = value;
- return this;
- }
- public Builder SetBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.Builder builderForValue) {
- pb::ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
- result.hasBroadcastAddress = true;
- result.broadcastAddress_ = builderForValue.Build();
- return this;
- }
- public Builder MergeBroadcastAddress(global::Sirikata.Subscription.Protocol._PBJ_Internal.Address value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- if (result.HasBroadcastAddress &&
- result.broadcastAddress_ != global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance) {
- result.broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.CreateBuilder(result.broadcastAddress_).MergeFrom(value).BuildPartial();
- } else {
- result.broadcastAddress_ = value;
- }
- result.hasBroadcastAddress = true;
- return this;
- }
- public Builder ClearBroadcastAddress() {
- result.hasBroadcastAddress = false;
- result.broadcastAddress_ = global::Sirikata.Subscription.Protocol._PBJ_Internal.Address.DefaultInstance;
- return this;
- }
-
- public bool HasBroadcastName {
- get { return result.HasBroadcastName; }
- }
- public pb::ByteString BroadcastName {
- get { return result.BroadcastName; }
- set { SetBroadcastName(value); }
- }
- public Builder SetBroadcastName(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasBroadcastName = true;
- result.broadcastName_ = value;
- return this;
- }
- public Builder ClearBroadcastName() {
- result.hasBroadcastName = false;
- result.broadcastName_ = pb::ByteString.Empty;
- return this;
- }
-
- public bool HasUpdatePeriod {
- get { return result.HasUpdatePeriod; }
- }
- public long UpdatePeriod {
- get { return result.UpdatePeriod; }
- set { SetUpdatePeriod(value); }
- }
- public Builder SetUpdatePeriod(long value) {
- result.hasUpdatePeriod = true;
- result.updatePeriod_ = value;
- return this;
- }
- public Builder ClearUpdatePeriod() {
- result.hasUpdatePeriod = false;
- result.updatePeriod_ = 0;
- return this;
- }
- }
- static Subscribe() {
- object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
- }
- }
-
- public sealed partial class Broadcast : pb::GeneratedMessage<Broadcast, Broadcast.Builder> {
- private static readonly Broadcast defaultInstance = new Builder().BuildPartial();
- public static Broadcast DefaultInstance {
- get { return defaultInstance; }
- }
-
- public override Broadcast DefaultInstanceForType {
- get { return defaultInstance; }
- }
-
- protected override Broadcast ThisMessage {
- get { return this; }
- }
-
- public static pbd::MessageDescriptor Descriptor {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__Descriptor; }
- }
-
- protected override pb::FieldAccess.FieldAccessorTable<Broadcast, Broadcast.Builder> InternalFieldAccessors {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.internal__static_Sirikata_Subscription_Protocol__PBJ_Internal_Broadcast__FieldAccessorTable; }
- }
-
- public const int BroadcastNameFieldNumber = 7;
- private bool hasBroadcastName;
- private pb::ByteString broadcastName_ = pb::ByteString.Empty;
- public bool HasBroadcastName {
- get { return hasBroadcastName; }
- }
- public pb::ByteString BroadcastName {
- get { return broadcastName_; }
- }
-
- public override bool IsInitialized {
- get {
- return true;
- }
- }
-
- public override void WriteTo(pb::CodedOutputStream output) {
- if (HasBroadcastName) {
- output.WriteBytes(7, BroadcastName);
- }
- UnknownFields.WriteTo(output);
- }
-
- private int memoizedSerializedSize = -1;
- public override int SerializedSize {
- get {
- int size = memoizedSerializedSize;
- if (size != -1) return size;
-
- size = 0;
- if (HasBroadcastName) {
- size += pb::CodedOutputStream.ComputeBytesSize(7, BroadcastName);
- }
- size += UnknownFields.SerializedSize;
- memoizedSerializedSize = size;
- return size;
- }
- }
-
- public static Broadcast ParseFrom(pb::ByteString data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Broadcast ParseFrom(pb::ByteString data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Broadcast ParseFrom(byte[] data) {
- return ((Builder) CreateBuilder().MergeFrom(data)).BuildParsed();
- }
- public static Broadcast ParseFrom(byte[] data, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(data, extensionRegistry)).BuildParsed();
- }
- public static Broadcast ParseFrom(global::System.IO.Stream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Broadcast ParseFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Broadcast ParseDelimitedFrom(global::System.IO.Stream input) {
- return CreateBuilder().MergeDelimitedFrom(input).BuildParsed();
- }
- public static Broadcast ParseDelimitedFrom(global::System.IO.Stream input, pb::ExtensionRegistry extensionRegistry) {
- return CreateBuilder().MergeDelimitedFrom(input, extensionRegistry).BuildParsed();
- }
- public static Broadcast ParseFrom(pb::CodedInputStream input) {
- return ((Builder) CreateBuilder().MergeFrom(input)).BuildParsed();
- }
- public static Broadcast ParseFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- return ((Builder) CreateBuilder().MergeFrom(input, extensionRegistry)).BuildParsed();
- }
- public static Builder CreateBuilder() { return new Builder(); }
- public override Builder ToBuilder() { return CreateBuilder(this); }
- public override Builder CreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder(Broadcast prototype) {
- return (Builder) new Builder().MergeFrom(prototype);
- }
-
- public sealed partial class Builder : pb::GeneratedBuilder<Broadcast, Builder> {
- protected override Builder ThisBuilder {
- get { return this; }
- }
- public Builder() {}
-
- Broadcast result = new Broadcast();
-
- protected override Broadcast MessageBeingBuilt {
- get { return result; }
- }
-
- public override Builder Clear() {
- result = new Broadcast();
- return this;
- }
-
- public override Builder Clone() {
- return new Builder().MergeFrom(result);
- }
-
- public override pbd::MessageDescriptor DescriptorForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.Descriptor; }
- }
-
- public override Broadcast DefaultInstanceForType {
- get { return global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.DefaultInstance; }
- }
-
- public override Broadcast BuildPartial() {
- if (result == null) {
- throw new global::System.InvalidOperationException("build() has already been called on this Builder");
- }
- Broadcast returnMe = result;
- result = null;
- return returnMe;
- }
-
- public override Builder MergeFrom(pb::IMessage other) {
- if (other is Broadcast) {
- return MergeFrom((Broadcast) other);
- } else {
- base.MergeFrom(other);
- return this;
- }
- }
-
- public override Builder MergeFrom(Broadcast other) {
- if (other == global::Sirikata.Subscription.Protocol._PBJ_Internal.Broadcast.DefaultInstance) return this;
- if (other.HasBroadcastName) {
- BroadcastName = other.BroadcastName;
- }
- this.MergeUnknownFields(other.UnknownFields);
- return this;
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input) {
- return MergeFrom(input, pb::ExtensionRegistry.Empty);
- }
-
- public override Builder MergeFrom(pb::CodedInputStream input, pb::ExtensionRegistry extensionRegistry) {
- pb::UnknownFieldSet.Builder unknownFields = null;
- while (true) {
- uint tag = input.ReadTag();
- switch (tag) {
- case 0: {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- default: {
- if (pb::WireFormat.IsEndGroupTag(tag)) {
- if (unknownFields != null) {
- this.UnknownFields = unknownFields.Build();
- }
- return this;
- }
- if (unknownFields == null) {
- unknownFields = pb::UnknownFieldSet.CreateBuilder(this.UnknownFields);
- }
- ParseUnknownField(input, unknownFields, extensionRegistry, tag);
- break;
- }
- case 58: {
- BroadcastName = input.ReadBytes();
- break;
- }
- }
- }
- }
-
-
- public bool HasBroadcastName {
- get { return result.HasBroadcastName; }
- }
- public pb::ByteString BroadcastName {
- get { return result.BroadcastName; }
- set { SetBroadcastName(value); }
- }
- public Builder SetBroadcastName(pb::ByteString value) {
- pb::ThrowHelper.ThrowIfNull(value, "value");
- result.hasBroadcastName = true;
- result.broadcastName_ = value;
- return this;
- }
- public Builder ClearBroadcastName() {
- result.hasBroadcastName = false;
- result.broadcastName_ = pb::ByteString.Empty;
- return this;
- }
- }
- static Broadcast() {
- object.ReferenceEquals(global::Sirikata.Subscription.Protocol._PBJ_Internal.Subscription.Descriptor, null);
- }
- }
-
- #endregion
-
- }
|