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