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