blob: 97d181aff48ca61a1fae04a27144a915a4d98a3d [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_public_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_public_proto3.proto</summary>
Brian Silverman9c614bc2016-02-15 20:20:02 -050015 public static partial class UnittestImportPublicProto3Reflection {
16
17 #region Descriptor
Austin Schuh40c16522018-10-28 20:27:54 -070018 /// <summary>File descriptor for unittest_import_public_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 UnittestImportPublicProto3Reflection() {
25 byte[] descriptorData = global::System.Convert.FromBase64String(
26 string.Concat(
Austin Schuh40c16522018-10-28 20:27:54 -070027 "CiN1bml0dGVzdF9pbXBvcnRfcHVibGljX3Byb3RvMy5wcm90bxIYcHJvdG9i",
28 "dWZfdW5pdHRlc3RfaW1wb3J0IiAKE1B1YmxpY0ltcG9ydE1lc3NhZ2USCQoB",
29 "ZRgBIAEoBUIdqgIaR29vZ2xlLlByb3RvYnVmLlRlc3RQcm90b3NiBnByb3Rv",
30 "Mw=="));
Brian Silverman9c614bc2016-02-15 20:20:02 -050031 descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
32 new pbr::FileDescriptor[] { },
33 new pbr::GeneratedClrTypeInfo(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)
35 }));
36 }
37 #endregion
38
39 }
40 #region Messages
Brian Silverman9c614bc2016-02-15 20:20:02 -050041 public sealed partial class PublicImportMessage : pb::IMessage<PublicImportMessage> {
42 private static readonly pb::MessageParser<PublicImportMessage> _parser = new pb::MessageParser<PublicImportMessage>(() => new PublicImportMessage());
Austin Schuh40c16522018-10-28 20:27:54 -070043 private pb::UnknownFieldSet _unknownFields;
44 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050045 public static pb::MessageParser<PublicImportMessage> Parser { get { return _parser; } }
46
Austin Schuh40c16522018-10-28 20:27:54 -070047 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050048 public static pbr::MessageDescriptor Descriptor {
49 get { return global::Google.Protobuf.TestProtos.UnittestImportPublicProto3Reflection.Descriptor.MessageTypes[0]; }
50 }
51
Austin Schuh40c16522018-10-28 20:27:54 -070052 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050053 pbr::MessageDescriptor pb::IMessage.Descriptor {
54 get { return Descriptor; }
55 }
56
Austin Schuh40c16522018-10-28 20:27:54 -070057 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050058 public PublicImportMessage() {
59 OnConstruction();
60 }
61
62 partial void OnConstruction();
63
Austin Schuh40c16522018-10-28 20:27:54 -070064 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050065 public PublicImportMessage(PublicImportMessage other) : this() {
66 e_ = other.e_;
Austin Schuh40c16522018-10-28 20:27:54 -070067 _unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -050068 }
69
Austin Schuh40c16522018-10-28 20:27:54 -070070 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050071 public PublicImportMessage Clone() {
72 return new PublicImportMessage(this);
73 }
74
75 /// <summary>Field number for the "e" field.</summary>
76 public const int EFieldNumber = 1;
77 private int e_;
Austin Schuh40c16522018-10-28 20:27:54 -070078 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050079 public int E {
80 get { return e_; }
81 set {
82 e_ = value;
83 }
84 }
85
Austin Schuh40c16522018-10-28 20:27:54 -070086 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050087 public override bool Equals(object other) {
88 return Equals(other as PublicImportMessage);
89 }
90
Austin Schuh40c16522018-10-28 20:27:54 -070091 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -050092 public bool Equals(PublicImportMessage other) {
93 if (ReferenceEquals(other, null)) {
94 return false;
95 }
96 if (ReferenceEquals(other, this)) {
97 return true;
98 }
99 if (E != other.E) return false;
Austin Schuh40c16522018-10-28 20:27:54 -0700100 return Equals(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500101 }
102
Austin Schuh40c16522018-10-28 20:27:54 -0700103 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500104 public override int GetHashCode() {
105 int hash = 1;
106 if (E != 0) hash ^= E.GetHashCode();
Austin Schuh40c16522018-10-28 20:27:54 -0700107 if (_unknownFields != null) {
108 hash ^= _unknownFields.GetHashCode();
109 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500110 return hash;
111 }
112
Austin Schuh40c16522018-10-28 20:27:54 -0700113 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500114 public override string ToString() {
115 return pb::JsonFormatter.ToDiagnosticString(this);
116 }
117
Austin Schuh40c16522018-10-28 20:27:54 -0700118 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500119 public void WriteTo(pb::CodedOutputStream output) {
120 if (E != 0) {
121 output.WriteRawTag(8);
122 output.WriteInt32(E);
123 }
Austin Schuh40c16522018-10-28 20:27:54 -0700124 if (_unknownFields != null) {
125 _unknownFields.WriteTo(output);
126 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500127 }
128
Austin Schuh40c16522018-10-28 20:27:54 -0700129 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500130 public int CalculateSize() {
131 int size = 0;
132 if (E != 0) {
133 size += 1 + pb::CodedOutputStream.ComputeInt32Size(E);
134 }
Austin Schuh40c16522018-10-28 20:27:54 -0700135 if (_unknownFields != null) {
136 size += _unknownFields.CalculateSize();
137 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500138 return size;
139 }
140
Austin Schuh40c16522018-10-28 20:27:54 -0700141 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500142 public void MergeFrom(PublicImportMessage other) {
143 if (other == null) {
144 return;
145 }
146 if (other.E != 0) {
147 E = other.E;
148 }
Austin Schuh40c16522018-10-28 20:27:54 -0700149 _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500150 }
151
Austin Schuh40c16522018-10-28 20:27:54 -0700152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
Brian Silverman9c614bc2016-02-15 20:20:02 -0500153 public void MergeFrom(pb::CodedInputStream input) {
154 uint tag;
155 while ((tag = input.ReadTag()) != 0) {
156 switch(tag) {
157 default:
Austin Schuh40c16522018-10-28 20:27:54 -0700158 _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500159 break;
160 case 8: {
161 E = input.ReadInt32();
162 break;
163 }
164 }
165 }
166 }
167
168 }
169
170 #endregion
171
172}
173
174#endregion Designer generated code