Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/unittest_import_public_proto3.proto |
| 3 | #pragma warning disable 1591, 0612, 3021 |
| 4 | #region Designer generated code |
| 5 | |
| 6 | using pb = global::Google.Protobuf; |
| 7 | using pbc = global::Google.Protobuf.Collections; |
Jon Skeet | 7694094 | 2015-07-14 10:25:40 +0100 | [diff] [blame] | 8 | using pbr = global::Google.Protobuf.Reflection; |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 9 | using scg = global::System.Collections.Generic; |
| 10 | namespace Google.Protobuf.TestProtos { |
| 11 | |
Jon Skeet | b0888a4 | 2015-09-29 13:37:30 +0100 | [diff] [blame] | 12 | /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_public_proto3.proto</summary> |
Jon Skeet | e2c8230 | 2015-09-29 14:34:31 +0100 | [diff] [blame] | 13 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 14 | public static partial class UnittestImportPublicProto3Reflection { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 15 | |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 16 | #region Descriptor |
Jon Skeet | b0888a4 | 2015-09-29 13:37:30 +0100 | [diff] [blame] | 17 | /// <summary>File descriptor for google/protobuf/unittest_import_public_proto3.proto</summary> |
Jon Skeet | 7694094 | 2015-07-14 10:25:40 +0100 | [diff] [blame] | 18 | public static pbr::FileDescriptor Descriptor { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 19 | get { return descriptor; } |
| 20 | } |
Jon Skeet | 7694094 | 2015-07-14 10:25:40 +0100 | [diff] [blame] | 21 | private static pbr::FileDescriptor descriptor; |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 22 | |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 23 | static UnittestImportPublicProto3Reflection() { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 24 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 | string.Concat( |
Jon Skeet | 9489817 | 2015-09-01 15:47:48 +0100 | [diff] [blame] | 26 | "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90", |
| 27 | "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ", |
| 28 | "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1", |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 29 | "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); |
Jon Skeet | 7694094 | 2015-07-14 10:25:40 +0100 | [diff] [blame] | 30 | descriptor = pbr::FileDescriptor.InternalBuildGeneratedFileFrom(descriptorData, |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 31 | new pbr::FileDescriptor[] { }, |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 32 | new pbr::GeneratedCodeInfo(null, new pbr::GeneratedCodeInfo[] { |
Jon Skeet | eadd4ca | 2015-11-13 20:04:14 +0000 | [diff] [blame^] | 33 | new pbr::GeneratedCodeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage.Parser, new[]{ "E" }, null, null, null) |
Jon Skeet | 47bf49b | 2015-07-22 11:39:38 +0100 | [diff] [blame] | 34 | })); |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 35 | } |
| 36 | #endregion |
| 37 | |
| 38 | } |
| 39 | #region Messages |
| 40 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
Jon Skeet | 785e13e | 2015-06-23 20:05:04 +0100 | [diff] [blame] | 41 | public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 42 | private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage()); |
| 43 | public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } } |
| 44 | |
Jon Skeet | 7694094 | 2015-07-14 10:25:40 +0100 | [diff] [blame] | 45 | public static pbr::MessageDescriptor Descriptor { |
Jon Skeet | 284bb45 | 2015-11-05 09:13:53 +0000 | [diff] [blame] | 46 | get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; } |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 47 | } |
| 48 | |
Jon Skeet | 96cffaa | 2015-07-20 19:25:07 +0100 | [diff] [blame] | 49 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 50 | get { return Descriptor; } |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 51 | } |
| 52 | |
Jon Skeet | 5350822 | 2015-07-01 17:16:55 +0100 | [diff] [blame] | 53 | public PublicImportMessage() { |
| 54 | OnConstruction(); |
| 55 | } |
Jon Skeet | 6c1fe6e | 2015-06-23 11:54:19 +0100 | [diff] [blame] | 56 | |
Jon Skeet | 5350822 | 2015-07-01 17:16:55 +0100 | [diff] [blame] | 57 | partial void OnConstruction(); |
| 58 | |
| 59 | public PublicImportMessage(PublicImportMessage other) : this() { |
Jon Skeet | 6c1fe6e | 2015-06-23 11:54:19 +0100 | [diff] [blame] | 60 | e_ = other.e_; |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 61 | } |
Jon Skeet | 6c1fe6e | 2015-06-23 11:54:19 +0100 | [diff] [blame] | 62 | |
| 63 | public PublicImportMessage Clone() { |
| 64 | return new PublicImportMessage(this); |
| 65 | } |
| 66 | |
Jon Skeet | 18e0a2e | 2015-10-01 10:38:01 +0100 | [diff] [blame] | 67 | /// <summary>Field number for the "e" field.</summary> |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 68 | public const int EFieldNumber = 1; |
| 69 | private int e_; |
| 70 | public int E { |
| 71 | get { return e_; } |
Jon Skeet | bfee2df | 2015-06-23 16:09:27 +0100 | [diff] [blame] | 72 | set { |
Jon Skeet | bfee2df | 2015-06-23 16:09:27 +0100 | [diff] [blame] | 73 | e_ = value; |
| 74 | } |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 75 | } |
| 76 | |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 77 | public override bool Equals(object other) { |
| 78 | return Equals(other as PublicImportMessage); |
| 79 | } |
| 80 | |
| 81 | public bool Equals(PublicImportMessage other) { |
| 82 | if (ReferenceEquals(other, null)) { |
| 83 | return false; |
| 84 | } |
| 85 | if (ReferenceEquals(other, this)) { |
| 86 | return true; |
| 87 | } |
| 88 | if (E != other.E) return false; |
| 89 | return true; |
| 90 | } |
| 91 | |
| 92 | public override int GetHashCode() { |
Jon Skeet | e6fc977 | 2015-06-26 10:32:50 +0100 | [diff] [blame] | 93 | int hash = 1; |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 94 | if (E != 0) hash ^= E.GetHashCode(); |
| 95 | return hash; |
| 96 | } |
| 97 | |
Jon Skeet | 5b9288e | 2015-07-03 12:45:36 +0100 | [diff] [blame] | 98 | public override string ToString() { |
| 99 | return pb::JsonFormatter.Default.Format(this); |
| 100 | } |
| 101 | |
Jon Skeet | 96ddf01 | 2015-06-12 09:53:12 +0100 | [diff] [blame] | 102 | public void WriteTo(pb::CodedOutputStream output) { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 103 | if (E != 0) { |
Jon Skeet | 828b7e6 | 2015-06-17 14:59:10 +0100 | [diff] [blame] | 104 | output.WriteRawTag(8); |
| 105 | output.WriteInt32(E); |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 106 | } |
| 107 | } |
| 108 | |
| 109 | public int CalculateSize() { |
| 110 | int size = 0; |
| 111 | if (E != 0) { |
Jon Skeet | 828b7e6 | 2015-06-17 14:59:10 +0100 | [diff] [blame] | 112 | size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 113 | } |
| 114 | return size; |
| 115 | } |
Jon Skeet | 3e7d70c | 2015-06-25 12:08:55 +0100 | [diff] [blame] | 116 | |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 117 | public void MergeFrom(PublicImportMessage other) { |
| 118 | if (other == null) { |
| 119 | return; |
| 120 | } |
| 121 | if (other.E != 0) { |
| 122 | E = other.E; |
| 123 | } |
| 124 | } |
| 125 | |
Jon Skeet | 96ddf01 | 2015-06-12 09:53:12 +0100 | [diff] [blame] | 126 | public void MergeFrom(pb::CodedInputStream input) { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 127 | uint tag; |
Jon Skeet | 1a57ad8 | 2015-08-05 11:23:52 +0100 | [diff] [blame] | 128 | while ((tag = input.ReadTag()) != 0) { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 129 | switch(tag) { |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 130 | default: |
Jon Skeet | 5bdc572 | 2015-08-06 11:40:43 +0100 | [diff] [blame] | 131 | input.SkipLastField(); |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 132 | break; |
| 133 | case 8: { |
Jon Skeet | fb1547b | 2015-06-12 13:11:54 +0100 | [diff] [blame] | 134 | E = input.ReadInt32(); |
Jon Skeet | e38294a | 2015-06-09 19:30:44 +0100 | [diff] [blame] | 135 | break; |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | } |
| 142 | |
| 143 | #endregion |
| 144 | |
| 145 | } |
| 146 | |
| 147 | #endregion Designer generated code |