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