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