blob: 6bf97151715e62bf92e8ad0857160cc8a116d539 [file] [log] [blame]
Austin Schuh40c16522018-10-28 20:27:54 -07001// <auto-generated>
2// Generated by the protocol buffer compiler. DO NOT EDIT!
3// source: unittest_import_proto3.proto
4// </auto-generated>
Brian Silverman9c614bc2016-02-15 20:20:02 -05005#pragma warning disable 1591, 0612, 3021
6#region Designer generated code
7
8using pb = global::Google.Protobuf;
9using pbc = global::Google.Protobuf.Collections;
10using pbr = global::Google.Protobuf.Reflection;
11using scg = global::System.Collections.Generic;
12namespace Google.Protobuf.TestProtos {
13
Austin Schuh40c16522018-10-28 20:27:54 -070014 /// <summary>Holder for reflection information generated from unittest_import_proto3.proto</summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -050015 public static partial class UnittestImportProto3Reflection {
16
17 #region Descriptor
Austin Schuh40c16522018-10-28 20:27:54 -070018 /// <summary>File descriptor for unittest_import_proto3.proto</summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -050019 public static pbr::FileDescriptor Descriptor {
20 get { return descriptor; }
21 }
22 private static pbr::FileDescriptor descriptor;
23
24 static UnittestImportProto3Reflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
Austin Schuh40c16522018-10-28 20:27:54 -070027 "Chx1bml0dGVzdF9pbXBvcnRfcHJvdG8zLnByb3RvEhhwcm90b2J1Zl91bml0",
28 "dGVzdF9pbXBvcnQaI3VuaXR0ZXN0X2ltcG9ydF9wdWJsaWNfcHJvdG8zLnBy",
29 "b3RvIhoKDUltcG9ydE1lc3NhZ2USCQoBZBgBIAEoBSpZCgpJbXBvcnRFbnVt",
30 "EhsKF0lNUE9SVF9FTlVNX1VOU1BFQ0lGSUVEEAASDgoKSU1QT1JUX0ZPTxAH",
31 "Eg4KCklNUE9SVF9CQVIQCBIOCgpJTVBPUlRfQkFaEAlCHaoCGkdvb2dsZS5Q",
32 "cm90b2J1Zi5UZXN0UHJvdG9zUABiBnByb3RvMw=="));
Brian Silverman9c614bc2016-02-15 20:20:02 -050033 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), }, new pbr::GeneratedClrTypeInfo[] {
36 new pbr::GeneratedClrTypeInfo(typeof(global::Google.Protobuf.TestProtos.ImportMessage), global::Google.Protobuf.TestProtos.ImportMessage.Parser, new[]{ "D" }, null, null, null)
37 }));
38 }
39 #endregion
40
41 }
42 #region Enums
43 public enum ImportEnum {
Austin Schuh40c16522018-10-28 20:27:54 -070044 [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,
Brian Silverman9c614bc2016-02-15 20:20:02 -050048 }
49
50 #endregion
51
52 #region Messages
Brian Silverman9c614bc2016-02-15 20:20:02 -050053 public sealed partial class ImportMessage : pb::IMessage<ImportMessage> {
54 private static readonly pb::MessageParser<ImportMessage> _parser = new pb::MessageParser<ImportMessage>(() => new ImportMessage());
Austin Schuh40c16522018-10-28 20:27:54 -070055 private pb::UnknownFieldSet _unknownFields;
56 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050057 public static pb::MessageParser<ImportMessage> Parser { get { return _parser; } }
58
Austin Schuh40c16522018-10-28 20:27:54 -070059 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050060 public static pbr::MessageDescriptor Descriptor {
61 get { return global::Google.Protobuf.TestProtos.UnittestImportProto3Reflection.Descriptor.MessageTypes[0]; }
62 }
63
Austin Schuh40c16522018-10-28 20:27:54 -070064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050065 pbr::MessageDescriptor pb::IMessage.Descriptor {
66 get { return Descriptor; }
67 }
68
Austin Schuh40c16522018-10-28 20:27:54 -070069 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050070 public ImportMessage() {
71 OnConstruction();
72 }
73
74 partial void OnConstruction();
75
Austin Schuh40c16522018-10-28 20:27:54 -070076 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050077 public ImportMessage(ImportMessage other) : this() {
78 d_ = other.d_;
Austin Schuh40c16522018-10-28 20:27:54 -070079 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -050080 }
81
Austin Schuh40c16522018-10-28 20:27:54 -070082 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050083 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_;
Austin Schuh40c16522018-10-28 20:27:54 -070090 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050091 public int D {
92 get { return d_; }
93 set {
94 d_ = value;
95 }
96 }
97
Austin Schuh40c16522018-10-28 20:27:54 -070098 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050099 public override bool Equals(object other) {
100 return Equals(other as ImportMessage);
101 }
102
Austin Schuh40c16522018-10-28 20:27:54 -0700103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500104 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;
Austin Schuh40c16522018-10-28 20:27:54 -0700112 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500113 }
114
Austin Schuh40c16522018-10-28 20:27:54 -0700115 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500116 public override int GetHashCode() {
117 int hash = 1;
118 if (D != 0) hash ^= D.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700119 if (_unknownFields != null) {
120 hash ^= _unknownFields.GetHashCode();
121 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500122 return hash;
123 }
124
Austin Schuh40c16522018-10-28 20:27:54 -0700125 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500126 public override string ToString() {
127 return pb::JsonFormatter.ToDiagnosticString(this);
128 }
129
Austin Schuh40c16522018-10-28 20:27:54 -0700130 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500131 public void WriteTo(pb::CodedOutputStream output) {
132 if (D != 0) {
133 output.WriteRawTag(8);
134 output.WriteInt32(D);
135 }
Austin Schuh40c16522018-10-28 20:27:54 -0700136 if (_unknownFields != null) {
137 _unknownFields.WriteTo(output);
138 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500139 }
140
Austin Schuh40c16522018-10-28 20:27:54 -0700141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500142 public int CalculateSize() {
143 int size = 0;
144 if (D != 0) {
145 size += 1 + pb::CodedOutputStream.ComputeInt32Size(D);
146 }
Austin Schuh40c16522018-10-28 20:27:54 -0700147 if (_unknownFields != null) {
148 size += _unknownFields.CalculateSize();
149 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500150 return size;
151 }
152
Austin Schuh40c16522018-10-28 20:27:54 -0700153 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500154 public void MergeFrom(ImportMessage other) {
155 if (other == null) {
156 return;
157 }
158 if (other.D != 0) {
159 D = other.D;
160 }
Austin Schuh40c16522018-10-28 20:27:54 -0700161 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500162 }
163
Austin Schuh40c16522018-10-28 20:27:54 -0700164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500165 public void MergeFrom(pb::CodedInputStream input) {
166 uint tag;
167 while ((tag = input.ReadTag()) != 0) {
168 switch(tag) {
169 default:
Austin Schuh40c16522018-10-28 20:27:54 -0700170 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500171 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