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