123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761 |
- /*
- * Copyright (c) Contributors, http://opensimulator.org/
- * See CONTRIBUTORS.TXT for a full list of copyright holders.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- * * Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * * Neither the name of the OpenSimulator Project nor the
- * names of its contributors may be used to endorse or promote products
- * derived from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
- using pbd = global::Google.ProtocolBuffers.Descriptors;
- using pb = global::Google.ProtocolBuffers;
- namespace Sirikata.PB {
- public class ExternalMessage : PBJ.IMessage {
- protected _PBJ_Internal.ExternalMessage super;
- public _PBJ_Internal.ExternalMessage _PBJSuper{ get { return super;} }
- public ExternalMessage() {
- super=new _PBJ_Internal.ExternalMessage();
- }
- public ExternalMessage(_PBJ_Internal.ExternalMessage reference) {
- super=reference;
- }
- public static ExternalMessage defaultInstance= new ExternalMessage (_PBJ_Internal.ExternalMessage.DefaultInstance);
- public static ExternalMessage DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.ExternalMessage.Descriptor; } }
- public static class Types {
- public class SubMessage : PBJ.IMessage {
- protected _PBJ_Internal.ExternalMessage.Types.SubMessage super;
- public _PBJ_Internal.ExternalMessage.Types.SubMessage _PBJSuper{ get { return super;} }
- public SubMessage() {
- super=new _PBJ_Internal.ExternalMessage.Types.SubMessage();
- }
- public SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage reference) {
- super=reference;
- }
- public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance);
- public static SubMessage DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.ExternalMessage.Types.SubMessage.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int SubuuidFieldTag=1;
- public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
- public PBJ.UUID Subuuid{ get {
- if (HasSubuuid) {
- return PBJ._PBJ.CastUuid(super.Subuuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int SubvectorFieldTag=2;
- public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
- public PBJ.Vector3d Subvector{ get {
- int index=0;
- if (HasSubvector) {
- return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- }
- public const int SubdurationFieldTag=3;
- public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
- public PBJ.Duration Subduration{ get {
- if (HasSubduration) {
- return PBJ._PBJ.CastDuration(super.Subduration);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- }
- public const int SubnormalFieldTag=4;
- public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
- public PBJ.Vector3f Subnormal{ get {
- int index=0;
- if (HasSubnormal) {
- return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(SubMessage prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static SubMessage ParseFrom(pb::ByteString data) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(byte[] data) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(global::System.IO.Stream data) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(pb::CodedInputStream data) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder();}
- public Builder(_PBJ_Internal.ExternalMessage.Types.SubMessage.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
- public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return SubMessage.Descriptor; } }
- public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
- public const int SubuuidFieldTag=1;
- public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
- public PBJ.UUID Subuuid{ get {
- if (HasSubuuid) {
- return PBJ._PBJ.CastUuid(super.Subuuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.Subuuid=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSubvector() { super.ClearSubvector();return this;}
- public const int SubvectorFieldTag=2;
- public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
- public PBJ.Vector3d Subvector{ get {
- int index=0;
- if (HasSubvector) {
- return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- set {
- super.ClearSubvector();
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.AddSubvector(_PBJtempArray[0]);
- super.AddSubvector(_PBJtempArray[1]);
- super.AddSubvector(_PBJtempArray[2]);
- }
- }
- public Builder ClearSubduration() { super.ClearSubduration();return this;}
- public const int SubdurationFieldTag=3;
- public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
- public PBJ.Duration Subduration{ get {
- if (HasSubduration) {
- return PBJ._PBJ.CastDuration(super.Subduration);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- set {
- super.Subduration=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
- public const int SubnormalFieldTag=4;
- public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
- public PBJ.Vector3f Subnormal{ get {
- int index=0;
- if (HasSubnormal) {
- return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- set {
- super.ClearSubnormal();
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.AddSubnormal(_PBJtempArray[0]);
- super.AddSubnormal(_PBJtempArray[1]);
- }
- }
- }
- }
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int IsTrueFieldTag=40;
- public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
- public bool IsTrue{ get {
- if (HasIsTrue) {
- return PBJ._PBJ.CastBool(super.IsTrue);
- } else {
- return true;
- }
- }
- }
- public const int V2FFieldTag=2;
- public bool HasV2F{ get {return super.V2FCount>=2;} }
- public PBJ.Vector2f V2F{ get {
- int index=0;
- if (HasV2F) {
- return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2f();
- }
- }
- }
- public const int SubMesFieldTag=30;
- public bool HasSubMes{ get {return super.HasSubMes;} }
- public Types.SubMessage SubMes{ get {
- if (HasSubMes) {
- return new Types.SubMessage(super.SubMes);
- } else {
- return new Types.SubMessage();
- }
- }
- }
- public const int SubmessersFieldTag=31;
- public int SubmessersCount { get { return super.SubmessersCount;} }
- public bool HasSubmessers(int index) {return true;}
- public Types.SubMessage Submessers(int index) {
- return new Types.SubMessage(super.GetSubmessers(index));
- }
- public const int ShaFieldTag=32;
- public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
- public PBJ.SHA256 Sha{ get {
- if (HasSha) {
- return PBJ._PBJ.CastSha256(super.Sha);
- } else {
- return PBJ._PBJ.CastSha256();
- }
- }
- }
- public const int ShasFieldTag=33;
- public int ShasCount { get { return super.ShasCount;} }
- public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
- public PBJ.SHA256 Shas(int index) {
- return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
- }
- public const int V3FFieldTag=4;
- public bool HasV3F{ get {return super.V3FCount>=3;} }
- public PBJ.Vector3f V3F{ get {
- int index=0;
- if (HasV3F) {
- return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- }
- public const int V3FfFieldTag=5;
- public int V3FfCount { get { return super.V3FfCount/3;} }
- public bool HasV3Ff(int index) { return true; }
- public PBJ.Vector3f GetV3Ff(int index) {
- if (HasV3Ff(index)) {
- return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(ExternalMessage prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static ExternalMessage ParseFrom(pb::ByteString data) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
- }
- public static ExternalMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
- }
- public static ExternalMessage ParseFrom(byte[] data) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
- }
- public static ExternalMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
- }
- public static ExternalMessage ParseFrom(global::System.IO.Stream data) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
- }
- public static ExternalMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
- }
- public static ExternalMessage ParseFrom(pb::CodedInputStream data) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
- }
- public static ExternalMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- &&HasV3F
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- &&HasV3F
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.ExternalMessage.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.ExternalMessage.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.ExternalMessage.Builder();}
- public Builder(_PBJ_Internal.ExternalMessage.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(ExternalMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public ExternalMessage BuildPartial() {return new ExternalMessage(super.BuildPartial());}
- public ExternalMessage Build() {if (_HasAllPBJFields) return new ExternalMessage(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return ExternalMessage.Descriptor; } }
- public Builder ClearIsTrue() { super.ClearIsTrue();return this;}
- public const int IsTrueFieldTag=40;
- public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
- public bool IsTrue{ get {
- if (HasIsTrue) {
- return PBJ._PBJ.CastBool(super.IsTrue);
- } else {
- return true;
- }
- }
- set {
- super.IsTrue=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearV2F() { super.ClearV2F();return this;}
- public const int V2FFieldTag=2;
- public bool HasV2F{ get {return super.V2FCount>=2;} }
- public PBJ.Vector2f V2F{ get {
- int index=0;
- if (HasV2F) {
- return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2f();
- }
- }
- set {
- super.ClearV2F();
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
- super.AddV2F(_PBJtempArray[0]);
- super.AddV2F(_PBJtempArray[1]);
- }
- }
- public Builder ClearSubMes() { super.ClearSubMes();return this;}
- public const int SubMesFieldTag=30;
- public bool HasSubMes{ get {return super.HasSubMes;} }
- public Types.SubMessage SubMes{ get {
- if (HasSubMes) {
- return new Types.SubMessage(super.SubMes);
- } else {
- return new Types.SubMessage();
- }
- }
- set {
- super.SubMes=value._PBJSuper;
- }
- }
- public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
- public Builder SetSubmessers(int index,Types.SubMessage value) {
- super.SetSubmessers(index,value._PBJSuper);
- return this;
- }
- public const int SubmessersFieldTag=31;
- public int SubmessersCount { get { return super.SubmessersCount;} }
- public bool HasSubmessers(int index) {return true;}
- public Types.SubMessage Submessers(int index) {
- return new Types.SubMessage(super.GetSubmessers(index));
- }
- public Builder AddSubmessers(Types.SubMessage value) {
- super.AddSubmessers(value._PBJSuper);
- return this;
- }
- public Builder ClearSha() { super.ClearSha();return this;}
- public const int ShaFieldTag=32;
- public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
- public PBJ.SHA256 Sha{ get {
- if (HasSha) {
- return PBJ._PBJ.CastSha256(super.Sha);
- } else {
- return PBJ._PBJ.CastSha256();
- }
- }
- set {
- super.Sha=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearShas() { super.ClearShas();return this;}
- public Builder SetShas(int index, PBJ.SHA256 value) {
- super.SetShas(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int ShasFieldTag=33;
- public int ShasCount { get { return super.ShasCount;} }
- public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
- public PBJ.SHA256 Shas(int index) {
- return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
- }
- public Builder AddShas(PBJ.SHA256 value) {
- super.AddShas(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearV3F() { super.ClearV3F();return this;}
- public const int V3FFieldTag=4;
- public bool HasV3F{ get {return super.V3FCount>=3;} }
- public PBJ.Vector3f V3F{ get {
- int index=0;
- if (HasV3F) {
- return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- set {
- super.ClearV3F();
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
- super.AddV3F(_PBJtempArray[0]);
- super.AddV3F(_PBJtempArray[1]);
- super.AddV3F(_PBJtempArray[2]);
- }
- }
- public Builder ClearV3Ff() { super.ClearV3Ff();return this;}
- public const int V3FfFieldTag=5;
- public int V3FfCount { get { return super.V3FfCount/3;} }
- public bool HasV3Ff(int index) { return true; }
- public PBJ.Vector3f GetV3Ff(int index) {
- if (HasV3Ff(index)) {
- return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- public Builder AddV3Ff(PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
- super.AddV3Ff(_PBJtempArray[0]);
- super.AddV3Ff(_PBJtempArray[1]);
- super.AddV3Ff(_PBJtempArray[2]);
- return this;
- }
- public Builder SetV3Ff(int index,PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
- super.SetV3Ff(index*3+0,_PBJtempArray[0]);
- super.SetV3Ff(index*3+1,_PBJtempArray[1]);
- super.SetV3Ff(index*3+2,_PBJtempArray[2]);
- return this;
- }
- }
- }
- }
- namespace Sirikata.PB {
- public class TestMessage : PBJ.IMessage {
- protected _PBJ_Internal.TestMessage super;
- public _PBJ_Internal.TestMessage _PBJSuper{ get { return super;} }
- public TestMessage() {
- super=new _PBJ_Internal.TestMessage();
- }
- public TestMessage(_PBJ_Internal.TestMessage reference) {
- super=reference;
- }
- public static TestMessage defaultInstance= new TestMessage (_PBJ_Internal.TestMessage.DefaultInstance);
- public static TestMessage DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.TestMessage.Descriptor; } }
- public static class Types {
- public enum Flagsf32 {
- UNIVERSA=_PBJ_Internal.TestMessage.Types.Flagsf32.UNIVERSA,
- WE=_PBJ_Internal.TestMessage.Types.Flagsf32.WE,
- IMAGE=_PBJ_Internal.TestMessage.Types.Flagsf32.IMAGE,
- LOCA=_PBJ_Internal.TestMessage.Types.Flagsf32.LOCA
- };
- public enum Flagsf64 {
- UNIVERSAL=_PBJ_Internal.TestMessage.Types.Flagsf64.UNIVERSAL,
- WEB=_PBJ_Internal.TestMessage.Types.Flagsf64.WEB,
- IMAGES=_PBJ_Internal.TestMessage.Types.Flagsf64.IMAGES,
- LOCAL=_PBJ_Internal.TestMessage.Types.Flagsf64.LOCAL
- };
- public enum Enum32 {
- UNIVERSAL1=_PBJ_Internal.TestMessage.Types.Enum32.UNIVERSAL1,
- WEB1=_PBJ_Internal.TestMessage.Types.Enum32.WEB1,
- IMAGES1=_PBJ_Internal.TestMessage.Types.Enum32.IMAGES1,
- LOCAL1=_PBJ_Internal.TestMessage.Types.Enum32.LOCAL1
- };
- public class SubMessage : PBJ.IMessage {
- protected _PBJ_Internal.TestMessage.Types.SubMessage super;
- public _PBJ_Internal.TestMessage.Types.SubMessage _PBJSuper{ get { return super;} }
- public SubMessage() {
- super=new _PBJ_Internal.TestMessage.Types.SubMessage();
- }
- public SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage reference) {
- super=reference;
- }
- public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance);
- public static SubMessage DefaultInstance{
- get {return defaultInstance;}
- }
- public static pbd.MessageDescriptor Descriptor {
- get { return _PBJ_Internal.TestMessage.Types.SubMessage.Descriptor; } }
- public static class Types {
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false;
- }
- public const int SubuuidFieldTag=1;
- public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
- public PBJ.UUID Subuuid{ get {
- if (HasSubuuid) {
- return PBJ._PBJ.CastUuid(super.Subuuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int SubvectorFieldTag=2;
- public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
- public PBJ.Vector3d Subvector{ get {
- int index=0;
- if (HasSubvector) {
- return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- }
- public const int SubdurationFieldTag=3;
- public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
- public PBJ.Duration Subduration{ get {
- if (HasSubduration) {
- return PBJ._PBJ.CastDuration(super.Subduration);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- }
- public const int SubnormalFieldTag=4;
- public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
- public PBJ.Vector3f Subnormal{ get {
- int index=0;
- if (HasSubnormal) {
- return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(SubMessage prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static SubMessage ParseFrom(pb::ByteString data) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(byte[] data) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(global::System.IO.Stream data) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
- }
- public static SubMessage ParseFrom(pb::CodedInputStream data) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
- }
- public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.TestMessage.Types.SubMessage.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.TestMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.TestMessage.Types.SubMessage.Builder();}
- public Builder(_PBJ_Internal.TestMessage.Types.SubMessage.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
- public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return SubMessage.Descriptor; } }
- public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
- public const int SubuuidFieldTag=1;
- public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
- public PBJ.UUID Subuuid{ get {
- if (HasSubuuid) {
- return PBJ._PBJ.CastUuid(super.Subuuid);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.Subuuid=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSubvector() { super.ClearSubvector();return this;}
- public const int SubvectorFieldTag=2;
- public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
- public PBJ.Vector3d Subvector{ get {
- int index=0;
- if (HasSubvector) {
- return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- set {
- super.ClearSubvector();
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.AddSubvector(_PBJtempArray[0]);
- super.AddSubvector(_PBJtempArray[1]);
- super.AddSubvector(_PBJtempArray[2]);
- }
- }
- public Builder ClearSubduration() { super.ClearSubduration();return this;}
- public const int SubdurationFieldTag=3;
- public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
- public PBJ.Duration Subduration{ get {
- if (HasSubduration) {
- return PBJ._PBJ.CastDuration(super.Subduration);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- set {
- super.Subduration=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
- public const int SubnormalFieldTag=4;
- public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
- public PBJ.Vector3f Subnormal{ get {
- int index=0;
- if (HasSubnormal) {
- return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- set {
- super.ClearSubnormal();
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.AddSubnormal(_PBJtempArray[0]);
- super.AddSubnormal(_PBJtempArray[1]);
- }
- }
- }
- }
- }
- public static bool WithinReservedFieldTagRange(int field_tag) {
- return false;
- }
- public static bool WithinExtensionFieldTagRange(int field_tag) {
- return false||(field_tag>=100&&field_tag<=199);
- }
- public const int XxdFieldTag=20;
- public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
- public double Xxd{ get {
- if (HasXxd) {
- return PBJ._PBJ.CastDouble(super.Xxd);
- } else {
- return 10.3;
- }
- }
- }
- public const int XxfFieldTag=21;
- public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
- public float Xxf{ get {
- if (HasXxf) {
- return PBJ._PBJ.CastFloat(super.Xxf);
- } else {
- return PBJ._PBJ.CastFloat();
- }
- }
- }
- public const int Xxu32FieldTag=22;
- public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
- public uint Xxu32{ get {
- if (HasXxu32) {
- return PBJ._PBJ.CastUint32(super.Xxu32);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- }
- public const int XxsFieldTag=23;
- public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
- public string Xxs{ get {
- if (HasXxs) {
- return PBJ._PBJ.CastString(super.Xxs);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- }
- public const int XxbFieldTag=24;
- public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
- public pb::ByteString Xxb{ get {
- if (HasXxb) {
- return PBJ._PBJ.CastBytes(super.Xxb);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- }
- public const int XxssFieldTag=25;
- public int XxssCount { get { return super.XxssCount;} }
- public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
- public string Xxss(int index) {
- return (string)PBJ._PBJ.CastString(super.GetXxss(index));
- }
- public const int XxbbFieldTag=26;
- public int XxbbCount { get { return super.XxbbCount;} }
- public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
- public pb::ByteString Xxbb(int index) {
- return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
- }
- public const int XxffFieldTag=27;
- public int XxffCount { get { return super.XxffCount;} }
- public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
- public float Xxff(int index) {
- return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
- }
- public const int XxnnFieldTag=29;
- public int XxnnCount { get { return super.XxnnCount/2;} }
- public bool HasXxnn(int index) { return true; }
- public PBJ.Vector3f GetXxnn(int index) {
- if (HasXxnn(index)) {
- return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- public const int XxfrFieldTag=28;
- public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
- public float Xxfr{ get {
- if (HasXxfr) {
- return PBJ._PBJ.CastFloat(super.Xxfr);
- } else {
- return PBJ._PBJ.CastFloat();
- }
- }
- }
- public const int NFieldTag=1;
- public bool HasN{ get {return super.NCount>=2;} }
- public PBJ.Vector3f N{ get {
- int index=0;
- if (HasN) {
- return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- }
- public const int V2FFieldTag=2;
- public bool HasV2F{ get {return super.V2FCount>=2;} }
- public PBJ.Vector2f V2F{ get {
- int index=0;
- if (HasV2F) {
- return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2f();
- }
- }
- }
- public const int V2DFieldTag=3;
- public bool HasV2D{ get {return super.V2DCount>=2;} }
- public PBJ.Vector2d V2D{ get {
- int index=0;
- if (HasV2D) {
- return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2d();
- }
- }
- }
- public const int V3FFieldTag=4;
- public bool HasV3F{ get {return super.V3FCount>=3;} }
- public PBJ.Vector3f V3F{ get {
- int index=0;
- if (HasV3F) {
- return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- }
- public const int V3DFieldTag=5;
- public bool HasV3D{ get {return super.V3DCount>=3;} }
- public PBJ.Vector3d V3D{ get {
- int index=0;
- if (HasV3D) {
- return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- }
- public const int V4FFieldTag=6;
- public bool HasV4F{ get {return super.V4FCount>=4;} }
- public PBJ.Vector4f V4F{ get {
- int index=0;
- if (HasV4F) {
- return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
- } else {
- return PBJ._PBJ.CastVector4f();
- }
- }
- }
- public const int V4DFieldTag=7;
- public bool HasV4D{ get {return super.V4DCount>=4;} }
- public PBJ.Vector4d V4D{ get {
- int index=0;
- if (HasV4D) {
- return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
- } else {
- return PBJ._PBJ.CastVector4d();
- }
- }
- }
- public const int QFieldTag=8;
- public bool HasQ{ get {return super.QCount>=3;} }
- public PBJ.Quaternion Q{ get {
- int index=0;
- if (HasQ) {
- return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
- } else {
- return PBJ._PBJ.CastQuaternion();
- }
- }
- }
- public const int UFieldTag=9;
- public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
- public PBJ.UUID U{ get {
- if (HasU) {
- return PBJ._PBJ.CastUuid(super.U);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- }
- public const int AFieldTag=10;
- public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
- public float A{ get {
- if (HasA) {
- return PBJ._PBJ.CastAngle(super.A);
- } else {
- return PBJ._PBJ.CastAngle();
- }
- }
- }
- public const int TFieldTag=11;
- public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
- public PBJ.Time T{ get {
- if (HasT) {
- return PBJ._PBJ.CastTime(super.T);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- }
- public const int DFieldTag=12;
- public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
- public PBJ.Duration D{ get {
- if (HasD) {
- return PBJ._PBJ.CastDuration(super.D);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- }
- public const int F32FieldTag=13;
- public bool HasF32 { get {
- if (!super.HasF32) return false;
- return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- } }
- public uint F32{ get {
- if (HasF32) {
- return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- } else {
- return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- }
- }
- }
- public const int F64FieldTag=14;
- public bool HasF64 { get {
- if (!super.HasF64) return false;
- return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- } }
- public ulong F64{ get {
- if (HasF64) {
- return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- }
- }
- }
- public const int BsfFieldTag=15;
- public bool HasBsf{ get {return super.BsfCount>=4;} }
- public PBJ.BoundingSphere3f Bsf{ get {
- int index=0;
- if (HasBsf) {
- return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
- } else {
- return PBJ._PBJ.CastBoundingsphere3f();
- }
- }
- }
- public const int BsdFieldTag=16;
- public bool HasBsd{ get {return super.BsdCount>=4;} }
- public PBJ.BoundingSphere3d Bsd{ get {
- int index=0;
- if (HasBsd) {
- return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
- } else {
- return PBJ._PBJ.CastBoundingsphere3d();
- }
- }
- }
- public const int BbfFieldTag=17;
- public bool HasBbf{ get {return super.BbfCount>=6;} }
- public PBJ.BoundingBox3f3f Bbf{ get {
- int index=0;
- if (HasBbf) {
- return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
- } else {
- return PBJ._PBJ.CastBoundingbox3f3f();
- }
- }
- }
- public const int BbdFieldTag=18;
- public bool HasBbd{ get {return super.BbdCount>=6;} }
- public PBJ.BoundingBox3d3f Bbd{ get {
- int index=0;
- if (HasBbd) {
- return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
- } else {
- return PBJ._PBJ.CastBoundingbox3d3f();
- }
- }
- }
- public const int E32FieldTag=19;
- public bool HasE32{ get {return super.HasE32;} }
- public Types.Enum32 E32{ get {
- if (HasE32) {
- return (Types.Enum32)super.E32;
- } else {
- return new Types.Enum32();
- }
- }
- }
- public const int SubmesFieldTag=30;
- public bool HasSubmes{ get {return super.HasSubmes;} }
- public Types.SubMessage Submes{ get {
- if (HasSubmes) {
- return new Types.SubMessage(super.Submes);
- } else {
- return new Types.SubMessage();
- }
- }
- }
- public const int SubmessersFieldTag=31;
- public int SubmessersCount { get { return super.SubmessersCount;} }
- public bool HasSubmessers(int index) {return true;}
- public Types.SubMessage Submessers(int index) {
- return new Types.SubMessage(super.GetSubmessers(index));
- }
- public const int ShaFieldTag=32;
- public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
- public PBJ.SHA256 Sha{ get {
- if (HasSha) {
- return PBJ._PBJ.CastSha256(super.Sha);
- } else {
- return PBJ._PBJ.CastSha256();
- }
- }
- }
- public const int ShasFieldTag=33;
- public int ShasCount { get { return super.ShasCount;} }
- public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
- public PBJ.SHA256 Shas(int index) {
- return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
- }
- public const int ExtmesFieldTag=34;
- public bool HasExtmes{ get {return super.HasExtmes;} }
- public ExternalMessage Extmes{ get {
- if (HasExtmes) {
- return new ExternalMessage(super.Extmes);
- } else {
- return new ExternalMessage();
- }
- }
- }
- public const int ExtmessersFieldTag=35;
- public int ExtmessersCount { get { return super.ExtmessersCount;} }
- public bool HasExtmessers(int index) {return true;}
- public ExternalMessage Extmessers(int index) {
- return new ExternalMessage(super.GetExtmessers(index));
- }
- public const int ExtmesserFieldTag=36;
- public bool HasExtmesser{ get {return super.HasExtmesser;} }
- public ExternalMessage Extmesser{ get {
- if (HasExtmesser) {
- return new ExternalMessage(super.Extmesser);
- } else {
- return new ExternalMessage();
- }
- }
- }
- public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
- public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
- public static Builder CreateBuilder() { return new Builder(); }
- public static Builder CreateBuilder(TestMessage prototype) {
- return (Builder)new Builder().MergeFrom(prototype);
- }
- public static TestMessage ParseFrom(pb::ByteString data) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
- }
- public static TestMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
- }
- public static TestMessage ParseFrom(byte[] data) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
- }
- public static TestMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
- }
- public static TestMessage ParseFrom(global::System.IO.Stream data) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
- }
- public static TestMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
- }
- public static TestMessage ParseFrom(pb::CodedInputStream data) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
- }
- public static TestMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
- return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
- }
- protected override bool _HasAllPBJFields{ get {
- return true
- &&HasV3F
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- public class Builder : global::PBJ.IMessage.IBuilder{
- protected override bool _HasAllPBJFields{ get {
- return true
- &&HasV3F
- ;
- } }
- public bool IsInitialized { get {
- return super.IsInitialized&&_HasAllPBJFields;
- } }
- protected _PBJ_Internal.TestMessage.Builder super;
- public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
- public _PBJ_Internal.TestMessage.Builder _PBJSuper{ get { return super;} }
- public Builder() {super = new _PBJ_Internal.TestMessage.Builder();}
- public Builder(_PBJ_Internal.TestMessage.Builder other) {
- super=other;
- }
- public Builder Clone() {return new Builder(super.Clone());}
- public Builder MergeFrom(TestMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
- public Builder Clear() {super.Clear();return this;}
- public TestMessage BuildPartial() {return new TestMessage(super.BuildPartial());}
- public TestMessage Build() {if (_HasAllPBJFields) return new TestMessage(super.Build());return null;}
- public pbd::MessageDescriptor DescriptorForType {
- get { return TestMessage.Descriptor; } }
- public Builder ClearXxd() { super.ClearXxd();return this;}
- public const int XxdFieldTag=20;
- public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
- public double Xxd{ get {
- if (HasXxd) {
- return PBJ._PBJ.CastDouble(super.Xxd);
- } else {
- return 10.3;
- }
- }
- set {
- super.Xxd=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearXxf() { super.ClearXxf();return this;}
- public const int XxfFieldTag=21;
- public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
- public float Xxf{ get {
- if (HasXxf) {
- return PBJ._PBJ.CastFloat(super.Xxf);
- } else {
- return PBJ._PBJ.CastFloat();
- }
- }
- set {
- super.Xxf=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearXxu32() { super.ClearXxu32();return this;}
- public const int Xxu32FieldTag=22;
- public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
- public uint Xxu32{ get {
- if (HasXxu32) {
- return PBJ._PBJ.CastUint32(super.Xxu32);
- } else {
- return PBJ._PBJ.CastUint32();
- }
- }
- set {
- super.Xxu32=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearXxs() { super.ClearXxs();return this;}
- public const int XxsFieldTag=23;
- public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
- public string Xxs{ get {
- if (HasXxs) {
- return PBJ._PBJ.CastString(super.Xxs);
- } else {
- return PBJ._PBJ.CastString();
- }
- }
- set {
- super.Xxs=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearXxb() { super.ClearXxb();return this;}
- public const int XxbFieldTag=24;
- public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
- public pb::ByteString Xxb{ get {
- if (HasXxb) {
- return PBJ._PBJ.CastBytes(super.Xxb);
- } else {
- return PBJ._PBJ.CastBytes();
- }
- }
- set {
- super.Xxb=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearXxss() { super.ClearXxss();return this;}
- public Builder SetXxss(int index, string value) {
- super.SetXxss(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int XxssFieldTag=25;
- public int XxssCount { get { return super.XxssCount;} }
- public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
- public string Xxss(int index) {
- return (string)PBJ._PBJ.CastString(super.GetXxss(index));
- }
- public Builder AddXxss(string value) {
- super.AddXxss(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearXxbb() { super.ClearXxbb();return this;}
- public Builder SetXxbb(int index, pb::ByteString value) {
- super.SetXxbb(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int XxbbFieldTag=26;
- public int XxbbCount { get { return super.XxbbCount;} }
- public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
- public pb::ByteString Xxbb(int index) {
- return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
- }
- public Builder AddXxbb(pb::ByteString value) {
- super.AddXxbb(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearXxff() { super.ClearXxff();return this;}
- public Builder SetXxff(int index, float value) {
- super.SetXxff(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int XxffFieldTag=27;
- public int XxffCount { get { return super.XxffCount;} }
- public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
- public float Xxff(int index) {
- return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
- }
- public Builder AddXxff(float value) {
- super.AddXxff(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearXxnn() { super.ClearXxnn();return this;}
- public const int XxnnFieldTag=29;
- public int XxnnCount { get { return super.XxnnCount/2;} }
- public bool HasXxnn(int index) { return true; }
- public PBJ.Vector3f GetXxnn(int index) {
- if (HasXxnn(index)) {
- return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- public Builder AddXxnn(PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.AddXxnn(_PBJtempArray[0]);
- super.AddXxnn(_PBJtempArray[1]);
- return this;
- }
- public Builder SetXxnn(int index,PBJ.Vector3f value) {
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.SetXxnn(index*2+0,_PBJtempArray[0]);
- super.SetXxnn(index*2+1,_PBJtempArray[1]);
- return this;
- }
- public Builder ClearXxfr() { super.ClearXxfr();return this;}
- public const int XxfrFieldTag=28;
- public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
- public float Xxfr{ get {
- if (HasXxfr) {
- return PBJ._PBJ.CastFloat(super.Xxfr);
- } else {
- return PBJ._PBJ.CastFloat();
- }
- }
- set {
- super.Xxfr=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearN() { super.ClearN();return this;}
- public const int NFieldTag=1;
- public bool HasN{ get {return super.NCount>=2;} }
- public PBJ.Vector3f N{ get {
- int index=0;
- if (HasN) {
- return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
- } else {
- return PBJ._PBJ.CastNormal();
- }
- }
- set {
- super.ClearN();
- float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
- super.AddN(_PBJtempArray[0]);
- super.AddN(_PBJtempArray[1]);
- }
- }
- public Builder ClearV2F() { super.ClearV2F();return this;}
- public const int V2FFieldTag=2;
- public bool HasV2F{ get {return super.V2FCount>=2;} }
- public PBJ.Vector2f V2F{ get {
- int index=0;
- if (HasV2F) {
- return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2f();
- }
- }
- set {
- super.ClearV2F();
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
- super.AddV2F(_PBJtempArray[0]);
- super.AddV2F(_PBJtempArray[1]);
- }
- }
- public Builder ClearV2D() { super.ClearV2D();return this;}
- public const int V2DFieldTag=3;
- public bool HasV2D{ get {return super.V2DCount>=2;} }
- public PBJ.Vector2d V2D{ get {
- int index=0;
- if (HasV2D) {
- return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
- } else {
- return PBJ._PBJ.CastVector2d();
- }
- }
- set {
- super.ClearV2D();
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector2d(value);
- super.AddV2D(_PBJtempArray[0]);
- super.AddV2D(_PBJtempArray[1]);
- }
- }
- public Builder ClearV3F() { super.ClearV3F();return this;}
- public const int V3FFieldTag=4;
- public bool HasV3F{ get {return super.V3FCount>=3;} }
- public PBJ.Vector3f V3F{ get {
- int index=0;
- if (HasV3F) {
- return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3f();
- }
- }
- set {
- super.ClearV3F();
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
- super.AddV3F(_PBJtempArray[0]);
- super.AddV3F(_PBJtempArray[1]);
- super.AddV3F(_PBJtempArray[2]);
- }
- }
- public Builder ClearV3D() { super.ClearV3D();return this;}
- public const int V3DFieldTag=5;
- public bool HasV3D{ get {return super.V3DCount>=3;} }
- public PBJ.Vector3d V3D{ get {
- int index=0;
- if (HasV3D) {
- return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
- } else {
- return PBJ._PBJ.CastVector3d();
- }
- }
- set {
- super.ClearV3D();
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
- super.AddV3D(_PBJtempArray[0]);
- super.AddV3D(_PBJtempArray[1]);
- super.AddV3D(_PBJtempArray[2]);
- }
- }
- public Builder ClearV4F() { super.ClearV4F();return this;}
- public const int V4FFieldTag=6;
- public bool HasV4F{ get {return super.V4FCount>=4;} }
- public PBJ.Vector4f V4F{ get {
- int index=0;
- if (HasV4F) {
- return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
- } else {
- return PBJ._PBJ.CastVector4f();
- }
- }
- set {
- super.ClearV4F();
- float[] _PBJtempArray=PBJ._PBJ.ConstructVector4f(value);
- super.AddV4F(_PBJtempArray[0]);
- super.AddV4F(_PBJtempArray[1]);
- super.AddV4F(_PBJtempArray[2]);
- super.AddV4F(_PBJtempArray[3]);
- }
- }
- public Builder ClearV4D() { super.ClearV4D();return this;}
- public const int V4DFieldTag=7;
- public bool HasV4D{ get {return super.V4DCount>=4;} }
- public PBJ.Vector4d V4D{ get {
- int index=0;
- if (HasV4D) {
- return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
- } else {
- return PBJ._PBJ.CastVector4d();
- }
- }
- set {
- super.ClearV4D();
- double[] _PBJtempArray=PBJ._PBJ.ConstructVector4d(value);
- super.AddV4D(_PBJtempArray[0]);
- super.AddV4D(_PBJtempArray[1]);
- super.AddV4D(_PBJtempArray[2]);
- super.AddV4D(_PBJtempArray[3]);
- }
- }
- public Builder ClearQ() { super.ClearQ();return this;}
- public const int QFieldTag=8;
- public bool HasQ{ get {return super.QCount>=3;} }
- public PBJ.Quaternion Q{ get {
- int index=0;
- if (HasQ) {
- return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
- } else {
- return PBJ._PBJ.CastQuaternion();
- }
- }
- set {
- super.ClearQ();
- float[] _PBJtempArray=PBJ._PBJ.ConstructQuaternion(value);
- super.AddQ(_PBJtempArray[0]);
- super.AddQ(_PBJtempArray[1]);
- super.AddQ(_PBJtempArray[2]);
- }
- }
- public Builder ClearU() { super.ClearU();return this;}
- public const int UFieldTag=9;
- public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
- public PBJ.UUID U{ get {
- if (HasU) {
- return PBJ._PBJ.CastUuid(super.U);
- } else {
- return PBJ._PBJ.CastUuid();
- }
- }
- set {
- super.U=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearA() { super.ClearA();return this;}
- public const int AFieldTag=10;
- public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
- public float A{ get {
- if (HasA) {
- return PBJ._PBJ.CastAngle(super.A);
- } else {
- return PBJ._PBJ.CastAngle();
- }
- }
- set {
- super.A=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearT() { super.ClearT();return this;}
- public const int TFieldTag=11;
- public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
- public PBJ.Time T{ get {
- if (HasT) {
- return PBJ._PBJ.CastTime(super.T);
- } else {
- return PBJ._PBJ.CastTime();
- }
- }
- set {
- super.T=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearD() { super.ClearD();return this;}
- public const int DFieldTag=12;
- public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
- public PBJ.Duration D{ get {
- if (HasD) {
- return PBJ._PBJ.CastDuration(super.D);
- } else {
- return PBJ._PBJ.CastDuration();
- }
- }
- set {
- super.D=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearF32() { super.ClearF32();return this;}
- public const int F32FieldTag=13;
- public bool HasF32 { get {
- if (!super.HasF32) return false;
- return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- } }
- public uint F32{ get {
- if (HasF32) {
- return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- } else {
- return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
- }
- }
- set {
- super.F32=((value));
- }
- }
- public Builder ClearF64() { super.ClearF64();return this;}
- public const int F64FieldTag=14;
- public bool HasF64 { get {
- if (!super.HasF64) return false;
- return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- } }
- public ulong F64{ get {
- if (HasF64) {
- return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- } else {
- return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
- }
- }
- set {
- super.F64=((value));
- }
- }
- public Builder ClearBsf() { super.ClearBsf();return this;}
- public const int BsfFieldTag=15;
- public bool HasBsf{ get {return super.BsfCount>=4;} }
- public PBJ.BoundingSphere3f Bsf{ get {
- int index=0;
- if (HasBsf) {
- return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
- } else {
- return PBJ._PBJ.CastBoundingsphere3f();
- }
- }
- set {
- super.ClearBsf();
- float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
- super.AddBsf(_PBJtempArray[0]);
- super.AddBsf(_PBJtempArray[1]);
- super.AddBsf(_PBJtempArray[2]);
- super.AddBsf(_PBJtempArray[3]);
- }
- }
- public Builder ClearBsd() { super.ClearBsd();return this;}
- public const int BsdFieldTag=16;
- public bool HasBsd{ get {return super.BsdCount>=4;} }
- public PBJ.BoundingSphere3d Bsd{ get {
- int index=0;
- if (HasBsd) {
- return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
- } else {
- return PBJ._PBJ.CastBoundingsphere3d();
- }
- }
- set {
- super.ClearBsd();
- double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3d(value);
- super.AddBsd(_PBJtempArray[0]);
- super.AddBsd(_PBJtempArray[1]);
- super.AddBsd(_PBJtempArray[2]);
- super.AddBsd(_PBJtempArray[3]);
- }
- }
- public Builder ClearBbf() { super.ClearBbf();return this;}
- public const int BbfFieldTag=17;
- public bool HasBbf{ get {return super.BbfCount>=6;} }
- public PBJ.BoundingBox3f3f Bbf{ get {
- int index=0;
- if (HasBbf) {
- return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
- } else {
- return PBJ._PBJ.CastBoundingbox3f3f();
- }
- }
- set {
- super.ClearBbf();
- float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3f3f(value);
- super.AddBbf(_PBJtempArray[0]);
- super.AddBbf(_PBJtempArray[1]);
- super.AddBbf(_PBJtempArray[2]);
- super.AddBbf(_PBJtempArray[3]);
- super.AddBbf(_PBJtempArray[4]);
- super.AddBbf(_PBJtempArray[5]);
- }
- }
- public Builder ClearBbd() { super.ClearBbd();return this;}
- public const int BbdFieldTag=18;
- public bool HasBbd{ get {return super.BbdCount>=6;} }
- public PBJ.BoundingBox3d3f Bbd{ get {
- int index=0;
- if (HasBbd) {
- return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
- } else {
- return PBJ._PBJ.CastBoundingbox3d3f();
- }
- }
- set {
- super.ClearBbd();
- double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3d3f(value);
- super.AddBbd(_PBJtempArray[0]);
- super.AddBbd(_PBJtempArray[1]);
- super.AddBbd(_PBJtempArray[2]);
- super.AddBbd(_PBJtempArray[3]);
- super.AddBbd(_PBJtempArray[4]);
- super.AddBbd(_PBJtempArray[5]);
- }
- }
- public Builder ClearE32() { super.ClearE32();return this;}
- public const int E32FieldTag=19;
- public bool HasE32{ get {return super.HasE32;} }
- public Types.Enum32 E32{ get {
- if (HasE32) {
- return (Types.Enum32)super.E32;
- } else {
- return new Types.Enum32();
- }
- }
- set {
- super.E32=((_PBJ_Internal.TestMessage.Types.Enum32)value);
- }
- }
- public Builder ClearSubmes() { super.ClearSubmes();return this;}
- public const int SubmesFieldTag=30;
- public bool HasSubmes{ get {return super.HasSubmes;} }
- public Types.SubMessage Submes{ get {
- if (HasSubmes) {
- return new Types.SubMessage(super.Submes);
- } else {
- return new Types.SubMessage();
- }
- }
- set {
- super.Submes=value._PBJSuper;
- }
- }
- public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
- public Builder SetSubmessers(int index,Types.SubMessage value) {
- super.SetSubmessers(index,value._PBJSuper);
- return this;
- }
- public const int SubmessersFieldTag=31;
- public int SubmessersCount { get { return super.SubmessersCount;} }
- public bool HasSubmessers(int index) {return true;}
- public Types.SubMessage Submessers(int index) {
- return new Types.SubMessage(super.GetSubmessers(index));
- }
- public Builder AddSubmessers(Types.SubMessage value) {
- super.AddSubmessers(value._PBJSuper);
- return this;
- }
- public Builder ClearSha() { super.ClearSha();return this;}
- public const int ShaFieldTag=32;
- public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
- public PBJ.SHA256 Sha{ get {
- if (HasSha) {
- return PBJ._PBJ.CastSha256(super.Sha);
- } else {
- return PBJ._PBJ.CastSha256();
- }
- }
- set {
- super.Sha=(PBJ._PBJ.Construct(value));
- }
- }
- public Builder ClearShas() { super.ClearShas();return this;}
- public Builder SetShas(int index, PBJ.SHA256 value) {
- super.SetShas(index,PBJ._PBJ.Construct(value));
- return this;
- }
- public const int ShasFieldTag=33;
- public int ShasCount { get { return super.ShasCount;} }
- public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
- public PBJ.SHA256 Shas(int index) {
- return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
- }
- public Builder AddShas(PBJ.SHA256 value) {
- super.AddShas(PBJ._PBJ.Construct(value));
- return this;
- }
- public Builder ClearExtmes() { super.ClearExtmes();return this;}
- public const int ExtmesFieldTag=34;
- public bool HasExtmes{ get {return super.HasExtmes;} }
- public ExternalMessage Extmes{ get {
- if (HasExtmes) {
- return new ExternalMessage(super.Extmes);
- } else {
- return new ExternalMessage();
- }
- }
- set {
- super.Extmes=value._PBJSuper;
- }
- }
- public Builder ClearExtmessers() { super.ClearExtmessers();return this;}
- public Builder SetExtmessers(int index,ExternalMessage value) {
- super.SetExtmessers(index,value._PBJSuper);
- return this;
- }
- public const int ExtmessersFieldTag=35;
- public int ExtmessersCount { get { return super.ExtmessersCount;} }
- public bool HasExtmessers(int index) {return true;}
- public ExternalMessage Extmessers(int index) {
- return new ExternalMessage(super.GetExtmessers(index));
- }
- public Builder AddExtmessers(ExternalMessage value) {
- super.AddExtmessers(value._PBJSuper);
- return this;
- }
- public Builder ClearExtmesser() { super.ClearExtmesser();return this;}
- public const int ExtmesserFieldTag=36;
- public bool HasExtmesser{ get {return super.HasExtmesser;} }
- public ExternalMessage Extmesser{ get {
- if (HasExtmesser) {
- return new ExternalMessage(super.Extmesser);
- } else {
- return new ExternalMessage();
- }
- }
- set {
- super.Extmesser=value._PBJSuper;
- }
- }
- }
- }
- }
- namespace Sirikata.PB {
- }
|