1
2
3
4 package org.apache.hadoop.hbase.coprocessor.example.generated;
5
6 public final class ExampleProtos {
7 private ExampleProtos() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface CountRequestOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13 }
14 public static final class CountRequest extends
15 com.google.protobuf.GeneratedMessage
16 implements CountRequestOrBuilder {
17
18 private CountRequest(Builder builder) {
19 super(builder);
20 }
21 private CountRequest(boolean noInit) {}
22
23 private static final CountRequest defaultInstance;
24 public static CountRequest getDefaultInstance() {
25 return defaultInstance;
26 }
27
28 public CountRequest getDefaultInstanceForType() {
29 return defaultInstance;
30 }
31
32 public static final com.google.protobuf.Descriptors.Descriptor
33 getDescriptor() {
34 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountRequest_descriptor;
35 }
36
37 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
38 internalGetFieldAccessorTable() {
39 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountRequest_fieldAccessorTable;
40 }
41
42 private void initFields() {
43 }
44 private byte memoizedIsInitialized = -1;
45 public final boolean isInitialized() {
46 byte isInitialized = memoizedIsInitialized;
47 if (isInitialized != -1) return isInitialized == 1;
48
49 memoizedIsInitialized = 1;
50 return true;
51 }
52
53 public void writeTo(com.google.protobuf.CodedOutputStream output)
54 throws java.io.IOException {
55 getSerializedSize();
56 getUnknownFields().writeTo(output);
57 }
58
59 private int memoizedSerializedSize = -1;
60 public int getSerializedSize() {
61 int size = memoizedSerializedSize;
62 if (size != -1) return size;
63
64 size = 0;
65 size += getUnknownFields().getSerializedSize();
66 memoizedSerializedSize = size;
67 return size;
68 }
69
70 private static final long serialVersionUID = 0L;
71 @java.lang.Override
72 protected java.lang.Object writeReplace()
73 throws java.io.ObjectStreamException {
74 return super.writeReplace();
75 }
76
77 @java.lang.Override
78 public boolean equals(final java.lang.Object obj) {
79 if (obj == this) {
80 return true;
81 }
82 if (!(obj instanceof org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)) {
83 return super.equals(obj);
84 }
85 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest other = (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest) obj;
86
87 boolean result = true;
88 result = result &&
89 getUnknownFields().equals(other.getUnknownFields());
90 return result;
91 }
92
93 @java.lang.Override
94 public int hashCode() {
95 int hash = 41;
96 hash = (19 * hash) + getDescriptorForType().hashCode();
97 hash = (29 * hash) + getUnknownFields().hashCode();
98 return hash;
99 }
100
101 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
102 com.google.protobuf.ByteString data)
103 throws com.google.protobuf.InvalidProtocolBufferException {
104 return newBuilder().mergeFrom(data).buildParsed();
105 }
106 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
107 com.google.protobuf.ByteString data,
108 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
109 throws com.google.protobuf.InvalidProtocolBufferException {
110 return newBuilder().mergeFrom(data, extensionRegistry)
111 .buildParsed();
112 }
113 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(byte[] data)
114 throws com.google.protobuf.InvalidProtocolBufferException {
115 return newBuilder().mergeFrom(data).buildParsed();
116 }
117 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
118 byte[] data,
119 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
120 throws com.google.protobuf.InvalidProtocolBufferException {
121 return newBuilder().mergeFrom(data, extensionRegistry)
122 .buildParsed();
123 }
124 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(java.io.InputStream input)
125 throws java.io.IOException {
126 return newBuilder().mergeFrom(input).buildParsed();
127 }
128 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
129 java.io.InputStream input,
130 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
131 throws java.io.IOException {
132 return newBuilder().mergeFrom(input, extensionRegistry)
133 .buildParsed();
134 }
135 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseDelimitedFrom(java.io.InputStream input)
136 throws java.io.IOException {
137 Builder builder = newBuilder();
138 if (builder.mergeDelimitedFrom(input)) {
139 return builder.buildParsed();
140 } else {
141 return null;
142 }
143 }
144 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseDelimitedFrom(
145 java.io.InputStream input,
146 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
147 throws java.io.IOException {
148 Builder builder = newBuilder();
149 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
150 return builder.buildParsed();
151 } else {
152 return null;
153 }
154 }
155 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
156 com.google.protobuf.CodedInputStream input)
157 throws java.io.IOException {
158 return newBuilder().mergeFrom(input).buildParsed();
159 }
160 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest parseFrom(
161 com.google.protobuf.CodedInputStream input,
162 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
163 throws java.io.IOException {
164 return newBuilder().mergeFrom(input, extensionRegistry)
165 .buildParsed();
166 }
167
168 public static Builder newBuilder() { return Builder.create(); }
169 public Builder newBuilderForType() { return newBuilder(); }
170 public static Builder newBuilder(org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest prototype) {
171 return newBuilder().mergeFrom(prototype);
172 }
173 public Builder toBuilder() { return newBuilder(this); }
174
175 @java.lang.Override
176 protected Builder newBuilderForType(
177 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
178 Builder builder = new Builder(parent);
179 return builder;
180 }
181 public static final class Builder extends
182 com.google.protobuf.GeneratedMessage.Builder<Builder>
183 implements org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequestOrBuilder {
184 public static final com.google.protobuf.Descriptors.Descriptor
185 getDescriptor() {
186 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountRequest_descriptor;
187 }
188
189 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
190 internalGetFieldAccessorTable() {
191 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountRequest_fieldAccessorTable;
192 }
193
194
195 private Builder() {
196 maybeForceBuilderInitialization();
197 }
198
199 private Builder(BuilderParent parent) {
200 super(parent);
201 maybeForceBuilderInitialization();
202 }
203 private void maybeForceBuilderInitialization() {
204 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
205 }
206 }
207 private static Builder create() {
208 return new Builder();
209 }
210
211 public Builder clear() {
212 super.clear();
213 return this;
214 }
215
216 public Builder clone() {
217 return create().mergeFrom(buildPartial());
218 }
219
220 public com.google.protobuf.Descriptors.Descriptor
221 getDescriptorForType() {
222 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDescriptor();
223 }
224
225 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest getDefaultInstanceForType() {
226 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance();
227 }
228
229 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest build() {
230 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest result = buildPartial();
231 if (!result.isInitialized()) {
232 throw newUninitializedMessageException(result);
233 }
234 return result;
235 }
236
237 private org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest buildParsed()
238 throws com.google.protobuf.InvalidProtocolBufferException {
239 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest result = buildPartial();
240 if (!result.isInitialized()) {
241 throw newUninitializedMessageException(
242 result).asInvalidProtocolBufferException();
243 }
244 return result;
245 }
246
247 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest buildPartial() {
248 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest result = new org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest(this);
249 onBuilt();
250 return result;
251 }
252
253 public Builder mergeFrom(com.google.protobuf.Message other) {
254 if (other instanceof org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest) {
255 return mergeFrom((org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)other);
256 } else {
257 super.mergeFrom(other);
258 return this;
259 }
260 }
261
262 public Builder mergeFrom(org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest other) {
263 if (other == org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance()) return this;
264 this.mergeUnknownFields(other.getUnknownFields());
265 return this;
266 }
267
268 public final boolean isInitialized() {
269 return true;
270 }
271
272 public Builder mergeFrom(
273 com.google.protobuf.CodedInputStream input,
274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275 throws java.io.IOException {
276 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
277 com.google.protobuf.UnknownFieldSet.newBuilder(
278 this.getUnknownFields());
279 while (true) {
280 int tag = input.readTag();
281 switch (tag) {
282 case 0:
283 this.setUnknownFields(unknownFields.build());
284 onChanged();
285 return this;
286 default: {
287 if (!parseUnknownField(input, unknownFields,
288 extensionRegistry, tag)) {
289 this.setUnknownFields(unknownFields.build());
290 onChanged();
291 return this;
292 }
293 break;
294 }
295 }
296 }
297 }
298
299
300
301 }
302
303 static {
304 defaultInstance = new CountRequest(true);
305 defaultInstance.initFields();
306 }
307
308
309 }
310
311 public interface CountResponseOrBuilder
312 extends com.google.protobuf.MessageOrBuilder {
313
314
315 boolean hasCount();
316 long getCount();
317 }
318 public static final class CountResponse extends
319 com.google.protobuf.GeneratedMessage
320 implements CountResponseOrBuilder {
321
322 private CountResponse(Builder builder) {
323 super(builder);
324 }
325 private CountResponse(boolean noInit) {}
326
327 private static final CountResponse defaultInstance;
328 public static CountResponse getDefaultInstance() {
329 return defaultInstance;
330 }
331
332 public CountResponse getDefaultInstanceForType() {
333 return defaultInstance;
334 }
335
336 public static final com.google.protobuf.Descriptors.Descriptor
337 getDescriptor() {
338 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountResponse_descriptor;
339 }
340
341 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
342 internalGetFieldAccessorTable() {
343 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountResponse_fieldAccessorTable;
344 }
345
346 private int bitField0_;
347
348 public static final int COUNT_FIELD_NUMBER = 1;
349 private long count_;
350 public boolean hasCount() {
351 return ((bitField0_ & 0x00000001) == 0x00000001);
352 }
353 public long getCount() {
354 return count_;
355 }
356
357 private void initFields() {
358 count_ = 0L;
359 }
360 private byte memoizedIsInitialized = -1;
361 public final boolean isInitialized() {
362 byte isInitialized = memoizedIsInitialized;
363 if (isInitialized != -1) return isInitialized == 1;
364
365 if (!hasCount()) {
366 memoizedIsInitialized = 0;
367 return false;
368 }
369 memoizedIsInitialized = 1;
370 return true;
371 }
372
373 public void writeTo(com.google.protobuf.CodedOutputStream output)
374 throws java.io.IOException {
375 getSerializedSize();
376 if (((bitField0_ & 0x00000001) == 0x00000001)) {
377 output.writeInt64(1, count_);
378 }
379 getUnknownFields().writeTo(output);
380 }
381
382 private int memoizedSerializedSize = -1;
383 public int getSerializedSize() {
384 int size = memoizedSerializedSize;
385 if (size != -1) return size;
386
387 size = 0;
388 if (((bitField0_ & 0x00000001) == 0x00000001)) {
389 size += com.google.protobuf.CodedOutputStream
390 .computeInt64Size(1, count_);
391 }
392 size += getUnknownFields().getSerializedSize();
393 memoizedSerializedSize = size;
394 return size;
395 }
396
397 private static final long serialVersionUID = 0L;
398 @java.lang.Override
399 protected java.lang.Object writeReplace()
400 throws java.io.ObjectStreamException {
401 return super.writeReplace();
402 }
403
404 @java.lang.Override
405 public boolean equals(final java.lang.Object obj) {
406 if (obj == this) {
407 return true;
408 }
409 if (!(obj instanceof org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse)) {
410 return super.equals(obj);
411 }
412 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse other = (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse) obj;
413
414 boolean result = true;
415 result = result && (hasCount() == other.hasCount());
416 if (hasCount()) {
417 result = result && (getCount()
418 == other.getCount());
419 }
420 result = result &&
421 getUnknownFields().equals(other.getUnknownFields());
422 return result;
423 }
424
425 @java.lang.Override
426 public int hashCode() {
427 int hash = 41;
428 hash = (19 * hash) + getDescriptorForType().hashCode();
429 if (hasCount()) {
430 hash = (37 * hash) + COUNT_FIELD_NUMBER;
431 hash = (53 * hash) + hashLong(getCount());
432 }
433 hash = (29 * hash) + getUnknownFields().hashCode();
434 return hash;
435 }
436
437 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
438 com.google.protobuf.ByteString data)
439 throws com.google.protobuf.InvalidProtocolBufferException {
440 return newBuilder().mergeFrom(data).buildParsed();
441 }
442 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
443 com.google.protobuf.ByteString data,
444 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
445 throws com.google.protobuf.InvalidProtocolBufferException {
446 return newBuilder().mergeFrom(data, extensionRegistry)
447 .buildParsed();
448 }
449 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(byte[] data)
450 throws com.google.protobuf.InvalidProtocolBufferException {
451 return newBuilder().mergeFrom(data).buildParsed();
452 }
453 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
454 byte[] data,
455 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
456 throws com.google.protobuf.InvalidProtocolBufferException {
457 return newBuilder().mergeFrom(data, extensionRegistry)
458 .buildParsed();
459 }
460 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(java.io.InputStream input)
461 throws java.io.IOException {
462 return newBuilder().mergeFrom(input).buildParsed();
463 }
464 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
465 java.io.InputStream input,
466 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
467 throws java.io.IOException {
468 return newBuilder().mergeFrom(input, extensionRegistry)
469 .buildParsed();
470 }
471 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseDelimitedFrom(java.io.InputStream input)
472 throws java.io.IOException {
473 Builder builder = newBuilder();
474 if (builder.mergeDelimitedFrom(input)) {
475 return builder.buildParsed();
476 } else {
477 return null;
478 }
479 }
480 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseDelimitedFrom(
481 java.io.InputStream input,
482 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
483 throws java.io.IOException {
484 Builder builder = newBuilder();
485 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
486 return builder.buildParsed();
487 } else {
488 return null;
489 }
490 }
491 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
492 com.google.protobuf.CodedInputStream input)
493 throws java.io.IOException {
494 return newBuilder().mergeFrom(input).buildParsed();
495 }
496 public static org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse parseFrom(
497 com.google.protobuf.CodedInputStream input,
498 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
499 throws java.io.IOException {
500 return newBuilder().mergeFrom(input, extensionRegistry)
501 .buildParsed();
502 }
503
504 public static Builder newBuilder() { return Builder.create(); }
505 public Builder newBuilderForType() { return newBuilder(); }
506 public static Builder newBuilder(org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse prototype) {
507 return newBuilder().mergeFrom(prototype);
508 }
509 public Builder toBuilder() { return newBuilder(this); }
510
511 @java.lang.Override
512 protected Builder newBuilderForType(
513 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
514 Builder builder = new Builder(parent);
515 return builder;
516 }
517 public static final class Builder extends
518 com.google.protobuf.GeneratedMessage.Builder<Builder>
519 implements org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponseOrBuilder {
520 public static final com.google.protobuf.Descriptors.Descriptor
521 getDescriptor() {
522 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountResponse_descriptor;
523 }
524
525 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
526 internalGetFieldAccessorTable() {
527 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.internal_static_CountResponse_fieldAccessorTable;
528 }
529
530
531 private Builder() {
532 maybeForceBuilderInitialization();
533 }
534
535 private Builder(BuilderParent parent) {
536 super(parent);
537 maybeForceBuilderInitialization();
538 }
539 private void maybeForceBuilderInitialization() {
540 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
541 }
542 }
543 private static Builder create() {
544 return new Builder();
545 }
546
547 public Builder clear() {
548 super.clear();
549 count_ = 0L;
550 bitField0_ = (bitField0_ & ~0x00000001);
551 return this;
552 }
553
554 public Builder clone() {
555 return create().mergeFrom(buildPartial());
556 }
557
558 public com.google.protobuf.Descriptors.Descriptor
559 getDescriptorForType() {
560 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDescriptor();
561 }
562
563 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse getDefaultInstanceForType() {
564 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance();
565 }
566
567 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse build() {
568 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse result = buildPartial();
569 if (!result.isInitialized()) {
570 throw newUninitializedMessageException(result);
571 }
572 return result;
573 }
574
575 private org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse buildParsed()
576 throws com.google.protobuf.InvalidProtocolBufferException {
577 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse result = buildPartial();
578 if (!result.isInitialized()) {
579 throw newUninitializedMessageException(
580 result).asInvalidProtocolBufferException();
581 }
582 return result;
583 }
584
585 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse buildPartial() {
586 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse result = new org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse(this);
587 int from_bitField0_ = bitField0_;
588 int to_bitField0_ = 0;
589 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
590 to_bitField0_ |= 0x00000001;
591 }
592 result.count_ = count_;
593 result.bitField0_ = to_bitField0_;
594 onBuilt();
595 return result;
596 }
597
598 public Builder mergeFrom(com.google.protobuf.Message other) {
599 if (other instanceof org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse) {
600 return mergeFrom((org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse)other);
601 } else {
602 super.mergeFrom(other);
603 return this;
604 }
605 }
606
607 public Builder mergeFrom(org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse other) {
608 if (other == org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance()) return this;
609 if (other.hasCount()) {
610 setCount(other.getCount());
611 }
612 this.mergeUnknownFields(other.getUnknownFields());
613 return this;
614 }
615
616 public final boolean isInitialized() {
617 if (!hasCount()) {
618
619 return false;
620 }
621 return true;
622 }
623
624 public Builder mergeFrom(
625 com.google.protobuf.CodedInputStream input,
626 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
627 throws java.io.IOException {
628 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
629 com.google.protobuf.UnknownFieldSet.newBuilder(
630 this.getUnknownFields());
631 while (true) {
632 int tag = input.readTag();
633 switch (tag) {
634 case 0:
635 this.setUnknownFields(unknownFields.build());
636 onChanged();
637 return this;
638 default: {
639 if (!parseUnknownField(input, unknownFields,
640 extensionRegistry, tag)) {
641 this.setUnknownFields(unknownFields.build());
642 onChanged();
643 return this;
644 }
645 break;
646 }
647 case 8: {
648 bitField0_ |= 0x00000001;
649 count_ = input.readInt64();
650 break;
651 }
652 }
653 }
654 }
655
656 private int bitField0_;
657
658
659 private long count_ ;
660 public boolean hasCount() {
661 return ((bitField0_ & 0x00000001) == 0x00000001);
662 }
663 public long getCount() {
664 return count_;
665 }
666 public Builder setCount(long value) {
667 bitField0_ |= 0x00000001;
668 count_ = value;
669 onChanged();
670 return this;
671 }
672 public Builder clearCount() {
673 bitField0_ = (bitField0_ & ~0x00000001);
674 count_ = 0L;
675 onChanged();
676 return this;
677 }
678
679
680 }
681
682 static {
683 defaultInstance = new CountResponse(true);
684 defaultInstance.initFields();
685 }
686
687
688 }
689
690 public static abstract class RowCountService
691 implements com.google.protobuf.Service {
692 protected RowCountService() {}
693
694 public interface Interface {
695 public abstract void getRowCount(
696 com.google.protobuf.RpcController controller,
697 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
698 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done);
699
700 public abstract void getKeyValueCount(
701 com.google.protobuf.RpcController controller,
702 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
703 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done);
704
705 }
706
707 public static com.google.protobuf.Service newReflectiveService(
708 final Interface impl) {
709 return new RowCountService() {
710 @java.lang.Override
711 public void getRowCount(
712 com.google.protobuf.RpcController controller,
713 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
714 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done) {
715 impl.getRowCount(controller, request, done);
716 }
717
718 @java.lang.Override
719 public void getKeyValueCount(
720 com.google.protobuf.RpcController controller,
721 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
722 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done) {
723 impl.getKeyValueCount(controller, request, done);
724 }
725
726 };
727 }
728
729 public static com.google.protobuf.BlockingService
730 newReflectiveBlockingService(final BlockingInterface impl) {
731 return new com.google.protobuf.BlockingService() {
732 public final com.google.protobuf.Descriptors.ServiceDescriptor
733 getDescriptorForType() {
734 return getDescriptor();
735 }
736
737 public final com.google.protobuf.Message callBlockingMethod(
738 com.google.protobuf.Descriptors.MethodDescriptor method,
739 com.google.protobuf.RpcController controller,
740 com.google.protobuf.Message request)
741 throws com.google.protobuf.ServiceException {
742 if (method.getService() != getDescriptor()) {
743 throw new java.lang.IllegalArgumentException(
744 "Service.callBlockingMethod() given method descriptor for " +
745 "wrong service type.");
746 }
747 switch(method.getIndex()) {
748 case 0:
749 return impl.getRowCount(controller, (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)request);
750 case 1:
751 return impl.getKeyValueCount(controller, (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)request);
752 default:
753 throw new java.lang.AssertionError("Can't get here.");
754 }
755 }
756
757 public final com.google.protobuf.Message
758 getRequestPrototype(
759 com.google.protobuf.Descriptors.MethodDescriptor method) {
760 if (method.getService() != getDescriptor()) {
761 throw new java.lang.IllegalArgumentException(
762 "Service.getRequestPrototype() given method " +
763 "descriptor for wrong service type.");
764 }
765 switch(method.getIndex()) {
766 case 0:
767 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance();
768 case 1:
769 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance();
770 default:
771 throw new java.lang.AssertionError("Can't get here.");
772 }
773 }
774
775 public final com.google.protobuf.Message
776 getResponsePrototype(
777 com.google.protobuf.Descriptors.MethodDescriptor method) {
778 if (method.getService() != getDescriptor()) {
779 throw new java.lang.IllegalArgumentException(
780 "Service.getResponsePrototype() given method " +
781 "descriptor for wrong service type.");
782 }
783 switch(method.getIndex()) {
784 case 0:
785 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance();
786 case 1:
787 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance();
788 default:
789 throw new java.lang.AssertionError("Can't get here.");
790 }
791 }
792
793 };
794 }
795
796 public abstract void getRowCount(
797 com.google.protobuf.RpcController controller,
798 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
799 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done);
800
801 public abstract void getKeyValueCount(
802 com.google.protobuf.RpcController controller,
803 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
804 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done);
805
806 public static final
807 com.google.protobuf.Descriptors.ServiceDescriptor
808 getDescriptor() {
809 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.getDescriptor().getServices().get(0);
810 }
811 public final com.google.protobuf.Descriptors.ServiceDescriptor
812 getDescriptorForType() {
813 return getDescriptor();
814 }
815
816 public final void callMethod(
817 com.google.protobuf.Descriptors.MethodDescriptor method,
818 com.google.protobuf.RpcController controller,
819 com.google.protobuf.Message request,
820 com.google.protobuf.RpcCallback<
821 com.google.protobuf.Message> done) {
822 if (method.getService() != getDescriptor()) {
823 throw new java.lang.IllegalArgumentException(
824 "Service.callMethod() given method descriptor for wrong " +
825 "service type.");
826 }
827 switch(method.getIndex()) {
828 case 0:
829 this.getRowCount(controller, (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)request,
830 com.google.protobuf.RpcUtil.<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse>specializeCallback(
831 done));
832 return;
833 case 1:
834 this.getKeyValueCount(controller, (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest)request,
835 com.google.protobuf.RpcUtil.<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse>specializeCallback(
836 done));
837 return;
838 default:
839 throw new java.lang.AssertionError("Can't get here.");
840 }
841 }
842
843 public final com.google.protobuf.Message
844 getRequestPrototype(
845 com.google.protobuf.Descriptors.MethodDescriptor method) {
846 if (method.getService() != getDescriptor()) {
847 throw new java.lang.IllegalArgumentException(
848 "Service.getRequestPrototype() given method " +
849 "descriptor for wrong service type.");
850 }
851 switch(method.getIndex()) {
852 case 0:
853 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance();
854 case 1:
855 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.getDefaultInstance();
856 default:
857 throw new java.lang.AssertionError("Can't get here.");
858 }
859 }
860
861 public final com.google.protobuf.Message
862 getResponsePrototype(
863 com.google.protobuf.Descriptors.MethodDescriptor method) {
864 if (method.getService() != getDescriptor()) {
865 throw new java.lang.IllegalArgumentException(
866 "Service.getResponsePrototype() given method " +
867 "descriptor for wrong service type.");
868 }
869 switch(method.getIndex()) {
870 case 0:
871 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance();
872 case 1:
873 return org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance();
874 default:
875 throw new java.lang.AssertionError("Can't get here.");
876 }
877 }
878
879 public static Stub newStub(
880 com.google.protobuf.RpcChannel channel) {
881 return new Stub(channel);
882 }
883
884 public static final class Stub extends org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.RowCountService implements Interface {
885 private Stub(com.google.protobuf.RpcChannel channel) {
886 this.channel = channel;
887 }
888
889 private final com.google.protobuf.RpcChannel channel;
890
891 public com.google.protobuf.RpcChannel getChannel() {
892 return channel;
893 }
894
895 public void getRowCount(
896 com.google.protobuf.RpcController controller,
897 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
898 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done) {
899 channel.callMethod(
900 getDescriptor().getMethods().get(0),
901 controller,
902 request,
903 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance(),
904 com.google.protobuf.RpcUtil.generalizeCallback(
905 done,
906 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.class,
907 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance()));
908 }
909
910 public void getKeyValueCount(
911 com.google.protobuf.RpcController controller,
912 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request,
913 com.google.protobuf.RpcCallback<org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse> done) {
914 channel.callMethod(
915 getDescriptor().getMethods().get(1),
916 controller,
917 request,
918 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance(),
919 com.google.protobuf.RpcUtil.generalizeCallback(
920 done,
921 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.class,
922 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance()));
923 }
924 }
925
926 public static BlockingInterface newBlockingStub(
927 com.google.protobuf.BlockingRpcChannel channel) {
928 return new BlockingStub(channel);
929 }
930
931 public interface BlockingInterface {
932 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse getRowCount(
933 com.google.protobuf.RpcController controller,
934 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request)
935 throws com.google.protobuf.ServiceException;
936
937 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse getKeyValueCount(
938 com.google.protobuf.RpcController controller,
939 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request)
940 throws com.google.protobuf.ServiceException;
941 }
942
943 private static final class BlockingStub implements BlockingInterface {
944 private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
945 this.channel = channel;
946 }
947
948 private final com.google.protobuf.BlockingRpcChannel channel;
949
950 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse getRowCount(
951 com.google.protobuf.RpcController controller,
952 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request)
953 throws com.google.protobuf.ServiceException {
954 return (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse) channel.callBlockingMethod(
955 getDescriptor().getMethods().get(0),
956 controller,
957 request,
958 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance());
959 }
960
961
962 public org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse getKeyValueCount(
963 com.google.protobuf.RpcController controller,
964 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest request)
965 throws com.google.protobuf.ServiceException {
966 return (org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse) channel.callBlockingMethod(
967 getDescriptor().getMethods().get(1),
968 controller,
969 request,
970 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.getDefaultInstance());
971 }
972
973 }
974 }
975
976 private static com.google.protobuf.Descriptors.Descriptor
977 internal_static_CountRequest_descriptor;
978 private static
979 com.google.protobuf.GeneratedMessage.FieldAccessorTable
980 internal_static_CountRequest_fieldAccessorTable;
981 private static com.google.protobuf.Descriptors.Descriptor
982 internal_static_CountResponse_descriptor;
983 private static
984 com.google.protobuf.GeneratedMessage.FieldAccessorTable
985 internal_static_CountResponse_fieldAccessorTable;
986
987 public static com.google.protobuf.Descriptors.FileDescriptor
988 getDescriptor() {
989 return descriptor;
990 }
991 private static com.google.protobuf.Descriptors.FileDescriptor
992 descriptor;
993 static {
994 java.lang.String[] descriptorData = {
995 "\n\016Examples.proto\"\016\n\014CountRequest\"!\n\rCoun" +
996 "tResponse\022\020\n\005count\030\001 \002(\003:\00102r\n\017RowCountS" +
997 "ervice\022,\n\013getRowCount\022\r.CountRequest\032\016.C" +
998 "ountResponse\0221\n\020getKeyValueCount\022\r.Count" +
999 "Request\032\016.CountResponseBN\n5org.apache.ha" +
1000 "doop.hbase.coprocessor.example.generated" +
1001 "B\rExampleProtosH\001\210\001\001\240\001\001"
1002 };
1003 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1004 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1005 public com.google.protobuf.ExtensionRegistry assignDescriptors(
1006 com.google.protobuf.Descriptors.FileDescriptor root) {
1007 descriptor = root;
1008 internal_static_CountRequest_descriptor =
1009 getDescriptor().getMessageTypes().get(0);
1010 internal_static_CountRequest_fieldAccessorTable = new
1011 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1012 internal_static_CountRequest_descriptor,
1013 new java.lang.String[] { },
1014 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.class,
1015 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountRequest.Builder.class);
1016 internal_static_CountResponse_descriptor =
1017 getDescriptor().getMessageTypes().get(1);
1018 internal_static_CountResponse_fieldAccessorTable = new
1019 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1020 internal_static_CountResponse_descriptor,
1021 new java.lang.String[] { "Count", },
1022 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.class,
1023 org.apache.hadoop.hbase.coprocessor.example.generated.ExampleProtos.CountResponse.Builder.class);
1024 return null;
1025 }
1026 };
1027 com.google.protobuf.Descriptors.FileDescriptor
1028 .internalBuildGeneratedFileFrom(descriptorData,
1029 new com.google.protobuf.Descriptors.FileDescriptor[] {
1030 }, assigner);
1031 }
1032
1033
1034 }