| | 1 | | // <auto-generated> |
| | 2 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| | 3 | | // source: CylinderShape.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 CylinderShape.proto</summary> |
| | 15 | | public static partial class CylinderShapeReflection { |
| | 16 | |
|
| | 17 | | #region Descriptor |
| | 18 | | /// <summary>File descriptor for CylinderShape.proto</summary> |
| | 19 | | public static pbr::FileDescriptor Descriptor { |
| | 20 | | get { return descriptor; } |
| | 21 | | } |
| | 22 | | private static pbr::FileDescriptor descriptor; |
| | 23 | |
|
| | 24 | | static CylinderShapeReflection() { |
| | 25 | | byte[] descriptorData = global::System.Convert.FromBase64String( |
| | 26 | | string.Concat( |
| | 27 | | "ChNDeWxpbmRlclNoYXBlLnByb3RvEhBkZWNlbnRyYWxhbmQuZWNzIoIBCg9Q", |
| | 28 | | "QkN5bGluZGVyU2hhcGUSFwoPd2l0aF9jb2xsaXNpb25zGAEgASgIEhoKEmlz", |
| | 29 | | "X3BvaW50ZXJfYmxvY2tlchgCIAEoCBIPCgd2aXNpYmxlGAMgASgIEhIKCnJh", |
| | 30 | | "ZGl1c190b3AYBCABKAISFQoNcmFkaXVzX2JvdHRvbRgFIAEoAkIUqgIRRENM", |
| | 31 | | "LkVDU0NvbXBvbmVudHNiBnByb3RvMw==")); |
| | 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.PBCylinderShape), global::DCL.ECSComponents.P |
| | 36 | | })); |
| | 37 | | } |
| | 38 | | #endregion |
| | 39 | |
|
| | 40 | | } |
| | 41 | | #region Messages |
| | 42 | | public sealed partial class PBCylinderShape : pb::IMessage<PBCylinderShape> { |
| 4 | 43 | | private static readonly pb::MessageParser<PBCylinderShape> _parser = new pb::MessageParser<PBCylinderShape>(() => ne |
| | 44 | | private pb::UnknownFieldSet _unknownFields; |
| | 45 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 46 | | public static pb::MessageParser<PBCylinderShape> Parser { get { return _parser; } } |
| | 47 | |
|
| | 48 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 49 | | public static pbr::MessageDescriptor Descriptor { |
| 0 | 50 | | get { return global::DCL.ECSComponents.CylinderShapeReflection.Descriptor.MessageTypes[0]; } |
| | 51 | | } |
| | 52 | |
|
| | 53 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 54 | | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 0 | 55 | | get { return Descriptor; } |
| | 56 | | } |
| | 57 | |
|
| | 58 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 1 | 59 | | public PBCylinderShape() { |
| | 60 | | OnConstruction(); |
| 1 | 61 | | } |
| | 62 | |
|
| | 63 | | partial void OnConstruction(); |
| | 64 | |
|
| | 65 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 0 | 66 | | public PBCylinderShape(PBCylinderShape other) : this() { |
| 0 | 67 | | withCollisions_ = other.withCollisions_; |
| 0 | 68 | | isPointerBlocker_ = other.isPointerBlocker_; |
| 0 | 69 | | visible_ = other.visible_; |
| 0 | 70 | | radiusTop_ = other.radiusTop_; |
| 0 | 71 | | radiusBottom_ = other.radiusBottom_; |
| 0 | 72 | | _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 0 | 73 | | } |
| | 74 | |
|
| | 75 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 76 | | public PBCylinderShape Clone() { |
| 0 | 77 | | return new PBCylinderShape(this); |
| | 78 | | } |
| | 79 | |
|
| | 80 | | /// <summary>Field number for the "with_collisions" field.</summary> |
| | 81 | | public const int WithCollisionsFieldNumber = 1; |
| | 82 | | private bool withCollisions_; |
| | 83 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 84 | | public bool WithCollisions { |
| 0 | 85 | | get { return withCollisions_; } |
| | 86 | | set { |
| 0 | 87 | | withCollisions_ = value; |
| 0 | 88 | | } |
| | 89 | | } |
| | 90 | |
|
| | 91 | | /// <summary>Field number for the "is_pointer_blocker" field.</summary> |
| | 92 | | public const int IsPointerBlockerFieldNumber = 2; |
| | 93 | | private bool isPointerBlocker_; |
| | 94 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 95 | | public bool IsPointerBlocker { |
| 0 | 96 | | get { return isPointerBlocker_; } |
| | 97 | | set { |
| 0 | 98 | | isPointerBlocker_ = value; |
| 0 | 99 | | } |
| | 100 | | } |
| | 101 | |
|
| | 102 | | /// <summary>Field number for the "visible" field.</summary> |
| | 103 | | public const int VisibleFieldNumber = 3; |
| | 104 | | private bool visible_; |
| | 105 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 106 | | public bool Visible { |
| 0 | 107 | | get { return visible_; } |
| | 108 | | set { |
| 0 | 109 | | visible_ = value; |
| 0 | 110 | | } |
| | 111 | | } |
| | 112 | |
|
| | 113 | | /// <summary>Field number for the "radius_top" field.</summary> |
| | 114 | | public const int RadiusTopFieldNumber = 4; |
| | 115 | | private float radiusTop_; |
| | 116 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 117 | | public float RadiusTop { |
| 0 | 118 | | get { return radiusTop_; } |
| | 119 | | set { |
| 0 | 120 | | radiusTop_ = value; |
| 0 | 121 | | } |
| | 122 | | } |
| | 123 | |
|
| | 124 | | /// <summary>Field number for the "radius_bottom" field.</summary> |
| | 125 | | public const int RadiusBottomFieldNumber = 5; |
| | 126 | | private float radiusBottom_; |
| | 127 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 128 | | public float RadiusBottom { |
| 0 | 129 | | get { return radiusBottom_; } |
| | 130 | | set { |
| 0 | 131 | | radiusBottom_ = value; |
| 0 | 132 | | } |
| | 133 | | } |
| | 134 | |
|
| | 135 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 136 | | public override bool Equals(object other) { |
| 18 | 137 | | return Equals(other as PBCylinderShape); |
| | 138 | | } |
| | 139 | |
|
| | 140 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 141 | | public bool Equals(PBCylinderShape other) { |
| 18 | 142 | | if (ReferenceEquals(other, null)) { |
| 0 | 143 | | return false; |
| | 144 | | } |
| 18 | 145 | | if (ReferenceEquals(other, this)) { |
| 18 | 146 | | return true; |
| | 147 | | } |
| 0 | 148 | | if (WithCollisions != other.WithCollisions) return false; |
| 0 | 149 | | if (IsPointerBlocker != other.IsPointerBlocker) return false; |
| 0 | 150 | | if (Visible != other.Visible) return false; |
| 0 | 151 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusTop, other.RadiusTop)) return false |
| 0 | 152 | | if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(RadiusBottom, other.RadiusBottom)) return |
| 0 | 153 | | return Equals(_unknownFields, other._unknownFields); |
| | 154 | | } |
| | 155 | |
|
| | 156 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 157 | | public override int GetHashCode() { |
| 41 | 158 | | int hash = 1; |
| 41 | 159 | | if (WithCollisions != false) hash ^= WithCollisions.GetHashCode(); |
| 41 | 160 | | if (IsPointerBlocker != false) hash ^= IsPointerBlocker.GetHashCode(); |
| 41 | 161 | | if (Visible != false) hash ^= Visible.GetHashCode(); |
| 41 | 162 | | if (RadiusTop != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusTop); |
| 41 | 163 | | if (RadiusBottom != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(RadiusBot |
| 41 | 164 | | if (_unknownFields != null) { |
| 0 | 165 | | hash ^= _unknownFields.GetHashCode(); |
| | 166 | | } |
| 41 | 167 | | return hash; |
| | 168 | | } |
| | 169 | |
|
| | 170 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 171 | | public override string ToString() { |
| 0 | 172 | | return pb::JsonFormatter.ToDiagnosticString(this); |
| | 173 | | } |
| | 174 | |
|
| | 175 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 176 | | public void WriteTo(pb::CodedOutputStream output) { |
| 4 | 177 | | if (WithCollisions != false) { |
| 1 | 178 | | output.WriteRawTag(8); |
| 1 | 179 | | output.WriteBool(WithCollisions); |
| | 180 | | } |
| 4 | 181 | | if (IsPointerBlocker != false) { |
| 1 | 182 | | output.WriteRawTag(16); |
| 1 | 183 | | output.WriteBool(IsPointerBlocker); |
| | 184 | | } |
| 4 | 185 | | if (Visible != false) { |
| 0 | 186 | | output.WriteRawTag(24); |
| 0 | 187 | | output.WriteBool(Visible); |
| | 188 | | } |
| 4 | 189 | | if (RadiusTop != 0F) { |
| 2 | 190 | | output.WriteRawTag(37); |
| 2 | 191 | | output.WriteFloat(RadiusTop); |
| | 192 | | } |
| 4 | 193 | | if (RadiusBottom != 0F) { |
| 2 | 194 | | output.WriteRawTag(45); |
| 2 | 195 | | output.WriteFloat(RadiusBottom); |
| | 196 | | } |
| 4 | 197 | | if (_unknownFields != null) { |
| 0 | 198 | | _unknownFields.WriteTo(output); |
| | 199 | | } |
| 4 | 200 | | } |
| | 201 | |
|
| | 202 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 203 | | public int CalculateSize() { |
| 0 | 204 | | int size = 0; |
| 0 | 205 | | if (WithCollisions != false) { |
| 0 | 206 | | size += 1 + 1; |
| | 207 | | } |
| 0 | 208 | | if (IsPointerBlocker != false) { |
| 0 | 209 | | size += 1 + 1; |
| | 210 | | } |
| 0 | 211 | | if (Visible != false) { |
| 0 | 212 | | size += 1 + 1; |
| | 213 | | } |
| 0 | 214 | | if (RadiusTop != 0F) { |
| 0 | 215 | | size += 1 + 4; |
| | 216 | | } |
| 0 | 217 | | if (RadiusBottom != 0F) { |
| 0 | 218 | | size += 1 + 4; |
| | 219 | | } |
| 0 | 220 | | if (_unknownFields != null) { |
| 0 | 221 | | size += _unknownFields.CalculateSize(); |
| | 222 | | } |
| 0 | 223 | | return size; |
| | 224 | | } |
| | 225 | |
|
| | 226 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 227 | | public void MergeFrom(PBCylinderShape other) { |
| 0 | 228 | | if (other == null) { |
| 0 | 229 | | return; |
| | 230 | | } |
| 0 | 231 | | if (other.WithCollisions != false) { |
| 0 | 232 | | WithCollisions = other.WithCollisions; |
| | 233 | | } |
| 0 | 234 | | if (other.IsPointerBlocker != false) { |
| 0 | 235 | | IsPointerBlocker = other.IsPointerBlocker; |
| | 236 | | } |
| 0 | 237 | | if (other.Visible != false) { |
| 0 | 238 | | Visible = other.Visible; |
| | 239 | | } |
| 0 | 240 | | if (other.RadiusTop != 0F) { |
| 0 | 241 | | RadiusTop = other.RadiusTop; |
| | 242 | | } |
| 0 | 243 | | if (other.RadiusBottom != 0F) { |
| 0 | 244 | | RadiusBottom = other.RadiusBottom; |
| | 245 | | } |
| 0 | 246 | | _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 0 | 247 | | } |
| | 248 | |
|
| | 249 | | [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| | 250 | | public void MergeFrom(pb::CodedInputStream input) { |
| | 251 | | uint tag; |
| 9 | 252 | | while ((tag = input.ReadTag()) != 0) { |
| | 253 | | switch(tag) { |
| | 254 | | default: |
| 0 | 255 | | _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 0 | 256 | | break; |
| | 257 | | case 8: { |
| 1 | 258 | | WithCollisions = input.ReadBool(); |
| 1 | 259 | | break; |
| | 260 | | } |
| | 261 | | case 16: { |
| 1 | 262 | | IsPointerBlocker = input.ReadBool(); |
| 1 | 263 | | break; |
| | 264 | | } |
| | 265 | | case 24: { |
| 0 | 266 | | Visible = input.ReadBool(); |
| 0 | 267 | | break; |
| | 268 | | } |
| | 269 | | case 37: { |
| 2 | 270 | | RadiusTop = input.ReadFloat(); |
| 2 | 271 | | break; |
| | 272 | | } |
| | 273 | | case 45: { |
| 2 | 274 | | RadiusBottom = input.ReadFloat(); |
| | 275 | | break; |
| | 276 | | } |
| | 277 | | } |
| | 278 | | } |
| 3 | 279 | | } |
| | 280 | |
|
| | 281 | | } |
| | 282 | |
|
| | 283 | | #endregion |
| | 284 | |
|
| | 285 | | } |
| | 286 | |
|
| | 287 | | #endregion Designer generated code |