| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/common/texture.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 Decentraland.Common { |
| | 13 | |
|
| | 14 | | /// <summary>Holder for reflection information generated from decentraland/common/texture.proto</summary> |
| | 15 | | public static partial class TextureReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/common/texture.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static TextureReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "CiFkZWNlbnRyYWxhbmQvY29tbW9uL3RleHR1cmUucHJvdG8SE2RlY2VudHJh", |
| | 28 | | "bGFuZC5jb21tb24itAEKB1RleHR1cmUSCwoDc3JjGAEgASgJEjwKCXdyYXBf", |
| | 29 | | "bW9kZRgCIAEoDjIkLmRlY2VudHJhbGFuZC5jb21tb24uVGV4dHVyZVdyYXBN", |
| | 30 | | "b2RlSACIAQESQAoLZmlsdGVyX21vZGUYAyABKA4yJi5kZWNlbnRyYWxhbmQu", |
| | 31 | | "Y29tbW9uLlRleHR1cmVGaWx0ZXJNb2RlSAGIAQFCDAoKX3dyYXBfbW9kZUIO", |
| | 32 | | "CgxfZmlsdGVyX21vZGUivgEKDUF2YXRhclRleHR1cmUSDwoHdXNlcl9pZBgB", |
| | 33 | | "IAEoCRI8Cgl3cmFwX21vZGUYAiABKA4yJC5kZWNlbnRyYWxhbmQuY29tbW9u", |
| | 34 | | "LlRleHR1cmVXcmFwTW9kZUgAiAEBEkAKC2ZpbHRlcl9tb2RlGAMgASgOMiYu", |
| | 35 | | "ZGVjZW50cmFsYW5kLmNvbW1vbi5UZXh0dXJlRmlsdGVyTW9kZUgBiAEBQgwK", |
| | 36 | | "Cl93cmFwX21vZGVCDgoMX2ZpbHRlcl9tb2RlIskBCgxWaWRlb1RleHR1cmUS", |
| | 37 | | "GwoTdmlkZW9fcGxheWVyX2VudGl0eRgBIAEoDRI8Cgl3cmFwX21vZGUYAiAB", |
| | 38 | | "KA4yJC5kZWNlbnRyYWxhbmQuY29tbW9uLlRleHR1cmVXcmFwTW9kZUgAiAEB", |
| | 39 | | "EkAKC2ZpbHRlcl9tb2RlGAMgASgOMiYuZGVjZW50cmFsYW5kLmNvbW1vbi5U", |
| | 40 | | "ZXh0dXJlRmlsdGVyTW9kZUgBiAEBQgwKCl93cmFwX21vZGVCDgoMX2ZpbHRl", |
| | 41 | | "cl9tb2RlIsABCgxUZXh0dXJlVW5pb24SLwoHdGV4dHVyZRgBIAEoCzIcLmRl", |
| | 42 | | "Y2VudHJhbGFuZC5jb21tb24uVGV4dHVyZUgAEjwKDmF2YXRhcl90ZXh0dXJl", |
| | 43 | | "GAIgASgLMiIuZGVjZW50cmFsYW5kLmNvbW1vbi5BdmF0YXJUZXh0dXJlSAAS", |
| | 44 | | "OgoNdmlkZW9fdGV4dHVyZRgDIAEoCzIhLmRlY2VudHJhbGFuZC5jb21tb24u", |
| | 45 | | "VmlkZW9UZXh0dXJlSABCBQoDdGV4KkAKD1RleHR1cmVXcmFwTW9kZRIOCgpU", |
| | 46 | | "V01fUkVQRUFUEAASDQoJVFdNX0NMQU1QEAESDgoKVFdNX01JUlJPUhACKkcK", |
| | 47 | | "EVRleHR1cmVGaWx0ZXJNb2RlEg0KCVRGTV9QT0lOVBAAEhAKDFRGTV9CSUxJ", |
| | 48 | | "TkVBUhABEhEKDVRGTV9UUklMSU5FQVIQAmIGcHJvdG8z")); |
| | 49 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 50 | | new pbr::FileDescriptor[] { }, |
| | 51 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Decentraland.Common.TextureWrapMode), typeof(global::Decen |
| | 52 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.Texture), global::Decentraland.Common.Textu |
| | 53 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.AvatarTexture), global::Decentraland.Common |
| | 54 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.VideoTexture), global::Decentraland.Common. |
| | 55 | | new pbr::GeneratedClrTypeInfo(typeof(global::Decentraland.Common.TextureUnion), global::Decentraland.Common. |
| | 56 | | })); |
| | 57 | | } |
| | 58 | | #endregion |
| | 59 | |
|
| | 60 | | } |
| | 61 | | #region Enums |
| | 62 | | public enum TextureWrapMode { |
| | 63 | | [pbr::OriginalName("TWM_REPEAT")] TwmRepeat = 0, |
| | 64 | | [pbr::OriginalName("TWM_CLAMP")] TwmClamp = 1, |
| | 65 | | [pbr::OriginalName("TWM_MIRROR")] TwmMirror = 2, |
| | 66 | | } |
| | 67 | |
|
| | 68 | | public enum TextureFilterMode { |
| | 69 | | [pbr::OriginalName("TFM_POINT")] TfmPoint = 0, |
| | 70 | | [pbr::OriginalName("TFM_BILINEAR")] TfmBilinear = 1, |
| | 71 | | [pbr::OriginalName("TFM_TRILINEAR")] TfmTrilinear = 2, |
| | 72 | | } |
| | 73 | |
|
| | 74 | | #endregion |
| | 75 | |
|
| | 76 | | #region Messages |
| | 77 | | public sealed partial class Texture : pb::IMessage<Texture> |
| | 78 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 79 | | , pb::IBufferMessage |
| | 80 | | #endif |
| | 81 | | { |
| | 82 | | private static readonly pb::MessageParser<Texture> _parser = new pb::MessageParser<Texture>(() => new Texture()); |
| | 83 | | private pb::UnknownFieldSet _unknownFields; |
| | 84 | | private int _hasBits0; |
| | 85 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 86 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 87 | | public static pb::MessageParser<Texture> Parser { get { return _parser; } } |
| | 88 | |
|
| | 89 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 90 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 91 | | public static pbr::MessageDescriptor Descriptor { |
| | 92 | | get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[0]; } |
| | 93 | | } |
| | 94 | |
|
| | 95 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 96 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 97 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 98 | | get { return Descriptor; } |
| | 99 | | } |
| | 100 | |
|
| | 101 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 102 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 103 | | public Texture() { |
| | 104 | | OnConstruction(); |
| | 105 | | } |
| | 106 | |
|
| | 107 | | partial void OnConstruction(); |
| | 108 | |
|
| | 109 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 110 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 111 | | public Texture(Texture other) : this() { |
| | 112 | | _hasBits0 = other._hasBits0; |
| | 113 | | src_ = other.src_; |
| | 114 | | wrapMode_ = other.wrapMode_; |
| | 115 | | filterMode_ = other.filterMode_; |
| | 116 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 117 | | } |
| | 118 | |
|
| | 119 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 120 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 121 | | public Texture Clone() { |
| | 122 | | return new Texture(this); |
| | 123 | | } |
| | 124 | |
|
| | 125 | | /// <summary>Field number for the "src" field.</summary> |
| | 126 | | public const int SrcFieldNumber = 1; |
| | 127 | | private string src_ = ""; |
| | 128 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 129 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 130 | | public string Src { |
| | 131 | | get { return src_; } |
| | 132 | | set { |
| | 133 | | src_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 134 | | } |
| | 135 | | } |
| | 136 | |
|
| | 137 | | /// <summary>Field number for the "wrap_mode" field.</summary> |
| | 138 | | public const int WrapModeFieldNumber = 2; |
| | 139 | | private global::Decentraland.Common.TextureWrapMode wrapMode_; |
| | 140 | | /// <summary> |
| | 141 | | /// default = TextureWrapMode.Clamp |
| | 142 | | /// </summary> |
| | 143 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 144 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 145 | | public global::Decentraland.Common.TextureWrapMode WrapMode { |
| | 146 | | get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw |
| | 147 | | set { |
| | 148 | | _hasBits0 |= 1; |
| | 149 | | wrapMode_ = value; |
| | 150 | | } |
| | 151 | | } |
| | 152 | | /// <summary>Gets whether the "wrap_mode" field is set</summary> |
| | 153 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 154 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 155 | | public bool HasWrapMode { |
| | 156 | | get { return (_hasBits0 & 1) != 0; } |
| | 157 | | } |
| | 158 | | /// <summary>Clears the value of the "wrap_mode" field</summary> |
| | 159 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 160 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 161 | | public void ClearWrapMode() { |
| | 162 | | _hasBits0 &= ~1; |
| | 163 | | } |
| | 164 | |
|
| | 165 | | /// <summary>Field number for the "filter_mode" field.</summary> |
| | 166 | | public const int FilterModeFieldNumber = 3; |
| | 167 | | private global::Decentraland.Common.TextureFilterMode filterMode_; |
| | 168 | | /// <summary> |
| | 169 | | /// default = FilterMode.Bilinear |
| | 170 | | /// </summary> |
| | 171 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 172 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 173 | | public global::Decentraland.Common.TextureFilterMode FilterMode { |
| | 174 | | get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod |
| | 175 | | set { |
| | 176 | | _hasBits0 |= 2; |
| | 177 | | filterMode_ = value; |
| | 178 | | } |
| | 179 | | } |
| | 180 | | /// <summary>Gets whether the "filter_mode" field is set</summary> |
| | 181 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 182 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 183 | | public bool HasFilterMode { |
| | 184 | | get { return (_hasBits0 & 2) != 0; } |
| | 185 | | } |
| | 186 | | /// <summary>Clears the value of the "filter_mode" field</summary> |
| | 187 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 188 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 189 | | public void ClearFilterMode() { |
| | 190 | | _hasBits0 &= ~2; |
| | 191 | | } |
| | 192 | |
|
| | 193 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 194 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 195 | | public override bool Equals(object other) { |
| | 196 | | return Equals(other as Texture); |
| | 197 | | } |
| | 198 | |
|
| | 199 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 200 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 201 | | public bool Equals(Texture other) { |
| | 202 | | if (ReferenceEquals(other, null)) { |
| | 203 | | return false; |
| | 204 | | } |
| | 205 | | if (ReferenceEquals(other, this)) { |
| | 206 | | return true; |
| | 207 | | } |
| | 208 | | if (Src != other.Src) return false; |
| | 209 | | if (WrapMode != other.WrapMode) return false; |
| | 210 | | if (FilterMode != other.FilterMode) return false; |
| | 211 | | return Equals(_unknownFields, other._unknownFields); |
| | 212 | | } |
| | 213 | |
|
| | 214 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 215 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 216 | | public override int GetHashCode() { |
| | 217 | | int hash = 1; |
| | 218 | | if (Src.Length != 0) hash ^= Src.GetHashCode(); |
| | 219 | | if (HasWrapMode) hash ^= WrapMode.GetHashCode(); |
| | 220 | | if (HasFilterMode) hash ^= FilterMode.GetHashCode(); |
| | 221 | | if (_unknownFields != null) { |
| | 222 | | hash ^= _unknownFields.GetHashCode(); |
| | 223 | | } |
| | 224 | | return hash; |
| | 225 | | } |
| | 226 | |
|
| | 227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 229 | | public override string ToString() { |
| | 230 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 231 | | } |
| | 232 | |
|
| | 233 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 234 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 235 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 236 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 237 | | output.WriteRawMessage(this); |
| | 238 | | #else |
| | 239 | | if (Src.Length != 0) { |
| | 240 | | output.WriteRawTag(10); |
| | 241 | | output.WriteString(Src); |
| | 242 | | } |
| | 243 | | if (HasWrapMode) { |
| | 244 | | output.WriteRawTag(16); |
| | 245 | | output.WriteEnum((int) WrapMode); |
| | 246 | | } |
| | 247 | | if (HasFilterMode) { |
| | 248 | | output.WriteRawTag(24); |
| | 249 | | output.WriteEnum((int) FilterMode); |
| | 250 | | } |
| | 251 | | if (_unknownFields != null) { |
| | 252 | | _unknownFields.WriteTo(output); |
| | 253 | | } |
| | 254 | | #endif |
| | 255 | | } |
| | 256 | |
|
| | 257 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 258 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 259 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 260 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 261 | | if (Src.Length != 0) { |
| | 262 | | output.WriteRawTag(10); |
| | 263 | | output.WriteString(Src); |
| | 264 | | } |
| | 265 | | if (HasWrapMode) { |
| | 266 | | output.WriteRawTag(16); |
| | 267 | | output.WriteEnum((int) WrapMode); |
| | 268 | | } |
| | 269 | | if (HasFilterMode) { |
| | 270 | | output.WriteRawTag(24); |
| | 271 | | output.WriteEnum((int) FilterMode); |
| | 272 | | } |
| | 273 | | if (_unknownFields != null) { |
| | 274 | | _unknownFields.WriteTo(ref output); |
| | 275 | | } |
| | 276 | | } |
| | 277 | | #endif |
| | 278 | |
|
| | 279 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 280 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 281 | | public int CalculateSize() { |
| | 282 | | int size = 0; |
| | 283 | | if (Src.Length != 0) { |
| | 284 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(Src); |
| | 285 | | } |
| | 286 | | if (HasWrapMode) { |
| | 287 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode); |
| | 288 | | } |
| | 289 | | if (HasFilterMode) { |
| | 290 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode); |
| | 291 | | } |
| | 292 | | if (_unknownFields != null) { |
| | 293 | | size += _unknownFields.CalculateSize(); |
| | 294 | | } |
| | 295 | | return size; |
| | 296 | | } |
| | 297 | |
|
| | 298 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 299 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 300 | | public void MergeFrom(Texture other) { |
| | 301 | | if (other == null) { |
| | 302 | | return; |
| | 303 | | } |
| | 304 | | if (other.Src.Length != 0) { |
| | 305 | | Src = other.Src; |
| | 306 | | } |
| | 307 | | if (other.HasWrapMode) { |
| | 308 | | WrapMode = other.WrapMode; |
| | 309 | | } |
| | 310 | | if (other.HasFilterMode) { |
| | 311 | | FilterMode = other.FilterMode; |
| | 312 | | } |
| | 313 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 314 | | } |
| | 315 | |
|
| | 316 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 317 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 318 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 319 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 320 | | input.ReadRawMessage(this); |
| | 321 | | #else |
| | 322 | | uint tag; |
| | 323 | | while ((tag = input.ReadTag()) != 0) { |
| | 324 | | switch(tag) { |
| | 325 | | default: |
| | 326 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 327 | | break; |
| | 328 | | case 10: { |
| | 329 | | Src = input.ReadString(); |
| | 330 | | break; |
| | 331 | | } |
| | 332 | | case 16: { |
| | 333 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 334 | | break; |
| | 335 | | } |
| | 336 | | case 24: { |
| | 337 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 338 | | break; |
| | 339 | | } |
| | 340 | | } |
| | 341 | | } |
| | 342 | | #endif |
| | 343 | | } |
| | 344 | |
|
| | 345 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 346 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 347 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 348 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 349 | | uint tag; |
| | 350 | | while ((tag = input.ReadTag()) != 0) { |
| | 351 | | switch(tag) { |
| | 352 | | default: |
| | 353 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 354 | | break; |
| | 355 | | case 10: { |
| | 356 | | Src = input.ReadString(); |
| | 357 | | break; |
| | 358 | | } |
| | 359 | | case 16: { |
| | 360 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 361 | | break; |
| | 362 | | } |
| | 363 | | case 24: { |
| | 364 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 365 | | break; |
| | 366 | | } |
| | 367 | | } |
| | 368 | | } |
| | 369 | | } |
| | 370 | | #endif |
| | 371 | |
|
| | 372 | | } |
| | 373 | |
|
| | 374 | | public sealed partial class AvatarTexture : pb::IMessage<AvatarTexture> |
| | 375 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 376 | | , pb::IBufferMessage |
| | 377 | | #endif |
| | 378 | | { |
| | 379 | | private static readonly pb::MessageParser<AvatarTexture> _parser = new pb::MessageParser<AvatarTexture>(() => new Av |
| | 380 | | private pb::UnknownFieldSet _unknownFields; |
| | 381 | | private int _hasBits0; |
| | 382 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 383 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 384 | | public static pb::MessageParser<AvatarTexture> Parser { get { return _parser; } } |
| | 385 | |
|
| | 386 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 387 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 388 | | public static pbr::MessageDescriptor Descriptor { |
| | 389 | | get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[1]; } |
| | 390 | | } |
| | 391 | |
|
| | 392 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 393 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 394 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 395 | | get { return Descriptor; } |
| | 396 | | } |
| | 397 | |
|
| | 398 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 399 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 400 | | public AvatarTexture() { |
| | 401 | | OnConstruction(); |
| | 402 | | } |
| | 403 | |
|
| | 404 | | partial void OnConstruction(); |
| | 405 | |
|
| | 406 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 407 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 408 | | public AvatarTexture(AvatarTexture other) : this() { |
| | 409 | | _hasBits0 = other._hasBits0; |
| | 410 | | userId_ = other.userId_; |
| | 411 | | wrapMode_ = other.wrapMode_; |
| | 412 | | filterMode_ = other.filterMode_; |
| | 413 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 414 | | } |
| | 415 | |
|
| | 416 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 417 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 418 | | public AvatarTexture Clone() { |
| | 419 | | return new AvatarTexture(this); |
| | 420 | | } |
| | 421 | |
|
| | 422 | | /// <summary>Field number for the "user_id" field.</summary> |
| | 423 | | public const int UserIdFieldNumber = 1; |
| | 424 | | private string userId_ = ""; |
| | 425 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 426 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 427 | | public string UserId { |
| | 428 | | get { return userId_; } |
| | 429 | | set { |
| | 430 | | userId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| | 431 | | } |
| | 432 | | } |
| | 433 | |
|
| | 434 | | /// <summary>Field number for the "wrap_mode" field.</summary> |
| | 435 | | public const int WrapModeFieldNumber = 2; |
| | 436 | | private global::Decentraland.Common.TextureWrapMode wrapMode_; |
| | 437 | | /// <summary> |
| | 438 | | /// default = TextureWrapMode.Clamp |
| | 439 | | /// </summary> |
| | 440 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 441 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 442 | | public global::Decentraland.Common.TextureWrapMode WrapMode { |
| | 443 | | get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw |
| | 444 | | set { |
| | 445 | | _hasBits0 |= 1; |
| | 446 | | wrapMode_ = value; |
| | 447 | | } |
| | 448 | | } |
| | 449 | | /// <summary>Gets whether the "wrap_mode" field is set</summary> |
| | 450 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 451 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 452 | | public bool HasWrapMode { |
| | 453 | | get { return (_hasBits0 & 1) != 0; } |
| | 454 | | } |
| | 455 | | /// <summary>Clears the value of the "wrap_mode" field</summary> |
| | 456 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 457 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 458 | | public void ClearWrapMode() { |
| | 459 | | _hasBits0 &= ~1; |
| | 460 | | } |
| | 461 | |
|
| | 462 | | /// <summary>Field number for the "filter_mode" field.</summary> |
| | 463 | | public const int FilterModeFieldNumber = 3; |
| | 464 | | private global::Decentraland.Common.TextureFilterMode filterMode_; |
| | 465 | | /// <summary> |
| | 466 | | /// default = FilterMode.Bilinear |
| | 467 | | /// </summary> |
| | 468 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 469 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 470 | | public global::Decentraland.Common.TextureFilterMode FilterMode { |
| | 471 | | get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod |
| | 472 | | set { |
| | 473 | | _hasBits0 |= 2; |
| | 474 | | filterMode_ = value; |
| | 475 | | } |
| | 476 | | } |
| | 477 | | /// <summary>Gets whether the "filter_mode" field is set</summary> |
| | 478 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 479 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 480 | | public bool HasFilterMode { |
| | 481 | | get { return (_hasBits0 & 2) != 0; } |
| | 482 | | } |
| | 483 | | /// <summary>Clears the value of the "filter_mode" field</summary> |
| | 484 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 485 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 486 | | public void ClearFilterMode() { |
| | 487 | | _hasBits0 &= ~2; |
| | 488 | | } |
| | 489 | |
|
| | 490 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 491 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 492 | | public override bool Equals(object other) { |
| | 493 | | return Equals(other as AvatarTexture); |
| | 494 | | } |
| | 495 | |
|
| | 496 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 497 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 498 | | public bool Equals(AvatarTexture other) { |
| | 499 | | if (ReferenceEquals(other, null)) { |
| | 500 | | return false; |
| | 501 | | } |
| | 502 | | if (ReferenceEquals(other, this)) { |
| | 503 | | return true; |
| | 504 | | } |
| | 505 | | if (UserId != other.UserId) return false; |
| | 506 | | if (WrapMode != other.WrapMode) return false; |
| | 507 | | if (FilterMode != other.FilterMode) return false; |
| | 508 | | return Equals(_unknownFields, other._unknownFields); |
| | 509 | | } |
| | 510 | |
|
| | 511 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 512 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 513 | | public override int GetHashCode() { |
| | 514 | | int hash = 1; |
| | 515 | | if (UserId.Length != 0) hash ^= UserId.GetHashCode(); |
| | 516 | | if (HasWrapMode) hash ^= WrapMode.GetHashCode(); |
| | 517 | | if (HasFilterMode) hash ^= FilterMode.GetHashCode(); |
| | 518 | | if (_unknownFields != null) { |
| | 519 | | hash ^= _unknownFields.GetHashCode(); |
| | 520 | | } |
| | 521 | | return hash; |
| | 522 | | } |
| | 523 | |
|
| | 524 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 525 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 526 | | public override string ToString() { |
| | 527 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 528 | | } |
| | 529 | |
|
| | 530 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 531 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 532 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 533 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 534 | | output.WriteRawMessage(this); |
| | 535 | | #else |
| | 536 | | if (UserId.Length != 0) { |
| | 537 | | output.WriteRawTag(10); |
| | 538 | | output.WriteString(UserId); |
| | 539 | | } |
| | 540 | | if (HasWrapMode) { |
| | 541 | | output.WriteRawTag(16); |
| | 542 | | output.WriteEnum((int) WrapMode); |
| | 543 | | } |
| | 544 | | if (HasFilterMode) { |
| | 545 | | output.WriteRawTag(24); |
| | 546 | | output.WriteEnum((int) FilterMode); |
| | 547 | | } |
| | 548 | | if (_unknownFields != null) { |
| | 549 | | _unknownFields.WriteTo(output); |
| | 550 | | } |
| | 551 | | #endif |
| | 552 | | } |
| | 553 | |
|
| | 554 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 555 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 556 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 557 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 558 | | if (UserId.Length != 0) { |
| | 559 | | output.WriteRawTag(10); |
| | 560 | | output.WriteString(UserId); |
| | 561 | | } |
| | 562 | | if (HasWrapMode) { |
| | 563 | | output.WriteRawTag(16); |
| | 564 | | output.WriteEnum((int) WrapMode); |
| | 565 | | } |
| | 566 | | if (HasFilterMode) { |
| | 567 | | output.WriteRawTag(24); |
| | 568 | | output.WriteEnum((int) FilterMode); |
| | 569 | | } |
| | 570 | | if (_unknownFields != null) { |
| | 571 | | _unknownFields.WriteTo(ref output); |
| | 572 | | } |
| | 573 | | } |
| | 574 | | #endif |
| | 575 | |
|
| | 576 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 577 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 578 | | public int CalculateSize() { |
| | 579 | | int size = 0; |
| | 580 | | if (UserId.Length != 0) { |
| | 581 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(UserId); |
| | 582 | | } |
| | 583 | | if (HasWrapMode) { |
| | 584 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode); |
| | 585 | | } |
| | 586 | | if (HasFilterMode) { |
| | 587 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode); |
| | 588 | | } |
| | 589 | | if (_unknownFields != null) { |
| | 590 | | size += _unknownFields.CalculateSize(); |
| | 591 | | } |
| | 592 | | return size; |
| | 593 | | } |
| | 594 | |
|
| | 595 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 596 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 597 | | public void MergeFrom(AvatarTexture other) { |
| | 598 | | if (other == null) { |
| | 599 | | return; |
| | 600 | | } |
| | 601 | | if (other.UserId.Length != 0) { |
| | 602 | | UserId = other.UserId; |
| | 603 | | } |
| | 604 | | if (other.HasWrapMode) { |
| | 605 | | WrapMode = other.WrapMode; |
| | 606 | | } |
| | 607 | | if (other.HasFilterMode) { |
| | 608 | | FilterMode = other.FilterMode; |
| | 609 | | } |
| | 610 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 611 | | } |
| | 612 | |
|
| | 613 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 614 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 615 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 616 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 617 | | input.ReadRawMessage(this); |
| | 618 | | #else |
| | 619 | | uint tag; |
| | 620 | | while ((tag = input.ReadTag()) != 0) { |
| | 621 | | switch(tag) { |
| | 622 | | default: |
| | 623 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 624 | | break; |
| | 625 | | case 10: { |
| | 626 | | UserId = input.ReadString(); |
| | 627 | | break; |
| | 628 | | } |
| | 629 | | case 16: { |
| | 630 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 631 | | break; |
| | 632 | | } |
| | 633 | | case 24: { |
| | 634 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 635 | | break; |
| | 636 | | } |
| | 637 | | } |
| | 638 | | } |
| | 639 | | #endif |
| | 640 | | } |
| | 641 | |
|
| | 642 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 643 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 644 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 645 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 646 | | uint tag; |
| | 647 | | while ((tag = input.ReadTag()) != 0) { |
| | 648 | | switch(tag) { |
| | 649 | | default: |
| | 650 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 651 | | break; |
| | 652 | | case 10: { |
| | 653 | | UserId = input.ReadString(); |
| | 654 | | break; |
| | 655 | | } |
| | 656 | | case 16: { |
| | 657 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 658 | | break; |
| | 659 | | } |
| | 660 | | case 24: { |
| | 661 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 662 | | break; |
| | 663 | | } |
| | 664 | | } |
| | 665 | | } |
| | 666 | | } |
| | 667 | | #endif |
| | 668 | |
|
| | 669 | | } |
| | 670 | |
|
| | 671 | | public sealed partial class VideoTexture : pb::IMessage<VideoTexture> |
| | 672 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 673 | | , pb::IBufferMessage |
| | 674 | | #endif |
| | 675 | | { |
| | 676 | | private static readonly pb::MessageParser<VideoTexture> _parser = new pb::MessageParser<VideoTexture>(() => new Vide |
| | 677 | | private pb::UnknownFieldSet _unknownFields; |
| | 678 | | private int _hasBits0; |
| | 679 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 680 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 681 | | public static pb::MessageParser<VideoTexture> Parser { get { return _parser; } } |
| | 682 | |
|
| | 683 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 684 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 685 | | public static pbr::MessageDescriptor Descriptor { |
| | 686 | | get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[2]; } |
| | 687 | | } |
| | 688 | |
|
| | 689 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 690 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 691 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| | 692 | | get { return Descriptor; } |
| | 693 | | } |
| | 694 | |
|
| | 695 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 696 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 697 | | public VideoTexture() { |
| | 698 | | OnConstruction(); |
| | 699 | | } |
| | 700 | |
|
| | 701 | | partial void OnConstruction(); |
| | 702 | |
|
| | 703 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 704 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 705 | | public VideoTexture(VideoTexture other) : this() { |
| | 706 | | _hasBits0 = other._hasBits0; |
| | 707 | | videoPlayerEntity_ = other.videoPlayerEntity_; |
| | 708 | | wrapMode_ = other.wrapMode_; |
| | 709 | | filterMode_ = other.filterMode_; |
| | 710 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| | 711 | | } |
| | 712 | |
|
| | 713 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 714 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 715 | | public VideoTexture Clone() { |
| | 716 | | return new VideoTexture(this); |
| | 717 | | } |
| | 718 | |
|
| | 719 | | /// <summary>Field number for the "video_player_entity" field.</summary> |
| | 720 | | public const int VideoPlayerEntityFieldNumber = 1; |
| | 721 | | private uint videoPlayerEntity_; |
| | 722 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 723 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 724 | | public uint VideoPlayerEntity { |
| | 725 | | get { return videoPlayerEntity_; } |
| | 726 | | set { |
| | 727 | | videoPlayerEntity_ = value; |
| | 728 | | } |
| | 729 | | } |
| | 730 | |
|
| | 731 | | /// <summary>Field number for the "wrap_mode" field.</summary> |
| | 732 | | public const int WrapModeFieldNumber = 2; |
| | 733 | | private global::Decentraland.Common.TextureWrapMode wrapMode_; |
| | 734 | | /// <summary> |
| | 735 | | /// default = TextureWrapMode.Clamp |
| | 736 | | /// </summary> |
| | 737 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 738 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 739 | | public global::Decentraland.Common.TextureWrapMode WrapMode { |
| | 740 | | get { if ((_hasBits0 & 1) != 0) { return wrapMode_; } else { return global::Decentraland.Common.TextureWrapMode.Tw |
| | 741 | | set { |
| | 742 | | _hasBits0 |= 1; |
| | 743 | | wrapMode_ = value; |
| | 744 | | } |
| | 745 | | } |
| | 746 | | /// <summary>Gets whether the "wrap_mode" field is set</summary> |
| | 747 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 748 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 749 | | public bool HasWrapMode { |
| | 750 | | get { return (_hasBits0 & 1) != 0; } |
| | 751 | | } |
| | 752 | | /// <summary>Clears the value of the "wrap_mode" field</summary> |
| | 753 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 754 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 755 | | public void ClearWrapMode() { |
| | 756 | | _hasBits0 &= ~1; |
| | 757 | | } |
| | 758 | |
|
| | 759 | | /// <summary>Field number for the "filter_mode" field.</summary> |
| | 760 | | public const int FilterModeFieldNumber = 3; |
| | 761 | | private global::Decentraland.Common.TextureFilterMode filterMode_; |
| | 762 | | /// <summary> |
| | 763 | | /// default = FilterMode.Bilinear |
| | 764 | | /// </summary> |
| | 765 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 766 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 767 | | public global::Decentraland.Common.TextureFilterMode FilterMode { |
| | 768 | | get { if ((_hasBits0 & 2) != 0) { return filterMode_; } else { return global::Decentraland.Common.TextureFilterMod |
| | 769 | | set { |
| | 770 | | _hasBits0 |= 2; |
| | 771 | | filterMode_ = value; |
| | 772 | | } |
| | 773 | | } |
| | 774 | | /// <summary>Gets whether the "filter_mode" field is set</summary> |
| | 775 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 776 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 777 | | public bool HasFilterMode { |
| | 778 | | get { return (_hasBits0 & 2) != 0; } |
| | 779 | | } |
| | 780 | | /// <summary>Clears the value of the "filter_mode" field</summary> |
| | 781 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 782 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 783 | | public void ClearFilterMode() { |
| | 784 | | _hasBits0 &= ~2; |
| | 785 | | } |
| | 786 | |
|
| | 787 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 788 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 789 | | public override bool Equals(object other) { |
| | 790 | | return Equals(other as VideoTexture); |
| | 791 | | } |
| | 792 | |
|
| | 793 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 794 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 795 | | public bool Equals(VideoTexture other) { |
| | 796 | | if (ReferenceEquals(other, null)) { |
| | 797 | | return false; |
| | 798 | | } |
| | 799 | | if (ReferenceEquals(other, this)) { |
| | 800 | | return true; |
| | 801 | | } |
| | 802 | | if (VideoPlayerEntity != other.VideoPlayerEntity) return false; |
| | 803 | | if (WrapMode != other.WrapMode) return false; |
| | 804 | | if (FilterMode != other.FilterMode) return false; |
| | 805 | | return Equals(_unknownFields, other._unknownFields); |
| | 806 | | } |
| | 807 | |
|
| | 808 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 809 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 810 | | public override int GetHashCode() { |
| | 811 | | int hash = 1; |
| | 812 | | if (VideoPlayerEntity != 0) hash ^= VideoPlayerEntity.GetHashCode(); |
| | 813 | | if (HasWrapMode) hash ^= WrapMode.GetHashCode(); |
| | 814 | | if (HasFilterMode) hash ^= FilterMode.GetHashCode(); |
| | 815 | | if (_unknownFields != null) { |
| | 816 | | hash ^= _unknownFields.GetHashCode(); |
| | 817 | | } |
| | 818 | | return hash; |
| | 819 | | } |
| | 820 | |
|
| | 821 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 822 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 823 | | public override string ToString() { |
| | 824 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 825 | | } |
| | 826 | |
|
| | 827 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 828 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 829 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 830 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 831 | | output.WriteRawMessage(this); |
| | 832 | | #else |
| | 833 | | if (VideoPlayerEntity != 0) { |
| | 834 | | output.WriteRawTag(8); |
| | 835 | | output.WriteUInt32(VideoPlayerEntity); |
| | 836 | | } |
| | 837 | | if (HasWrapMode) { |
| | 838 | | output.WriteRawTag(16); |
| | 839 | | output.WriteEnum((int) WrapMode); |
| | 840 | | } |
| | 841 | | if (HasFilterMode) { |
| | 842 | | output.WriteRawTag(24); |
| | 843 | | output.WriteEnum((int) FilterMode); |
| | 844 | | } |
| | 845 | | if (_unknownFields != null) { |
| | 846 | | _unknownFields.WriteTo(output); |
| | 847 | | } |
| | 848 | | #endif |
| | 849 | | } |
| | 850 | |
|
| | 851 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 852 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 853 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 854 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 855 | | if (VideoPlayerEntity != 0) { |
| | 856 | | output.WriteRawTag(8); |
| | 857 | | output.WriteUInt32(VideoPlayerEntity); |
| | 858 | | } |
| | 859 | | if (HasWrapMode) { |
| | 860 | | output.WriteRawTag(16); |
| | 861 | | output.WriteEnum((int) WrapMode); |
| | 862 | | } |
| | 863 | | if (HasFilterMode) { |
| | 864 | | output.WriteRawTag(24); |
| | 865 | | output.WriteEnum((int) FilterMode); |
| | 866 | | } |
| | 867 | | if (_unknownFields != null) { |
| | 868 | | _unknownFields.WriteTo(ref output); |
| | 869 | | } |
| | 870 | | } |
| | 871 | | #endif |
| | 872 | |
|
| | 873 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 874 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 875 | | public int CalculateSize() { |
| | 876 | | int size = 0; |
| | 877 | | if (VideoPlayerEntity != 0) { |
| | 878 | | size += 1 + pb::CodedOutputStream.ComputeUInt32Size(VideoPlayerEntity); |
| | 879 | | } |
| | 880 | | if (HasWrapMode) { |
| | 881 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WrapMode); |
| | 882 | | } |
| | 883 | | if (HasFilterMode) { |
| | 884 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FilterMode); |
| | 885 | | } |
| | 886 | | if (_unknownFields != null) { |
| | 887 | | size += _unknownFields.CalculateSize(); |
| | 888 | | } |
| | 889 | | return size; |
| | 890 | | } |
| | 891 | |
|
| | 892 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 893 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 894 | | public void MergeFrom(VideoTexture other) { |
| | 895 | | if (other == null) { |
| | 896 | | return; |
| | 897 | | } |
| | 898 | | if (other.VideoPlayerEntity != 0) { |
| | 899 | | VideoPlayerEntity = other.VideoPlayerEntity; |
| | 900 | | } |
| | 901 | | if (other.HasWrapMode) { |
| | 902 | | WrapMode = other.WrapMode; |
| | 903 | | } |
| | 904 | | if (other.HasFilterMode) { |
| | 905 | | FilterMode = other.FilterMode; |
| | 906 | | } |
| | 907 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| | 908 | | } |
| | 909 | |
|
| | 910 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 911 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 912 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 913 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 914 | | input.ReadRawMessage(this); |
| | 915 | | #else |
| | 916 | | uint tag; |
| | 917 | | while ((tag = input.ReadTag()) != 0) { |
| | 918 | | switch(tag) { |
| | 919 | | default: |
| | 920 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| | 921 | | break; |
| | 922 | | case 8: { |
| | 923 | | VideoPlayerEntity = input.ReadUInt32(); |
| | 924 | | break; |
| | 925 | | } |
| | 926 | | case 16: { |
| | 927 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 928 | | break; |
| | 929 | | } |
| | 930 | | case 24: { |
| | 931 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 932 | | break; |
| | 933 | | } |
| | 934 | | } |
| | 935 | | } |
| | 936 | | #endif |
| | 937 | | } |
| | 938 | |
|
| | 939 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 940 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 941 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 942 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 943 | | uint tag; |
| | 944 | | while ((tag = input.ReadTag()) != 0) { |
| | 945 | | switch(tag) { |
| | 946 | | default: |
| | 947 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 948 | | break; |
| | 949 | | case 8: { |
| | 950 | | VideoPlayerEntity = input.ReadUInt32(); |
| | 951 | | break; |
| | 952 | | } |
| | 953 | | case 16: { |
| | 954 | | WrapMode = (global::Decentraland.Common.TextureWrapMode) input.ReadEnum(); |
| | 955 | | break; |
| | 956 | | } |
| | 957 | | case 24: { |
| | 958 | | FilterMode = (global::Decentraland.Common.TextureFilterMode) input.ReadEnum(); |
| | 959 | | break; |
| | 960 | | } |
| | 961 | | } |
| | 962 | | } |
| | 963 | | } |
| | 964 | | #endif |
| | 965 | |
|
| | 966 | | } |
| | 967 | |
|
| | 968 | | public sealed partial class TextureUnion : pb::IMessage<TextureUnion> |
| | 969 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 970 | | , pb::IBufferMessage |
| | 971 | | #endif |
| | 972 | | { |
| 1 | 973 | | private static readonly pb::MessageParser<TextureUnion> _parser = new pb::MessageParser<TextureUnion>(() => new Text |
| | 974 | | private pb::UnknownFieldSet _unknownFields; |
| | 975 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 976 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 977 | | public static pb::MessageParser<TextureUnion> Parser { get { return _parser; } } |
| | 978 | |
|
| | 979 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 980 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 981 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 982 | | get { return global::Decentraland.Common.TextureReflection.Descriptor.MessageTypes[3]; } |
| | 983 | | } |
| | 984 | |
|
| | 985 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 986 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 987 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 988 | | get { return Descriptor; } |
| | 989 | | } |
| | 990 | |
|
| | 991 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 992 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 21 | 993 | | public TextureUnion() { |
| | 994 | | OnConstruction(); |
| 21 | 995 | | } |
| | 996 | |
|
| | 997 | | partial void OnConstruction(); |
| | 998 | |
|
| | 999 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1000 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 5 | 1001 | | public TextureUnion(TextureUnion other) : this() { |
| 5 | 1002 | | switch (other.TexCase) { |
| | 1003 | | case TexOneofCase.Texture: |
| 5 | 1004 | | Texture = other.Texture.Clone(); |
| 5 | 1005 | | break; |
| | 1006 | | case TexOneofCase.AvatarTexture: |
| 0 | 1007 | | AvatarTexture = other.AvatarTexture.Clone(); |
| 0 | 1008 | | break; |
| | 1009 | | case TexOneofCase.VideoTexture: |
| 0 | 1010 | | VideoTexture = other.VideoTexture.Clone(); |
| | 1011 | | break; |
| | 1012 | | } |
| | 1013 | |
|
| 5 | 1014 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 5 | 1015 | | } |
| | 1016 | |
|
| | 1017 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1018 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1019 | | public TextureUnion Clone() { |
| 5 | 1020 | | return new TextureUnion(this); |
| | 1021 | | } |
| | 1022 | |
|
| | 1023 | | /// <summary>Field number for the "texture" field.</summary> |
| | 1024 | | public const int TextureFieldNumber = 1; |
| | 1025 | | /// <summary> |
| | 1026 | | /// default = null |
| | 1027 | | /// </summary> |
| | 1028 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1029 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1030 | | public global::Decentraland.Common.Texture Texture { |
| 52 | 1031 | | get { return texCase_ == TexOneofCase.Texture ? (global::Decentraland.Common.Texture) tex_ : null; } |
| | 1032 | | set { |
| 18 | 1033 | | tex_ = value; |
| 18 | 1034 | | texCase_ = value == null ? TexOneofCase.None : TexOneofCase.Texture; |
| 18 | 1035 | | } |
| | 1036 | | } |
| | 1037 | |
|
| | 1038 | | /// <summary>Field number for the "avatar_texture" field.</summary> |
| | 1039 | | public const int AvatarTextureFieldNumber = 2; |
| | 1040 | | /// <summary> |
| | 1041 | | /// default = null |
| | 1042 | | /// </summary> |
| | 1043 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1044 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1045 | | public global::Decentraland.Common.AvatarTexture AvatarTexture { |
| 7 | 1046 | | get { return texCase_ == TexOneofCase.AvatarTexture ? (global::Decentraland.Common.AvatarTexture) tex_ : null; } |
| | 1047 | | set { |
| 3 | 1048 | | tex_ = value; |
| 3 | 1049 | | texCase_ = value == null ? TexOneofCase.None : TexOneofCase.AvatarTexture; |
| 3 | 1050 | | } |
| | 1051 | | } |
| | 1052 | |
|
| | 1053 | | /// <summary>Field number for the "video_texture" field.</summary> |
| | 1054 | | public const int VideoTextureFieldNumber = 3; |
| | 1055 | | /// <summary> |
| | 1056 | | /// default = null |
| | 1057 | | /// </summary> |
| | 1058 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1059 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1060 | | public global::Decentraland.Common.VideoTexture VideoTexture { |
| 4 | 1061 | | get { return texCase_ == TexOneofCase.VideoTexture ? (global::Decentraland.Common.VideoTexture) tex_ : null; } |
| | 1062 | | set { |
| 0 | 1063 | | tex_ = value; |
| 0 | 1064 | | texCase_ = value == null ? TexOneofCase.None : TexOneofCase.VideoTexture; |
| 0 | 1065 | | } |
| | 1066 | | } |
| | 1067 | |
|
| | 1068 | | private object tex_; |
| | 1069 | | /// <summary>Enum of possible cases for the "tex" oneof.</summary> |
| | 1070 | | public enum TexOneofCase { |
| | 1071 | | None = 0, |
| | 1072 | | Texture = 1, |
| | 1073 | | AvatarTexture = 2, |
| | 1074 | | VideoTexture = 3, |
| | 1075 | | } |
| | 1076 | | private TexOneofCase texCase_ = TexOneofCase.None; |
| | 1077 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1078 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1079 | | public TexOneofCase TexCase { |
| 70 | 1080 | | get { return texCase_; } |
| | 1081 | | } |
| | 1082 | |
|
| | 1083 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1084 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1085 | | public void ClearTex() { |
| 0 | 1086 | | texCase_ = TexOneofCase.None; |
| 0 | 1087 | | tex_ = null; |
| 0 | 1088 | | } |
| | 1089 | |
|
| | 1090 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1091 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1092 | | public override bool Equals(object other) { |
| 5 | 1093 | | return Equals(other as TextureUnion); |
| | 1094 | | } |
| | 1095 | |
|
| | 1096 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1097 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1098 | | public bool Equals(TextureUnion other) { |
| 5 | 1099 | | if (ReferenceEquals(other, null)) { |
| 0 | 1100 | | return false; |
| | 1101 | | } |
| 5 | 1102 | | if (ReferenceEquals(other, this)) { |
| 0 | 1103 | | return true; |
| | 1104 | | } |
| 8 | 1105 | | if (!object.Equals(Texture, other.Texture)) return false; |
| 2 | 1106 | | if (!object.Equals(AvatarTexture, other.AvatarTexture)) return false; |
| 2 | 1107 | | if (!object.Equals(VideoTexture, other.VideoTexture)) return false; |
| 2 | 1108 | | if (TexCase != other.TexCase) return false; |
| 2 | 1109 | | return Equals(_unknownFields, other._unknownFields); |
| | 1110 | | } |
| | 1111 | |
|
| | 1112 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1113 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1114 | | public override int GetHashCode() { |
| 0 | 1115 | | int hash = 1; |
| 0 | 1116 | | if (texCase_ == TexOneofCase.Texture) hash ^= Texture.GetHashCode(); |
| 0 | 1117 | | if (texCase_ == TexOneofCase.AvatarTexture) hash ^= AvatarTexture.GetHashCode(); |
| 0 | 1118 | | if (texCase_ == TexOneofCase.VideoTexture) hash ^= VideoTexture.GetHashCode(); |
| 0 | 1119 | | hash ^= (int) texCase_; |
| 0 | 1120 | | if (_unknownFields != null) { |
| 0 | 1121 | | hash ^= _unknownFields.GetHashCode(); |
| | 1122 | | } |
| 0 | 1123 | | return hash; |
| | 1124 | | } |
| | 1125 | |
|
| | 1126 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1127 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1128 | | public override string ToString() { |
| 0 | 1129 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 1130 | | } |
| | 1131 | |
|
| | 1132 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1133 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1134 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 1135 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1136 | | output.WriteRawMessage(this); |
| | 1137 | | #else |
| 0 | 1138 | | if (texCase_ == TexOneofCase.Texture) { |
| 0 | 1139 | | output.WriteRawTag(10); |
| 0 | 1140 | | output.WriteMessage(Texture); |
| | 1141 | | } |
| 0 | 1142 | | if (texCase_ == TexOneofCase.AvatarTexture) { |
| 0 | 1143 | | output.WriteRawTag(18); |
| 0 | 1144 | | output.WriteMessage(AvatarTexture); |
| | 1145 | | } |
| 0 | 1146 | | if (texCase_ == TexOneofCase.VideoTexture) { |
| 0 | 1147 | | output.WriteRawTag(26); |
| 0 | 1148 | | output.WriteMessage(VideoTexture); |
| | 1149 | | } |
| 0 | 1150 | | if (_unknownFields != null) { |
| 0 | 1151 | | _unknownFields.WriteTo(output); |
| | 1152 | | } |
| | 1153 | | #endif |
| 0 | 1154 | | } |
| | 1155 | |
|
| | 1156 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1157 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1158 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1159 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 1160 | | if (texCase_ == TexOneofCase.Texture) { |
| | 1161 | | output.WriteRawTag(10); |
| | 1162 | | output.WriteMessage(Texture); |
| | 1163 | | } |
| | 1164 | | if (texCase_ == TexOneofCase.AvatarTexture) { |
| | 1165 | | output.WriteRawTag(18); |
| | 1166 | | output.WriteMessage(AvatarTexture); |
| | 1167 | | } |
| | 1168 | | if (texCase_ == TexOneofCase.VideoTexture) { |
| | 1169 | | output.WriteRawTag(26); |
| | 1170 | | output.WriteMessage(VideoTexture); |
| | 1171 | | } |
| | 1172 | | if (_unknownFields != null) { |
| | 1173 | | _unknownFields.WriteTo(ref output); |
| | 1174 | | } |
| | 1175 | | } |
| | 1176 | | #endif |
| | 1177 | |
|
| | 1178 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1179 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1180 | | public int CalculateSize() { |
| 0 | 1181 | | int size = 0; |
| 0 | 1182 | | if (texCase_ == TexOneofCase.Texture) { |
| 0 | 1183 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(Texture); |
| | 1184 | | } |
| 0 | 1185 | | if (texCase_ == TexOneofCase.AvatarTexture) { |
| 0 | 1186 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(AvatarTexture); |
| | 1187 | | } |
| 0 | 1188 | | if (texCase_ == TexOneofCase.VideoTexture) { |
| 0 | 1189 | | size += 1 + pb::CodedOutputStream.ComputeMessageSize(VideoTexture); |
| | 1190 | | } |
| 0 | 1191 | | if (_unknownFields != null) { |
| 0 | 1192 | | size += _unknownFields.CalculateSize(); |
| | 1193 | | } |
| 0 | 1194 | | return size; |
| | 1195 | | } |
| | 1196 | |
|
| | 1197 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1198 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1199 | | public void MergeFrom(TextureUnion other) { |
| 0 | 1200 | | if (other == null) { |
| 0 | 1201 | | return; |
| | 1202 | | } |
| 0 | 1203 | | switch (other.TexCase) { |
| | 1204 | | case TexOneofCase.Texture: |
| 0 | 1205 | | if (Texture == null) { |
| 0 | 1206 | | Texture = new global::Decentraland.Common.Texture(); |
| | 1207 | | } |
| 0 | 1208 | | Texture.MergeFrom(other.Texture); |
| 0 | 1209 | | break; |
| | 1210 | | case TexOneofCase.AvatarTexture: |
| 0 | 1211 | | if (AvatarTexture == null) { |
| 0 | 1212 | | AvatarTexture = new global::Decentraland.Common.AvatarTexture(); |
| | 1213 | | } |
| 0 | 1214 | | AvatarTexture.MergeFrom(other.AvatarTexture); |
| 0 | 1215 | | break; |
| | 1216 | | case TexOneofCase.VideoTexture: |
| 0 | 1217 | | if (VideoTexture == null) { |
| 0 | 1218 | | VideoTexture = new global::Decentraland.Common.VideoTexture(); |
| | 1219 | | } |
| 0 | 1220 | | VideoTexture.MergeFrom(other.VideoTexture); |
| | 1221 | | break; |
| | 1222 | | } |
| | 1223 | |
|
| 0 | 1224 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 1225 | | } |
| | 1226 | |
|
| | 1227 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1228 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1229 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 1230 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1231 | | input.ReadRawMessage(this); |
| | 1232 | | #else |
| | 1233 | | uint tag; |
| 0 | 1234 | | while ((tag = input.ReadTag()) != 0) { |
| | 1235 | | switch(tag) { |
| | 1236 | | default: |
| 0 | 1237 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 1238 | | break; |
| | 1239 | | case 10: { |
| 0 | 1240 | | global::Decentraland.Common.Texture subBuilder = new global::Decentraland.Common.Texture(); |
| 0 | 1241 | | if (texCase_ == TexOneofCase.Texture) { |
| 0 | 1242 | | subBuilder.MergeFrom(Texture); |
| | 1243 | | } |
| 0 | 1244 | | input.ReadMessage(subBuilder); |
| 0 | 1245 | | Texture = subBuilder; |
| 0 | 1246 | | break; |
| | 1247 | | } |
| | 1248 | | case 18: { |
| 0 | 1249 | | global::Decentraland.Common.AvatarTexture subBuilder = new global::Decentraland.Common.AvatarTexture(); |
| 0 | 1250 | | if (texCase_ == TexOneofCase.AvatarTexture) { |
| 0 | 1251 | | subBuilder.MergeFrom(AvatarTexture); |
| | 1252 | | } |
| 0 | 1253 | | input.ReadMessage(subBuilder); |
| 0 | 1254 | | AvatarTexture = subBuilder; |
| 0 | 1255 | | break; |
| | 1256 | | } |
| | 1257 | | case 26: { |
| 0 | 1258 | | global::Decentraland.Common.VideoTexture subBuilder = new global::Decentraland.Common.VideoTexture(); |
| 0 | 1259 | | if (texCase_ == TexOneofCase.VideoTexture) { |
| 0 | 1260 | | subBuilder.MergeFrom(VideoTexture); |
| | 1261 | | } |
| 0 | 1262 | | input.ReadMessage(subBuilder); |
| 0 | 1263 | | VideoTexture = subBuilder; |
| | 1264 | | break; |
| | 1265 | | } |
| | 1266 | | } |
| | 1267 | | } |
| | 1268 | | #endif |
| 0 | 1269 | | } |
| | 1270 | |
|
| | 1271 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 1272 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 1273 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 1274 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 1275 | | uint tag; |
| | 1276 | | while ((tag = input.ReadTag()) != 0) { |
| | 1277 | | switch(tag) { |
| | 1278 | | default: |
| | 1279 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 1280 | | break; |
| | 1281 | | case 10: { |
| | 1282 | | global::Decentraland.Common.Texture subBuilder = new global::Decentraland.Common.Texture(); |
| | 1283 | | if (texCase_ == TexOneofCase.Texture) { |
| | 1284 | | subBuilder.MergeFrom(Texture); |
| | 1285 | | } |
| | 1286 | | input.ReadMessage(subBuilder); |
| | 1287 | | Texture = subBuilder; |
| | 1288 | | break; |
| | 1289 | | } |
| | 1290 | | case 18: { |
| | 1291 | | global::Decentraland.Common.AvatarTexture subBuilder = new global::Decentraland.Common.AvatarTexture(); |
| | 1292 | | if (texCase_ == TexOneofCase.AvatarTexture) { |
| | 1293 | | subBuilder.MergeFrom(AvatarTexture); |
| | 1294 | | } |
| | 1295 | | input.ReadMessage(subBuilder); |
| | 1296 | | AvatarTexture = subBuilder; |
| | 1297 | | break; |
| | 1298 | | } |
| | 1299 | | case 26: { |
| | 1300 | | global::Decentraland.Common.VideoTexture subBuilder = new global::Decentraland.Common.VideoTexture(); |
| | 1301 | | if (texCase_ == TexOneofCase.VideoTexture) { |
| | 1302 | | subBuilder.MergeFrom(VideoTexture); |
| | 1303 | | } |
| | 1304 | | input.ReadMessage(subBuilder); |
| | 1305 | | VideoTexture = subBuilder; |
| | 1306 | | break; |
| | 1307 | | } |
| | 1308 | | } |
| | 1309 | | } |
| | 1310 | | } |
| | 1311 | | #endif |
| | 1312 | |
|
| | 1313 | | } |
| | 1314 | |
|
| | 1315 | | #endregion |
| | 1316 | |
|
| | 1317 | | } |
| | 1318 | |
|
| | 1319 | | #endregion Designer generated code |