| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: decentraland/sdk/components/avatar_attach.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_attach.proto</summary |
| | 15 | | public static partial class AvatarAttachReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for decentraland/sdk/components/avatar_attach.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static AvatarAttachReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "Ci9kZWNlbnRyYWxhbmQvc2RrL2NvbXBvbmVudHMvYXZhdGFyX2F0dGFjaC5w", |
| | 28 | | "cm90bxIbZGVjZW50cmFsYW5kLnNkay5jb21wb25lbnRzInAKDlBCQXZhdGFy", |
| | 29 | | "QXR0YWNoEhEKCWF2YXRhcl9pZBgBIAEoCRJLCg9hbmNob3JfcG9pbnRfaWQY", |
| | 30 | | "AiABKA4yMi5kZWNlbnRyYWxhbmQuc2RrLmNvbXBvbmVudHMuQXZhdGFyQW5j", |
| | 31 | | "aG9yUG9pbnRUeXBlKmYKFUF2YXRhckFuY2hvclBvaW50VHlwZRIRCg1BQVBU", |
| | 32 | | "X1BPU0lUSU9OEAASEQoNQUFQVF9OQU1FX1RBRxABEhIKDkFBUFRfTEVGVF9I", |
| | 33 | | "QU5EEAISEwoPQUFQVF9SSUdIVF9IQU5EEANCFKoCEURDTC5FQ1NDb21wb25l", |
| | 34 | | "bnRzYgZwcm90bzM=")); |
| | 35 | | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| | 36 | | new pbr::FileDescriptor[] { }, |
| | 37 | | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::DCL.ECSComponents.AvatarAnchorPointType), }, null, new pbr |
| | 38 | | new pbr::GeneratedClrTypeInfo(typeof(global::DCL.ECSComponents.PBAvatarAttach), global::DCL.ECSComponents.PB |
| | 39 | | })); |
| | 40 | | } |
| | 41 | | #endregion |
| | 42 | |
|
| | 43 | | } |
| | 44 | | #region Enums |
| | 45 | | public enum AvatarAnchorPointType { |
| | 46 | | [pbr::OriginalName("AAPT_POSITION")] AaptPosition = 0, |
| | 47 | | [pbr::OriginalName("AAPT_NAME_TAG")] AaptNameTag = 1, |
| | 48 | | [pbr::OriginalName("AAPT_LEFT_HAND")] AaptLeftHand = 2, |
| | 49 | | [pbr::OriginalName("AAPT_RIGHT_HAND")] AaptRightHand = 3, |
| | 50 | | } |
| | 51 | |
|
| | 52 | | #endregion |
| | 53 | |
|
| | 54 | | #region Messages |
| | 55 | | public sealed partial class PBAvatarAttach : pb::IMessage<PBAvatarAttach> |
| | 56 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 57 | | , pb::IBufferMessage |
| | 58 | | #endif |
| | 59 | | { |
| 1 | 60 | | private static readonly pb::MessageParser<PBAvatarAttach> _parser = new pb::MessageParser<PBAvatarAttach>(() => new |
| | 61 | | private pb::UnknownFieldSet _unknownFields; |
| | 62 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 63 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 64 | | public static pb::MessageParser<PBAvatarAttach> Parser { get { return _parser; } } |
| | 65 | |
|
| | 66 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 67 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 68 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 69 | | get { return global::DCL.ECSComponents.AvatarAttachReflection.Descriptor.MessageTypes[0]; } |
| | 70 | | } |
| | 71 | |
|
| | 72 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 73 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 74 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 75 | | get { return Descriptor; } |
| | 76 | | } |
| | 77 | |
|
| | 78 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 79 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 1 | 80 | | public PBAvatarAttach() { |
| | 81 | | OnConstruction(); |
| 1 | 82 | | } |
| | 83 | |
|
| | 84 | | partial void OnConstruction(); |
| | 85 | |
|
| | 86 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 87 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| 0 | 88 | | public PBAvatarAttach(PBAvatarAttach other) : this() { |
| 0 | 89 | | avatarId_ = other.avatarId_; |
| 0 | 90 | | anchorPointId_ = other.anchorPointId_; |
| 0 | 91 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 92 | | } |
| | 93 | |
|
| | 94 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 95 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 96 | | public PBAvatarAttach Clone() { |
| 0 | 97 | | return new PBAvatarAttach(this); |
| | 98 | | } |
| | 99 | |
|
| | 100 | | /// <summary>Field number for the "avatar_id" field.</summary> |
| | 101 | | public const int AvatarIdFieldNumber = 1; |
| 1 | 102 | | private string avatarId_ = ""; |
| | 103 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 104 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 105 | | public string AvatarId { |
| 0 | 106 | | get { return avatarId_; } |
| | 107 | | set { |
| 1 | 108 | | avatarId_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 1 | 109 | | } |
| | 110 | | } |
| | 111 | |
|
| | 112 | | /// <summary>Field number for the "anchor_point_id" field.</summary> |
| | 113 | | public const int AnchorPointIdFieldNumber = 2; |
| | 114 | | private global::DCL.ECSComponents.AvatarAnchorPointType anchorPointId_ = global::DCL.ECSComponents.AvatarAnchorPoint |
| | 115 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 116 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 117 | | public global::DCL.ECSComponents.AvatarAnchorPointType AnchorPointId { |
| 0 | 118 | | get { return anchorPointId_; } |
| | 119 | | set { |
| 0 | 120 | | anchorPointId_ = value; |
| 0 | 121 | | } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 125 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 126 | | public override bool Equals(object other) { |
| 0 | 127 | | return Equals(other as PBAvatarAttach); |
| | 128 | | } |
| | 129 | |
|
| | 130 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 131 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 132 | | public bool Equals(PBAvatarAttach other) { |
| 0 | 133 | | if (ReferenceEquals(other, null)) { |
| 0 | 134 | | return false; |
| | 135 | | } |
| 0 | 136 | | if (ReferenceEquals(other, this)) { |
| 0 | 137 | | return true; |
| | 138 | | } |
| 0 | 139 | | if (AvatarId != other.AvatarId) return false; |
| 0 | 140 | | if (AnchorPointId != other.AnchorPointId) return false; |
| 0 | 141 | | return Equals(_unknownFields, other._unknownFields); |
| | 142 | | } |
| | 143 | |
|
| | 144 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 145 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 146 | | public override int GetHashCode() { |
| 0 | 147 | | int hash = 1; |
| 0 | 148 | | if (AvatarId.Length != 0) hash ^= AvatarId.GetHashCode(); |
| 0 | 149 | | if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) hash ^= AnchorPointId.GetHashCo |
| 0 | 150 | | if (_unknownFields != null) { |
| 0 | 151 | | hash ^= _unknownFields.GetHashCode(); |
| | 152 | | } |
| 0 | 153 | | return hash; |
| | 154 | | } |
| | 155 | |
|
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 158 | | public override string ToString() { |
| 0 | 159 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 160 | | } |
| | 161 | |
|
| | 162 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 163 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 164 | | public void WriteTo(pb::CodedOutputStream output) { |
| | 165 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 166 | | output.WriteRawMessage(this); |
| | 167 | | #else |
| 0 | 168 | | if (AvatarId.Length != 0) { |
| 0 | 169 | | output.WriteRawTag(10); |
| 0 | 170 | | output.WriteString(AvatarId); |
| | 171 | | } |
| 0 | 172 | | if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) { |
| 0 | 173 | | output.WriteRawTag(16); |
| 0 | 174 | | output.WriteEnum((int) AnchorPointId); |
| | 175 | | } |
| 0 | 176 | | if (_unknownFields != null) { |
| 0 | 177 | | _unknownFields.WriteTo(output); |
| | 178 | | } |
| | 179 | | #endif |
| 0 | 180 | | } |
| | 181 | |
|
| | 182 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 183 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 184 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 185 | | void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { |
| | 186 | | if (AvatarId.Length != 0) { |
| | 187 | | output.WriteRawTag(10); |
| | 188 | | output.WriteString(AvatarId); |
| | 189 | | } |
| | 190 | | if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) { |
| | 191 | | output.WriteRawTag(16); |
| | 192 | | output.WriteEnum((int) AnchorPointId); |
| | 193 | | } |
| | 194 | | if (_unknownFields != null) { |
| | 195 | | _unknownFields.WriteTo(ref output); |
| | 196 | | } |
| | 197 | | } |
| | 198 | | #endif |
| | 199 | |
|
| | 200 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 201 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 202 | | public int CalculateSize() { |
| 0 | 203 | | int size = 0; |
| 0 | 204 | | if (AvatarId.Length != 0) { |
| 0 | 205 | | size += 1 + pb::CodedOutputStream.ComputeStringSize(AvatarId); |
| | 206 | | } |
| 0 | 207 | | if (AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) { |
| 0 | 208 | | size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) AnchorPointId); |
| | 209 | | } |
| 0 | 210 | | if (_unknownFields != null) { |
| 0 | 211 | | size += _unknownFields.CalculateSize(); |
| | 212 | | } |
| 0 | 213 | | return size; |
| | 214 | | } |
| | 215 | |
|
| | 216 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 217 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 218 | | public void MergeFrom(PBAvatarAttach other) { |
| 0 | 219 | | if (other == null) { |
| 0 | 220 | | return; |
| | 221 | | } |
| 0 | 222 | | if (other.AvatarId.Length != 0) { |
| 0 | 223 | | AvatarId = other.AvatarId; |
| | 224 | | } |
| 0 | 225 | | if (other.AnchorPointId != global::DCL.ECSComponents.AvatarAnchorPointType.AaptPosition) { |
| 0 | 226 | | AnchorPointId = other.AnchorPointId; |
| | 227 | | } |
| 0 | 228 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 229 | | } |
| | 230 | |
|
| | 231 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 232 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 233 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 234 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 235 | | input.ReadRawMessage(this); |
| | 236 | | #else |
| | 237 | | uint tag; |
| 0 | 238 | | while ((tag = input.ReadTag()) != 0) { |
| | 239 | | switch(tag) { |
| | 240 | | default: |
| 0 | 241 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 242 | | break; |
| | 243 | | case 10: { |
| 0 | 244 | | AvatarId = input.ReadString(); |
| 0 | 245 | | break; |
| | 246 | | } |
| | 247 | | case 16: { |
| 0 | 248 | | AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum(); |
| | 249 | | break; |
| | 250 | | } |
| | 251 | | } |
| | 252 | | } |
| | 253 | | #endif |
| 0 | 254 | | } |
| | 255 | |
|
| | 256 | | #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE |
| | 257 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 258 | | [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] |
| | 259 | | void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { |
| | 260 | | uint tag; |
| | 261 | | while ((tag = input.ReadTag()) != 0) { |
| | 262 | | switch(tag) { |
| | 263 | | default: |
| | 264 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); |
| | 265 | | break; |
| | 266 | | case 10: { |
| | 267 | | AvatarId = input.ReadString(); |
| | 268 | | break; |
| | 269 | | } |
| | 270 | | case 16: { |
| | 271 | | AnchorPointId = (global::DCL.ECSComponents.AvatarAnchorPointType) input.ReadEnum(); |
| | 272 | | break; |
| | 273 | | } |
| | 274 | | } |
| | 275 | | } |
| | 276 | | } |
| | 277 | | #endif |
| | 278 | |
|
| | 279 | | } |
| | 280 | |
|
| | 281 | | #endregion |
| | 282 | |
|
| | 283 | | } |
| | 284 | |
|
| | 285 | | #endregion Designer generated code |