| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/ui_background.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_background.proto</summary |
| | 15 | | public static partial class UiBackgroundReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/ui_background.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| 0 | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static UiBackgroundReflection() { |
| 0 | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci9kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvdWlfYmFja2dyb3VuZC5w", |
| | 28 | | "cm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzGiBkZWNlbnRyYWxh", |
| | 29 | | "bmQvY29tbW9uL2NvbG9ycy5wcm90byJhCg5QQlVpQmFja2dyb3VuZBI6ChBi", |
| | 30 | | "YWNrZ3JvdW5kX2NvbG9yGAEgASgLMhsuZGVjZW50cmFsYW5kLmNvbW1vbi5D", |
| | 31 | | "b2xvcjRIAIgBAUITChFfYmFja2dyb3VuZF9jb2xvckIUqgIRRENMLkVDU0Nv", |
| | 32 | | "bXBvbmVudHNiBnByb3RvMw==")); |
| 0 | 33 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 34 | | new pbr::FileDescriptor[] { global::DCL.ECSComponents.ColorsReflection.Descriptor, }, |
| | 35 | | new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] { |
| | 36 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBUiBackground), global::DCL.ECSComponents.PB |
| | 37 | | })); |
| 0 | 38 | | } |
| | 39 | | #endregion |
| | 40 | |
|
| | 41 | | } |
| | 42 | | #region Messages |
| | 43 | | public sealed partial class PBUiBackground : pb::IMessage<PBUiBackground> |
| | 44 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 45 | | , pb::IBufferMessage |
| | 46 | | #endif |
| | 47 | | { |
| | 48 | | private static readonly pb::MessageParser<PBUiBackground> _parser = new pb::MessageParser<PBUiBackground>(() => new |
| | 49 | | private pb::UnknownFieldSet _unknownFields; |
| | 50 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 51 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 52 | | public static pb::MessageParser<PBUiBackground> Parser { get { return _parser; } } |
| | 53 | |
|
| | 54 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 55 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 56 | | public static pbr::MessageDescriptor Descriptor { |
| | 57 | | get { return global::DCL.ECSComponents.UiBackgroundReflection.Descriptor.MessageTypes[0]; } |
| | 58 | | } |
| | 59 | |
|
| | 60 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 61 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 62 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 63 | | get { return Descriptor; } |
| | 64 | | } |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 68 | | public PBUiBackground() { |
| | 69 | | OnConstruction(); |
| | 70 | | } |
| | 71 | |
|
| | 72 | | partial void OnConstruction(); |
| | 73 | |
|
| | 74 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 75 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 76 | | public PBUiBackground(PBUiBackground other) : this() { |
| | 77 | | backgroundColor_ = other.backgroundColor_ != null ? other.backgroundColor_.Clone() : null; |
| | 78 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 79 | | } |
| | 80 | |
|
| | 81 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 82 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 83 | | public PBUiBackground Clone() { |
| | 84 | | return new PBUiBackground(this); |
| | 85 | | } |
| | 86 | |
|
| | 87 | | /// <summary>Field number for the "background_color" field.</summary> |
| | 88 | | public const int BackgroundColorFieldNumber = 1; |
| | 89 | | private global::DCL.ECSComponents.Color4 backgroundColor_; |
| | 90 | | /// <summary> |
| | 91 | | /// default=(0.0, 0.0, 0.0, 0.0) |
| | 92 | | /// </summary> |
| | 93 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 94 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 95 | | public global::DCL.ECSComponents.Color4 BackgroundColor { |
| | 96 | | get { return backgroundColor_; } |
| | 97 | | set { |
| | 98 | | backgroundColor_ = value; |
| | 99 | | } |
| | 100 | | } |
| | 101 | |
|
| | 102 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 103 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 104 | | public override bool Equals(object other) { |
| | 105 | | return Equals(other as PBUiBackground); |
| | 106 | | } |
| | 107 | |
|
| | 108 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 109 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 110 | | public bool Equals(PBUiBackground other) { |
| | 111 | | if (ReferenceEquals(other, null)) { |
| | 112 | | return false; |
| | 113 | | } |
| | 114 | | if (ReferenceEquals(other, this)) { |
| | 115 | | return true; |
| | 116 | | } |
| | 117 | | if (!object.Equals(BackgroundColor, other.BackgroundColor)) return false; |
| | 118 | | return Equals(_unknownFields, other._unknownFields); |
| | 119 | | } |
| | 120 | |
|
| | 121 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 122 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 123 | | public override int GetHashCode() { |
| | 124 | | int hash = 1; |
| | 125 | | if (backgroundColor_ != null) hash ^= BackgroundColor.GetHashCode(); |
| | 126 | | if (_unknownFields != null) { |
| | 127 | | hash ^= _unknownFields.GetHashCode(); |
| | 128 | | } |
| | 129 | | return hash; |
| | 130 | | } |
| | 131 | |
|
| | 132 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 133 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 134 | | public override string ToString() { |
| | 135 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 136 | | } |
| | 137 | |
|
| | 138 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 139 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 140 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 141 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 142 | | output.WriteRawMessage(this); |
| | 143 | | #else |
| | 144 | | if (backgroundColor_ != null) { |
| | 145 | | output.WriteRawTag(10); |
| | 146 | | output.WriteMessage(BackgroundColor); |
| | 147 | | } |
| | 148 | | if (_unknownFields != null) { |
| | 149 | | _unknownFields.WriteTo(output); |
| | 150 | | } |
| | 151 | | #endif |
| | 152 | | } |
| | 153 | |
|
| | 154 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 155 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 156 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 157 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 158 | | if (backgroundColor_ != null) { |
| | 159 | | output.WriteRawTag(10); |
| | 160 | | output.WriteMessage(BackgroundColor); |
| | 161 | | } |
| | 162 | | if (_unknownFields != null) { |
| | 163 | | _unknownFields.WriteTo(ref output); |
| | 164 | | } |
| | 165 | | } |
| | 166 | | #endif |
| | 167 | |
|
| | 168 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 169 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 170 | | public int CalculateSize() { |
| | 171 | | int size = 0; |
| | 172 | | if (backgroundColor_ != null) { |
| | 173 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(BackgroundColor); |
| | 174 | | } |
| | 175 | | if (_unknownFields != null) { |
| | 176 | | size += _unknownFields.CalculateSize(); |
| | 177 | | } |
| | 178 | | return size; |
| | 179 | | } |
| | 180 | |
|
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 183 | | public void MergeFrom(PBUiBackground other) { |
| | 184 | | if (other == null) { |
| | 185 | | return; |
| | 186 | | } |
| | 187 | | if (other.backgroundColor_ != null) { |
| | 188 | | if (backgroundColor_ == null) { |
| | 189 | | BackgroundColor = new global::DCL.ECSComponents.Color4(); |
| | 190 | | } |
| | 191 | | BackgroundColor.MergeFrom(other.BackgroundColor); |
| | 192 | | } |
| | 193 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 194 | | } |
| | 195 | |
|
| | 196 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 197 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 198 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 199 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 200 | | input.ReadRawMessage(this); |
| | 201 | | #else |
| | 202 | | uint tag; |
| | 203 | | while ((tag = input.ReadTag()) != 0) { |
| | 204 | | switch(tag) { |
| | 205 | | default: |
| | 206 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 207 | | break; |
| | 208 | | case 10: { |
| | 209 | | if (backgroundColor_ == null) { |
| | 210 | | BackgroundColor = new global::DCL.ECSComponents.Color4(); |
| | 211 | | } |
| | 212 | | input.ReadMessage(BackgroundColor); |
| | 213 | | break; |
| | 214 | | } |
| | 215 | | } |
| | 216 | | } |
| | 217 | | #endif |
| | 218 | | } |
| | 219 | |
|
| | 220 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 221 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 222 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 223 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 224 | | uint tag; |
| | 225 | | while ((tag = input.ReadTag()) != 0) { |
| | 226 | | switch(tag) { |
| | 227 | | default: |
| | 228 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 229 | | break; |
| | 230 | | case 10: { |
| | 231 | | if (backgroundColor_ == null) { |
| | 232 | | BackgroundColor = new global::DCL.ECSComponents.Color4(); |
| | 233 | | } |
| | 234 | | input.ReadMessage(BackgroundColor); |
| | 235 | | break; |
| | 236 | | } |
| | 237 | | } |
| | 238 | | } |
| | 239 | | } |
| | 240 | | #endif |
| | 241 | |
|
| | 242 | | } |
| | 243 | |
|
| | 244 | | #endregion |
| | 245 | |
|
| | 246 | | } |
| | 247 | |
|
| | 248 | | #endregion Designer generated code |