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