|
| 1 | +// <auto-generated> |
| 2 | +// Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 | +// source: protos/project.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 Project.Proto { |
| 13 | + |
| 14 | + /// <summary>Holder for reflection information generated from protos/project.proto</summary> |
| 15 | + public static partial class ProjectReflection { |
| 16 | + |
| 17 | + #region Descriptor |
| 18 | + /// <summary>File descriptor for protos/project.proto</summary> |
| 19 | + public static pbr::FileDescriptor Descriptor { |
| 20 | + get { return descriptor; } |
| 21 | + } |
| 22 | + private static pbr::FileDescriptor descriptor; |
| 23 | + |
| 24 | + static ProjectReflection() { |
| 25 | + byte[] descriptorData = global::System.Convert.FromBase64String( |
| 26 | + string.Concat( |
| 27 | + "ChRwcm90b3MvcHJvamVjdC5wcm90bxINcHJvamVjdC5wcm90byIhChFQcm9q", |
| 28 | + "ZWN0Q3JlYXRlZE1zZxIMCgROYW1lGAEgASgJYgZwcm90bzM=")); |
| 29 | + descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 30 | + new pbr::FileDescriptor[] { }, |
| 31 | + new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 32 | + new pbr::GeneratedClrTypeInfo(typeof(global::Project.Proto.ProjectCreatedMsg), global::Project.Proto.ProjectCreatedMsg.Parser, new[]{ "Name" }, null, null, null) |
| 33 | + })); |
| 34 | + } |
| 35 | + #endregion |
| 36 | + |
| 37 | + } |
| 38 | + #region Messages |
| 39 | + public sealed partial class ProjectCreatedMsg : pb::IMessage<ProjectCreatedMsg> { |
| 40 | + private static readonly pb::MessageParser<ProjectCreatedMsg> _parser = new pb::MessageParser<ProjectCreatedMsg>(() => new ProjectCreatedMsg()); |
| 41 | + private pb::UnknownFieldSet _unknownFields; |
| 42 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 43 | + public static pb::MessageParser<ProjectCreatedMsg> Parser { get { return _parser; } } |
| 44 | + |
| 45 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 46 | + public static pbr::MessageDescriptor Descriptor { |
| 47 | + get { return global::Project.Proto.ProjectReflection.Descriptor.MessageTypes[0]; } |
| 48 | + } |
| 49 | + |
| 50 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 51 | + pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 52 | + get { return Descriptor; } |
| 53 | + } |
| 54 | + |
| 55 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 56 | + public ProjectCreatedMsg() { |
| 57 | + OnConstruction(); |
| 58 | + } |
| 59 | + |
| 60 | + partial void OnConstruction(); |
| 61 | + |
| 62 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 63 | + public ProjectCreatedMsg(ProjectCreatedMsg other) : this() { |
| 64 | + name_ = other.name_; |
| 65 | + _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); |
| 66 | + } |
| 67 | + |
| 68 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 69 | + public ProjectCreatedMsg Clone() { |
| 70 | + return new ProjectCreatedMsg(this); |
| 71 | + } |
| 72 | + |
| 73 | + /// <summary>Field number for the "Name" field.</summary> |
| 74 | + public const int NameFieldNumber = 1; |
| 75 | + private string name_ = ""; |
| 76 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 77 | + public string Name { |
| 78 | + get { return name_; } |
| 79 | + set { |
| 80 | + name_ = pb::ProtoPreconditions.CheckNotNull(value, "value"); |
| 81 | + } |
| 82 | + } |
| 83 | + |
| 84 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 85 | + public override bool Equals(object other) { |
| 86 | + return Equals(other as ProjectCreatedMsg); |
| 87 | + } |
| 88 | + |
| 89 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 90 | + public bool Equals(ProjectCreatedMsg other) { |
| 91 | + if (ReferenceEquals(other, null)) { |
| 92 | + return false; |
| 93 | + } |
| 94 | + if (ReferenceEquals(other, this)) { |
| 95 | + return true; |
| 96 | + } |
| 97 | + if (Name != other.Name) return false; |
| 98 | + return Equals(_unknownFields, other._unknownFields); |
| 99 | + } |
| 100 | + |
| 101 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 102 | + public override int GetHashCode() { |
| 103 | + int hash = 1; |
| 104 | + if (Name.Length != 0) hash ^= Name.GetHashCode(); |
| 105 | + if (_unknownFields != null) { |
| 106 | + hash ^= _unknownFields.GetHashCode(); |
| 107 | + } |
| 108 | + return hash; |
| 109 | + } |
| 110 | + |
| 111 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 112 | + public override string ToString() { |
| 113 | + return pb::JsonFormatter.ToDiagnosticString(this); |
| 114 | + } |
| 115 | + |
| 116 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 117 | + public void WriteTo(pb::CodedOutputStream output) { |
| 118 | + if (Name.Length != 0) { |
| 119 | + output.WriteRawTag(10); |
| 120 | + output.WriteString(Name); |
| 121 | + } |
| 122 | + if (_unknownFields != null) { |
| 123 | + _unknownFields.WriteTo(output); |
| 124 | + } |
| 125 | + } |
| 126 | + |
| 127 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 128 | + public int CalculateSize() { |
| 129 | + int size = 0; |
| 130 | + if (Name.Length != 0) { |
| 131 | + size += 1 + pb::CodedOutputStream.ComputeStringSize(Name); |
| 132 | + } |
| 133 | + if (_unknownFields != null) { |
| 134 | + size += _unknownFields.CalculateSize(); |
| 135 | + } |
| 136 | + return size; |
| 137 | + } |
| 138 | + |
| 139 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 140 | + public void MergeFrom(ProjectCreatedMsg other) { |
| 141 | + if (other == null) { |
| 142 | + return; |
| 143 | + } |
| 144 | + if (other.Name.Length != 0) { |
| 145 | + Name = other.Name; |
| 146 | + } |
| 147 | + _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); |
| 148 | + } |
| 149 | + |
| 150 | + [global::System.Diagnostics.DebuggerNonUserCodeAttribute] |
| 151 | + public void MergeFrom(pb::CodedInputStream input) { |
| 152 | + uint tag; |
| 153 | + while ((tag = input.ReadTag()) != 0) { |
| 154 | + switch(tag) { |
| 155 | + default: |
| 156 | + _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); |
| 157 | + break; |
| 158 | + case 10: { |
| 159 | + Name = input.ReadString(); |
| 160 | + break; |
| 161 | + } |
| 162 | + } |
| 163 | + } |
| 164 | + } |
| 165 | + |
| 166 | + } |
| 167 | + |
| 168 | + #endregion |
| 169 | + |
| 170 | +} |
| 171 | + |
| 172 | +#endregion Designer generated code |
0 commit comments