| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/ui_dropdown.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_dropdown.proto</summary> |
| | 15 | | public static partial class UiDropdownReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/ui_dropdown.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static UiDropdownReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci1kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfZHJvcGRvd24ucHJv", |
| | 28 | | "dG8SG2RlY2VudHJhbGFuZC5zZGsuY29tcG9uZW50cxogZGVjZW50cmFsYW5k", |
| | 29 | | "L2NvbW1vbi9jb2xvcnMucHJvdG8aLmRlY2VudHJhbGFuZC9zZGsvY29tcG9u", |
| | 30 | | "ZW50cy9jb21tb24vdGV4dHMucHJvdG8iowMKDFBCVWlEcm9wZG93bhIUCgxh", |
| | 31 | | "Y2NlcHRfZW1wdHkYASABKAgSGAoLZW1wdHlfbGFiZWwYAiABKAlIAIgBARIP", |
| | 32 | | "CgdvcHRpb25zGAMgAygJEhsKDnNlbGVjdGVkX2luZGV4GAQgASgFSAGIAQES", |
| | 33 | | "EAoIZGlzYWJsZWQYBSABKAgSLwoFY29sb3IYBiABKAsyGy5kZWNlbnRyYWxh", |
| | 34 | | "bmQuY29tbW9uLkNvbG9yNEgCiAEBEkoKCnRleHRfYWxpZ24YCiABKA4yMS5k", |
| | 35 | | "ZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuY29tbW9uLlRleHRBbGlnbk1v", |
| | 36 | | "ZGVIA4gBARI7CgRmb250GAsgASgOMiguZGVjZW50cmFsYW5kLnNkay5jb21w", |
| | 37 | | "b25lbnRzLmNvbW1vbi5Gb250SASIAQESFgoJZm9udF9zaXplGAwgASgFSAWI", |
| | 38 | | "AQFCDgoMX2VtcHR5X2xhYmVsQhEKD19zZWxlY3RlZF9pbmRleEIICgZfY29s", |
| | 39 | | "b3JCDQoLX3RleHRfYWxpZ25CBwoFX2ZvbnRCDAoKX2ZvbnRfc2l6ZUIUqgIR", |
| | 40 | | "RENMLkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 41 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 42 | | new pbr::FileDescriptor[] { global::Decentraland.Common.ColorsReflection.Descriptor, global::DCL.ECSComponents |
| | 43 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 44 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiDropdown), global::DCL.ECSComponents.PBUi |
| | 45 | | })); |
| | 46 | | } |
| | 47 | | #endregion |
| | 48 | |
|
| | 49 | | } |
| | 50 | | #region Messages |
| | 51 | | public sealed partial class PBUiDropdown : pb::IMessage<PBUiDropdown> |
| | 52 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 53 | | , pb::IBufferMessage |
| | 54 | | #endif |
| | 55 | | { |
| 1 | 56 | | private static readonly pb::MessageParser<PBUiDropdown> _parser = new pb::MessageParser<PBUiDropdown>(() => new PBUi |
| | 57 | | private pb::UnknownFieldSet _unknownFields; |
| | 58 | | private int _hasBits0; |
| | 59 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 60 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 61 | | public static pb::MessageParser<PBUiDropdown> Parser { get { return _parser; } } |
| | 62 | |
|
| | 63 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 64 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 65 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 66 | | get { return global::DCL.ECSComponents.UiDropdownReflection.Descriptor.MessageTypes[0]; } |
| | 67 | | } |
| | 68 | |
|
| | 69 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 70 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 71 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 72 | | get { return Descriptor; } |
| | 73 | | } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 5 | 77 | | public PBUiDropdown() { |
| | 78 | | OnConstruction(); |
| 5 | 79 | | } |
| | 80 | |
|
| | 81 | | partial void OnConstruction(); |
| | 82 | |
|
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 85 | | public PBUiDropdown(PBUiDropdown other) : this() { |
| 0 | 86 | | _hasBits0 = other._hasBits0; |
| 0 | 87 | | acceptEmpty_ = other.acceptEmpty_; |
| 0 | 88 | | emptyLabel_ = other.emptyLabel_; |
| 0 | 89 | | options_ = other.options_.Clone(); |
| 0 | 90 | | selectedIndex_ = other.selectedIndex_; |
| 0 | 91 | | disabled_ = other.disabled_; |
| 0 | 92 | | color_ = other.color_ != null ? other.color_.Clone() : null; |
| 0 | 93 | | textAlign_ = other.textAlign_; |
| 0 | 94 | | font_ = other.font_; |
| 0 | 95 | | fontSize_ = other.fontSize_; |
| 0 | 96 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 97 | | } |
| | 98 | |
|
| | 99 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 100 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 101 | | public PBUiDropdown Clone() { |
| 0 | 102 | | return new PBUiDropdown(this); |
| | 103 | | } |
| | 104 | |
|
| | 105 | | /// <summary>Field number for the "accept_empty" field.</summary> |
| | 106 | | public const int AcceptEmptyFieldNumber = 1; |
| | 107 | | private bool acceptEmpty_; |
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 110 | | public bool AcceptEmpty { |
| 2 | 111 | | get { return acceptEmpty_; } |
| | 112 | | set { |
| 5 | 113 | | acceptEmpty_ = value; |
| 5 | 114 | | } |
| | 115 | | } |
| | 116 | |
|
| | 117 | | /// <summary>Field number for the "empty_label" field.</summary> |
| | 118 | | public const int EmptyLabelFieldNumber = 2; |
| | 119 | | private string emptyLabel_; |
| | 120 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 121 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 122 | | public string EmptyLabel { |
| 1 | 123 | | get { return emptyLabel_ ?? ""; } |
| | 124 | | set { |
| 5 | 125 | | emptyLabel_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 5 | 126 | | } |
| | 127 | | } |
| | 128 | | /// <summary>Gets whether the "empty_label" field is set</summary> |
| | 129 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 130 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 131 | | public bool HasEmptyLabel { |
| 0 | 132 | | get { return emptyLabel_ != null; } |
| | 133 | | } |
| | 134 | | /// <summary>Clears the value of the "empty_label" field</summary> |
| | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 136 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 137 | | public void ClearEmptyLabel() { |
| 0 | 138 | | emptyLabel_ = null; |
| 0 | 139 | | } |
| | 140 | |
|
| | 141 | | /// <summary>Field number for the "options" field.</summary> |
| | 142 | | public const int OptionsFieldNumber = 3; |
| 1 | 143 | | private static readonly pb::FieldCodec<string> _repeated_options_codec |
| | 144 | | = pb::FieldCodec.ForString(26); |
| 5 | 145 | | private readonly pbc::RepeatedField<string> options_ = new pbc::RepeatedField<string>(); |
| | 146 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 147 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 148 | | public pbc::RepeatedField<string> Options { |
| 25 | 149 | | get { return options_; } |
| | 150 | | } |
| | 151 | |
|
| | 152 | | /// <summary>Field number for the "selected_index" field.</summary> |
| | 153 | | public const int SelectedIndexFieldNumber = 4; |
| | 154 | | private int selectedIndex_; |
| | 155 | | /// <summary> |
| | 156 | | /// default=null when accept_empty==true; default=0 when accept_empty==false |
| | 157 | | /// </summary> |
| | 158 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 159 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 160 | | public int SelectedIndex { |
| 16 | 161 | | get { if ((_hasBits0 & 1) != 0) { return selectedIndex_; } else { return 0; } } |
| | 162 | | set { |
| 5 | 163 | | _hasBits0 |= 1; |
| 5 | 164 | | selectedIndex_ = value; |
| 5 | 165 | | } |
| | 166 | | } |
| | 167 | | /// <summary>Gets whether the "selected_index" field is set</summary> |
| | 168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 169 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 170 | | public bool HasSelectedIndex { |
| 0 | 171 | | get { return (_hasBits0 & 1) != 0; } |
| | 172 | | } |
| | 173 | | /// <summary>Clears the value of the "selected_index" field</summary> |
| | 174 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 175 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 176 | | public void ClearSelectedIndex() { |
| 0 | 177 | | _hasBits0 &= ~1; |
| 0 | 178 | | } |
| | 179 | |
|
| | 180 | | /// <summary>Field number for the "disabled" field.</summary> |
| | 181 | | public const int DisabledFieldNumber = 5; |
| | 182 | | private bool disabled_; |
| | 183 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 184 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 185 | | public bool Disabled { |
| 10 | 186 | | get { return disabled_; } |
| | 187 | | set { |
| 5 | 188 | | disabled_ = value; |
| 5 | 189 | | } |
| | 190 | | } |
| | 191 | |
|
| | 192 | | /// <summary>Field number for the "color" field.</summary> |
| | 193 | | public const int ColorFieldNumber = 6; |
| | 194 | | private global::Decentraland.Common.Color4 color_; |
| | 195 | | /// <summary> |
| | 196 | | /// default=(0.0,0.0,0.0,1.0) |
| | 197 | | /// </summary> |
| | 198 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 199 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 200 | | public global::Decentraland.Common.Color4 Color { |
| 5 | 201 | | get { return color_; } |
| | 202 | | set { |
| 5 | 203 | | color_ = value; |
| 5 | 204 | | } |
| | 205 | | } |
| | 206 | |
|
| | 207 | | /// <summary>Field number for the "text_align" field.</summary> |
| | 208 | | public const int TextAlignFieldNumber = 10; |
| | 209 | | private global::DCL.ECSComponents.TextAlignMode textAlign_; |
| | 210 | | /// <summary> |
| | 211 | | /// default='center' |
| | 212 | | /// </summary> |
| | 213 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 214 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 215 | | public global::DCL.ECSComponents.TextAlignMode TextAlign { |
| 10 | 216 | | get { if ((_hasBits0 & 2) != 0) { return textAlign_; } else { return global::DCL.ECSComponents.TextAlignMode.TamTo |
| | 217 | | set { |
| 5 | 218 | | _hasBits0 |= 2; |
| 5 | 219 | | textAlign_ = value; |
| 5 | 220 | | } |
| | 221 | | } |
| | 222 | | /// <summary>Gets whether the "text_align" field is set</summary> |
| | 223 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 224 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 225 | | public bool HasTextAlign { |
| 5 | 226 | | get { return (_hasBits0 & 2) != 0; } |
| | 227 | | } |
| | 228 | | /// <summary>Clears the value of the "text_align" field</summary> |
| | 229 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 230 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 231 | | public void ClearTextAlign() { |
| 0 | 232 | | _hasBits0 &= ~2; |
| 0 | 233 | | } |
| | 234 | |
|
| | 235 | | /// <summary>Field number for the "font" field.</summary> |
| | 236 | | public const int FontFieldNumber = 11; |
| | 237 | | private global::DCL.ECSComponents.Font font_; |
| | 238 | | /// <summary> |
| | 239 | | /// default=0 |
| | 240 | | /// </summary> |
| | 241 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 242 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 243 | | public global::DCL.ECSComponents.Font Font { |
| 0 | 244 | | get { if ((_hasBits0 & 4) != 0) { return font_; } else { return global::DCL.ECSComponents.Font.FSansSerif; } } |
| | 245 | | set { |
| 0 | 246 | | _hasBits0 |= 4; |
| 0 | 247 | | font_ = value; |
| 0 | 248 | | } |
| | 249 | | } |
| | 250 | | /// <summary>Gets whether the "font" field is set</summary> |
| | 251 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 252 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 253 | | public bool HasFont { |
| 5 | 254 | | get { return (_hasBits0 & 4) != 0; } |
| | 255 | | } |
| | 256 | | /// <summary>Clears the value of the "font" field</summary> |
| | 257 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 258 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 259 | | public void ClearFont() { |
| 0 | 260 | | _hasBits0 &= ~4; |
| 0 | 261 | | } |
| | 262 | |
|
| | 263 | | /// <summary>Field number for the "font_size" field.</summary> |
| | 264 | | public const int FontSizeFieldNumber = 12; |
| | 265 | | private int fontSize_; |
| | 266 | | /// <summary> |
| | 267 | | /// default=10 |
| | 268 | | /// </summary> |
| | 269 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 270 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 271 | | public int FontSize { |
| 10 | 272 | | get { if ((_hasBits0 & 8) != 0) { return fontSize_; } else { return 0; } } |
| | 273 | | set { |
| 5 | 274 | | _hasBits0 |= 8; |
| 5 | 275 | | fontSize_ = value; |
| 5 | 276 | | } |
| | 277 | | } |
| | 278 | | /// <summary>Gets whether the "font_size" field is set</summary> |
| | 279 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 280 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 281 | | public bool HasFontSize { |
| 5 | 282 | | get { return (_hasBits0 & 8) != 0; } |
| | 283 | | } |
| | 284 | | /// <summary>Clears the value of the "font_size" field</summary> |
| | 285 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 286 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 287 | | public void ClearFontSize() { |
| 0 | 288 | | _hasBits0 &= ~8; |
| 0 | 289 | | } |
| | 290 | |
|
| | 291 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 292 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 293 | | public override bool Equals(object other) { |
| 0 | 294 | | return Equals(other as PBUiDropdown); |
| | 295 | | } |
| | 296 | |
|
| | 297 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 298 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 299 | | public bool Equals(PBUiDropdown other) { |
| 0 | 300 | | if (ReferenceEquals(other, null)) { |
| 0 | 301 | | return false; |
| | 302 | | } |
| 0 | 303 | | if (ReferenceEquals(other, this)) { |
| 0 | 304 | | return true; |
| | 305 | | } |
| 0 | 306 | | if (AcceptEmpty != other.AcceptEmpty) return false; |
| 0 | 307 | | if (EmptyLabel != other.EmptyLabel) return false; |
| 0 | 308 | | if(!options_.Equals(other.options_)) return false; |
| 0 | 309 | | if (SelectedIndex != other.SelectedIndex) return false; |
| 0 | 310 | | if (Disabled != other.Disabled) return false; |
| 0 | 311 | | if (!object.Equals(Color, other.Color)) return false; |
| 0 | 312 | | if (TextAlign != other.TextAlign) return false; |
| 0 | 313 | | if (Font != other.Font) return false; |
| 0 | 314 | | if (FontSize != other.FontSize) return false; |
| 0 | 315 | | return Equals(_unknownFields, other._unknownFields); |
| | 316 | | } |
| | 317 | |
|
| | 318 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 319 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 320 | | public override int GetHashCode() { |
| 0 | 321 | | int hash = 1; |
| 0 | 322 | | if (AcceptEmpty != false) hash ^= AcceptEmpty.GetHashCode(); |
| 0 | 323 | | if (HasEmptyLabel) hash ^= EmptyLabel.GetHashCode(); |
| 0 | 324 | | hash ^= options_.GetHashCode(); |
| 0 | 325 | | if (HasSelectedIndex) hash ^= SelectedIndex.GetHashCode(); |
| 0 | 326 | | if (Disabled != false) hash ^= Disabled.GetHashCode(); |
| 0 | 327 | | if (color_ != null) hash ^= Color.GetHashCode(); |
| 0 | 328 | | if (HasTextAlign) hash ^= TextAlign.GetHashCode(); |
| 0 | 329 | | if (HasFont) hash ^= Font.GetHashCode(); |
| 0 | 330 | | if (HasFontSize) hash ^= FontSize.GetHashCode(); |
| 0 | 331 | | if (_unknownFields != null) { |
| 0 | 332 | | hash ^= _unknownFields.GetHashCode(); |
| | 333 | | } |
| 0 | 334 | | return hash; |
| | 335 | | } |
| | 336 | |
|
| | 337 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 338 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 339 | | public override string ToString() { |
| 0 | 340 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 341 | | } |
| | 342 | |
|
| | 343 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 344 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 345 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 346 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 347 | | output.WriteRawMessage(this); |
| | 348 | | #else |
| 0 | 349 | | if (AcceptEmpty != false) { |
| 0 | 350 | | output.WriteRawTag(8); |
| 0 | 351 | | output.WriteBool(AcceptEmpty); |
| | 352 | | } |
| 0 | 353 | | if (HasEmptyLabel) { |
| 0 | 354 | | output.WriteRawTag(18); |
| 0 | 355 | | output.WriteString(EmptyLabel); |
| | 356 | | } |
| 0 | 357 | | options_.WriteTo(output, _repeated_options_codec); |
| 0 | 358 | | if (HasSelectedIndex) { |
| 0 | 359 | | output.WriteRawTag(32); |
| 0 | 360 | | output.WriteInt32(SelectedIndex); |
| | 361 | | } |
| 0 | 362 | | if (Disabled != false) { |
| 0 | 363 | | output.WriteRawTag(40); |
| 0 | 364 | | output.WriteBool(Disabled); |
| | 365 | | } |
| 0 | 366 | | if (color_ != null) { |
| 0 | 367 | | output.WriteRawTag(50); |
| 0 | 368 | | output.WriteMessage(Color); |
| | 369 | | } |
| 0 | 370 | | if (HasTextAlign) { |
| 0 | 371 | | output.WriteRawTag(80); |
| 0 | 372 | | output.WriteEnum((int) TextAlign); |
| | 373 | | } |
| 0 | 374 | | if (HasFont) { |
| 0 | 375 | | output.WriteRawTag(88); |
| 0 | 376 | | output.WriteEnum((int) Font); |
| | 377 | | } |
| 0 | 378 | | if (HasFontSize) { |
| 0 | 379 | | output.WriteRawTag(96); |
| 0 | 380 | | output.WriteInt32(FontSize); |
| | 381 | | } |
| 0 | 382 | | if (_unknownFields != null) { |
| 0 | 383 | | _unknownFields.WriteTo(output); |
| | 384 | | } |
| | 385 | | #endif |
| 0 | 386 | | } |
| | 387 | |
|
| | 388 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 389 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 390 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 391 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 392 | | if (AcceptEmpty != false) { |
| | 393 | | output.WriteRawTag(8); |
| | 394 | | output.WriteBool(AcceptEmpty); |
| | 395 | | } |
| | 396 | | if (HasEmptyLabel) { |
| | 397 | | output.WriteRawTag(18); |
| | 398 | | output.WriteString(EmptyLabel); |
| | 399 | | } |
| | 400 | | options_.WriteTo(ref output, _repeated_options_codec); |
| | 401 | | if (HasSelectedIndex) { |
| | 402 | | output.WriteRawTag(32); |
| | 403 | | output.WriteInt32(SelectedIndex); |
| | 404 | | } |
| | 405 | | if (Disabled != false) { |
| | 406 | | output.WriteRawTag(40); |
| | 407 | | output.WriteBool(Disabled); |
| | 408 | | } |
| | 409 | | if (color_ != null) { |
| | 410 | | output.WriteRawTag(50); |
| | 411 | | output.WriteMessage(Color); |
| | 412 | | } |
| | 413 | | if (HasTextAlign) { |
| | 414 | | output.WriteRawTag(80); |
| | 415 | | output.WriteEnum((int) TextAlign); |
| | 416 | | } |
| | 417 | | if (HasFont) { |
| | 418 | | output.WriteRawTag(88); |
| | 419 | | output.WriteEnum((int) Font); |
| | 420 | | } |
| | 421 | | if (HasFontSize) { |
| | 422 | | output.WriteRawTag(96); |
| | 423 | | output.WriteInt32(FontSize); |
| | 424 | | } |
| | 425 | | if (_unknownFields != null) { |
| | 426 | | _unknownFields.WriteTo(ref output); |
| | 427 | | } |
| | 428 | | } |
| | 429 | | #endif |
| | 430 | |
|
| | 431 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 432 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 433 | | public int CalculateSize() { |
| 0 | 434 | | int size = 0; |
| 0 | 435 | | if (AcceptEmpty != false) { |
| 0 | 436 | | size += 1 + 1; |
| | 437 | | } |
| 0 | 438 | | if (HasEmptyLabel) { |
| 0 | 439 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(EmptyLabel); |
| | 440 | | } |
| 0 | 441 | | size += options_.CalculateSize(_repeated_options_codec); |
| 0 | 442 | | if (HasSelectedIndex) { |
| 0 | 443 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(SelectedIndex); |
| | 444 | | } |
| 0 | 445 | | if (Disabled != false) { |
| 0 | 446 | | size += 1 + 1; |
| | 447 | | } |
| 0 | 448 | | if (color_ != null) { |
| 0 | 449 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Color); |
| | 450 | | } |
| 0 | 451 | | if (HasTextAlign) { |
| 0 | 452 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) TextAlign); |
| | 453 | | } |
| 0 | 454 | | if (HasFont) { |
| 0 | 455 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Font); |
| | 456 | | } |
| 0 | 457 | | if (HasFontSize) { |
| 0 | 458 | | size += 1 + pb::CodedOutputStream.ComputeInt32Size(FontSize); |
| | 459 | | } |
| 0 | 460 | | if (_unknownFields != null) { |
| 0 | 461 | | size += _unknownFields.CalculateSize(); |
| | 462 | | } |
| 0 | 463 | | return size; |
| | 464 | | } |
| | 465 | |
|
| | 466 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 467 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 468 | | public void MergeFrom(PBUiDropdown other) { |
| 0 | 469 | | if (other == null) { |
| 0 | 470 | | return; |
| | 471 | | } |
| 0 | 472 | | if (other.AcceptEmpty != false) { |
| 0 | 473 | | AcceptEmpty = other.AcceptEmpty; |
| | 474 | | } |
| 0 | 475 | | if (other.HasEmptyLabel) { |
| 0 | 476 | | EmptyLabel = other.EmptyLabel; |
| | 477 | | } |
| 0 | 478 | | options_.Add(other.options_); |
| 0 | 479 | | if (other.HasSelectedIndex) { |
| 0 | 480 | | SelectedIndex = other.SelectedIndex; |
| | 481 | | } |
| 0 | 482 | | if (other.Disabled != false) { |
| 0 | 483 | | Disabled = other.Disabled; |
| | 484 | | } |
| 0 | 485 | | if (other.color_ != null) { |
| 0 | 486 | | if (color_ == null) { |
| 0 | 487 | | Color = new global::Decentraland.Common.Color4(); |
| | 488 | | } |
| 0 | 489 | | Color.MergeFrom(other.Color); |
| | 490 | | } |
| 0 | 491 | | if (other.HasTextAlign) { |
| 0 | 492 | | TextAlign = other.TextAlign; |
| | 493 | | } |
| 0 | 494 | | if (other.HasFont) { |
| 0 | 495 | | Font = other.Font; |
| | 496 | | } |
| 0 | 497 | | if (other.HasFontSize) { |
| 0 | 498 | | FontSize = other.FontSize; |
| | 499 | | } |
| 0 | 500 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 501 | | } |
| | 502 | |
|
| | 503 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 504 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 505 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 506 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 507 | | input.ReadRawMessage(this); |
| | 508 | | #else |
| | 509 | | uint tag; |
| 0 | 510 | | while ((tag = input.ReadTag()) != 0) { |
| | 511 | | switch(tag) { |
| | 512 | | default: |
| 0 | 513 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 514 | | break; |
| | 515 | | case 8: { |
| 0 | 516 | | AcceptEmpty = input.ReadBool(); |
| 0 | 517 | | break; |
| | 518 | | } |
| | 519 | | case 18: { |
| 0 | 520 | | EmptyLabel = input.ReadString(); |
| 0 | 521 | | break; |
| | 522 | | } |
| | 523 | | case 26: { |
| 0 | 524 | | options_.AddEntriesFrom(input, _repeated_options_codec); |
| 0 | 525 | | break; |
| | 526 | | } |
| | 527 | | case 32: { |
| 0 | 528 | | SelectedIndex = input.ReadInt32(); |
| 0 | 529 | | break; |
| | 530 | | } |
| | 531 | | case 40: { |
| 0 | 532 | | Disabled = input.ReadBool(); |
| 0 | 533 | | break; |
| | 534 | | } |
| | 535 | | case 50: { |
| 0 | 536 | | if (color_ == null) { |
| 0 | 537 | | Color = new global::Decentraland.Common.Color4(); |
| | 538 | | } |
| 0 | 539 | | input.ReadMessage(Color); |
| 0 | 540 | | break; |
| | 541 | | } |
| | 542 | | case 80: { |
| 0 | 543 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| 0 | 544 | | break; |
| | 545 | | } |
| | 546 | | case 88: { |
| 0 | 547 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| 0 | 548 | | break; |
| | 549 | | } |
| | 550 | | case 96: { |
| 0 | 551 | | FontSize = input.ReadInt32(); |
| | 552 | | break; |
| | 553 | | } |
| | 554 | | } |
| | 555 | | } |
| | 556 | | #endif |
| 0 | 557 | | } |
| | 558 | |
|
| | 559 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 560 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 561 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 562 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 563 | | uint tag; |
| | 564 | | while ((tag = input.ReadTag()) != 0) { |
| | 565 | | switch(tag) { |
| | 566 | | default: |
| | 567 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 568 | | break; |
| | 569 | | case 8: { |
| | 570 | | AcceptEmpty = input.ReadBool(); |
| | 571 | | break; |
| | 572 | | } |
| | 573 | | case 18: { |
| | 574 | | EmptyLabel = input.ReadString(); |
| | 575 | | break; |
| | 576 | | } |
| | 577 | | case 26: { |
| | 578 | | options_.AddEntriesFrom(ref input, _repeated_options_codec); |
| | 579 | | break; |
| | 580 | | } |
| | 581 | | case 32: { |
| | 582 | | SelectedIndex = input.ReadInt32(); |
| | 583 | | break; |
| | 584 | | } |
| | 585 | | case 40: { |
| | 586 | | Disabled = input.ReadBool(); |
| | 587 | | break; |
| | 588 | | } |
| | 589 | | case 50: { |
| | 590 | | if (color_ == null) { |
| | 591 | | Color = new global::Decentraland.Common.Color4(); |
| | 592 | | } |
| | 593 | | input.ReadMessage(Color); |
| | 594 | | break; |
| | 595 | | } |
| | 596 | | case 80: { |
| | 597 | | TextAlign = (global::DCL.ECSComponents.TextAlignMode) input.ReadEnum(); |
| | 598 | | break; |
| | 599 | | } |
| | 600 | | case 88: { |
| | 601 | | Font = (global::DCL.ECSComponents.Font) input.ReadEnum(); |
| | 602 | | break; |
| | 603 | | } |
| | 604 | | case 96: { |
| | 605 | | FontSize = input.ReadInt32(); |
| | 606 | | break; |
| | 607 | | } |
| | 608 | | } |
| | 609 | | } |
| | 610 | | } |
| | 611 | | #endif |
| | 612 | |
|
| | 613 | | } |
| | 614 | |
|
| | 615 | | #endregion |
| | 616 | |
|
| | 617 | | } |
| | 618 | |
|
| | 619 | | #endregion Designer generated code |