1
2
3
4 package org.apache.hadoop.hbase.rest.protobuf.generated;
5
6 public final class CellMessage {
7 private CellMessage() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface CellOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14
15 boolean hasRow();
16 com.google.protobuf.ByteString getRow();
17
18
19 boolean hasColumn();
20 com.google.protobuf.ByteString getColumn();
21
22
23 boolean hasTimestamp();
24 long getTimestamp();
25
26
27 boolean hasData();
28 com.google.protobuf.ByteString getData();
29 }
30 public static final class Cell extends
31 com.google.protobuf.GeneratedMessage
32 implements CellOrBuilder {
33
34 private Cell(Builder builder) {
35 super(builder);
36 }
37 private Cell(boolean noInit) {}
38
39 private static final Cell defaultInstance;
40 public static Cell getDefaultInstance() {
41 return defaultInstance;
42 }
43
44 public Cell getDefaultInstanceForType() {
45 return defaultInstance;
46 }
47
48 public static final com.google.protobuf.Descriptors.Descriptor
49 getDescriptor() {
50 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor;
51 }
52
53 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
54 internalGetFieldAccessorTable() {
55 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable;
56 }
57
58 private int bitField0_;
59
60 public static final int ROW_FIELD_NUMBER = 1;
61 private com.google.protobuf.ByteString row_;
62 public boolean hasRow() {
63 return ((bitField0_ & 0x00000001) == 0x00000001);
64 }
65 public com.google.protobuf.ByteString getRow() {
66 return row_;
67 }
68
69
70 public static final int COLUMN_FIELD_NUMBER = 2;
71 private com.google.protobuf.ByteString column_;
72 public boolean hasColumn() {
73 return ((bitField0_ & 0x00000002) == 0x00000002);
74 }
75 public com.google.protobuf.ByteString getColumn() {
76 return column_;
77 }
78
79
80 public static final int TIMESTAMP_FIELD_NUMBER = 3;
81 private long timestamp_;
82 public boolean hasTimestamp() {
83 return ((bitField0_ & 0x00000004) == 0x00000004);
84 }
85 public long getTimestamp() {
86 return timestamp_;
87 }
88
89
90 public static final int DATA_FIELD_NUMBER = 4;
91 private com.google.protobuf.ByteString data_;
92 public boolean hasData() {
93 return ((bitField0_ & 0x00000008) == 0x00000008);
94 }
95 public com.google.protobuf.ByteString getData() {
96 return data_;
97 }
98
99 private void initFields() {
100 row_ = com.google.protobuf.ByteString.EMPTY;
101 column_ = com.google.protobuf.ByteString.EMPTY;
102 timestamp_ = 0L;
103 data_ = com.google.protobuf.ByteString.EMPTY;
104 }
105 private byte memoizedIsInitialized = -1;
106 public final boolean isInitialized() {
107 byte isInitialized = memoizedIsInitialized;
108 if (isInitialized != -1) return isInitialized == 1;
109
110 memoizedIsInitialized = 1;
111 return true;
112 }
113
114 public void writeTo(com.google.protobuf.CodedOutputStream output)
115 throws java.io.IOException {
116 getSerializedSize();
117 if (((bitField0_ & 0x00000001) == 0x00000001)) {
118 output.writeBytes(1, row_);
119 }
120 if (((bitField0_ & 0x00000002) == 0x00000002)) {
121 output.writeBytes(2, column_);
122 }
123 if (((bitField0_ & 0x00000004) == 0x00000004)) {
124 output.writeInt64(3, timestamp_);
125 }
126 if (((bitField0_ & 0x00000008) == 0x00000008)) {
127 output.writeBytes(4, data_);
128 }
129 getUnknownFields().writeTo(output);
130 }
131
132 private int memoizedSerializedSize = -1;
133 public int getSerializedSize() {
134 int size = memoizedSerializedSize;
135 if (size != -1) return size;
136
137 size = 0;
138 if (((bitField0_ & 0x00000001) == 0x00000001)) {
139 size += com.google.protobuf.CodedOutputStream
140 .computeBytesSize(1, row_);
141 }
142 if (((bitField0_ & 0x00000002) == 0x00000002)) {
143 size += com.google.protobuf.CodedOutputStream
144 .computeBytesSize(2, column_);
145 }
146 if (((bitField0_ & 0x00000004) == 0x00000004)) {
147 size += com.google.protobuf.CodedOutputStream
148 .computeInt64Size(3, timestamp_);
149 }
150 if (((bitField0_ & 0x00000008) == 0x00000008)) {
151 size += com.google.protobuf.CodedOutputStream
152 .computeBytesSize(4, data_);
153 }
154 size += getUnknownFields().getSerializedSize();
155 memoizedSerializedSize = size;
156 return size;
157 }
158
159 private static final long serialVersionUID = 0L;
160 @java.lang.Override
161 protected java.lang.Object writeReplace()
162 throws java.io.ObjectStreamException {
163 return super.writeReplace();
164 }
165
166 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
167 com.google.protobuf.ByteString data)
168 throws com.google.protobuf.InvalidProtocolBufferException {
169 return newBuilder().mergeFrom(data).buildParsed();
170 }
171 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
172 com.google.protobuf.ByteString data,
173 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
174 throws com.google.protobuf.InvalidProtocolBufferException {
175 return newBuilder().mergeFrom(data, extensionRegistry)
176 .buildParsed();
177 }
178 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(byte[] data)
179 throws com.google.protobuf.InvalidProtocolBufferException {
180 return newBuilder().mergeFrom(data).buildParsed();
181 }
182 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
183 byte[] data,
184 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
185 throws com.google.protobuf.InvalidProtocolBufferException {
186 return newBuilder().mergeFrom(data, extensionRegistry)
187 .buildParsed();
188 }
189 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(java.io.InputStream input)
190 throws java.io.IOException {
191 return newBuilder().mergeFrom(input).buildParsed();
192 }
193 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
194 java.io.InputStream input,
195 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
196 throws java.io.IOException {
197 return newBuilder().mergeFrom(input, extensionRegistry)
198 .buildParsed();
199 }
200 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseDelimitedFrom(java.io.InputStream input)
201 throws java.io.IOException {
202 Builder builder = newBuilder();
203 if (builder.mergeDelimitedFrom(input)) {
204 return builder.buildParsed();
205 } else {
206 return null;
207 }
208 }
209 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseDelimitedFrom(
210 java.io.InputStream input,
211 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
212 throws java.io.IOException {
213 Builder builder = newBuilder();
214 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
215 return builder.buildParsed();
216 } else {
217 return null;
218 }
219 }
220 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
221 com.google.protobuf.CodedInputStream input)
222 throws java.io.IOException {
223 return newBuilder().mergeFrom(input).buildParsed();
224 }
225 public static org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell parseFrom(
226 com.google.protobuf.CodedInputStream input,
227 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
228 throws java.io.IOException {
229 return newBuilder().mergeFrom(input, extensionRegistry)
230 .buildParsed();
231 }
232
233 public static Builder newBuilder() { return Builder.create(); }
234 public Builder newBuilderForType() { return newBuilder(); }
235 public static Builder newBuilder(org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell prototype) {
236 return newBuilder().mergeFrom(prototype);
237 }
238 public Builder toBuilder() { return newBuilder(this); }
239
240 @java.lang.Override
241 protected Builder newBuilderForType(
242 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
243 Builder builder = new Builder(parent);
244 return builder;
245 }
246 public static final class Builder extends
247 com.google.protobuf.GeneratedMessage.Builder<Builder>
248 implements org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.CellOrBuilder {
249 public static final com.google.protobuf.Descriptors.Descriptor
250 getDescriptor() {
251 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor;
252 }
253
254 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
255 internalGetFieldAccessorTable() {
256 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable;
257 }
258
259
260 private Builder() {
261 maybeForceBuilderInitialization();
262 }
263
264 private Builder(BuilderParent parent) {
265 super(parent);
266 maybeForceBuilderInitialization();
267 }
268 private void maybeForceBuilderInitialization() {
269 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
270 }
271 }
272 private static Builder create() {
273 return new Builder();
274 }
275
276 public Builder clear() {
277 super.clear();
278 row_ = com.google.protobuf.ByteString.EMPTY;
279 bitField0_ = (bitField0_ & ~0x00000001);
280 column_ = com.google.protobuf.ByteString.EMPTY;
281 bitField0_ = (bitField0_ & ~0x00000002);
282 timestamp_ = 0L;
283 bitField0_ = (bitField0_ & ~0x00000004);
284 data_ = com.google.protobuf.ByteString.EMPTY;
285 bitField0_ = (bitField0_ & ~0x00000008);
286 return this;
287 }
288
289 public Builder clone() {
290 return create().mergeFrom(buildPartial());
291 }
292
293 public com.google.protobuf.Descriptors.Descriptor
294 getDescriptorForType() {
295 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDescriptor();
296 }
297
298 public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell getDefaultInstanceForType() {
299 return org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDefaultInstance();
300 }
301
302 public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell build() {
303 org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = buildPartial();
304 if (!result.isInitialized()) {
305 throw newUninitializedMessageException(result);
306 }
307 return result;
308 }
309
310 private org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell buildParsed()
311 throws com.google.protobuf.InvalidProtocolBufferException {
312 org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = buildPartial();
313 if (!result.isInitialized()) {
314 throw newUninitializedMessageException(
315 result).asInvalidProtocolBufferException();
316 }
317 return result;
318 }
319
320 public org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell buildPartial() {
321 org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell result = new org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell(this);
322 int from_bitField0_ = bitField0_;
323 int to_bitField0_ = 0;
324 if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
325 to_bitField0_ |= 0x00000001;
326 }
327 result.row_ = row_;
328 if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
329 to_bitField0_ |= 0x00000002;
330 }
331 result.column_ = column_;
332 if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
333 to_bitField0_ |= 0x00000004;
334 }
335 result.timestamp_ = timestamp_;
336 if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
337 to_bitField0_ |= 0x00000008;
338 }
339 result.data_ = data_;
340 result.bitField0_ = to_bitField0_;
341 onBuilt();
342 return result;
343 }
344
345 public Builder mergeFrom(com.google.protobuf.Message other) {
346 if (other instanceof org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell) {
347 return mergeFrom((org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell)other);
348 } else {
349 super.mergeFrom(other);
350 return this;
351 }
352 }
353
354 public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell other) {
355 if (other == org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.getDefaultInstance()) return this;
356 if (other.hasRow()) {
357 setRow(other.getRow());
358 }
359 if (other.hasColumn()) {
360 setColumn(other.getColumn());
361 }
362 if (other.hasTimestamp()) {
363 setTimestamp(other.getTimestamp());
364 }
365 if (other.hasData()) {
366 setData(other.getData());
367 }
368 this.mergeUnknownFields(other.getUnknownFields());
369 return this;
370 }
371
372 public final boolean isInitialized() {
373 return true;
374 }
375
376 public Builder mergeFrom(
377 com.google.protobuf.CodedInputStream input,
378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379 throws java.io.IOException {
380 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
381 com.google.protobuf.UnknownFieldSet.newBuilder(
382 this.getUnknownFields());
383 while (true) {
384 int tag = input.readTag();
385 switch (tag) {
386 case 0:
387 this.setUnknownFields(unknownFields.build());
388 onChanged();
389 return this;
390 default: {
391 if (!parseUnknownField(input, unknownFields,
392 extensionRegistry, tag)) {
393 this.setUnknownFields(unknownFields.build());
394 onChanged();
395 return this;
396 }
397 break;
398 }
399 case 10: {
400 bitField0_ |= 0x00000001;
401 row_ = input.readBytes();
402 break;
403 }
404 case 18: {
405 bitField0_ |= 0x00000002;
406 column_ = input.readBytes();
407 break;
408 }
409 case 24: {
410 bitField0_ |= 0x00000004;
411 timestamp_ = input.readInt64();
412 break;
413 }
414 case 34: {
415 bitField0_ |= 0x00000008;
416 data_ = input.readBytes();
417 break;
418 }
419 }
420 }
421 }
422
423 private int bitField0_;
424
425
426 private com.google.protobuf.ByteString row_ = com.google.protobuf.ByteString.EMPTY;
427 public boolean hasRow() {
428 return ((bitField0_ & 0x00000001) == 0x00000001);
429 }
430 public com.google.protobuf.ByteString getRow() {
431 return row_;
432 }
433 public Builder setRow(com.google.protobuf.ByteString value) {
434 if (value == null) {
435 throw new NullPointerException();
436 }
437 bitField0_ |= 0x00000001;
438 row_ = value;
439 onChanged();
440 return this;
441 }
442 public Builder clearRow() {
443 bitField0_ = (bitField0_ & ~0x00000001);
444 row_ = getDefaultInstance().getRow();
445 onChanged();
446 return this;
447 }
448
449
450 private com.google.protobuf.ByteString column_ = com.google.protobuf.ByteString.EMPTY;
451 public boolean hasColumn() {
452 return ((bitField0_ & 0x00000002) == 0x00000002);
453 }
454 public com.google.protobuf.ByteString getColumn() {
455 return column_;
456 }
457 public Builder setColumn(com.google.protobuf.ByteString value) {
458 if (value == null) {
459 throw new NullPointerException();
460 }
461 bitField0_ |= 0x00000002;
462 column_ = value;
463 onChanged();
464 return this;
465 }
466 public Builder clearColumn() {
467 bitField0_ = (bitField0_ & ~0x00000002);
468 column_ = getDefaultInstance().getColumn();
469 onChanged();
470 return this;
471 }
472
473
474 private long timestamp_ ;
475 public boolean hasTimestamp() {
476 return ((bitField0_ & 0x00000004) == 0x00000004);
477 }
478 public long getTimestamp() {
479 return timestamp_;
480 }
481 public Builder setTimestamp(long value) {
482 bitField0_ |= 0x00000004;
483 timestamp_ = value;
484 onChanged();
485 return this;
486 }
487 public Builder clearTimestamp() {
488 bitField0_ = (bitField0_ & ~0x00000004);
489 timestamp_ = 0L;
490 onChanged();
491 return this;
492 }
493
494
495 private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
496 public boolean hasData() {
497 return ((bitField0_ & 0x00000008) == 0x00000008);
498 }
499 public com.google.protobuf.ByteString getData() {
500 return data_;
501 }
502 public Builder setData(com.google.protobuf.ByteString value) {
503 if (value == null) {
504 throw new NullPointerException();
505 }
506 bitField0_ |= 0x00000008;
507 data_ = value;
508 onChanged();
509 return this;
510 }
511 public Builder clearData() {
512 bitField0_ = (bitField0_ & ~0x00000008);
513 data_ = getDefaultInstance().getData();
514 onChanged();
515 return this;
516 }
517
518
519 }
520
521 static {
522 defaultInstance = new Cell(true);
523 defaultInstance.initFields();
524 }
525
526
527 }
528
529 private static com.google.protobuf.Descriptors.Descriptor
530 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor;
531 private static
532 com.google.protobuf.GeneratedMessage.FieldAccessorTable
533 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable;
534
535 public static com.google.protobuf.Descriptors.FileDescriptor
536 getDescriptor() {
537 return descriptor;
538 }
539 private static com.google.protobuf.Descriptors.FileDescriptor
540 descriptor;
541 static {
542 java.lang.String[] descriptorData = {
543 "\n\021CellMessage.proto\022/org.apache.hadoop.h" +
544 "base.rest.protobuf.generated\"D\n\004Cell\022\013\n\003" +
545 "row\030\001 \001(\014\022\016\n\006column\030\002 \001(\014\022\021\n\ttimestamp\030\003" +
546 " \001(\003\022\014\n\004data\030\004 \001(\014"
547 };
548 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
549 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
550 public com.google.protobuf.ExtensionRegistry assignDescriptors(
551 com.google.protobuf.Descriptors.FileDescriptor root) {
552 descriptor = root;
553 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor =
554 getDescriptor().getMessageTypes().get(0);
555 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_fieldAccessorTable = new
556 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
557 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_Cell_descriptor,
558 new java.lang.String[] { "Row", "Column", "Timestamp", "Data", },
559 org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.class,
560 org.apache.hadoop.hbase.rest.protobuf.generated.CellMessage.Cell.Builder.class);
561 return null;
562 }
563 };
564 com.google.protobuf.Descriptors.FileDescriptor
565 .internalBuildGeneratedFileFrom(descriptorData,
566 new com.google.protobuf.Descriptors.FileDescriptor[] {
567 }, assigner);
568 }
569
570
571 }