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 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 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage()); 55 private pb::UnknownFieldSet _unknownFields; 56 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 57 public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } } 58 59 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 60 public static pbr::MessageDescriptor Descriptor { 61 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; } 62 } 63 64 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 65 pbr::MessageDescriptor pb::IMessage.Descriptor { 66 get { return Descriptor; } 67 } 68 69 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ImportMessage()70 public ImportMessage() { 71 OnConstruction(); 72 } 73 OnConstruction()74 partial void OnConstruction(); 75 76 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ImportMessage(ImportMessage other)77 public ImportMessage(ImportMessage other) : this() { 78 d_ = other.d_; 79 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields); 80 } 81 82 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Clone()83 public ImportMessage Clone() { 84 return new ImportMessage(this); 85 } 86 87 /// <summary>Field number for the "d" field.</summary> 88 public const int DFieldNumber = 1; 89 private int d_; 90 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] 91 public int D { 92 get { return d_; } 93 set { 94 d_ = value; 95 } 96 } 97 98 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(object other)99 public override bool Equals(object other) { 100 return Equals(other as ImportMessage); 101 } 102 103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] Equals(ImportMessage other)104 public bool Equals(ImportMessage other) { 105 if (ReferenceEquals(other, null)) { 106 return false; 107 } 108 if (ReferenceEquals(other, this)) { 109 return true; 110 } 111 if (D != other.D) return false; 112 return Equals(_unknownFields, other._unknownFields); 113 } 114 115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] GetHashCode()116 public override int GetHashCode() { 117 int hash = 1; 118 if (D != 0) hash ^= D.GetHashCode(); 119 if (_unknownFields != null) { 120 hash ^= _unknownFields.GetHashCode(); 121 } 122 return hash; 123 } 124 125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] ToString()126 public override string ToString() { 127 return pb::JsonFormatter.ToDiagnosticString(this); 128 } 129 130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] WriteTo(pb::CodedOutputStream output)131 public void WriteTo(pb::CodedOutputStream output) { 132 if (D != 0) { 133 output.WriteRawTag(8); 134 output.WriteInt32(D); 135 } 136 if (_unknownFields != null) { 137 _unknownFields.WriteTo(output); 138 } 139 } 140 141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] CalculateSize()142 public int CalculateSize() { 143 int size = 0; 144 if (D != 0) { 145 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D); 146 } 147 if (_unknownFields != null) { 148 size += _unknownFields.CalculateSize(); 149 } 150 return size; 151 } 152 153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(ImportMessage other)154 public void MergeFrom(ImportMessage other) { 155 if (other == null) { 156 return; 157 } 158 if (other.D != 0) { 159 D = other.D; 160 } 161 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); 162 } 163 164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute] MergeFrom(pb::CodedInputStream input)165 public void MergeFrom(pb::CodedInputStream input) { 166 uint tag; 167 while ((tag = input.ReadTag()) != 0) { 168 switch(tag) { 169 default: 170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); 171 break; 172 case 8: { 173 D = input.ReadInt32(); 174 break; 175 } 176 } 177 } 178 } 179 180 } 181 182 #endregion 183 184 } 185 186 #endregion Designer generated code 187