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_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_proto3.proto</summary> |
| 13 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 14 | public static partial class UnittestImportProto3Reflection { |
| 15 | |
| 16 | #region Descriptor |
| 17 | /// <summary>File descriptor for google/protobuf/unittest_import_proto3.proto</summary> |
| 18 | public static pbr::FileDescriptor Descriptor { |
| 19 | get { return descriptor; } |
| 20 | } |
| 21 | private static pbr::FileDescriptor descriptor; |
| 22 | |
| 23 | static UnittestImportProto3Reflection() { |
| 24 | byte[] descriptorData = global::System.Convert.FromBase64String( |
| 25 | string.Concat( |
| 26 | "Cixnb29nbGUvcHJvdG9idWYvdW5pdHRlc3RfaW1wb3J0X3Byb3RvMy5wcm90", |
| 27 | "bxIYcHJvdG9idWZfdW5pdHRlc3RfaW1wb3J0GjNnb29nbGUvcHJvdG9idWYv", |
| 28 | "dW5pdHRlc3RfaW1wb3J0X3B1YmxpY19wcm90bzMucHJvdG8iGgoNSW1wb3J0", |
| 29 | "TWVzc2FnZRIJCgFkGAEgASgFKlkKCkltcG9ydEVudW0SGwoXSU1QT1JUX0VO", |
| 30 | "VU1fVU5TUEVDSUZJRUQQABIOCgpJTVBPUlRfRk9PEAcSDgoKSU1QT1JUX0JB", |
| 31 | "UhAIEg4KCklNUE9SVF9CQVoQCUI8Chhjb20uZ29vZ2xlLnByb3RvYnVmLnRl", |
| 32 | "c3RIAfgBAaoCGkdvb2dsZS5Qcm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3Rv", |
| 33 | "Mw==")); |
| 34 | descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData, |
| 35 | new pbr::FileDescriptor[] { global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor, }, |
| 36 | new pbr::GeneratedClrTypeInfo(new[] {typeof(global::Google.Protobuf.TestProtos.ImportEnum), }, new pbr::GeneratedClrTypeInfo[] { |
| 37 | new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ImportMessage), global::Google.Protobuf.TestProtos.ImportMessage.Parser, new[]{ "D" }, null, null, null) |
| 38 | })); |
| 39 | } |
| 40 | #endregion |
| 41 | |
| 42 | } |
| 43 | #region Enums |
| 44 | public enum ImportEnum { |
| 45 | IMPORT_ENUM_UNSPECIFIED = 0, |
| 46 | IMPORT_FOO = 7, |
| 47 | IMPORT_BAR = 8, |
| 48 | IMPORT_BAZ = 9, |
| 49 | } |
| 50 | |
| 51 | #endregion |
| 52 | |
| 53 | #region Messages |
| 54 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
| 55 | public sealed partial class ImportMessage : pb::IMessage<ImportMessage> { |
| 56 | private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage()); |
| 57 | public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } } |
| 58 | |
| 59 | public static pbr::MessageDescriptor Descriptor { |
| 60 | get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; } |
| 61 | } |
| 62 | |
| 63 | pbr::MessageDescriptor pb::IMessage.Descriptor { |
| 64 | get { return Descriptor; } |
| 65 | } |
| 66 | |
| 67 | public ImportMessage() { |
| 68 | OnConstruction(); |
| 69 | } |
| 70 | |
| 71 | partial void OnConstruction(); |
| 72 | |
| 73 | public ImportMessage(ImportMessage other) : this() { |
| 74 | d_ = other.d_; |
| 75 | } |
| 76 | |
| 77 | public ImportMessage Clone() { |
| 78 | return new ImportMessage(this); |
| 79 | } |
| 80 | |
| 81 | /// <summary>Field number for the "d" field.</summary> |
| 82 | public const int DFieldNumber = 1; |
| 83 | private int d_; |
| 84 | public int D { |
| 85 | get { return d_; } |
| 86 | set { |
| 87 | d_ = value; |
| 88 | } |
| 89 | } |
| 90 | |
| 91 | public override bool Equals(object other) { |
| 92 | return Equals(other as ImportMessage); |
| 93 | } |
| 94 | |
| 95 | public bool Equals(ImportMessage other) { |
| 96 | if (ReferenceEquals(other, null)) { |
| 97 | return false; |
| 98 | } |
| 99 | if (ReferenceEquals(other, this)) { |
| 100 | return true; |
| 101 | } |
| 102 | if (D != other.D) return false; |
| 103 | return true; |
| 104 | } |
| 105 | |
| 106 | public override int GetHashCode() { |
| 107 | int hash = 1; |
| 108 | if (D != 0) hash ^= D.GetHashCode(); |
| 109 | return hash; |
| 110 | } |
| 111 | |
| 112 | public override string ToString() { |
| 113 | return pb::JsonFormatter.ToDiagnosticString(this); |
| 114 | } |
| 115 | |
| 116 | public void WriteTo(pb::CodedOutputStream output) { |
| 117 | if (D != 0) { |
| 118 | output.WriteRawTag(8); |
| 119 | output.WriteInt32(D); |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | public int CalculateSize() { |
| 124 | int size = 0; |
| 125 | if (D != 0) { |
| 126 | size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); |
| 127 | } |
| 128 | return size; |
| 129 | } |
| 130 | |
| 131 | public void MergeFrom(ImportMessage other) { |
| 132 | if (other == null) { |
| 133 | return; |
| 134 | } |
| 135 | if (other.D != 0) { |
| 136 | D = other.D; |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | public void MergeFrom(pb::CodedInputStream input) { |
| 141 | uint tag; |
| 142 | while ((tag = input.ReadTag()) != 0) { |
| 143 | switch(tag) { |
| 144 | default: |
| 145 | input.SkipLastField(); |
| 146 | break; |
| 147 | case 8: { |
| 148 | D = input.ReadInt32(); |
| 149 | break; |
| 150 | } |
| 151 | } |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | } |
| 156 | |
| 157 | #endregion |
| 158 | |
| 159 | } |
| 160 | |
| 161 | #endregion Designer generated code |