2
2
// Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
// source: person.proto
4
4
// </auto-generated>
5
- #pragma warning disable 1591 , 0612 , 3021
5
+ #pragma warning disable 1591 , 0612 , 3021 , 8981
6
6
#region Designer generated code
7
7
8
8
using pb = global ::Google . Protobuf ;
@@ -30,45 +30,55 @@ static PersonReflection() {
30
30
"TmFtZRILCgNBZ2UYAiABKAViBnByb3RvMw==" ) ) ;
31
31
descriptor = pbr ::FileDescriptor . FromGeneratedCode ( descriptorData ,
32
32
new pbr ::FileDescriptor [ ] { global ::Confluent . Kafka . Examples . Protobuf . PersonNameReflection . Descriptor , } ,
33
- new pbr ::GeneratedClrTypeInfo ( null , new pbr ::GeneratedClrTypeInfo [ ] {
34
- new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Confluent . Kafka . Examples . Protobuf . Person ) , global ::Confluent . Kafka . Examples . Protobuf . Person . Parser , new [ ] { "Name" , "Age" } , null , null , null )
33
+ new pbr ::GeneratedClrTypeInfo ( null , null , new pbr ::GeneratedClrTypeInfo [ ] {
34
+ new pbr ::GeneratedClrTypeInfo ( typeof ( global ::Confluent . Kafka . Examples . Protobuf . Person ) , global ::Confluent . Kafka . Examples . Protobuf . Person . Parser , new [ ] { "Name" , "Age" } , null , null , null , null )
35
35
} ) ) ;
36
36
}
37
37
#endregion
38
38
39
39
}
40
40
#region Messages
41
- public sealed partial class Person : pb ::IMessage < Person > {
41
+ public sealed partial class Person : pb ::IMessage < Person >
42
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
43
+ , pb ::IBufferMessage
44
+ #endif
45
+ {
42
46
private static readonly pb ::MessageParser < Person > _parser = new pb ::MessageParser < Person > ( ( ) => new Person ( ) ) ;
43
47
private pb ::UnknownFieldSet _unknownFields ;
44
48
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
49
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
45
50
public static pb ::MessageParser < Person > Parser { get { return _parser ; } }
46
51
47
52
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
53
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
48
54
public static pbr ::MessageDescriptor Descriptor {
49
55
get { return global ::Confluent . Kafka . Examples . Protobuf . PersonReflection . Descriptor . MessageTypes [ 0 ] ; }
50
56
}
51
57
52
58
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
59
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
53
60
pbr ::MessageDescriptor pb ::IMessage . Descriptor {
54
61
get { return Descriptor ; }
55
62
}
56
63
57
64
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
65
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
58
66
public Person ( ) {
59
67
OnConstruction ( ) ;
60
68
}
61
69
62
70
partial void OnConstruction ( ) ;
63
71
64
72
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
73
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
65
74
public Person ( Person other ) : this ( ) {
66
75
name_ = other . name_ != null ? other . name_ . Clone ( ) : null ;
67
76
age_ = other . age_ ;
68
77
_unknownFields = pb ::UnknownFieldSet . Clone ( other . _unknownFields ) ;
69
78
}
70
79
71
80
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
81
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
72
82
public Person Clone ( ) {
73
83
return new Person ( this ) ;
74
84
}
@@ -77,6 +87,7 @@ public Person Clone() {
77
87
public const int NameFieldNumber = 1 ;
78
88
private global ::Confluent . Kafka . Examples . Protobuf . PersonName name_ ;
79
89
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
90
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
80
91
public global ::Confluent . Kafka . Examples . Protobuf . PersonName Name {
81
92
get { return name_ ; }
82
93
set {
@@ -88,6 +99,7 @@ public Person Clone() {
88
99
public const int AgeFieldNumber = 2 ;
89
100
private int age_ ;
90
101
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
102
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
91
103
public int Age {
92
104
get { return age_ ; }
93
105
set {
@@ -96,11 +108,13 @@ public int Age {
96
108
}
97
109
98
110
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
111
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
99
112
public override bool Equals ( object other ) {
100
113
return Equals ( other as Person ) ;
101
114
}
102
115
103
116
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
117
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
104
118
public bool Equals ( Person other ) {
105
119
if ( ReferenceEquals ( other , null ) ) {
106
120
return false ;
@@ -114,6 +128,7 @@ public bool Equals(Person other) {
114
128
}
115
129
116
130
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
131
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
117
132
public override int GetHashCode ( ) {
118
133
int hash = 1 ;
119
134
if ( name_ != null ) hash ^= Name . GetHashCode ( ) ;
@@ -125,12 +140,17 @@ public override int GetHashCode() {
125
140
}
126
141
127
142
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
143
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
128
144
public override string ToString ( ) {
129
145
return pb ::JsonFormatter . ToDiagnosticString ( this ) ;
130
146
}
131
147
132
148
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
149
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
133
150
public void WriteTo ( pb ::CodedOutputStream output ) {
151
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
152
+ output . WriteRawMessage ( this ) ;
153
+ #else
134
154
if ( name_ != null ) {
135
155
output . WriteRawTag ( 10 ) ;
136
156
output . WriteMessage ( Name ) ;
@@ -142,9 +162,29 @@ public void WriteTo(pb::CodedOutputStream output) {
142
162
if ( _unknownFields != null ) {
143
163
_unknownFields . WriteTo ( output ) ;
144
164
}
165
+ #endif
145
166
}
146
167
168
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
147
169
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
170
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
171
+ void pb ::IBufferMessage . InternalWriteTo ( ref pb ::WriteContext output ) {
172
+ if ( name_ != null ) {
173
+ output . WriteRawTag ( 10 ) ;
174
+ output . WriteMessage ( Name ) ;
175
+ }
176
+ if ( Age != 0 ) {
177
+ output . WriteRawTag ( 16 ) ;
178
+ output . WriteInt32 ( Age ) ;
179
+ }
180
+ if ( _unknownFields != null ) {
181
+ _unknownFields . WriteTo ( ref output ) ;
182
+ }
183
+ }
184
+ #endif
185
+
186
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
187
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
148
188
public int CalculateSize ( ) {
149
189
int size = 0 ;
150
190
if ( name_ != null ) {
@@ -160,13 +200,14 @@ public int CalculateSize() {
160
200
}
161
201
162
202
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
203
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
163
204
public void MergeFrom ( Person other ) {
164
205
if ( other == null ) {
165
206
return ;
166
207
}
167
208
if ( other . name_ != null ) {
168
209
if ( name_ == null ) {
169
- name_ = new global ::Confluent . Kafka . Examples . Protobuf . PersonName ( ) ;
210
+ Name = new global ::Confluent . Kafka . Examples . Protobuf . PersonName ( ) ;
170
211
}
171
212
Name . MergeFrom ( other . Name ) ;
172
213
}
@@ -177,7 +218,11 @@ public void MergeFrom(Person other) {
177
218
}
178
219
179
220
[ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
221
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
180
222
public void MergeFrom ( pb ::CodedInputStream input ) {
223
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
224
+ input . ReadRawMessage ( this ) ;
225
+ #else
181
226
uint tag ;
182
227
while ( ( tag = input . ReadTag ( ) ) != 0 ) {
183
228
switch ( tag ) {
@@ -186,9 +231,35 @@ public void MergeFrom(pb::CodedInputStream input) {
186
231
break ;
187
232
case 10 : {
188
233
if ( name_ == null ) {
189
- name_ = new global ::Confluent . Kafka . Examples . Protobuf . PersonName ( ) ;
234
+ Name = new global ::Confluent . Kafka . Examples . Protobuf . PersonName ( ) ;
235
+ }
236
+ input . ReadMessage ( Name ) ;
237
+ break ;
238
+ }
239
+ case 16 : {
240
+ Age = input . ReadInt32 ( ) ;
241
+ break ;
242
+ }
243
+ }
244
+ }
245
+ #endif
246
+ }
247
+
248
+ #if ! GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
249
+ [ global ::System . Diagnostics . DebuggerNonUserCodeAttribute ]
250
+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "protoc" , null ) ]
251
+ void pb ::IBufferMessage . InternalMergeFrom ( ref pb ::ParseContext input ) {
252
+ uint tag ;
253
+ while ( ( tag = input . ReadTag ( ) ) != 0 ) {
254
+ switch ( tag ) {
255
+ default :
256
+ _unknownFields = pb ::UnknownFieldSet . MergeFieldFrom ( _unknownFields , ref input ) ;
257
+ break ;
258
+ case 10 : {
259
+ if ( name_ == null ) {
260
+ Name = new global ::Confluent . Kafka . Examples . Protobuf . PersonName ( ) ;
190
261
}
191
- input . ReadMessage ( name_ ) ;
262
+ input . ReadMessage ( Name ) ;
192
263
break ;
193
264
}
194
265
case 16 : {
@@ -198,6 +269,7 @@ public void MergeFrom(pb::CodedInputStream input) {
198
269
}
199
270
}
200
271
}
272
+ #endif
201
273
202
274
}
203
275
0 commit comments