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