1
2
3
4 package org.springframework.protobuf;
5
6
7
8
9 public final class SecondMsg extends
10 com.google.protobuf.GeneratedMessage
11 implements SecondMsgOrBuilder {
12
13 private SecondMsg(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
14 super(builder);
15 this.unknownFields = builder.getUnknownFields();
16 }
17 private SecondMsg(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
18
19 private static final SecondMsg defaultInstance;
20 public static SecondMsg getDefaultInstance() {
21 return defaultInstance;
22 }
23
24 public SecondMsg getDefaultInstanceForType() {
25 return defaultInstance;
26 }
27
28 private final com.google.protobuf.UnknownFieldSet unknownFields;
29 @java.lang.Override
30 public final com.google.protobuf.UnknownFieldSet
31 getUnknownFields() {
32 return this.unknownFields;
33 }
34 private SecondMsg(
35 com.google.protobuf.CodedInputStream input,
36 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
37 throws com.google.protobuf.InvalidProtocolBufferException {
38 initFields();
39 int mutable_bitField0_ = 0;
40 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
41 com.google.protobuf.UnknownFieldSet.newBuilder();
42 try {
43 boolean done = false;
44 while (!done) {
45 int tag = input.readTag();
46 switch (tag) {
47 case 0:
48 done = true;
49 break;
50 default: {
51 if (!parseUnknownField(input, unknownFields,
52 extensionRegistry, tag)) {
53 done = true;
54 }
55 break;
56 }
57 case 8: {
58 bitField0_ |= 0x00000001;
59 blah_ = input.readInt32();
60 break;
61 }
62 }
63 }
64 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
65 throw e.setUnfinishedMessage(this);
66 } catch (java.io.IOException e) {
67 throw new com.google.protobuf.InvalidProtocolBufferException(
68 e.getMessage()).setUnfinishedMessage(this);
69 } finally {
70 this.unknownFields = unknownFields.build();
71 makeExtensionsImmutable();
72 }
73 }
74 public static final com.google.protobuf.Descriptors.Descriptor
75 getDescriptor() {
76 return org.springframework.protobuf.OuterSample.internal_static_SecondMsg_descriptor;
77 }
78
79 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
80 internalGetFieldAccessorTable() {
81 return org.springframework.protobuf.OuterSample.internal_static_SecondMsg_fieldAccessorTable
82 .ensureFieldAccessorsInitialized(
83 org.springframework.protobuf.SecondMsg.class, org.springframework.protobuf.SecondMsg.Builder.class);
84 }
85
86 public static com.google.protobuf.Parser<SecondMsg> PARSER =
87 new com.google.protobuf.AbstractParser<SecondMsg>() {
88 public SecondMsg parsePartialFrom(
89 com.google.protobuf.CodedInputStream input,
90 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
91 throws com.google.protobuf.InvalidProtocolBufferException {
92 return new SecondMsg(input, extensionRegistry);
93 }
94 };
95
96 @java.lang.Override
97 public com.google.protobuf.Parser<SecondMsg> getParserForType() {
98 return PARSER;
99 }
100
101 private int bitField0_;
102
103 public static final int BLAH_FIELD_NUMBER = 1;
104 private int blah_;
105
106
107
108 public boolean hasBlah() {
109 return ((bitField0_ & 0x00000001) == 0x00000001);
110 }
111
112
113
114 public int getBlah() {
115 return blah_;
116 }
117
118 private void initFields() {
119 blah_ = 0;
120 }
121 private byte memoizedIsInitialized = -1;
122 public final boolean isInitialized() {
123 byte isInitialized = memoizedIsInitialized;
124 if (isInitialized != -1) return isInitialized == 1;
125
126 memoizedIsInitialized = 1;
127 return true;
128 }
129
130 public void writeTo(com.google.protobuf.CodedOutputStream output)
131 throws java.io.IOException {
132 getSerializedSize();
133 if (((bitField0_ & 0x00000001) == 0x00000001)) {
134 output.writeInt32(1, blah_);
135 }
136 getUnknownFields().writeTo(output);
137 }
138
139 private int memoizedSerializedSize = -1;
140 public int getSerializedSize() {
141 int size = memoizedSerializedSize;
142 if (size != -1) return size;
143
144 size = 0;
145 if (((bitField0_ & 0x00000001) == 0x00000001)) {
146 size += com.google.protobuf.CodedOutputStream
147 .computeInt32Size(1, blah_);
148 }
149 size += getUnknownFields().getSerializedSize();
150 memoizedSerializedSize = size;
151 return size;
152 }
153
154 private static final long serialVersionUID = 0L;
155 @java.lang.Override
156 protected java.lang.Object writeReplace()
157 throws java.io.ObjectStreamException {
158 return super.writeReplace();
159 }
160
161 public static org.springframework.protobuf.SecondMsg parseFrom(
162 com.google.protobuf.ByteString data)
163 throws com.google.protobuf.InvalidProtocolBufferException {
164 return PARSER.parseFrom(data);
165 }
166 public static org.springframework.protobuf.SecondMsg parseFrom(
167 com.google.protobuf.ByteString data,
168 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
169 throws com.google.protobuf.InvalidProtocolBufferException {
170 return PARSER.parseFrom(data, extensionRegistry);
171 }
172 public static org.springframework.protobuf.SecondMsg parseFrom(byte[] data)
173 throws com.google.protobuf.InvalidProtocolBufferException {
174 return PARSER.parseFrom(data);
175 }
176 public static org.springframework.protobuf.SecondMsg parseFrom(
177 byte[] data,
178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
179 throws com.google.protobuf.InvalidProtocolBufferException {
180 return PARSER.parseFrom(data, extensionRegistry);
181 }
182 public static org.springframework.protobuf.SecondMsg parseFrom(java.io.InputStream input)
183 throws java.io.IOException {
184 return PARSER.parseFrom(input);
185 }
186 public static org.springframework.protobuf.SecondMsg parseFrom(
187 java.io.InputStream input,
188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189 throws java.io.IOException {
190 return PARSER.parseFrom(input, extensionRegistry);
191 }
192 public static org.springframework.protobuf.SecondMsg parseDelimitedFrom(java.io.InputStream input)
193 throws java.io.IOException {
194 return PARSER.parseDelimitedFrom(input);
195 }
196 public static org.springframework.protobuf.SecondMsg parseDelimitedFrom(
197 java.io.InputStream input,
198 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199 throws java.io.IOException {
200 return PARSER.parseDelimitedFrom(input, extensionRegistry);
201 }
202 public static org.springframework.protobuf.SecondMsg parseFrom(
203 com.google.protobuf.CodedInputStream input)
204 throws java.io.IOException {
205 return PARSER.parseFrom(input);
206 }
207 public static org.springframework.protobuf.SecondMsg parseFrom(
208 com.google.protobuf.CodedInputStream input,
209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210 throws java.io.IOException {
211 return PARSER.parseFrom(input, extensionRegistry);
212 }
213
214 public static Builder newBuilder() { return Builder.create(); }
215 public Builder newBuilderForType() { return newBuilder(); }
216 public static Builder newBuilder(org.springframework.protobuf.SecondMsg prototype) {
217 return newBuilder().mergeFrom(prototype);
218 }
219 public Builder toBuilder() { return newBuilder(this); }
220
221 @java.lang.Override
222 protected Builder newBuilderForType(
223 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
224 Builder builder = new Builder(parent);
225 return builder;
226 }
227
228
229
230 public static final class Builder extends
231 com.google.protobuf.GeneratedMessage.Builder<Builder>
232 implements org.springframework.protobuf.SecondMsgOrBuilder {
233 public static final com.google.protobuf.Descriptors.Descriptor
234 getDescriptor() {
235 return org.springframework.protobuf.OuterSample.internal_static_SecondMsg_descriptor;
236 }
237
238 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
239 internalGetFieldAccessorTable() {
240 return org.springframework.protobuf.OuterSample.internal_static_SecondMsg_fieldAccessorTable
241 .ensureFieldAccessorsInitialized(
242 org.springframework.protobuf.SecondMsg.class, org.springframework.protobuf.SecondMsg.Builder.class);
243 }
244
245
246 private Builder() {
247 maybeForceBuilderInitialization();
248 }
249
250 private Builder(
251 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
252 super(parent);
253 maybeForceBuilderInitialization();
254 }
255 private void maybeForceBuilderInitialization() {
256 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
257 }
258 }
259 private static Builder create() {
260 return new Builder();
261 }
262
263 public Builder clear() {
264 super.clear();
265 blah_ = 0;
266 bitField0_ = (bitField0_ & ~0x00000001);
267 return this;
268 }
269
270 public Builder clone() {
271 return create().mergeFrom(buildPartial());
272 }
273
274 public com.google.protobuf.Descriptors.Descriptor
275 getDescriptorForType() {
276 return org.springframework.protobuf.OuterSample.internal_static_SecondMsg_descriptor;
277 }
278
279 public org.springframework.protobuf.SecondMsg getDefaultInstanceForType() {
280 return org.springframework.protobuf.SecondMsg.getDefaultInstance();
281 }
282
283 public org.springframework.protobuf.SecondMsg build() {
284 org.springframework.protobuf.SecondMsg result = buildPartial();
285 if (!result.isInitialized()) {
286 throw newUninitializedMessageException(result);
287 }
288 return result;
289 }
290
291 public org.springframework.protobuf.SecondMsg buildPartial() {
292 org.springframework.protobuf.SecondMsg result = new org.springframework.protobuf.SecondMsg(this);
293 int from_bitField0_ = bitField0_;
294 int to_bitField0_ = 0;
295 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
296 to_bitField0_ |= 0x00000001;
297 }
298 result.blah_ = blah_;
299 result.bitField0_ = to_bitField0_;
300 onBuilt();
301 return result;
302 }
303
304 public Builder mergeFrom(com.google.protobuf.Message other) {
305 if (other instanceof org.springframework.protobuf.SecondMsg) {
306 return mergeFrom((org.springframework.protobuf.SecondMsg)other);
307 } else {
308 super.mergeFrom(other);
309 return this;
310 }
311 }
312
313 public Builder mergeFrom(org.springframework.protobuf.SecondMsg other) {
314 if (other == org.springframework.protobuf.SecondMsg.getDefaultInstance()) return this;
315 if (other.hasBlah()) {
316 setBlah(other.getBlah());
317 }
318 this.mergeUnknownFields(other.getUnknownFields());
319 return this;
320 }
321
322 public final boolean isInitialized() {
323 return true;
324 }
325
326 public Builder mergeFrom(
327 com.google.protobuf.CodedInputStream input,
328 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
329 throws java.io.IOException {
330 org.springframework.protobuf.SecondMsg parsedMessage = null;
331 try {
332 parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
333 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
334 parsedMessage = (org.springframework.protobuf.SecondMsg) e.getUnfinishedMessage();
335 throw e;
336 } finally {
337 if (parsedMessage != null) {
338 mergeFrom(parsedMessage);
339 }
340 }
341 return this;
342 }
343 private int bitField0_;
344
345
346 private int blah_ ;
347
348
349
350 public boolean hasBlah() {
351 return ((bitField0_ & 0x00000001) == 0x00000001);
352 }
353
354
355
356 public int getBlah() {
357 return blah_;
358 }
359
360
361
362 public Builder setBlah(int value) {
363 bitField0_ |= 0x00000001;
364 blah_ = value;
365 onChanged();
366 return this;
367 }
368
369
370
371 public Builder clearBlah() {
372 bitField0_ = (bitField0_ & ~0x00000001);
373 blah_ = 0;
374 onChanged();
375 return this;
376 }
377
378
379 }
380
381 static {
382 defaultInstance = new SecondMsg(true);
383 defaultInstance.initFields();
384 }
385
386
387 }
388