Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [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; |
| 8 | using pbr = global::Google.Protobuf.Reflection; |
| 9 | using scg = global::System.Collections.Generic; |
| 10 | namespace Google.Protobuf.TestProtos { |
| 11 | |
| 12 | /// <summary>Holder for reflection information generated from google/protobuf/unittest_import_public_proto3.proto</summary> |
| 13 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 | public static partial class UnittestImportPublicProto3Reflection { |
| 15 | |
| 16 | #region Descriptor |
| 17 | /// <summary>File descriptor for google/protobuf/unittest_import_public_proto3.proto</summary> |
| 18 | public static pbr::FileDescriptor Descriptor { |
| 19 | get { return descriptor; } |
| 20 | } |
| 21 | private static pbr::FileDescriptor descriptor; |
| 22 | |
| 23 | static UnittestImportPublicProto3Reflection() { |
| 24 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 | string.Concat( |
| 26 | "CjNnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90", |
| 27 | "bzMucHJvdG8SGHByb3RvYnVmX3VuaXR0ZXN0X2ltcG9ydCIgChNQdWJsaWNJ", |
| 28 | "bXBvcnRNZXNzYWdlEgkKAWUYASABKAVCNwoYY29tLmdvb2dsZS5wcm90b2J1", |
| 29 | "Zi50ZXN0qgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3RvMw==")); |
| 30 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 31 | new pbr::FileDescriptor[] { }, |
| 32 | new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] { |
| 33 | new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.PublicImportMessage), global::Google.Protobuf.TestProtos.PublicImportMessage.Parser, new[]{ "E" }, null, null, null) |
| 34 | })); |
| 35 | } |
| 36 | #endregion |
| 37 | |
| 38 | } |
| 39 | #region Messages |
| 40 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 41 | public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> { |
| 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 | |
| 45 | public static pbr::MessageDescriptor Descriptor { |
| 46 | get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; } |
| 47 | } |
| 48 | |
| 49 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 50 | get { return Descriptor; } |
| 51 | } |
| 52 | |
| 53 | public PublicImportMessage() { |
| 54 | OnConstruction(); |
| 55 | } |
| 56 | |
| 57 | partial void OnConstruction(); |
| 58 | |
| 59 | public PublicImportMessage(PublicImportMessage other) : this() { |
| 60 | e_ = other.e_; |
| 61 | } |
| 62 | |
| 63 | public PublicImportMessage Clone() { |
| 64 | return new PublicImportMessage(this); |
| 65 | } |
| 66 | |
| 67 | /// <summary>Field number for the "e" field.</summary> |
| 68 | public const int EFieldNumber = 1; |
| 69 | private int e_; |
| 70 | public int E { |
| 71 | get { return e_; } |
| 72 | set { |
| 73 | e_ = value; |
| 74 | } |
| 75 | } |
| 76 | |
| 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() { |
| 93 | int hash = 1; |
| 94 | if (E != 0) hash ^= E.GetHashCode(); |
| 95 | return hash; |
| 96 | } |
| 97 | |
| 98 | public override string ToString() { |
| 99 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 100 | } |
| 101 | |
| 102 | public void WriteTo(pb::CodedOutputStream output) { |
| 103 | if (E != 0) { |
| 104 | output.WriteRawTag(8); |
| 105 | output.WriteInt32(E); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | public int CalculateSize() { |
| 110 | int size = 0; |
| 111 | if (E != 0) { |
| 112 | size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); |
| 113 | } |
| 114 | return size; |
| 115 | } |
| 116 | |
| 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 | |
| 126 | public void MergeFrom(pb::CodedInputStream input) { |
| 127 | uint tag; |
| 128 | while ((tag = input.ReadTag()) != 0) { |
| 129 | switch(tag) { |
| 130 | default: |
| 131 | input.SkipLastField(); |
| 132 | break; |
| 133 | case 8: { |
| 134 | E = input.ReadInt32(); |
| 135 | break; |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | } |
| 142 | |
| 143 | #endregion |
| 144 | |
| 145 | } |
| 146 | |
| 147 | #endregion Designer generated code |