| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/billboard.proto |
| | 4 | | // </auto-generated> |
| | 5 | | #pragma warning disable 1591, 0612, 3021 |
| | 6 | | #region Designer generated code |
| | 7 | |
|
| | 8 | | using pb = global::Google.Protobuf; |
| | 9 | | using pbc = global::Google.Protobuf.Collections; |
| | 10 | | using pbr = global::Google.Protobuf.Reflection; |
| | 11 | | using scg = global::System.Collections.Generic; |
| | 12 | | namespace DCL.ECSComponents { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/sdk/components/billboard.proto</summary> |
| | 15 | | public static partial class BillboardReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/billboard.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static BillboardReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CitkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYmlsbGJvYXJkLnByb3Rv", |
| | 28 | | "EhtkZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMiaQoLUEJCaWxsYm9hcmQS", |
| | 29 | | "RwoOYmlsbGJvYXJkX21vZGUYASABKA4yKi5kZWNlbnRyYWxhbmQuc2RrLmNv", |
| | 30 | | "bXBvbmVudHMuQmlsbGJvYXJkTW9kZUgAiAEBQhEKD19iaWxsYm9hcmRfbW9k", |
| | 31 | | "ZSpGCg1CaWxsYm9hcmRNb2RlEgsKB0JNX05PTkUQABIICgRCTV9YEAESCAoE", |
| | 32 | | "Qk1fWRACEggKBEJNX1oQBBIKCgZCTV9BTEwQB0IUqgIRRENMLkVDU0NvbXBv", |
| | 33 | | "bmVudHNiBnByb3RvMw==")); |
| | 34 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 35 | | new pbr::FileDescriptor[] { }, |
| | 36 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.BillboardMode), }, null, new pbr::Genera |
| | 37 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBBillboard), global::DCL.ECSComponents.PBBil |
| | 38 | | })); |
| | 39 | | } |
| | 40 | | #endregion |
| | 41 | |
|
| | 42 | | } |
| | 43 | | #region Enums |
| | 44 | | /// <summary> |
| | 45 | | /// BillboardMode indicates one or more axis for automatic rotation, in OR-able bit flag form. |
| | 46 | | /// Only the values below and the (BM_X | BM_Y) combination are valid. |
| | 47 | | /// </summary> |
| | 48 | | public enum BillboardMode { |
| | 49 | | [pbr::OriginalName("BM_NONE")] BmNone = 0, |
| | 50 | | [pbr::OriginalName("BM_X")] BmX = 1, |
| | 51 | | [pbr::OriginalName("BM_Y")] BmY = 2, |
| | 52 | | [pbr::OriginalName("BM_Z")] BmZ = 4, |
| | 53 | | /// <summary> |
| | 54 | | /// bitwise combination BM_X | BM_Y | BM_Z |
| | 55 | | /// </summary> |
| | 56 | | [pbr::OriginalName("BM_ALL")] BmAll = 7, |
| | 57 | | } |
| | 58 | |
|
| | 59 | | #endregion |
| | 60 | |
|
| | 61 | | #region Messages |
| | 62 | | /// <summary> |
| | 63 | | /// The Billboard component makes an Entity automatically reorient its rotation to face the camera. |
| | 64 | | /// As the name indicates, it’s used to display in-game billboards and frequently combined with |
| | 65 | | /// the TextShape component. |
| | 66 | | /// |
| | 67 | | /// Billboard only affects the Entity's rotation. Its scale and position are still determined by its |
| | 68 | | /// Transform. |
| | 69 | | /// </summary> |
| | 70 | | public sealed partial class PBBillboard : pb::IMessage<PBBillboard> |
| | 71 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 72 | | , pb::IBufferMessage |
| | 73 | | #endif |
| | 74 | | { |
| 2 | 75 | | private static readonly pb::MessageParser<PBBillboard> _parser = new pb::MessageParser<PBBillboard>(() => new PBBill |
| | 76 | | private pb::UnknownFieldSet _unknownFields; |
| | 77 | | private int _hasBits0; |
| | 78 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 79 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 80 | | public static pb::MessageParser<PBBillboard> Parser { get { return _parser; } } |
| | 81 | |
|
| | 82 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 83 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 84 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 85 | | get { return global::DCL.ECSComponents.BillboardReflection.Descriptor.MessageTypes[0]; } |
| | 86 | | } |
| | 87 | |
|
| | 88 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 89 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 90 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 91 | | get { return Descriptor; } |
| | 92 | | } |
| | 93 | |
|
| | 94 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 95 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 3 | 96 | | public PBBillboard() { |
| | 97 | | OnConstruction(); |
| 3 | 98 | | } |
| | 99 | |
|
| | 100 | | partial void OnConstruction(); |
| | 101 | |
|
| | 102 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 103 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 104 | | public PBBillboard(PBBillboard other) : this() { |
| 0 | 105 | | _hasBits0 = other._hasBits0; |
| 0 | 106 | | billboardMode_ = other.billboardMode_; |
| 0 | 107 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 108 | | } |
| | 109 | |
|
| | 110 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 111 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 112 | | public PBBillboard Clone() { |
| 0 | 113 | | return new PBBillboard(this); |
| | 114 | | } |
| | 115 | |
|
| | 116 | | /// <summary>Field number for the "billboard_mode" field.</summary> |
| | 117 | | public const int BillboardModeFieldNumber = 1; |
| | 118 | | private global::DCL.ECSComponents.BillboardMode billboardMode_; |
| | 119 | | /// <summary> |
| | 120 | | /// the BillboardMode (default: BM_ALL) |
| | 121 | | /// </summary> |
| | 122 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 123 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 124 | | public global::DCL.ECSComponents.BillboardMode BillboardMode { |
| 10 | 125 | | get { if ((_hasBits0 & 1) != 0) { return billboardMode_; } else { return global::DCL.ECSComponents.BillboardMode.B |
| | 126 | | set { |
| 3 | 127 | | _hasBits0 |= 1; |
| 3 | 128 | | billboardMode_ = value; |
| 3 | 129 | | } |
| | 130 | | } |
| | 131 | | /// <summary>Gets whether the "billboard_mode" field is set</summary> |
| | 132 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 133 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 134 | | public bool HasBillboardMode { |
| 3 | 135 | | get { return (_hasBits0 & 1) != 0; } |
| | 136 | | } |
| | 137 | | /// <summary>Clears the value of the "billboard_mode" field</summary> |
| | 138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 139 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 140 | | public void ClearBillboardMode() { |
| 0 | 141 | | _hasBits0 &= ~1; |
| 0 | 142 | | } |
| | 143 | |
|
| | 144 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 145 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 146 | | public override bool Equals(object other) { |
| 0 | 147 | | return Equals(other as PBBillboard); |
| | 148 | | } |
| | 149 | |
|
| | 150 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 151 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 152 | | public bool Equals(PBBillboard other) { |
| 0 | 153 | | if (ReferenceEquals(other, null)) { |
| 0 | 154 | | return false; |
| | 155 | | } |
| 0 | 156 | | if (ReferenceEquals(other, this)) { |
| 0 | 157 | | return true; |
| | 158 | | } |
| 0 | 159 | | if (BillboardMode != other.BillboardMode) return false; |
| 0 | 160 | | return Equals(_unknownFields, other._unknownFields); |
| | 161 | | } |
| | 162 | |
|
| | 163 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 164 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 165 | | public override int GetHashCode() { |
| 0 | 166 | | int hash = 1; |
| 0 | 167 | | if (HasBillboardMode) hash ^= BillboardMode.GetHashCode(); |
| 0 | 168 | | if (_unknownFields != null) { |
| 0 | 169 | | hash ^= _unknownFields.GetHashCode(); |
| | 170 | | } |
| 0 | 171 | | return hash; |
| | 172 | | } |
| | 173 | |
|
| | 174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 175 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 176 | | public override string ToString() { |
| 0 | 177 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 178 | | } |
| | 179 | |
|
| | 180 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 181 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 182 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 183 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 184 | | output.WriteRawMessage(this); |
| | 185 | | #else |
| 1 | 186 | | if (HasBillboardMode) { |
| 1 | 187 | | output.WriteRawTag(8); |
| 1 | 188 | | output.WriteEnum((int) BillboardMode); |
| | 189 | | } |
| 1 | 190 | | if (_unknownFields != null) { |
| 0 | 191 | | _unknownFields.WriteTo(output); |
| | 192 | | } |
| | 193 | | #endif |
| 1 | 194 | | } |
| | 195 | |
|
| | 196 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 197 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 198 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 199 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 200 | | if (HasBillboardMode) { |
| | 201 | | output.WriteRawTag(8); |
| | 202 | | output.WriteEnum((int) BillboardMode); |
| | 203 | | } |
| | 204 | | if (_unknownFields != null) { |
| | 205 | | _unknownFields.WriteTo(ref output); |
| | 206 | | } |
| | 207 | | } |
| | 208 | | #endif |
| | 209 | |
|
| | 210 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 211 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 212 | | public int CalculateSize() { |
| 1 | 213 | | int size = 0; |
| 1 | 214 | | if (HasBillboardMode) { |
| 1 | 215 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) BillboardMode); |
| | 216 | | } |
| 1 | 217 | | if (_unknownFields != null) { |
| 0 | 218 | | size += _unknownFields.CalculateSize(); |
| | 219 | | } |
| 1 | 220 | | return size; |
| | 221 | | } |
| | 222 | |
|
| | 223 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 224 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 225 | | public void MergeFrom(PBBillboard other) { |
| 0 | 226 | | if (other == null) { |
| 0 | 227 | | return; |
| | 228 | | } |
| 0 | 229 | | if (other.HasBillboardMode) { |
| 0 | 230 | | BillboardMode = other.BillboardMode; |
| | 231 | | } |
| 0 | 232 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 233 | | } |
| | 234 | |
|
| | 235 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 236 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 237 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 238 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 239 | | input.ReadRawMessage(this); |
| | 240 | | #else |
| | 241 | | uint tag; |
| 2 | 242 | | while ((tag = input.ReadTag()) != 0) { |
| | 243 | | switch(tag) { |
| | 244 | | default: |
| 0 | 245 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 246 | | break; |
| | 247 | | case 8: { |
| 1 | 248 | | BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum(); |
| | 249 | | break; |
| | 250 | | } |
| | 251 | | } |
| | 252 | | } |
| | 253 | | #endif |
| 1 | 254 | | } |
| | 255 | |
|
| | 256 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 257 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 258 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 259 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 260 | | uint tag; |
| | 261 | | while ((tag = input.ReadTag()) != 0) { |
| | 262 | | switch(tag) { |
| | 263 | | default: |
| | 264 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 265 | | break; |
| | 266 | | case 8: { |
| | 267 | | BillboardMode = (global::DCL.ECSComponents.BillboardMode) input.ReadEnum(); |
| | 268 | | break; |
| | 269 | | } |
| | 270 | | } |
| | 271 | | } |
| | 272 | | } |
| | 273 | | #endif |
| | 274 | |
|
| | 275 | | } |
| | 276 | |
|
| | 277 | | #endregion |
| | 278 | |
|
| | 279 | | } |
| | 280 | |
|
| | 281 | | #endregion Designer generated code |