1
2
3
4 package org.apache.hadoop.hbase.rest.protobuf.generated;
5
6 public final class TableListMessage {
7 private TableListMessage() {}
8 public static void registerAllExtensions(
9 com.google.protobuf.ExtensionRegistry registry) {
10 }
11 public interface TableListOrBuilder
12 extends com.google.protobuf.MessageOrBuilder {
13
14
15 java.util.List<String> getNameList();
16 int getNameCount();
17 String getName(int index);
18 }
19 public static final class TableList extends
20 com.google.protobuf.GeneratedMessage
21 implements TableListOrBuilder {
22
23 private TableList(Builder builder) {
24 super(builder);
25 }
26 private TableList(boolean noInit) {}
27
28 private static final TableList defaultInstance;
29 public static TableList getDefaultInstance() {
30 return defaultInstance;
31 }
32
33 public TableList getDefaultInstanceForType() {
34 return defaultInstance;
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
38 getDescriptor() {
39 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor;
40 }
41
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 internalGetFieldAccessorTable() {
44 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_fieldAccessorTable;
45 }
46
47
48 public static final int NAME_FIELD_NUMBER = 1;
49 private com.google.protobuf.LazyStringList name_;
50 public java.util.List<String>
51 getNameList() {
52 return name_;
53 }
54 public int getNameCount() {
55 return name_.size();
56 }
57 public String getName(int index) {
58 return name_.get(index);
59 }
60
61 private void initFields() {
62 name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
63 }
64 private byte memoizedIsInitialized = -1;
65 public final boolean isInitialized() {
66 byte isInitialized = memoizedIsInitialized;
67 if (isInitialized != -1) return isInitialized == 1;
68
69 memoizedIsInitialized = 1;
70 return true;
71 }
72
73 public void writeTo(com.google.protobuf.CodedOutputStream output)
74 throws java.io.IOException {
75 getSerializedSize();
76 for (int i = 0; i < name_.size(); i++) {
77 output.writeBytes(1, name_.getByteString(i));
78 }
79 getUnknownFields().writeTo(output);
80 }
81
82 private int memoizedSerializedSize = -1;
83 public int getSerializedSize() {
84 int size = memoizedSerializedSize;
85 if (size != -1) return size;
86
87 size = 0;
88 {
89 int dataSize = 0;
90 for (int i = 0; i < name_.size(); i++) {
91 dataSize += com.google.protobuf.CodedOutputStream
92 .computeBytesSizeNoTag(name_.getByteString(i));
93 }
94 size += dataSize;
95 size += 1 * getNameList().size();
96 }
97 size += getUnknownFields().getSerializedSize();
98 memoizedSerializedSize = size;
99 return size;
100 }
101
102 private static final long serialVersionUID = 0L;
103 @java.lang.Override
104 protected java.lang.Object writeReplace()
105 throws java.io.ObjectStreamException {
106 return super.writeReplace();
107 }
108
109 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
110 com.google.protobuf.ByteString data)
111 throws com.google.protobuf.InvalidProtocolBufferException {
112 return newBuilder().mergeFrom(data).buildParsed();
113 }
114 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
115 com.google.protobuf.ByteString data,
116 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
117 throws com.google.protobuf.InvalidProtocolBufferException {
118 return newBuilder().mergeFrom(data, extensionRegistry)
119 .buildParsed();
120 }
121 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(byte[] data)
122 throws com.google.protobuf.InvalidProtocolBufferException {
123 return newBuilder().mergeFrom(data).buildParsed();
124 }
125 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
126 byte[] data,
127 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
128 throws com.google.protobuf.InvalidProtocolBufferException {
129 return newBuilder().mergeFrom(data, extensionRegistry)
130 .buildParsed();
131 }
132 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(java.io.InputStream input)
133 throws java.io.IOException {
134 return newBuilder().mergeFrom(input).buildParsed();
135 }
136 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
137 java.io.InputStream input,
138 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
139 throws java.io.IOException {
140 return newBuilder().mergeFrom(input, extensionRegistry)
141 .buildParsed();
142 }
143 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseDelimitedFrom(java.io.InputStream input)
144 throws java.io.IOException {
145 Builder builder = newBuilder();
146 if (builder.mergeDelimitedFrom(input)) {
147 return builder.buildParsed();
148 } else {
149 return null;
150 }
151 }
152 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseDelimitedFrom(
153 java.io.InputStream input,
154 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
155 throws java.io.IOException {
156 Builder builder = newBuilder();
157 if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
158 return builder.buildParsed();
159 } else {
160 return null;
161 }
162 }
163 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
164 com.google.protobuf.CodedInputStream input)
165 throws java.io.IOException {
166 return newBuilder().mergeFrom(input).buildParsed();
167 }
168 public static org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList parseFrom(
169 com.google.protobuf.CodedInputStream input,
170 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
171 throws java.io.IOException {
172 return newBuilder().mergeFrom(input, extensionRegistry)
173 .buildParsed();
174 }
175
176 public static Builder newBuilder() { return Builder.create(); }
177 public Builder newBuilderForType() { return newBuilder(); }
178 public static Builder newBuilder(org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList prototype) {
179 return newBuilder().mergeFrom(prototype);
180 }
181 public Builder toBuilder() { return newBuilder(this); }
182
183 @java.lang.Override
184 protected Builder newBuilderForType(
185 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
186 Builder builder = new Builder(parent);
187 return builder;
188 }
189 public static final class Builder extends
190 com.google.protobuf.GeneratedMessage.Builder<Builder>
191 implements org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableListOrBuilder {
192 public static final com.google.protobuf.Descriptors.Descriptor
193 getDescriptor() {
194 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor;
195 }
196
197 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
198 internalGetFieldAccessorTable() {
199 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_fieldAccessorTable;
200 }
201
202
203 private Builder() {
204 maybeForceBuilderInitialization();
205 }
206
207 private Builder(BuilderParent parent) {
208 super(parent);
209 maybeForceBuilderInitialization();
210 }
211 private void maybeForceBuilderInitialization() {
212 if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
213 }
214 }
215 private static Builder create() {
216 return new Builder();
217 }
218
219 public Builder clear() {
220 super.clear();
221 name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
222 bitField0_ = (bitField0_ & ~0x00000001);
223 return this;
224 }
225
226 public Builder clone() {
227 return create().mergeFrom(buildPartial());
228 }
229
230 public com.google.protobuf.Descriptors.Descriptor
231 getDescriptorForType() {
232 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.getDescriptor();
233 }
234
235 public org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList getDefaultInstanceForType() {
236 return org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.getDefaultInstance();
237 }
238
239 public org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList build() {
240 org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = buildPartial();
241 if (!result.isInitialized()) {
242 throw newUninitializedMessageException(result);
243 }
244 return result;
245 }
246
247 private org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList buildParsed()
248 throws com.google.protobuf.InvalidProtocolBufferException {
249 org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = buildPartial();
250 if (!result.isInitialized()) {
251 throw newUninitializedMessageException(
252 result).asInvalidProtocolBufferException();
253 }
254 return result;
255 }
256
257 public org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList buildPartial() {
258 org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList result = new org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList(this);
259 int from_bitField0_ = bitField0_;
260 if (((bitField0_ & 0x00000001) == 0x00000001)) {
261 name_ = new com.google.protobuf.UnmodifiableLazyStringList(
262 name_);
263 bitField0_ = (bitField0_ & ~0x00000001);
264 }
265 result.name_ = name_;
266 onBuilt();
267 return result;
268 }
269
270 public Builder mergeFrom(com.google.protobuf.Message other) {
271 if (other instanceof org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList) {
272 return mergeFrom((org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList)other);
273 } else {
274 super.mergeFrom(other);
275 return this;
276 }
277 }
278
279 public Builder mergeFrom(org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList other) {
280 if (other == org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.getDefaultInstance()) return this;
281 if (!other.name_.isEmpty()) {
282 if (name_.isEmpty()) {
283 name_ = other.name_;
284 bitField0_ = (bitField0_ & ~0x00000001);
285 } else {
286 ensureNameIsMutable();
287 name_.addAll(other.name_);
288 }
289 onChanged();
290 }
291 this.mergeUnknownFields(other.getUnknownFields());
292 return this;
293 }
294
295 public final boolean isInitialized() {
296 return true;
297 }
298
299 public Builder mergeFrom(
300 com.google.protobuf.CodedInputStream input,
301 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
302 throws java.io.IOException {
303 com.google.protobuf.UnknownFieldSet.Builder unknownFields =
304 com.google.protobuf.UnknownFieldSet.newBuilder(
305 this.getUnknownFields());
306 while (true) {
307 int tag = input.readTag();
308 switch (tag) {
309 case 0:
310 this.setUnknownFields(unknownFields.build());
311 onChanged();
312 return this;
313 default: {
314 if (!parseUnknownField(input, unknownFields,
315 extensionRegistry, tag)) {
316 this.setUnknownFields(unknownFields.build());
317 onChanged();
318 return this;
319 }
320 break;
321 }
322 case 10: {
323 ensureNameIsMutable();
324 name_.add(input.readBytes());
325 break;
326 }
327 }
328 }
329 }
330
331 private int bitField0_;
332
333
334 private com.google.protobuf.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
335 private void ensureNameIsMutable() {
336 if (!((bitField0_ & 0x00000001) == 0x00000001)) {
337 name_ = new com.google.protobuf.LazyStringArrayList(name_);
338 bitField0_ |= 0x00000001;
339 }
340 }
341 public java.util.List<String>
342 getNameList() {
343 return java.util.Collections.unmodifiableList(name_);
344 }
345 public int getNameCount() {
346 return name_.size();
347 }
348 public String getName(int index) {
349 return name_.get(index);
350 }
351 public Builder setName(
352 int index, String value) {
353 if (value == null) {
354 throw new NullPointerException();
355 }
356 ensureNameIsMutable();
357 name_.set(index, value);
358 onChanged();
359 return this;
360 }
361 public Builder addName(String value) {
362 if (value == null) {
363 throw new NullPointerException();
364 }
365 ensureNameIsMutable();
366 name_.add(value);
367 onChanged();
368 return this;
369 }
370 public Builder addAllName(
371 java.lang.Iterable<String> values) {
372 ensureNameIsMutable();
373 super.addAll(values, name_);
374 onChanged();
375 return this;
376 }
377 public Builder clearName() {
378 name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
379 bitField0_ = (bitField0_ & ~0x00000001);
380 onChanged();
381 return this;
382 }
383 void addName(com.google.protobuf.ByteString value) {
384 ensureNameIsMutable();
385 name_.add(value);
386 onChanged();
387 }
388
389
390 }
391
392 static {
393 defaultInstance = new TableList(true);
394 defaultInstance.initFields();
395 }
396
397
398 }
399
400 private static com.google.protobuf.Descriptors.Descriptor
401 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor;
402 private static
403 com.google.protobuf.GeneratedMessage.FieldAccessorTable
404 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_fieldAccessorTable;
405
406 public static com.google.protobuf.Descriptors.FileDescriptor
407 getDescriptor() {
408 return descriptor;
409 }
410 private static com.google.protobuf.Descriptors.FileDescriptor
411 descriptor;
412 static {
413 java.lang.String[] descriptorData = {
414 "\n\026TableListMessage.proto\022/org.apache.had" +
415 "oop.hbase.rest.protobuf.generated\"\031\n\tTab" +
416 "leList\022\014\n\004name\030\001 \003(\t"
417 };
418 com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
419 new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
420 public com.google.protobuf.ExtensionRegistry assignDescriptors(
421 com.google.protobuf.Descriptors.FileDescriptor root) {
422 descriptor = root;
423 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor =
424 getDescriptor().getMessageTypes().get(0);
425 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_fieldAccessorTable = new
426 com.google.protobuf.GeneratedMessage.FieldAccessorTable(
427 internal_static_org_apache_hadoop_hbase_rest_protobuf_generated_TableList_descriptor,
428 new java.lang.String[] { "Name", },
429 org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.class,
430 org.apache.hadoop.hbase.rest.protobuf.generated.TableListMessage.TableList.Builder.class);
431 return null;
432 }
433 };
434 com.google.protobuf.Descriptors.FileDescriptor
435 .internalBuildGeneratedFileFrom(descriptorData,
436 new com.google.protobuf.Descriptors.FileDescriptor[] {
437 }, assigner);
438 }
439
440
441 }