| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/ui_text.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/ui_text.proto</summary> |
| | 15 | | public static partial class UiTextReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/ui_text.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static UiTextReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CilkZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfdGV4dC5wcm90bxIb", |
| | 28 | | "ZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxhbmQvY29t", |
| | 29 | | "bW9uL2NvbG9ycy5wcm90bxouZGVjZW50cmFsYW5kL3Nkay9jb21wb25lbnRz", |
| | 30 | | "L2NvbW1vbi90ZXh0cy5wcm90byLoAgoIUEJVaVRleHQSDQoFdmFsdWUYASAB", |
| | 31 | | "KAkSLwoFY29sb3IYAiABKAsyGy5kZWNlbnRyYWxhbmQuY29tbW9uLkNvbG9y", |
| | 32 | | "NEgAiAEBEkoKCnRleHRfYWxpZ24YAyABKA4yMS5kZWNlbnRyYWxhbmQuc2Rr", |
| | 33 | | "LmNvbXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1vZGVIAYgBARI7CgRmb250", |
| | 34 | | "GAQgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLmNvbW1vbi5G", |
| | 35 | | "b250SAKIAQESFgoJZm9udF9zaXplGAUgASgFSAOIAQESPQoJdGV4dF93cmFw", |
| | 36 | | "GAYgASgOMiUuZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzLlRleHRXcmFw", |
| | 37 | | "SASIAQFCCAoGX2NvbG9yQg0KC190ZXh0X2FsaWduQgcKBV9mb250QgwKCl9m", |
| | 38 | | "b250X3NpemVCDAoKX3RleHRfd3JhcConCghUZXh0V3JhcBILCgdUV19XUkFQ", |
| | 39 | | "EAASDgoKVFdfTk9fV1JBUBABQhSqAhFEQ0wuRUNTQ29tcG9uZW50c2IGcHJv", |
| | 40 | | "dG8z")); |
| 0 | 41 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 42 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents |
| | 43 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.TextWrap), }, null, new pbr::GeneratedCl |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiText), global::DCL.ECSComponents.PBUiText |
| | 45 | | })); |
| 0 | 46 | | } |
| | 47 | | #endregion |
| | 48 | |
|
| | 49 | | } |
| | 50 | | #region Enums |
| | 51 | | public enum TextWrap { |
| | 52 | | [pbr::OriginalName("TW_WRAP")] TwWrap = 0, |
| | 53 | | [pbr::OriginalName("TW_NO_WRAP")] TwNoWrap = 1, |
| | 54 | | } |
| | 55 | |
|
| | 56 | | #endregion |
| | 57 | |
|
| | 58 | | #region Messages |
| | 59 | | public sealed partial class PBUiText : pb::IMessage<PBUiText> |
| | 60 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 61 | | , pb::IBufferMessage |
| | 62 | | #endif |
| | 63 | | { |
| | 64 | | private static readonly pb::MessageParser<PBUiText> _parser = new pb::MessageParser<PBUiText>(() => new PBUiText()); |
| | 65 | | private pb::UnknownFieldSet _unknownFields; |
| | 66 | | private int _hasBits0; |
| | 67 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 68 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 69 | | public static pb::MessageParser<PBUiText> Parser { get { return _parser; } } |
| | 70 | |
|
| | 71 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 72 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 73 | | public static pbr::MessageDescriptor Descriptor { |
| | 74 | | get { return global::DCL.ECSComponents.UiTextReflection.Descriptor.MessageTypes[0]; } |
| | 75 | | } |
| | 76 | |
|
| | 77 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 78 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 79 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 80 | | get { return Descriptor; } |
| | 81 | | } |
| | 82 | |
|
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 85 | | public PBUiText() { |
| | 86 | | OnConstruction(); |
| | 87 | | } |
| | 88 | |
|
| | 89 | | partial void OnConstruction(); |
| | 90 | |
|
| | 91 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 92 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 93 | | public PBUiText(PBUiText other) : this() { |
| | 94 | | _hasBits0 = other._hasBits0; |
| | 95 | | value_ = other.value_; |
| | 96 | | color_ = other.color_ != null ? other.color_.Clone() : null; |
| | 97 | | textAlign_ = other.textAlign_; |
| | 98 | | font_ = other.font_; |
| | 99 | | fontSize_ = other.fontSize_; |
| | 100 | | textWrap_ = other.textWrap_; |
| | 101 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 102 | | } |
| | 103 | |
|
| | 104 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 105 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 106 | | public PBUiText Clone() { |
| | 107 | | return new PBUiText(this); |
| | 108 | | } |
| | 109 | |
|
| | 110 | | /// <summary>Field number for the "value" field.</summary> |
| | 111 | | public const int ValueFieldNumber = 1; |
| | 112 | | private string value_ = ""; |
| | 113 | | /// <summary> |
| | 114 | | /// the text content, tag <b> and <i> are supported |
| | 115 | | /// </summary> |
| | 116 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 117 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 118 | | public string Value { |
| | 119 | | get { return value_; } |
| | 120 | | set { |
| | 121 | | value_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 122 | | } |
| | 123 | | } |
| | 124 | |
|
| | 125 | | /// <summary>Field number for the "color" field.</summary> |
| | 126 | | public const int ColorFieldNumber = 2; |
| | 127 | | private global::Decentraland.Common.Color4 color_; |
| | 128 | | /// <summary> |
| | 129 | | /// RGBA color (default: opaque white) |
| | 130 | | /// </summary> |
| | 131 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 132 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 133 | | public global::Decentraland.Common.Color4 Color { |
| | 134 | | get { return color_; } |
| | 135 | | set { |
| | 136 | | color_ = value; |
| | 137 | | } |
| | 138 | | } |
| | 139 | |
|
| | 140 | | /// <summary>Field number for the "text_align" field.</summary> |
| | 141 | | public const int TextAlignFieldNumber = 3; |
| | 142 | | private global::DCL.ECSComponents.TextAlignMode textAlign_; |
| | 143 | | /// <summary> |
| | 144 | | /// alignment within the bounds (default: center) |
| | 145 | | /// </summary> |
| | 146 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 147 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 148 | | public global::DCL.ECSComponents.TextAlignMode TextAlign { |
| | 149 | | get { if ((_hasBits0 & 1) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo |
| | 150 | | set { |
| | 151 | | _hasBits0 |= 1; |
| | 152 | | textAlign_ = value; |
| | 153 | | } |
| | 154 | | } |
| | 155 | | /// <summary>Gets whether the "text_align" field is set</summary> |
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 158 | | public bool HasTextAlign { |
| | 159 | | get { return (_hasBits0 & 1) != 0; } |
| | 160 | | } |
| | 161 | | /// <summary>Clears the value of the "text_align" field</summary> |
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public void ClearTextAlign() { |
| | 165 | | _hasBits0 &= ~1; |
| | 166 | | } |
| | 167 | |
|
| | 168 | | /// <summary>Field number for the "font" field.</summary> |
| | 169 | | public const int FontFieldNumber = 4; |
| | 170 | | private global::DCL.ECSComponents.Font font_; |
| | 171 | | /// <summary> |
| | 172 | | /// font for the text (default: sans-serif) |
| | 173 | | /// </summary> |
| | 174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 175 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 176 | | public global::DCL.ECSComponents.Font Font { |
| | 177 | | get { if ((_hasBits0 & 2) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } } |
| | 178 | | set { |
| | 179 | | _hasBits0 |= 2; |
| | 180 | | font_ = value; |
| | 181 | | } |
| | 182 | | } |
| | 183 | | /// <summary>Gets whether the "font" field is set</summary> |
| | 184 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 185 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 186 | | public bool HasFont { |
| | 187 | | get { return (_hasBits0 & 2) != 0; } |
| | 188 | | } |
| | 189 | | /// <summary>Clears the value of the "font" field</summary> |
| | 190 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 191 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 192 | | public void ClearFont() { |
| | 193 | | _hasBits0 &= ~2; |
| | 194 | | } |
| | 195 | |
|
| | 196 | | /// <summary>Field number for the "font_size" field.</summary> |
| | 197 | | public const int FontSizeFieldNumber = 5; |
| | 198 | | private int fontSize_; |
| | 199 | | /// <summary> |
| | 200 | | /// size of the text (default: 10) |
| | 201 | | /// </summary> |
| | 202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 203 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 204 | | public int FontSize { |
| | 205 | | get { if ((_hasBits0 & 4) != 0) { return fontSize_; } else { return 0; } } |
| | 206 | | set { |
| | 207 | | _hasBits0 |= 4; |
| | 208 | | fontSize_ = value; |
| | 209 | | } |
| | 210 | | } |
| | 211 | | /// <summary>Gets whether the "font_size" field is set</summary> |
| | 212 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 213 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 214 | | public bool HasFontSize { |
| | 215 | | get { return (_hasBits0 & 4) != 0; } |
| | 216 | | } |
| | 217 | | /// <summary>Clears the value of the "font_size" field</summary> |
| | 218 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 219 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 220 | | public void ClearFontSize() { |
| | 221 | | _hasBits0 &= ~4; |
| | 222 | | } |
| | 223 | |
|
| | 224 | | /// <summary>Field number for the "text_wrap" field.</summary> |
| | 225 | | public const int TextWrapFieldNumber = 6; |
| | 226 | | private global::DCL.ECSComponents.TextWrap textWrap_; |
| | 227 | | /// <summary> |
| | 228 | | /// wrap text when the border is reached (default: TW_WRAP) |
| | 229 | | /// </summary> |
| | 230 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 231 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 232 | | public global::DCL.ECSComponents.TextWrap TextWrap { |
| | 233 | | get { if ((_hasBits0 & 8) != 0) { return textWrap_; } else { return global::DCL.ECSComponents.TextWrap.TwWrap; } } |
| | 234 | | set { |
| | 235 | | _hasBits0 |= 8; |
| | 236 | | textWrap_ = value; |
| | 237 | | } |
| | 238 | | } |
| | 239 | | /// <summary>Gets whether the "text_wrap" field is set</summary> |
| | 240 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 241 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 242 | | public bool HasTextWrap { |
| | 243 | | get { return (_hasBits0 & 8) != 0; } |
| | 244 | | } |
| | 245 | | /// <summary>Clears the value of the "text_wrap" field</summary> |
| | 246 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 247 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 248 | | public void ClearTextWrap() { |
| | 249 | | _hasBits0 &= ~8; |
| | 250 | | } |
| | 251 | |
|
| | 252 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 253 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 254 | | public override bool Equals(object other) { |
| | 255 | | return Equals(other as PBUiText); |
| | 256 | | } |
| | 257 | |
|
| | 258 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 259 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 260 | | public bool Equals(PBUiText other) { |
| | 261 | | if (ReferenceEquals(other, null)) { |
| | 262 | | return false; |
| | 263 | | } |
| | 264 | | if (ReferenceEquals(other, this)) { |
| | 265 | | return true; |
| | 266 | | } |
| | 267 | | if (Value != other.Value) return false; |
| | 268 | | if (!object.Equals(Color, other.Color)) return false; |
| | 269 | | if (TextAlign != other.TextAlign) return false; |
| | 270 | | if (Font != other.Font) return false; |
| | 271 | | if (FontSize != other.FontSize) return false; |
| | 272 | | if (TextWrap != other.TextWrap) return false; |
| | 273 | | return Equals(_unknownFields, other._unknownFields); |
| | 274 | | } |
| | 275 | |
|
| | 276 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 277 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 278 | | public override int GetHashCode() { |
| | 279 | | int hash = 1; |
| | 280 | | if (Value.Length != 0) hash ^= Value.GetHashCode(); |
| | 281 | | if (color_ != null) hash ^= Color.GetHashCode(); |
| | 282 | | if (HasTextAlign) hash ^= TextAlign.GetHashCode(); |
| | 283 | | if (HasFont) hash ^= Font.GetHashCode(); |
| | 284 | | if (HasFontSize) hash ^= FontSize.GetHashCode(); |
| | 285 | | if (HasTextWrap) hash ^= TextWrap.GetHashCode(); |
| | 286 | | if (_unknownFields != null) { |
| | 287 | | hash ^= _unknownFields.GetHashCode(); |
| | 288 | | } |
| | 289 | | return hash; |
| | 290 | | } |
| | 291 | |
|
| | 292 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 293 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 294 | | public override string ToString() { |
| | 295 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 296 | | } |
| | 297 | |
|
| | 298 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 299 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 300 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 301 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 302 | | output.WriteRawMessage(this); |
| | 303 | | #else |
| | 304 | | if (Value.Length != 0) { |
| | 305 | | output.WriteRawTag(10); |
| | 306 | | output.WriteString(Value); |
| | 307 | | } |
| | 308 | | if (color_ != null) { |
| | 309 | | output.WriteRawTag(18); |
| | 310 | | output.WriteMessage(Color); |
| | 311 | | } |
| | 312 | | if (HasTextAlign) { |
| | 313 | | output.WriteRawTag(24); |
| | 314 | | output.WriteEnum((int) TextAlign); |
| | 315 | | } |
| | 316 | | if (HasFont) { |
| | 317 | | output.WriteRawTag(32); |
| | 318 | | output.WriteEnum((int) Font); |
| | 319 | | } |
| | 320 | | if (HasFontSize) { |
| | 321 | | output.WriteRawTag(40); |
| | 322 | | output.WriteInt32(FontSize); |
| | 323 | | } |
| | 324 | | if (HasTextWrap) { |
| | 325 | | output.WriteRawTag(48); |
| | 326 | | output.WriteEnum((int) TextWrap); |
| | 327 | | } |
| | 328 | | if (_unknownFields != null) { |
| | 329 | | _unknownFields.WriteTo(output); |
| | 330 | | } |
| | 331 | | #endif |
| | 332 | | } |
| | 333 | |
|
| | 334 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 335 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 336 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 337 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 338 | | if (Value.Length != 0) { |
| | 339 | | output.WriteRawTag(10); |
| | 340 | | output.WriteString(Value); |
| | 341 | | } |
| | 342 | | if (color_ != null) { |
| | 343 | | output.WriteRawTag(18); |
| | 344 | | output.WriteMessage(Color); |
| | 345 | | } |
| | 346 | | if (HasTextAlign) { |
| | 347 | | output.WriteRawTag(24); |
| | 348 | | output.WriteEnum((int) TextAlign); |
| | 349 | | } |
| | 350 | | if (HasFont) { |
| | 351 | | output.WriteRawTag(32); |
| | 352 | | output.WriteEnum((int) Font); |
| | 353 | | } |
| | 354 | | if (HasFontSize) { |
| | 355 | | output.WriteRawTag(40); |
| | 356 | | output.WriteInt32(FontSize); |
| | 357 | | } |
| | 358 | | if (HasTextWrap) { |
| | 359 | | output.WriteRawTag(48); |
| | 360 | | output.WriteEnum((int) TextWrap); |
| | 361 | | } |
| | 362 | | if (_unknownFields != null) { |
| | 363 | | _unknownFields.WriteTo(ref output); |
| | 364 | | } |
| | 365 | | } |
| | 366 | | #endif |
| | 367 | |
|
| | 368 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 369 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 370 | | public int CalculateSize() { |
| | 371 | | int size = 0; |
| | 372 | | if (Value.Length != 0) { |
| | 373 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Value); |
| | 374 | | } |
| | 375 | | if (color_ != null) { |
| | 376 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); |
| | 377 | | } |
| | 378 | | if (HasTextAlign) { |
| | 379 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign); |
| | 380 | | } |
| | 381 | | if (HasFont) { |
| | 382 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font); |
| | 383 | | } |
| | 384 | | if (HasFontSize) { |
| | 385 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize); |
| | 386 | | } |
| | 387 | | if (HasTextWrap) { |
| | 388 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextWrap); |
| | 389 | | } |
| | 390 | | if (_unknownFields != null) { |
| | 391 | | size += _unknownFields.CalculateSize(); |
| | 392 | | } |
| | 393 | | return size; |
| | 394 | | } |
| | 395 | |
|
| | 396 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 397 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 398 | | public void MergeFrom(PBUiText other) { |
| | 399 | | if (other == null) { |
| | 400 | | return; |
| | 401 | | } |
| | 402 | | if (other.Value.Length != 0) { |
| | 403 | | Value = other.Value; |
| | 404 | | } |
| | 405 | | if (other.color_ != null) { |
| | 406 | | if (color_ == null) { |
| | 407 | | Color = new global::Decentraland.Common.Color4(); |
| | 408 | | } |
| | 409 | | Color.MergeFrom(other.Color); |
| | 410 | | } |
| | 411 | | if (other.HasTextAlign) { |
| | 412 | | TextAlign = other.TextAlign; |
| | 413 | | } |
| | 414 | | if (other.HasFont) { |
| | 415 | | Font = other.Font; |
| | 416 | | } |
| | 417 | | if (other.HasFontSize) { |
| | 418 | | FontSize = other.FontSize; |
| | 419 | | } |
| | 420 | | if (other.HasTextWrap) { |
| | 421 | | TextWrap = other.TextWrap; |
| | 422 | | } |
| | 423 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 424 | | } |
| | 425 | |
|
| | 426 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 427 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 428 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 429 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 430 | | input.ReadRawMessage(this); |
| | 431 | | #else |
| | 432 | | uint tag; |
| | 433 | | while ((tag = input.ReadTag()) != 0) { |
| | 434 | | switch(tag) { |
| | 435 | | default: |
| | 436 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 437 | | break; |
| | 438 | | case 10: { |
| | 439 | | Value = input.ReadString(); |
| | 440 | | break; |
| | 441 | | } |
| | 442 | | case 18: { |
| | 443 | | if (color_ == null) { |
| | 444 | | Color = new global::Decentraland.Common.Color4(); |
| | 445 | | } |
| | 446 | | input.ReadMessage(Color); |
| | 447 | | break; |
| | 448 | | } |
| | 449 | | case 24: { |
| | 450 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| | 451 | | break; |
| | 452 | | } |
| | 453 | | case 32: { |
| | 454 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| | 455 | | break; |
| | 456 | | } |
| | 457 | | case 40: { |
| | 458 | | FontSize = input.ReadInt32(); |
| | 459 | | break; |
| | 460 | | } |
| | 461 | | case 48: { |
| | 462 | | TextWrap = (global::DCL.ECSComponents.TextWrap) input.ReadEnum(); |
| | 463 | | break; |
| | 464 | | } |
| | 465 | | } |
| | 466 | | } |
| | 467 | | #endif |
| | 468 | | } |
| | 469 | |
|
| | 470 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 471 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 472 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 473 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 474 | | uint tag; |
| | 475 | | while ((tag = input.ReadTag()) != 0) { |
| | 476 | | switch(tag) { |
| | 477 | | default: |
| | 478 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 479 | | break; |
| | 480 | | case 10: { |
| | 481 | | Value = input.ReadString(); |
| | 482 | | break; |
| | 483 | | } |
| | 484 | | case 18: { |
| | 485 | | if (color_ == null) { |
| | 486 | | Color = new global::Decentraland.Common.Color4(); |
| | 487 | | } |
| | 488 | | input.ReadMessage(Color); |
| | 489 | | break; |
| | 490 | | } |
| | 491 | | case 24: { |
| | 492 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| | 493 | | break; |
| | 494 | | } |
| | 495 | | case 32: { |
| | 496 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| | 497 | | break; |
| | 498 | | } |
| | 499 | | case 40: { |
| | 500 | | FontSize = input.ReadInt32(); |
| | 501 | | break; |
| | 502 | | } |
| | 503 | | case 48: { |
| | 504 | | TextWrap = (global::DCL.ECSComponents.TextWrap) input.ReadEnum(); |
| | 505 | | break; |
| | 506 | | } |
| | 507 | | } |
| | 508 | | } |
| | 509 | | } |
| | 510 | | #endif |
| | 511 | |
|
| | 512 | | } |
| | 513 | |
|
| | 514 | | #endregion |
| | 515 | |
|
| | 516 | | } |
| | 517 | |
|
| | 518 | | #endregion Designer generated code |