1 // <auto-generated> 2 // Generated by the protocol buffer compiler. DO NOT EDIT! 3 // source: csharp/protos/unittest_import_public_proto3.proto 4 // </auto-generated> 5 #pragma warning disable 1591, 0612, 3021, 8981 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 csharp/protos/unittest_import_public_proto3.proto</summary> 15 public static partial class UnittestImportPublicProto3Reflection { 16 17 #region Descriptor 18 /// <summary>File descriptor for csharp/protos/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 "CjFjc2hhcnAvcHJvdG9zL3VuaXR0ZXN0X2ltcG9ydF9wdWJsaWNfcHJvdG8z", 28 "LnByb3RvEhhwcm90b2J1Zl91bml0dGVzdF9pbXBvcnQiIAoTUHVibGljSW1w", 29 "b3J0TWVzc2FnZRIJCgFlGAEgASgFQh2qAhpHb29nbGUuUHJvdG9idWYuVGVz", 30 "dFByb3Rvc2IGcHJvdG8z")); 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 [global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")] 42 public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> 43 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 44 , pb::IBufferMessage 45 #endif 46 { 47 private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage()); 48 private pb::UnknownFieldSet _unknownFields; 49 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 50 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 51 public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } } 52 53 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 54 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 55 public static pbr::MessageDescriptor Descriptor { 56 get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; } 57 } 58 59 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 60 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 61 pbr::MessageDescriptor pb::IMessage.Descriptor { 62 get { return Descriptor; } 63 } 64 65 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 66 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] PublicImportMessage()67 public PublicImportMessage() { 68 OnConstruction(); 69 } 70 OnConstruction()71 partial void OnConstruction(); 72 73 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 74 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] PublicImportMessage(PublicImportMessage other)75 public PublicImportMessage(PublicImportMessage other) : this() { 76 e_ = other.e_; 77 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 78 } 79 80 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 81 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Clone()82 public PublicImportMessage Clone() { 83 return new PublicImportMessage(this); 84 } 85 86 /// <summary>Field number for the "e" field.</summary> 87 public const int EFieldNumber = 1; 88 private int e_; 89 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 90 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] 91 public int E { 92 get { return e_; } 93 set { 94 e_ = value; 95 } 96 } 97 98 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 99 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(object other)100 public override bool Equals(object other) { 101 return Equals(other as PublicImportMessage); 102 } 103 104 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 105 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] Equals(PublicImportMessage other)106 public bool Equals(PublicImportMessage other) { 107 if (ReferenceEquals(other, null)) { 108 return false; 109 } 110 if (ReferenceEquals(other, this)) { 111 return true; 112 } 113 if (E != other.E) return false; 114 return Equals(_unknownFields, other._unknownFields); 115 } 116 117 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 118 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] GetHashCode()119 public override int GetHashCode() { 120 int hash = 1; 121 if (E != 0) hash ^= E.GetHashCode(); 122 if (_unknownFields != null) { 123 hash ^= _unknownFields.GetHashCode(); 124 } 125 return hash; 126 } 127 128 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 129 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] ToString()130 public override string ToString() { 131 return pb::JsonFormatter.ToDiagnosticString(this); 132 } 133 134 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 135 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] WriteTo(pb::CodedOutputStream output)136 public void WriteTo(pb::CodedOutputStream output) { 137 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 138 output.WriteRawMessage(this); 139 #else 140 if (E != 0) { 141 output.WriteRawTag(8); 142 output.WriteInt32(E); 143 } 144 if (_unknownFields != null) { 145 _unknownFields.WriteTo(output); 146 } 147 #endif 148 } 149 150 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 151 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 152 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalWriteTo(ref pb::WriteContext output)153 void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) { 154 if (E != 0) { 155 output.WriteRawTag(8); 156 output.WriteInt32(E); 157 } 158 if (_unknownFields != null) { 159 _unknownFields.WriteTo(ref output); 160 } 161 } 162 #endif 163 164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] CalculateSize()166 public int CalculateSize() { 167 int size = 0; 168 if (E != 0) { 169 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E); 170 } 171 if (_unknownFields != null) { 172 size += _unknownFields.CalculateSize(); 173 } 174 return size; 175 } 176 177 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 178 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(PublicImportMessage other)179 public void MergeFrom(PublicImportMessage other) { 180 if (other == null) { 181 return; 182 } 183 if (other.E != 0) { 184 E = other.E; 185 } 186 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 187 } 188 189 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 190 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] MergeFrom(pb::CodedInputStream input)191 public void MergeFrom(pb::CodedInputStream input) { 192 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 193 input.ReadRawMessage(this); 194 #else 195 uint tag; 196 while ((tag = input.ReadTag()) != 0) { 197 if ((tag & 7) == 4) { 198 // Abort on any end group tag. 199 return; 200 } 201 switch(tag) { 202 default: 203 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 204 break; 205 case 8: { 206 E = input.ReadInt32(); 207 break; 208 } 209 } 210 } 211 #endif 212 } 213 214 #if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE 215 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 216 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)] IBufferMessage.InternalMergeFrom(ref pb::ParseContext input)217 void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) { 218 uint tag; 219 while ((tag = input.ReadTag()) != 0) { 220 if ((tag & 7) == 4) { 221 // Abort on any end group tag. 222 return; 223 } 224 switch(tag) { 225 default: 226 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input); 227 break; 228 case 8: { 229 E = input.ReadInt32(); 230 break; 231 } 232 } 233 } 234 } 235 #endif 236 237 } 238 239 #endregion 240 241 } 242 243 #endregion Designer generated code 244