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