Merge lp:~dshrews/rabbitreplication/rabbitreplication_update into lp:rabbitreplication
- rabbitreplication_update
- Merge into trunk
Proposed by
David Shrewsbury
Status: | Merged |
---|---|
Merged at revision: | 38 |
Proposed branch: | lp:~dshrews/rabbitreplication/rabbitreplication_update |
Merge into: | lp:rabbitreplication |
Diff against target: |
18483 lines (+45/-18387) 4 files modified
src/org/drizzle/messages/SchemaMessage.java (+0/-364) src/org/drizzle/messages/TableMessage.java (+0/-8814) src/org/drizzle/messages/TransactionMessage.java (+0/-9206) src/org/drizzle/replication/transformer/DrizzleTransformer.java (+45/-3) |
To merge this branch: | bzr merge lp:~dshrews/rabbitreplication/rabbitreplication_update |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marcus Eriksson | Pending | ||
Review via email: mp+47422@code.launchpad.net |
Commit message
Description of the change
Now uses the drizzle-java-tools library. Updates JDBC and protobuf JARs. Updated transformer code to handle more Statement types that once were RAW_SQL.
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === removed file 'lib/drizzle-jdbc-0.6-SNAPSHOT.jar' |
2 | Binary files lib/drizzle-jdbc-0.6-SNAPSHOT.jar 2009-11-22 21:09:21 +0000 and lib/drizzle-jdbc-0.6-SNAPSHOT.jar 1970-01-01 00:00:00 +0000 differ |
3 | === added file 'lib/drizzle-jdbc-0.8-SNAPSHOT.jar' |
4 | Binary files lib/drizzle-jdbc-0.8-SNAPSHOT.jar 1970-01-01 00:00:00 +0000 and lib/drizzle-jdbc-0.8-SNAPSHOT.jar 2011-01-25 16:44:45 +0000 differ |
5 | === removed file 'lib/protobuf-java-2.2.0.jar' |
6 | Binary files lib/protobuf-java-2.2.0.jar 2009-11-22 21:09:21 +0000 and lib/protobuf-java-2.2.0.jar 1970-01-01 00:00:00 +0000 differ |
7 | === added file 'lib/protobuf-java-2.3.0.jar' |
8 | Binary files lib/protobuf-java-2.3.0.jar 1970-01-01 00:00:00 +0000 and lib/protobuf-java-2.3.0.jar 2011-01-25 16:44:45 +0000 differ |
9 | === added file 'lib/transactionlog-1.0-SNAPSHOT.jar' |
10 | Binary files lib/transactionlog-1.0-SNAPSHOT.jar 1970-01-01 00:00:00 +0000 and lib/transactionlog-1.0-SNAPSHOT.jar 2011-01-25 16:44:45 +0000 differ |
11 | === removed directory 'src/org/drizzle/messages' |
12 | === removed file 'src/org/drizzle/messages/SchemaMessage.java' |
13 | --- src/org/drizzle/messages/SchemaMessage.java 2010-01-09 20:08:02 +0000 |
14 | +++ src/org/drizzle/messages/SchemaMessage.java 1970-01-01 00:00:00 +0000 |
15 | @@ -1,364 +0,0 @@ |
16 | -// Generated by the protocol buffer compiler. DO NOT EDIT! |
17 | - |
18 | -package org.drizzle.messages; |
19 | - |
20 | -public final class SchemaMessage { |
21 | - private SchemaMessage() {} |
22 | - public static void registerAllExtensions( |
23 | - com.google.protobuf.ExtensionRegistry registry) { |
24 | - } |
25 | - public static final class Schema extends |
26 | - com.google.protobuf.GeneratedMessage { |
27 | - // Use Schema.newBuilder() to construct. |
28 | - private Schema() {} |
29 | - |
30 | - private static final Schema defaultInstance = new Schema(); |
31 | - public static Schema getDefaultInstance() { |
32 | - return defaultInstance; |
33 | - } |
34 | - |
35 | - public Schema getDefaultInstanceForType() { |
36 | - return defaultInstance; |
37 | - } |
38 | - |
39 | - public static final com.google.protobuf.Descriptors.Descriptor |
40 | - getDescriptor() { |
41 | - return org.drizzle.messages.SchemaMessage.internal_static_drizzled_message_Schema_descriptor; |
42 | - } |
43 | - |
44 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
45 | - internalGetFieldAccessorTable() { |
46 | - return org.drizzle.messages.SchemaMessage.internal_static_drizzled_message_Schema_fieldAccessorTable; |
47 | - } |
48 | - |
49 | - // required string name = 1; |
50 | - public static final int NAME_FIELD_NUMBER = 1; |
51 | - private boolean hasName; |
52 | - private java.lang.String name_ = ""; |
53 | - public boolean hasName() { return hasName; } |
54 | - public java.lang.String getName() { return name_; } |
55 | - |
56 | - // optional string collation = 2; |
57 | - public static final int COLLATION_FIELD_NUMBER = 2; |
58 | - private boolean hasCollation; |
59 | - private java.lang.String collation_ = ""; |
60 | - public boolean hasCollation() { return hasCollation; } |
61 | - public java.lang.String getCollation() { return collation_; } |
62 | - |
63 | - public final boolean isInitialized() { |
64 | - if (!hasName) return false; |
65 | - return true; |
66 | - } |
67 | - |
68 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
69 | - throws java.io.IOException { |
70 | - if (hasName()) { |
71 | - output.writeString(1, getName()); |
72 | - } |
73 | - if (hasCollation()) { |
74 | - output.writeString(2, getCollation()); |
75 | - } |
76 | - getUnknownFields().writeTo(output); |
77 | - } |
78 | - |
79 | - private int memoizedSerializedSize = -1; |
80 | - public int getSerializedSize() { |
81 | - int size = memoizedSerializedSize; |
82 | - if (size != -1) return size; |
83 | - |
84 | - size = 0; |
85 | - if (hasName()) { |
86 | - size += com.google.protobuf.CodedOutputStream |
87 | - .computeStringSize(1, getName()); |
88 | - } |
89 | - if (hasCollation()) { |
90 | - size += com.google.protobuf.CodedOutputStream |
91 | - .computeStringSize(2, getCollation()); |
92 | - } |
93 | - size += getUnknownFields().getSerializedSize(); |
94 | - memoizedSerializedSize = size; |
95 | - return size; |
96 | - } |
97 | - |
98 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
99 | - com.google.protobuf.ByteString data) |
100 | - throws com.google.protobuf.InvalidProtocolBufferException { |
101 | - return newBuilder().mergeFrom(data).buildParsed(); |
102 | - } |
103 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
104 | - com.google.protobuf.ByteString data, |
105 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
106 | - throws com.google.protobuf.InvalidProtocolBufferException { |
107 | - return newBuilder().mergeFrom(data, extensionRegistry) |
108 | - .buildParsed(); |
109 | - } |
110 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom(byte[] data) |
111 | - throws com.google.protobuf.InvalidProtocolBufferException { |
112 | - return newBuilder().mergeFrom(data).buildParsed(); |
113 | - } |
114 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
115 | - byte[] 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.drizzle.messages.SchemaMessage.Schema parseFrom(java.io.InputStream input) |
122 | - throws java.io.IOException { |
123 | - return newBuilder().mergeFrom(input).buildParsed(); |
124 | - } |
125 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
126 | - java.io.InputStream input, |
127 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
128 | - throws java.io.IOException { |
129 | - return newBuilder().mergeFrom(input, extensionRegistry) |
130 | - .buildParsed(); |
131 | - } |
132 | - public static org.drizzle.messages.SchemaMessage.Schema parseDelimitedFrom(java.io.InputStream input) |
133 | - throws java.io.IOException { |
134 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
135 | - } |
136 | - public static org.drizzle.messages.SchemaMessage.Schema parseDelimitedFrom( |
137 | - java.io.InputStream input, |
138 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
139 | - throws java.io.IOException { |
140 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
141 | - .buildParsed(); |
142 | - } |
143 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
144 | - com.google.protobuf.CodedInputStream input) |
145 | - throws java.io.IOException { |
146 | - return newBuilder().mergeFrom(input).buildParsed(); |
147 | - } |
148 | - public static org.drizzle.messages.SchemaMessage.Schema parseFrom( |
149 | - com.google.protobuf.CodedInputStream input, |
150 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
151 | - throws java.io.IOException { |
152 | - return newBuilder().mergeFrom(input, extensionRegistry) |
153 | - .buildParsed(); |
154 | - } |
155 | - |
156 | - public static Builder newBuilder() { return Builder.create(); } |
157 | - public Builder newBuilderForType() { return newBuilder(); } |
158 | - public static Builder newBuilder(org.drizzle.messages.SchemaMessage.Schema prototype) { |
159 | - return newBuilder().mergeFrom(prototype); |
160 | - } |
161 | - public Builder toBuilder() { return newBuilder(this); } |
162 | - |
163 | - public static final class Builder extends |
164 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
165 | - private org.drizzle.messages.SchemaMessage.Schema result; |
166 | - |
167 | - // Construct using org.drizzle.messages.SchemaMessage.Schema.newBuilder() |
168 | - private Builder() {} |
169 | - |
170 | - private static Builder create() { |
171 | - Builder builder = new Builder(); |
172 | - builder.result = new org.drizzle.messages.SchemaMessage.Schema(); |
173 | - return builder; |
174 | - } |
175 | - |
176 | - protected org.drizzle.messages.SchemaMessage.Schema internalGetResult() { |
177 | - return result; |
178 | - } |
179 | - |
180 | - public Builder clear() { |
181 | - if (result == null) { |
182 | - throw new IllegalStateException( |
183 | - "Cannot call clear() after build()."); |
184 | - } |
185 | - result = new org.drizzle.messages.SchemaMessage.Schema(); |
186 | - return this; |
187 | - } |
188 | - |
189 | - public Builder clone() { |
190 | - return create().mergeFrom(result); |
191 | - } |
192 | - |
193 | - public com.google.protobuf.Descriptors.Descriptor |
194 | - getDescriptorForType() { |
195 | - return org.drizzle.messages.SchemaMessage.Schema.getDescriptor(); |
196 | - } |
197 | - |
198 | - public org.drizzle.messages.SchemaMessage.Schema getDefaultInstanceForType() { |
199 | - return org.drizzle.messages.SchemaMessage.Schema.getDefaultInstance(); |
200 | - } |
201 | - |
202 | - public boolean isInitialized() { |
203 | - return result.isInitialized(); |
204 | - } |
205 | - public org.drizzle.messages.SchemaMessage.Schema build() { |
206 | - if (result != null && !isInitialized()) { |
207 | - throw newUninitializedMessageException(result); |
208 | - } |
209 | - return buildPartial(); |
210 | - } |
211 | - |
212 | - private org.drizzle.messages.SchemaMessage.Schema buildParsed() |
213 | - throws com.google.protobuf.InvalidProtocolBufferException { |
214 | - if (!isInitialized()) { |
215 | - throw newUninitializedMessageException( |
216 | - result).asInvalidProtocolBufferException(); |
217 | - } |
218 | - return buildPartial(); |
219 | - } |
220 | - |
221 | - public org.drizzle.messages.SchemaMessage.Schema buildPartial() { |
222 | - if (result == null) { |
223 | - throw new IllegalStateException( |
224 | - "build() has already been called on this Builder."); |
225 | - } |
226 | - org.drizzle.messages.SchemaMessage.Schema returnMe = result; |
227 | - result = null; |
228 | - return returnMe; |
229 | - } |
230 | - |
231 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
232 | - if (other instanceof org.drizzle.messages.SchemaMessage.Schema) { |
233 | - return mergeFrom((org.drizzle.messages.SchemaMessage.Schema)other); |
234 | - } else { |
235 | - super.mergeFrom(other); |
236 | - return this; |
237 | - } |
238 | - } |
239 | - |
240 | - public Builder mergeFrom(org.drizzle.messages.SchemaMessage.Schema other) { |
241 | - if (other == org.drizzle.messages.SchemaMessage.Schema.getDefaultInstance()) return this; |
242 | - if (other.hasName()) { |
243 | - setName(other.getName()); |
244 | - } |
245 | - if (other.hasCollation()) { |
246 | - setCollation(other.getCollation()); |
247 | - } |
248 | - this.mergeUnknownFields(other.getUnknownFields()); |
249 | - return this; |
250 | - } |
251 | - |
252 | - public Builder mergeFrom( |
253 | - com.google.protobuf.CodedInputStream input, |
254 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
255 | - throws java.io.IOException { |
256 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
257 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
258 | - this.getUnknownFields()); |
259 | - while (true) { |
260 | - int tag = input.readTag(); |
261 | - switch (tag) { |
262 | - case 0: |
263 | - this.setUnknownFields(unknownFields.build()); |
264 | - return this; |
265 | - default: { |
266 | - if (!parseUnknownField(input, unknownFields, |
267 | - extensionRegistry, tag)) { |
268 | - this.setUnknownFields(unknownFields.build()); |
269 | - return this; |
270 | - } |
271 | - break; |
272 | - } |
273 | - case 10: { |
274 | - setName(input.readString()); |
275 | - break; |
276 | - } |
277 | - case 18: { |
278 | - setCollation(input.readString()); |
279 | - break; |
280 | - } |
281 | - } |
282 | - } |
283 | - } |
284 | - |
285 | - |
286 | - // required string name = 1; |
287 | - public boolean hasName() { |
288 | - return result.hasName(); |
289 | - } |
290 | - public java.lang.String getName() { |
291 | - return result.getName(); |
292 | - } |
293 | - public Builder setName(java.lang.String value) { |
294 | - if (value == null) { |
295 | - throw new NullPointerException(); |
296 | - } |
297 | - result.hasName = true; |
298 | - result.name_ = value; |
299 | - return this; |
300 | - } |
301 | - public Builder clearName() { |
302 | - result.hasName = false; |
303 | - result.name_ = getDefaultInstance().getName(); |
304 | - return this; |
305 | - } |
306 | - |
307 | - // optional string collation = 2; |
308 | - public boolean hasCollation() { |
309 | - return result.hasCollation(); |
310 | - } |
311 | - public java.lang.String getCollation() { |
312 | - return result.getCollation(); |
313 | - } |
314 | - public Builder setCollation(java.lang.String value) { |
315 | - if (value == null) { |
316 | - throw new NullPointerException(); |
317 | - } |
318 | - result.hasCollation = true; |
319 | - result.collation_ = value; |
320 | - return this; |
321 | - } |
322 | - public Builder clearCollation() { |
323 | - result.hasCollation = false; |
324 | - result.collation_ = getDefaultInstance().getCollation(); |
325 | - return this; |
326 | - } |
327 | - } |
328 | - |
329 | - static { |
330 | - org.drizzle.messages.SchemaMessage.getDescriptor(); |
331 | - } |
332 | - |
333 | - static { |
334 | - org.drizzle.messages.SchemaMessage.internalForceInit(); |
335 | - } |
336 | - } |
337 | - |
338 | - private static com.google.protobuf.Descriptors.Descriptor |
339 | - internal_static_drizzled_message_Schema_descriptor; |
340 | - private static |
341 | - com.google.protobuf.GeneratedMessage.FieldAccessorTable |
342 | - internal_static_drizzled_message_Schema_fieldAccessorTable; |
343 | - |
344 | - public static com.google.protobuf.Descriptors.FileDescriptor |
345 | - getDescriptor() { |
346 | - return descriptor; |
347 | - } |
348 | - private static com.google.protobuf.Descriptors.FileDescriptor |
349 | - descriptor; |
350 | - static { |
351 | - java.lang.String[] descriptorData = { |
352 | - "\n\014schema.proto\022\020drizzled.message\")\n\006Sche" + |
353 | - "ma\022\014\n\004name\030\001 \002(\t\022\021\n\tcollation\030\002 \001(\tB\'\n\024o" + |
354 | - "rg.drizzle.messagesB\rSchemaMessageH\001" |
355 | - }; |
356 | - com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = |
357 | - new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { |
358 | - public com.google.protobuf.ExtensionRegistry assignDescriptors( |
359 | - com.google.protobuf.Descriptors.FileDescriptor root) { |
360 | - descriptor = root; |
361 | - internal_static_drizzled_message_Schema_descriptor = |
362 | - getDescriptor().getMessageTypes().get(0); |
363 | - internal_static_drizzled_message_Schema_fieldAccessorTable = new |
364 | - com.google.protobuf.GeneratedMessage.FieldAccessorTable( |
365 | - internal_static_drizzled_message_Schema_descriptor, |
366 | - new java.lang.String[] { "Name", "Collation", }, |
367 | - org.drizzle.messages.SchemaMessage.Schema.class, |
368 | - org.drizzle.messages.SchemaMessage.Schema.Builder.class); |
369 | - return null; |
370 | - } |
371 | - }; |
372 | - com.google.protobuf.Descriptors.FileDescriptor |
373 | - .internalBuildGeneratedFileFrom(descriptorData, |
374 | - new com.google.protobuf.Descriptors.FileDescriptor[] { |
375 | - }, assigner); |
376 | - } |
377 | - |
378 | - public static void internalForceInit() {} |
379 | -} |
380 | |
381 | === removed file 'src/org/drizzle/messages/TableMessage.java' |
382 | --- src/org/drizzle/messages/TableMessage.java 2010-01-09 20:08:02 +0000 |
383 | +++ src/org/drizzle/messages/TableMessage.java 1970-01-01 00:00:00 +0000 |
384 | @@ -1,8814 +0,0 @@ |
385 | -// Generated by the protocol buffer compiler. DO NOT EDIT! |
386 | - |
387 | -package org.drizzle.messages; |
388 | - |
389 | -public final class TableMessage { |
390 | - private TableMessage() {} |
391 | - public static void registerAllExtensions( |
392 | - com.google.protobuf.ExtensionRegistry registry) { |
393 | - } |
394 | - public static final class Table extends |
395 | - com.google.protobuf.GeneratedMessage { |
396 | - // Use Table.newBuilder() to construct. |
397 | - private Table() {} |
398 | - |
399 | - private static final Table defaultInstance = new Table(); |
400 | - public static Table getDefaultInstance() { |
401 | - return defaultInstance; |
402 | - } |
403 | - |
404 | - public Table getDefaultInstanceForType() { |
405 | - return defaultInstance; |
406 | - } |
407 | - |
408 | - public static final com.google.protobuf.Descriptors.Descriptor |
409 | - getDescriptor() { |
410 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_descriptor; |
411 | - } |
412 | - |
413 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
414 | - internalGetFieldAccessorTable() { |
415 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_fieldAccessorTable; |
416 | - } |
417 | - |
418 | - public enum TableType |
419 | - implements com.google.protobuf.ProtocolMessageEnum { |
420 | - STANDARD(0, 0), |
421 | - TEMPORARY(1, 1), |
422 | - INTERNAL(2, 2), |
423 | - ; |
424 | - |
425 | - |
426 | - public final int getNumber() { return value; } |
427 | - |
428 | - public static TableType valueOf(int value) { |
429 | - switch (value) { |
430 | - case 0: return STANDARD; |
431 | - case 1: return TEMPORARY; |
432 | - case 2: return INTERNAL; |
433 | - default: return null; |
434 | - } |
435 | - } |
436 | - |
437 | - public static com.google.protobuf.Internal.EnumLiteMap<TableType> |
438 | - internalGetValueMap() { |
439 | - return internalValueMap; |
440 | - } |
441 | - private static com.google.protobuf.Internal.EnumLiteMap<TableType> |
442 | - internalValueMap = |
443 | - new com.google.protobuf.Internal.EnumLiteMap<TableType>() { |
444 | - public TableType findValueByNumber(int number) { |
445 | - return TableType.valueOf(number) |
446 | - ; } |
447 | - }; |
448 | - |
449 | - public final com.google.protobuf.Descriptors.EnumValueDescriptor |
450 | - getValueDescriptor() { |
451 | - return getDescriptor().getValues().get(index); |
452 | - } |
453 | - public final com.google.protobuf.Descriptors.EnumDescriptor |
454 | - getDescriptorForType() { |
455 | - return getDescriptor(); |
456 | - } |
457 | - public static final com.google.protobuf.Descriptors.EnumDescriptor |
458 | - getDescriptor() { |
459 | - return org.drizzle.messages.TableMessage.Table.getDescriptor().getEnumTypes().get(0); |
460 | - } |
461 | - |
462 | - private static final TableType[] VALUES = { |
463 | - STANDARD, TEMPORARY, INTERNAL, |
464 | - }; |
465 | - public static TableType valueOf( |
466 | - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { |
467 | - if (desc.getType() != getDescriptor()) { |
468 | - throw new java.lang.IllegalArgumentException( |
469 | - "EnumValueDescriptor is not for this type."); |
470 | - } |
471 | - return VALUES[desc.getIndex()]; |
472 | - } |
473 | - private final int index; |
474 | - private final int value; |
475 | - private TableType(int index, int value) { |
476 | - this.index = index; |
477 | - this.value = value; |
478 | - } |
479 | - |
480 | - static { |
481 | - org.drizzle.messages.TableMessage.getDescriptor(); |
482 | - } |
483 | - } |
484 | - |
485 | - public static final class StorageEngine extends |
486 | - com.google.protobuf.GeneratedMessage { |
487 | - // Use StorageEngine.newBuilder() to construct. |
488 | - private StorageEngine() {} |
489 | - |
490 | - private static final StorageEngine defaultInstance = new StorageEngine(); |
491 | - public static StorageEngine getDefaultInstance() { |
492 | - return defaultInstance; |
493 | - } |
494 | - |
495 | - public StorageEngine getDefaultInstanceForType() { |
496 | - return defaultInstance; |
497 | - } |
498 | - |
499 | - public static final com.google.protobuf.Descriptors.Descriptor |
500 | - getDescriptor() { |
501 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_StorageEngine_descriptor; |
502 | - } |
503 | - |
504 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
505 | - internalGetFieldAccessorTable() { |
506 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_StorageEngine_fieldAccessorTable; |
507 | - } |
508 | - |
509 | - public static final class EngineOption extends |
510 | - com.google.protobuf.GeneratedMessage { |
511 | - // Use EngineOption.newBuilder() to construct. |
512 | - private EngineOption() {} |
513 | - |
514 | - private static final EngineOption defaultInstance = new EngineOption(); |
515 | - public static EngineOption getDefaultInstance() { |
516 | - return defaultInstance; |
517 | - } |
518 | - |
519 | - public EngineOption getDefaultInstanceForType() { |
520 | - return defaultInstance; |
521 | - } |
522 | - |
523 | - public static final com.google.protobuf.Descriptors.Descriptor |
524 | - getDescriptor() { |
525 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_StorageEngine_EngineOption_descriptor; |
526 | - } |
527 | - |
528 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
529 | - internalGetFieldAccessorTable() { |
530 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_StorageEngine_EngineOption_fieldAccessorTable; |
531 | - } |
532 | - |
533 | - public enum EngineOptionType |
534 | - implements com.google.protobuf.ProtocolMessageEnum { |
535 | - BOOL(0, 0), |
536 | - INTEGER(1, 1), |
537 | - STRING(2, 2), |
538 | - ; |
539 | - |
540 | - |
541 | - public final int getNumber() { return value; } |
542 | - |
543 | - public static EngineOptionType valueOf(int value) { |
544 | - switch (value) { |
545 | - case 0: return BOOL; |
546 | - case 1: return INTEGER; |
547 | - case 2: return STRING; |
548 | - default: return null; |
549 | - } |
550 | - } |
551 | - |
552 | - public static com.google.protobuf.Internal.EnumLiteMap<EngineOptionType> |
553 | - internalGetValueMap() { |
554 | - return internalValueMap; |
555 | - } |
556 | - private static com.google.protobuf.Internal.EnumLiteMap<EngineOptionType> |
557 | - internalValueMap = |
558 | - new com.google.protobuf.Internal.EnumLiteMap<EngineOptionType>() { |
559 | - public EngineOptionType findValueByNumber(int number) { |
560 | - return EngineOptionType.valueOf(number) |
561 | - ; } |
562 | - }; |
563 | - |
564 | - public final com.google.protobuf.Descriptors.EnumValueDescriptor |
565 | - getValueDescriptor() { |
566 | - return getDescriptor().getValues().get(index); |
567 | - } |
568 | - public final com.google.protobuf.Descriptors.EnumDescriptor |
569 | - getDescriptorForType() { |
570 | - return getDescriptor(); |
571 | - } |
572 | - public static final com.google.protobuf.Descriptors.EnumDescriptor |
573 | - getDescriptor() { |
574 | - return org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.getDescriptor().getEnumTypes().get(0); |
575 | - } |
576 | - |
577 | - private static final EngineOptionType[] VALUES = { |
578 | - BOOL, INTEGER, STRING, |
579 | - }; |
580 | - public static EngineOptionType valueOf( |
581 | - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { |
582 | - if (desc.getType() != getDescriptor()) { |
583 | - throw new java.lang.IllegalArgumentException( |
584 | - "EnumValueDescriptor is not for this type."); |
585 | - } |
586 | - return VALUES[desc.getIndex()]; |
587 | - } |
588 | - private final int index; |
589 | - private final int value; |
590 | - private EngineOptionType(int index, int value) { |
591 | - this.index = index; |
592 | - this.value = value; |
593 | - } |
594 | - |
595 | - static { |
596 | - org.drizzle.messages.TableMessage.getDescriptor(); |
597 | - } |
598 | - } |
599 | - |
600 | - // required string option_name = 1; |
601 | - public static final int OPTION_NAME_FIELD_NUMBER = 1; |
602 | - private boolean hasOptionName; |
603 | - private java.lang.String optionName_ = ""; |
604 | - public boolean hasOptionName() { return hasOptionName; } |
605 | - public java.lang.String getOptionName() { return optionName_; } |
606 | - |
607 | - // required string option_value = 2; |
608 | - public static final int OPTION_VALUE_FIELD_NUMBER = 2; |
609 | - private boolean hasOptionValue; |
610 | - private java.lang.String optionValue_ = ""; |
611 | - public boolean hasOptionValue() { return hasOptionValue; } |
612 | - public java.lang.String getOptionValue() { return optionValue_; } |
613 | - |
614 | - // required .drizzled.message.Table.StorageEngine.EngineOption.EngineOptionType option_type = 3; |
615 | - public static final int OPTION_TYPE_FIELD_NUMBER = 3; |
616 | - private boolean hasOptionType; |
617 | - private org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType optionType_ = org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType.BOOL; |
618 | - public boolean hasOptionType() { return hasOptionType; } |
619 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType getOptionType() { return optionType_; } |
620 | - |
621 | - public final boolean isInitialized() { |
622 | - if (!hasOptionName) return false; |
623 | - if (!hasOptionValue) return false; |
624 | - if (!hasOptionType) return false; |
625 | - return true; |
626 | - } |
627 | - |
628 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
629 | - throws java.io.IOException { |
630 | - if (hasOptionName()) { |
631 | - output.writeString(1, getOptionName()); |
632 | - } |
633 | - if (hasOptionValue()) { |
634 | - output.writeString(2, getOptionValue()); |
635 | - } |
636 | - if (hasOptionType()) { |
637 | - output.writeEnum(3, getOptionType().getNumber()); |
638 | - } |
639 | - getUnknownFields().writeTo(output); |
640 | - } |
641 | - |
642 | - private int memoizedSerializedSize = -1; |
643 | - public int getSerializedSize() { |
644 | - int size = memoizedSerializedSize; |
645 | - if (size != -1) return size; |
646 | - |
647 | - size = 0; |
648 | - if (hasOptionName()) { |
649 | - size += com.google.protobuf.CodedOutputStream |
650 | - .computeStringSize(1, getOptionName()); |
651 | - } |
652 | - if (hasOptionValue()) { |
653 | - size += com.google.protobuf.CodedOutputStream |
654 | - .computeStringSize(2, getOptionValue()); |
655 | - } |
656 | - if (hasOptionType()) { |
657 | - size += com.google.protobuf.CodedOutputStream |
658 | - .computeEnumSize(3, getOptionType().getNumber()); |
659 | - } |
660 | - size += getUnknownFields().getSerializedSize(); |
661 | - memoizedSerializedSize = size; |
662 | - return size; |
663 | - } |
664 | - |
665 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
666 | - com.google.protobuf.ByteString data) |
667 | - throws com.google.protobuf.InvalidProtocolBufferException { |
668 | - return newBuilder().mergeFrom(data).buildParsed(); |
669 | - } |
670 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
671 | - com.google.protobuf.ByteString data, |
672 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
673 | - throws com.google.protobuf.InvalidProtocolBufferException { |
674 | - return newBuilder().mergeFrom(data, extensionRegistry) |
675 | - .buildParsed(); |
676 | - } |
677 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom(byte[] data) |
678 | - throws com.google.protobuf.InvalidProtocolBufferException { |
679 | - return newBuilder().mergeFrom(data).buildParsed(); |
680 | - } |
681 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
682 | - byte[] data, |
683 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
684 | - throws com.google.protobuf.InvalidProtocolBufferException { |
685 | - return newBuilder().mergeFrom(data, extensionRegistry) |
686 | - .buildParsed(); |
687 | - } |
688 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom(java.io.InputStream input) |
689 | - throws java.io.IOException { |
690 | - return newBuilder().mergeFrom(input).buildParsed(); |
691 | - } |
692 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
693 | - java.io.InputStream input, |
694 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
695 | - throws java.io.IOException { |
696 | - return newBuilder().mergeFrom(input, extensionRegistry) |
697 | - .buildParsed(); |
698 | - } |
699 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseDelimitedFrom(java.io.InputStream input) |
700 | - throws java.io.IOException { |
701 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
702 | - } |
703 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseDelimitedFrom( |
704 | - java.io.InputStream input, |
705 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
706 | - throws java.io.IOException { |
707 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
708 | - .buildParsed(); |
709 | - } |
710 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
711 | - com.google.protobuf.CodedInputStream input) |
712 | - throws java.io.IOException { |
713 | - return newBuilder().mergeFrom(input).buildParsed(); |
714 | - } |
715 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption parseFrom( |
716 | - com.google.protobuf.CodedInputStream input, |
717 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
718 | - throws java.io.IOException { |
719 | - return newBuilder().mergeFrom(input, extensionRegistry) |
720 | - .buildParsed(); |
721 | - } |
722 | - |
723 | - public static Builder newBuilder() { return Builder.create(); } |
724 | - public Builder newBuilderForType() { return newBuilder(); } |
725 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption prototype) { |
726 | - return newBuilder().mergeFrom(prototype); |
727 | - } |
728 | - public Builder toBuilder() { return newBuilder(this); } |
729 | - |
730 | - public static final class Builder extends |
731 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
732 | - private org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption result; |
733 | - |
734 | - // Construct using org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.newBuilder() |
735 | - private Builder() {} |
736 | - |
737 | - private static Builder create() { |
738 | - Builder builder = new Builder(); |
739 | - builder.result = new org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption(); |
740 | - return builder; |
741 | - } |
742 | - |
743 | - protected org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption internalGetResult() { |
744 | - return result; |
745 | - } |
746 | - |
747 | - public Builder clear() { |
748 | - if (result == null) { |
749 | - throw new IllegalStateException( |
750 | - "Cannot call clear() after build()."); |
751 | - } |
752 | - result = new org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption(); |
753 | - return this; |
754 | - } |
755 | - |
756 | - public Builder clone() { |
757 | - return create().mergeFrom(result); |
758 | - } |
759 | - |
760 | - public com.google.protobuf.Descriptors.Descriptor |
761 | - getDescriptorForType() { |
762 | - return org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.getDescriptor(); |
763 | - } |
764 | - |
765 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption getDefaultInstanceForType() { |
766 | - return org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.getDefaultInstance(); |
767 | - } |
768 | - |
769 | - public boolean isInitialized() { |
770 | - return result.isInitialized(); |
771 | - } |
772 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption build() { |
773 | - if (result != null && !isInitialized()) { |
774 | - throw newUninitializedMessageException(result); |
775 | - } |
776 | - return buildPartial(); |
777 | - } |
778 | - |
779 | - private org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption buildParsed() |
780 | - throws com.google.protobuf.InvalidProtocolBufferException { |
781 | - if (!isInitialized()) { |
782 | - throw newUninitializedMessageException( |
783 | - result).asInvalidProtocolBufferException(); |
784 | - } |
785 | - return buildPartial(); |
786 | - } |
787 | - |
788 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption buildPartial() { |
789 | - if (result == null) { |
790 | - throw new IllegalStateException( |
791 | - "build() has already been called on this Builder."); |
792 | - } |
793 | - org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption returnMe = result; |
794 | - result = null; |
795 | - return returnMe; |
796 | - } |
797 | - |
798 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
799 | - if (other instanceof org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption) { |
800 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption)other); |
801 | - } else { |
802 | - super.mergeFrom(other); |
803 | - return this; |
804 | - } |
805 | - } |
806 | - |
807 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption other) { |
808 | - if (other == org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.getDefaultInstance()) return this; |
809 | - if (other.hasOptionName()) { |
810 | - setOptionName(other.getOptionName()); |
811 | - } |
812 | - if (other.hasOptionValue()) { |
813 | - setOptionValue(other.getOptionValue()); |
814 | - } |
815 | - if (other.hasOptionType()) { |
816 | - setOptionType(other.getOptionType()); |
817 | - } |
818 | - this.mergeUnknownFields(other.getUnknownFields()); |
819 | - return this; |
820 | - } |
821 | - |
822 | - public Builder mergeFrom( |
823 | - com.google.protobuf.CodedInputStream input, |
824 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
825 | - throws java.io.IOException { |
826 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
827 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
828 | - this.getUnknownFields()); |
829 | - while (true) { |
830 | - int tag = input.readTag(); |
831 | - switch (tag) { |
832 | - case 0: |
833 | - this.setUnknownFields(unknownFields.build()); |
834 | - return this; |
835 | - default: { |
836 | - if (!parseUnknownField(input, unknownFields, |
837 | - extensionRegistry, tag)) { |
838 | - this.setUnknownFields(unknownFields.build()); |
839 | - return this; |
840 | - } |
841 | - break; |
842 | - } |
843 | - case 10: { |
844 | - setOptionName(input.readString()); |
845 | - break; |
846 | - } |
847 | - case 18: { |
848 | - setOptionValue(input.readString()); |
849 | - break; |
850 | - } |
851 | - case 24: { |
852 | - int rawValue = input.readEnum(); |
853 | - org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType value = org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType.valueOf(rawValue); |
854 | - if (value == null) { |
855 | - unknownFields.mergeVarintField(3, rawValue); |
856 | - } else { |
857 | - setOptionType(value); |
858 | - } |
859 | - break; |
860 | - } |
861 | - } |
862 | - } |
863 | - } |
864 | - |
865 | - |
866 | - // required string option_name = 1; |
867 | - public boolean hasOptionName() { |
868 | - return result.hasOptionName(); |
869 | - } |
870 | - public java.lang.String getOptionName() { |
871 | - return result.getOptionName(); |
872 | - } |
873 | - public Builder setOptionName(java.lang.String value) { |
874 | - if (value == null) { |
875 | - throw new NullPointerException(); |
876 | - } |
877 | - result.hasOptionName = true; |
878 | - result.optionName_ = value; |
879 | - return this; |
880 | - } |
881 | - public Builder clearOptionName() { |
882 | - result.hasOptionName = false; |
883 | - result.optionName_ = getDefaultInstance().getOptionName(); |
884 | - return this; |
885 | - } |
886 | - |
887 | - // required string option_value = 2; |
888 | - public boolean hasOptionValue() { |
889 | - return result.hasOptionValue(); |
890 | - } |
891 | - public java.lang.String getOptionValue() { |
892 | - return result.getOptionValue(); |
893 | - } |
894 | - public Builder setOptionValue(java.lang.String value) { |
895 | - if (value == null) { |
896 | - throw new NullPointerException(); |
897 | - } |
898 | - result.hasOptionValue = true; |
899 | - result.optionValue_ = value; |
900 | - return this; |
901 | - } |
902 | - public Builder clearOptionValue() { |
903 | - result.hasOptionValue = false; |
904 | - result.optionValue_ = getDefaultInstance().getOptionValue(); |
905 | - return this; |
906 | - } |
907 | - |
908 | - // required .drizzled.message.Table.StorageEngine.EngineOption.EngineOptionType option_type = 3; |
909 | - public boolean hasOptionType() { |
910 | - return result.hasOptionType(); |
911 | - } |
912 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType getOptionType() { |
913 | - return result.getOptionType(); |
914 | - } |
915 | - public Builder setOptionType(org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType value) { |
916 | - if (value == null) { |
917 | - throw new NullPointerException(); |
918 | - } |
919 | - result.hasOptionType = true; |
920 | - result.optionType_ = value; |
921 | - return this; |
922 | - } |
923 | - public Builder clearOptionType() { |
924 | - result.hasOptionType = false; |
925 | - result.optionType_ = org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.EngineOptionType.BOOL; |
926 | - return this; |
927 | - } |
928 | - } |
929 | - |
930 | - static { |
931 | - org.drizzle.messages.TableMessage.getDescriptor(); |
932 | - } |
933 | - |
934 | - static { |
935 | - org.drizzle.messages.TableMessage.internalForceInit(); |
936 | - } |
937 | - } |
938 | - |
939 | - // required string name = 1; |
940 | - public static final int NAME_FIELD_NUMBER = 1; |
941 | - private boolean hasName; |
942 | - private java.lang.String name_ = ""; |
943 | - public boolean hasName() { return hasName; } |
944 | - public java.lang.String getName() { return name_; } |
945 | - |
946 | - // repeated .drizzled.message.Table.StorageEngine.EngineOption option = 2; |
947 | - public static final int OPTION_FIELD_NUMBER = 2; |
948 | - private java.util.List<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption> option_ = |
949 | - java.util.Collections.emptyList(); |
950 | - public java.util.List<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption> getOptionList() { |
951 | - return option_; |
952 | - } |
953 | - public int getOptionCount() { return option_.size(); } |
954 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption getOption(int index) { |
955 | - return option_.get(index); |
956 | - } |
957 | - |
958 | - public final boolean isInitialized() { |
959 | - if (!hasName) return false; |
960 | - for (org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption element : getOptionList()) { |
961 | - if (!element.isInitialized()) return false; |
962 | - } |
963 | - return true; |
964 | - } |
965 | - |
966 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
967 | - throws java.io.IOException { |
968 | - if (hasName()) { |
969 | - output.writeString(1, getName()); |
970 | - } |
971 | - for (org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption element : getOptionList()) { |
972 | - output.writeMessage(2, element); |
973 | - } |
974 | - getUnknownFields().writeTo(output); |
975 | - } |
976 | - |
977 | - private int memoizedSerializedSize = -1; |
978 | - public int getSerializedSize() { |
979 | - int size = memoizedSerializedSize; |
980 | - if (size != -1) return size; |
981 | - |
982 | - size = 0; |
983 | - if (hasName()) { |
984 | - size += com.google.protobuf.CodedOutputStream |
985 | - .computeStringSize(1, getName()); |
986 | - } |
987 | - for (org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption element : getOptionList()) { |
988 | - size += com.google.protobuf.CodedOutputStream |
989 | - .computeMessageSize(2, element); |
990 | - } |
991 | - size += getUnknownFields().getSerializedSize(); |
992 | - memoizedSerializedSize = size; |
993 | - return size; |
994 | - } |
995 | - |
996 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
997 | - com.google.protobuf.ByteString data) |
998 | - throws com.google.protobuf.InvalidProtocolBufferException { |
999 | - return newBuilder().mergeFrom(data).buildParsed(); |
1000 | - } |
1001 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
1002 | - com.google.protobuf.ByteString data, |
1003 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1004 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1005 | - return newBuilder().mergeFrom(data, extensionRegistry) |
1006 | - .buildParsed(); |
1007 | - } |
1008 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom(byte[] data) |
1009 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1010 | - return newBuilder().mergeFrom(data).buildParsed(); |
1011 | - } |
1012 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
1013 | - byte[] data, |
1014 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1015 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1016 | - return newBuilder().mergeFrom(data, extensionRegistry) |
1017 | - .buildParsed(); |
1018 | - } |
1019 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom(java.io.InputStream input) |
1020 | - throws java.io.IOException { |
1021 | - return newBuilder().mergeFrom(input).buildParsed(); |
1022 | - } |
1023 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
1024 | - java.io.InputStream input, |
1025 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1026 | - throws java.io.IOException { |
1027 | - return newBuilder().mergeFrom(input, extensionRegistry) |
1028 | - .buildParsed(); |
1029 | - } |
1030 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseDelimitedFrom(java.io.InputStream input) |
1031 | - throws java.io.IOException { |
1032 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
1033 | - } |
1034 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseDelimitedFrom( |
1035 | - java.io.InputStream input, |
1036 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1037 | - throws java.io.IOException { |
1038 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
1039 | - .buildParsed(); |
1040 | - } |
1041 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
1042 | - com.google.protobuf.CodedInputStream input) |
1043 | - throws java.io.IOException { |
1044 | - return newBuilder().mergeFrom(input).buildParsed(); |
1045 | - } |
1046 | - public static org.drizzle.messages.TableMessage.Table.StorageEngine parseFrom( |
1047 | - com.google.protobuf.CodedInputStream input, |
1048 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1049 | - throws java.io.IOException { |
1050 | - return newBuilder().mergeFrom(input, extensionRegistry) |
1051 | - .buildParsed(); |
1052 | - } |
1053 | - |
1054 | - public static Builder newBuilder() { return Builder.create(); } |
1055 | - public Builder newBuilderForType() { return newBuilder(); } |
1056 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.StorageEngine prototype) { |
1057 | - return newBuilder().mergeFrom(prototype); |
1058 | - } |
1059 | - public Builder toBuilder() { return newBuilder(this); } |
1060 | - |
1061 | - public static final class Builder extends |
1062 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
1063 | - private org.drizzle.messages.TableMessage.Table.StorageEngine result; |
1064 | - |
1065 | - // Construct using org.drizzle.messages.TableMessage.Table.StorageEngine.newBuilder() |
1066 | - private Builder() {} |
1067 | - |
1068 | - private static Builder create() { |
1069 | - Builder builder = new Builder(); |
1070 | - builder.result = new org.drizzle.messages.TableMessage.Table.StorageEngine(); |
1071 | - return builder; |
1072 | - } |
1073 | - |
1074 | - protected org.drizzle.messages.TableMessage.Table.StorageEngine internalGetResult() { |
1075 | - return result; |
1076 | - } |
1077 | - |
1078 | - public Builder clear() { |
1079 | - if (result == null) { |
1080 | - throw new IllegalStateException( |
1081 | - "Cannot call clear() after build()."); |
1082 | - } |
1083 | - result = new org.drizzle.messages.TableMessage.Table.StorageEngine(); |
1084 | - return this; |
1085 | - } |
1086 | - |
1087 | - public Builder clone() { |
1088 | - return create().mergeFrom(result); |
1089 | - } |
1090 | - |
1091 | - public com.google.protobuf.Descriptors.Descriptor |
1092 | - getDescriptorForType() { |
1093 | - return org.drizzle.messages.TableMessage.Table.StorageEngine.getDescriptor(); |
1094 | - } |
1095 | - |
1096 | - public org.drizzle.messages.TableMessage.Table.StorageEngine getDefaultInstanceForType() { |
1097 | - return org.drizzle.messages.TableMessage.Table.StorageEngine.getDefaultInstance(); |
1098 | - } |
1099 | - |
1100 | - public boolean isInitialized() { |
1101 | - return result.isInitialized(); |
1102 | - } |
1103 | - public org.drizzle.messages.TableMessage.Table.StorageEngine build() { |
1104 | - if (result != null && !isInitialized()) { |
1105 | - throw newUninitializedMessageException(result); |
1106 | - } |
1107 | - return buildPartial(); |
1108 | - } |
1109 | - |
1110 | - private org.drizzle.messages.TableMessage.Table.StorageEngine buildParsed() |
1111 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1112 | - if (!isInitialized()) { |
1113 | - throw newUninitializedMessageException( |
1114 | - result).asInvalidProtocolBufferException(); |
1115 | - } |
1116 | - return buildPartial(); |
1117 | - } |
1118 | - |
1119 | - public org.drizzle.messages.TableMessage.Table.StorageEngine buildPartial() { |
1120 | - if (result == null) { |
1121 | - throw new IllegalStateException( |
1122 | - "build() has already been called on this Builder."); |
1123 | - } |
1124 | - if (result.option_ != java.util.Collections.EMPTY_LIST) { |
1125 | - result.option_ = |
1126 | - java.util.Collections.unmodifiableList(result.option_); |
1127 | - } |
1128 | - org.drizzle.messages.TableMessage.Table.StorageEngine returnMe = result; |
1129 | - result = null; |
1130 | - return returnMe; |
1131 | - } |
1132 | - |
1133 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
1134 | - if (other instanceof org.drizzle.messages.TableMessage.Table.StorageEngine) { |
1135 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.StorageEngine)other); |
1136 | - } else { |
1137 | - super.mergeFrom(other); |
1138 | - return this; |
1139 | - } |
1140 | - } |
1141 | - |
1142 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.StorageEngine other) { |
1143 | - if (other == org.drizzle.messages.TableMessage.Table.StorageEngine.getDefaultInstance()) return this; |
1144 | - if (other.hasName()) { |
1145 | - setName(other.getName()); |
1146 | - } |
1147 | - if (!other.option_.isEmpty()) { |
1148 | - if (result.option_.isEmpty()) { |
1149 | - result.option_ = new java.util.ArrayList<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption>(); |
1150 | - } |
1151 | - result.option_.addAll(other.option_); |
1152 | - } |
1153 | - this.mergeUnknownFields(other.getUnknownFields()); |
1154 | - return this; |
1155 | - } |
1156 | - |
1157 | - public Builder mergeFrom( |
1158 | - com.google.protobuf.CodedInputStream input, |
1159 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1160 | - throws java.io.IOException { |
1161 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
1162 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
1163 | - this.getUnknownFields()); |
1164 | - while (true) { |
1165 | - int tag = input.readTag(); |
1166 | - switch (tag) { |
1167 | - case 0: |
1168 | - this.setUnknownFields(unknownFields.build()); |
1169 | - return this; |
1170 | - default: { |
1171 | - if (!parseUnknownField(input, unknownFields, |
1172 | - extensionRegistry, tag)) { |
1173 | - this.setUnknownFields(unknownFields.build()); |
1174 | - return this; |
1175 | - } |
1176 | - break; |
1177 | - } |
1178 | - case 10: { |
1179 | - setName(input.readString()); |
1180 | - break; |
1181 | - } |
1182 | - case 18: { |
1183 | - org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.Builder subBuilder = org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.newBuilder(); |
1184 | - input.readMessage(subBuilder, extensionRegistry); |
1185 | - addOption(subBuilder.buildPartial()); |
1186 | - break; |
1187 | - } |
1188 | - } |
1189 | - } |
1190 | - } |
1191 | - |
1192 | - |
1193 | - // required string name = 1; |
1194 | - public boolean hasName() { |
1195 | - return result.hasName(); |
1196 | - } |
1197 | - public java.lang.String getName() { |
1198 | - return result.getName(); |
1199 | - } |
1200 | - public Builder setName(java.lang.String value) { |
1201 | - if (value == null) { |
1202 | - throw new NullPointerException(); |
1203 | - } |
1204 | - result.hasName = true; |
1205 | - result.name_ = value; |
1206 | - return this; |
1207 | - } |
1208 | - public Builder clearName() { |
1209 | - result.hasName = false; |
1210 | - result.name_ = getDefaultInstance().getName(); |
1211 | - return this; |
1212 | - } |
1213 | - |
1214 | - // repeated .drizzled.message.Table.StorageEngine.EngineOption option = 2; |
1215 | - public java.util.List<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption> getOptionList() { |
1216 | - return java.util.Collections.unmodifiableList(result.option_); |
1217 | - } |
1218 | - public int getOptionCount() { |
1219 | - return result.getOptionCount(); |
1220 | - } |
1221 | - public org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption getOption(int index) { |
1222 | - return result.getOption(index); |
1223 | - } |
1224 | - public Builder setOption(int index, org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption value) { |
1225 | - if (value == null) { |
1226 | - throw new NullPointerException(); |
1227 | - } |
1228 | - result.option_.set(index, value); |
1229 | - return this; |
1230 | - } |
1231 | - public Builder setOption(int index, org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.Builder builderForValue) { |
1232 | - result.option_.set(index, builderForValue.build()); |
1233 | - return this; |
1234 | - } |
1235 | - public Builder addOption(org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption value) { |
1236 | - if (value == null) { |
1237 | - throw new NullPointerException(); |
1238 | - } |
1239 | - if (result.option_.isEmpty()) { |
1240 | - result.option_ = new java.util.ArrayList<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption>(); |
1241 | - } |
1242 | - result.option_.add(value); |
1243 | - return this; |
1244 | - } |
1245 | - public Builder addOption(org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption.Builder builderForValue) { |
1246 | - if (result.option_.isEmpty()) { |
1247 | - result.option_ = new java.util.ArrayList<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption>(); |
1248 | - } |
1249 | - result.option_.add(builderForValue.build()); |
1250 | - return this; |
1251 | - } |
1252 | - public Builder addAllOption( |
1253 | - java.lang.Iterable<? extends org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption> values) { |
1254 | - if (result.option_.isEmpty()) { |
1255 | - result.option_ = new java.util.ArrayList<org.drizzle.messages.TableMessage.Table.StorageEngine.EngineOption>(); |
1256 | - } |
1257 | - super.addAll(values, result.option_); |
1258 | - return this; |
1259 | - } |
1260 | - public Builder clearOption() { |
1261 | - result.option_ = java.util.Collections.emptyList(); |
1262 | - return this; |
1263 | - } |
1264 | - } |
1265 | - |
1266 | - static { |
1267 | - org.drizzle.messages.TableMessage.getDescriptor(); |
1268 | - } |
1269 | - |
1270 | - static { |
1271 | - org.drizzle.messages.TableMessage.internalForceInit(); |
1272 | - } |
1273 | - } |
1274 | - |
1275 | - public static final class TableOptions extends |
1276 | - com.google.protobuf.GeneratedMessage { |
1277 | - // Use TableOptions.newBuilder() to construct. |
1278 | - private TableOptions() {} |
1279 | - |
1280 | - private static final TableOptions defaultInstance = new TableOptions(); |
1281 | - public static TableOptions getDefaultInstance() { |
1282 | - return defaultInstance; |
1283 | - } |
1284 | - |
1285 | - public TableOptions getDefaultInstanceForType() { |
1286 | - return defaultInstance; |
1287 | - } |
1288 | - |
1289 | - public static final com.google.protobuf.Descriptors.Descriptor |
1290 | - getDescriptor() { |
1291 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_TableOptions_descriptor; |
1292 | - } |
1293 | - |
1294 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
1295 | - internalGetFieldAccessorTable() { |
1296 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_TableOptions_fieldAccessorTable; |
1297 | - } |
1298 | - |
1299 | - public enum RowType |
1300 | - implements com.google.protobuf.ProtocolMessageEnum { |
1301 | - ROW_TYPE_DEFAULT(0, 0), |
1302 | - ROW_TYPE_FIXED(1, 1), |
1303 | - ROW_TYPE_DYNAMIC(2, 2), |
1304 | - ROW_TYPE_COMPRESSED(3, 3), |
1305 | - ROW_TYPE_REDUNDANT(4, 4), |
1306 | - ROW_TYPE_COMPACT(5, 5), |
1307 | - ROW_TYPE_PAGE(6, 6), |
1308 | - ; |
1309 | - |
1310 | - |
1311 | - public final int getNumber() { return value; } |
1312 | - |
1313 | - public static RowType valueOf(int value) { |
1314 | - switch (value) { |
1315 | - case 0: return ROW_TYPE_DEFAULT; |
1316 | - case 1: return ROW_TYPE_FIXED; |
1317 | - case 2: return ROW_TYPE_DYNAMIC; |
1318 | - case 3: return ROW_TYPE_COMPRESSED; |
1319 | - case 4: return ROW_TYPE_REDUNDANT; |
1320 | - case 5: return ROW_TYPE_COMPACT; |
1321 | - case 6: return ROW_TYPE_PAGE; |
1322 | - default: return null; |
1323 | - } |
1324 | - } |
1325 | - |
1326 | - public static com.google.protobuf.Internal.EnumLiteMap<RowType> |
1327 | - internalGetValueMap() { |
1328 | - return internalValueMap; |
1329 | - } |
1330 | - private static com.google.protobuf.Internal.EnumLiteMap<RowType> |
1331 | - internalValueMap = |
1332 | - new com.google.protobuf.Internal.EnumLiteMap<RowType>() { |
1333 | - public RowType findValueByNumber(int number) { |
1334 | - return RowType.valueOf(number) |
1335 | - ; } |
1336 | - }; |
1337 | - |
1338 | - public final com.google.protobuf.Descriptors.EnumValueDescriptor |
1339 | - getValueDescriptor() { |
1340 | - return getDescriptor().getValues().get(index); |
1341 | - } |
1342 | - public final com.google.protobuf.Descriptors.EnumDescriptor |
1343 | - getDescriptorForType() { |
1344 | - return getDescriptor(); |
1345 | - } |
1346 | - public static final com.google.protobuf.Descriptors.EnumDescriptor |
1347 | - getDescriptor() { |
1348 | - return org.drizzle.messages.TableMessage.Table.TableOptions.getDescriptor().getEnumTypes().get(0); |
1349 | - } |
1350 | - |
1351 | - private static final RowType[] VALUES = { |
1352 | - ROW_TYPE_DEFAULT, ROW_TYPE_FIXED, ROW_TYPE_DYNAMIC, ROW_TYPE_COMPRESSED, ROW_TYPE_REDUNDANT, ROW_TYPE_COMPACT, ROW_TYPE_PAGE, |
1353 | - }; |
1354 | - public static RowType valueOf( |
1355 | - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { |
1356 | - if (desc.getType() != getDescriptor()) { |
1357 | - throw new java.lang.IllegalArgumentException( |
1358 | - "EnumValueDescriptor is not for this type."); |
1359 | - } |
1360 | - return VALUES[desc.getIndex()]; |
1361 | - } |
1362 | - private final int index; |
1363 | - private final int value; |
1364 | - private RowType(int index, int value) { |
1365 | - this.index = index; |
1366 | - this.value = value; |
1367 | - } |
1368 | - |
1369 | - static { |
1370 | - org.drizzle.messages.TableMessage.getDescriptor(); |
1371 | - } |
1372 | - } |
1373 | - |
1374 | - // optional uint64 auto_increment = 1; |
1375 | - public static final int AUTO_INCREMENT_FIELD_NUMBER = 1; |
1376 | - private boolean hasAutoIncrement; |
1377 | - private long autoIncrement_ = 0L; |
1378 | - public boolean hasAutoIncrement() { return hasAutoIncrement; } |
1379 | - public long getAutoIncrement() { return autoIncrement_; } |
1380 | - |
1381 | - // optional string collation = 2; |
1382 | - public static final int COLLATION_FIELD_NUMBER = 2; |
1383 | - private boolean hasCollation; |
1384 | - private java.lang.String collation_ = ""; |
1385 | - public boolean hasCollation() { return hasCollation; } |
1386 | - public java.lang.String getCollation() { return collation_; } |
1387 | - |
1388 | - // optional uint32 collation_id = 3; |
1389 | - public static final int COLLATION_ID_FIELD_NUMBER = 3; |
1390 | - private boolean hasCollationId; |
1391 | - private int collationId_ = 0; |
1392 | - public boolean hasCollationId() { return hasCollationId; } |
1393 | - public int getCollationId() { return collationId_; } |
1394 | - |
1395 | - // optional string data_file_name = 5; |
1396 | - public static final int DATA_FILE_NAME_FIELD_NUMBER = 5; |
1397 | - private boolean hasDataFileName; |
1398 | - private java.lang.String dataFileName_ = ""; |
1399 | - public boolean hasDataFileName() { return hasDataFileName; } |
1400 | - public java.lang.String getDataFileName() { return dataFileName_; } |
1401 | - |
1402 | - // optional string index_file_name = 6; |
1403 | - public static final int INDEX_FILE_NAME_FIELD_NUMBER = 6; |
1404 | - private boolean hasIndexFileName; |
1405 | - private java.lang.String indexFileName_ = ""; |
1406 | - public boolean hasIndexFileName() { return hasIndexFileName; } |
1407 | - public java.lang.String getIndexFileName() { return indexFileName_; } |
1408 | - |
1409 | - // optional uint64 max_rows = 7; |
1410 | - public static final int MAX_ROWS_FIELD_NUMBER = 7; |
1411 | - private boolean hasMaxRows; |
1412 | - private long maxRows_ = 0L; |
1413 | - public boolean hasMaxRows() { return hasMaxRows; } |
1414 | - public long getMaxRows() { return maxRows_; } |
1415 | - |
1416 | - // optional uint64 min_rows = 8; |
1417 | - public static final int MIN_ROWS_FIELD_NUMBER = 8; |
1418 | - private boolean hasMinRows; |
1419 | - private long minRows_ = 0L; |
1420 | - public boolean hasMinRows() { return hasMinRows; } |
1421 | - public long getMinRows() { return minRows_; } |
1422 | - |
1423 | - // optional uint64 auto_increment_value = 9; |
1424 | - public static final int AUTO_INCREMENT_VALUE_FIELD_NUMBER = 9; |
1425 | - private boolean hasAutoIncrementValue; |
1426 | - private long autoIncrementValue_ = 0L; |
1427 | - public boolean hasAutoIncrementValue() { return hasAutoIncrementValue; } |
1428 | - public long getAutoIncrementValue() { return autoIncrementValue_; } |
1429 | - |
1430 | - // optional uint32 avg_row_length = 11; |
1431 | - public static final int AVG_ROW_LENGTH_FIELD_NUMBER = 11; |
1432 | - private boolean hasAvgRowLength; |
1433 | - private int avgRowLength_ = 0; |
1434 | - public boolean hasAvgRowLength() { return hasAvgRowLength; } |
1435 | - public int getAvgRowLength() { return avgRowLength_; } |
1436 | - |
1437 | - // optional uint32 key_block_size = 12; |
1438 | - public static final int KEY_BLOCK_SIZE_FIELD_NUMBER = 12; |
1439 | - private boolean hasKeyBlockSize; |
1440 | - private int keyBlockSize_ = 0; |
1441 | - public boolean hasKeyBlockSize() { return hasKeyBlockSize; } |
1442 | - public int getKeyBlockSize() { return keyBlockSize_; } |
1443 | - |
1444 | - // optional uint32 block_size = 13; |
1445 | - public static final int BLOCK_SIZE_FIELD_NUMBER = 13; |
1446 | - private boolean hasBlockSize; |
1447 | - private int blockSize_ = 0; |
1448 | - public boolean hasBlockSize() { return hasBlockSize; } |
1449 | - public int getBlockSize() { return blockSize_; } |
1450 | - |
1451 | - // optional string comment = 14; |
1452 | - public static final int COMMENT_FIELD_NUMBER = 14; |
1453 | - private boolean hasComment; |
1454 | - private java.lang.String comment_ = ""; |
1455 | - public boolean hasComment() { return hasComment; } |
1456 | - public java.lang.String getComment() { return comment_; } |
1457 | - |
1458 | - // optional bool pack_keys = 15; |
1459 | - public static final int PACK_KEYS_FIELD_NUMBER = 15; |
1460 | - private boolean hasPackKeys; |
1461 | - private boolean packKeys_ = false; |
1462 | - public boolean hasPackKeys() { return hasPackKeys; } |
1463 | - public boolean getPackKeys() { return packKeys_; } |
1464 | - |
1465 | - // optional bool pack_record = 16; |
1466 | - public static final int PACK_RECORD_FIELD_NUMBER = 16; |
1467 | - private boolean hasPackRecord; |
1468 | - private boolean packRecord_ = false; |
1469 | - public boolean hasPackRecord() { return hasPackRecord; } |
1470 | - public boolean getPackRecord() { return packRecord_; } |
1471 | - |
1472 | - // optional bool checksum = 17; |
1473 | - public static final int CHECKSUM_FIELD_NUMBER = 17; |
1474 | - private boolean hasChecksum; |
1475 | - private boolean checksum_ = false; |
1476 | - public boolean hasChecksum() { return hasChecksum; } |
1477 | - public boolean getChecksum() { return checksum_; } |
1478 | - |
1479 | - // optional bool page_checksum = 18; |
1480 | - public static final int PAGE_CHECKSUM_FIELD_NUMBER = 18; |
1481 | - private boolean hasPageChecksum; |
1482 | - private boolean pageChecksum_ = false; |
1483 | - public boolean hasPageChecksum() { return hasPageChecksum; } |
1484 | - public boolean getPageChecksum() { return pageChecksum_; } |
1485 | - |
1486 | - // optional bool delay_key_write = 19; |
1487 | - public static final int DELAY_KEY_WRITE_FIELD_NUMBER = 19; |
1488 | - private boolean hasDelayKeyWrite; |
1489 | - private boolean delayKeyWrite_ = false; |
1490 | - public boolean hasDelayKeyWrite() { return hasDelayKeyWrite; } |
1491 | - public boolean getDelayKeyWrite() { return delayKeyWrite_; } |
1492 | - |
1493 | - // optional .drizzled.message.Table.TableOptions.RowType row_type = 20; |
1494 | - public static final int ROW_TYPE_FIELD_NUMBER = 20; |
1495 | - private boolean hasRowType; |
1496 | - private org.drizzle.messages.TableMessage.Table.TableOptions.RowType rowType_ = org.drizzle.messages.TableMessage.Table.TableOptions.RowType.ROW_TYPE_DEFAULT; |
1497 | - public boolean hasRowType() { return hasRowType; } |
1498 | - public org.drizzle.messages.TableMessage.Table.TableOptions.RowType getRowType() { return rowType_; } |
1499 | - |
1500 | - public final boolean isInitialized() { |
1501 | - return true; |
1502 | - } |
1503 | - |
1504 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
1505 | - throws java.io.IOException { |
1506 | - if (hasAutoIncrement()) { |
1507 | - output.writeUInt64(1, getAutoIncrement()); |
1508 | - } |
1509 | - if (hasCollation()) { |
1510 | - output.writeString(2, getCollation()); |
1511 | - } |
1512 | - if (hasCollationId()) { |
1513 | - output.writeUInt32(3, getCollationId()); |
1514 | - } |
1515 | - if (hasDataFileName()) { |
1516 | - output.writeString(5, getDataFileName()); |
1517 | - } |
1518 | - if (hasIndexFileName()) { |
1519 | - output.writeString(6, getIndexFileName()); |
1520 | - } |
1521 | - if (hasMaxRows()) { |
1522 | - output.writeUInt64(7, getMaxRows()); |
1523 | - } |
1524 | - if (hasMinRows()) { |
1525 | - output.writeUInt64(8, getMinRows()); |
1526 | - } |
1527 | - if (hasAutoIncrementValue()) { |
1528 | - output.writeUInt64(9, getAutoIncrementValue()); |
1529 | - } |
1530 | - if (hasAvgRowLength()) { |
1531 | - output.writeUInt32(11, getAvgRowLength()); |
1532 | - } |
1533 | - if (hasKeyBlockSize()) { |
1534 | - output.writeUInt32(12, getKeyBlockSize()); |
1535 | - } |
1536 | - if (hasBlockSize()) { |
1537 | - output.writeUInt32(13, getBlockSize()); |
1538 | - } |
1539 | - if (hasComment()) { |
1540 | - output.writeString(14, getComment()); |
1541 | - } |
1542 | - if (hasPackKeys()) { |
1543 | - output.writeBool(15, getPackKeys()); |
1544 | - } |
1545 | - if (hasPackRecord()) { |
1546 | - output.writeBool(16, getPackRecord()); |
1547 | - } |
1548 | - if (hasChecksum()) { |
1549 | - output.writeBool(17, getChecksum()); |
1550 | - } |
1551 | - if (hasPageChecksum()) { |
1552 | - output.writeBool(18, getPageChecksum()); |
1553 | - } |
1554 | - if (hasDelayKeyWrite()) { |
1555 | - output.writeBool(19, getDelayKeyWrite()); |
1556 | - } |
1557 | - if (hasRowType()) { |
1558 | - output.writeEnum(20, getRowType().getNumber()); |
1559 | - } |
1560 | - getUnknownFields().writeTo(output); |
1561 | - } |
1562 | - |
1563 | - private int memoizedSerializedSize = -1; |
1564 | - public int getSerializedSize() { |
1565 | - int size = memoizedSerializedSize; |
1566 | - if (size != -1) return size; |
1567 | - |
1568 | - size = 0; |
1569 | - if (hasAutoIncrement()) { |
1570 | - size += com.google.protobuf.CodedOutputStream |
1571 | - .computeUInt64Size(1, getAutoIncrement()); |
1572 | - } |
1573 | - if (hasCollation()) { |
1574 | - size += com.google.protobuf.CodedOutputStream |
1575 | - .computeStringSize(2, getCollation()); |
1576 | - } |
1577 | - if (hasCollationId()) { |
1578 | - size += com.google.protobuf.CodedOutputStream |
1579 | - .computeUInt32Size(3, getCollationId()); |
1580 | - } |
1581 | - if (hasDataFileName()) { |
1582 | - size += com.google.protobuf.CodedOutputStream |
1583 | - .computeStringSize(5, getDataFileName()); |
1584 | - } |
1585 | - if (hasIndexFileName()) { |
1586 | - size += com.google.protobuf.CodedOutputStream |
1587 | - .computeStringSize(6, getIndexFileName()); |
1588 | - } |
1589 | - if (hasMaxRows()) { |
1590 | - size += com.google.protobuf.CodedOutputStream |
1591 | - .computeUInt64Size(7, getMaxRows()); |
1592 | - } |
1593 | - if (hasMinRows()) { |
1594 | - size += com.google.protobuf.CodedOutputStream |
1595 | - .computeUInt64Size(8, getMinRows()); |
1596 | - } |
1597 | - if (hasAutoIncrementValue()) { |
1598 | - size += com.google.protobuf.CodedOutputStream |
1599 | - .computeUInt64Size(9, getAutoIncrementValue()); |
1600 | - } |
1601 | - if (hasAvgRowLength()) { |
1602 | - size += com.google.protobuf.CodedOutputStream |
1603 | - .computeUInt32Size(11, getAvgRowLength()); |
1604 | - } |
1605 | - if (hasKeyBlockSize()) { |
1606 | - size += com.google.protobuf.CodedOutputStream |
1607 | - .computeUInt32Size(12, getKeyBlockSize()); |
1608 | - } |
1609 | - if (hasBlockSize()) { |
1610 | - size += com.google.protobuf.CodedOutputStream |
1611 | - .computeUInt32Size(13, getBlockSize()); |
1612 | - } |
1613 | - if (hasComment()) { |
1614 | - size += com.google.protobuf.CodedOutputStream |
1615 | - .computeStringSize(14, getComment()); |
1616 | - } |
1617 | - if (hasPackKeys()) { |
1618 | - size += com.google.protobuf.CodedOutputStream |
1619 | - .computeBoolSize(15, getPackKeys()); |
1620 | - } |
1621 | - if (hasPackRecord()) { |
1622 | - size += com.google.protobuf.CodedOutputStream |
1623 | - .computeBoolSize(16, getPackRecord()); |
1624 | - } |
1625 | - if (hasChecksum()) { |
1626 | - size += com.google.protobuf.CodedOutputStream |
1627 | - .computeBoolSize(17, getChecksum()); |
1628 | - } |
1629 | - if (hasPageChecksum()) { |
1630 | - size += com.google.protobuf.CodedOutputStream |
1631 | - .computeBoolSize(18, getPageChecksum()); |
1632 | - } |
1633 | - if (hasDelayKeyWrite()) { |
1634 | - size += com.google.protobuf.CodedOutputStream |
1635 | - .computeBoolSize(19, getDelayKeyWrite()); |
1636 | - } |
1637 | - if (hasRowType()) { |
1638 | - size += com.google.protobuf.CodedOutputStream |
1639 | - .computeEnumSize(20, getRowType().getNumber()); |
1640 | - } |
1641 | - size += getUnknownFields().getSerializedSize(); |
1642 | - memoizedSerializedSize = size; |
1643 | - return size; |
1644 | - } |
1645 | - |
1646 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1647 | - com.google.protobuf.ByteString data) |
1648 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1649 | - return newBuilder().mergeFrom(data).buildParsed(); |
1650 | - } |
1651 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1652 | - com.google.protobuf.ByteString data, |
1653 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1654 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1655 | - return newBuilder().mergeFrom(data, extensionRegistry) |
1656 | - .buildParsed(); |
1657 | - } |
1658 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom(byte[] data) |
1659 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1660 | - return newBuilder().mergeFrom(data).buildParsed(); |
1661 | - } |
1662 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1663 | - byte[] data, |
1664 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1665 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1666 | - return newBuilder().mergeFrom(data, extensionRegistry) |
1667 | - .buildParsed(); |
1668 | - } |
1669 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom(java.io.InputStream input) |
1670 | - throws java.io.IOException { |
1671 | - return newBuilder().mergeFrom(input).buildParsed(); |
1672 | - } |
1673 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1674 | - java.io.InputStream input, |
1675 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1676 | - throws java.io.IOException { |
1677 | - return newBuilder().mergeFrom(input, extensionRegistry) |
1678 | - .buildParsed(); |
1679 | - } |
1680 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseDelimitedFrom(java.io.InputStream input) |
1681 | - throws java.io.IOException { |
1682 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
1683 | - } |
1684 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseDelimitedFrom( |
1685 | - java.io.InputStream input, |
1686 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1687 | - throws java.io.IOException { |
1688 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
1689 | - .buildParsed(); |
1690 | - } |
1691 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1692 | - com.google.protobuf.CodedInputStream input) |
1693 | - throws java.io.IOException { |
1694 | - return newBuilder().mergeFrom(input).buildParsed(); |
1695 | - } |
1696 | - public static org.drizzle.messages.TableMessage.Table.TableOptions parseFrom( |
1697 | - com.google.protobuf.CodedInputStream input, |
1698 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1699 | - throws java.io.IOException { |
1700 | - return newBuilder().mergeFrom(input, extensionRegistry) |
1701 | - .buildParsed(); |
1702 | - } |
1703 | - |
1704 | - public static Builder newBuilder() { return Builder.create(); } |
1705 | - public Builder newBuilderForType() { return newBuilder(); } |
1706 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.TableOptions prototype) { |
1707 | - return newBuilder().mergeFrom(prototype); |
1708 | - } |
1709 | - public Builder toBuilder() { return newBuilder(this); } |
1710 | - |
1711 | - public static final class Builder extends |
1712 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
1713 | - private org.drizzle.messages.TableMessage.Table.TableOptions result; |
1714 | - |
1715 | - // Construct using org.drizzle.messages.TableMessage.Table.TableOptions.newBuilder() |
1716 | - private Builder() {} |
1717 | - |
1718 | - private static Builder create() { |
1719 | - Builder builder = new Builder(); |
1720 | - builder.result = new org.drizzle.messages.TableMessage.Table.TableOptions(); |
1721 | - return builder; |
1722 | - } |
1723 | - |
1724 | - protected org.drizzle.messages.TableMessage.Table.TableOptions internalGetResult() { |
1725 | - return result; |
1726 | - } |
1727 | - |
1728 | - public Builder clear() { |
1729 | - if (result == null) { |
1730 | - throw new IllegalStateException( |
1731 | - "Cannot call clear() after build()."); |
1732 | - } |
1733 | - result = new org.drizzle.messages.TableMessage.Table.TableOptions(); |
1734 | - return this; |
1735 | - } |
1736 | - |
1737 | - public Builder clone() { |
1738 | - return create().mergeFrom(result); |
1739 | - } |
1740 | - |
1741 | - public com.google.protobuf.Descriptors.Descriptor |
1742 | - getDescriptorForType() { |
1743 | - return org.drizzle.messages.TableMessage.Table.TableOptions.getDescriptor(); |
1744 | - } |
1745 | - |
1746 | - public org.drizzle.messages.TableMessage.Table.TableOptions getDefaultInstanceForType() { |
1747 | - return org.drizzle.messages.TableMessage.Table.TableOptions.getDefaultInstance(); |
1748 | - } |
1749 | - |
1750 | - public boolean isInitialized() { |
1751 | - return result.isInitialized(); |
1752 | - } |
1753 | - public org.drizzle.messages.TableMessage.Table.TableOptions build() { |
1754 | - if (result != null && !isInitialized()) { |
1755 | - throw newUninitializedMessageException(result); |
1756 | - } |
1757 | - return buildPartial(); |
1758 | - } |
1759 | - |
1760 | - private org.drizzle.messages.TableMessage.Table.TableOptions buildParsed() |
1761 | - throws com.google.protobuf.InvalidProtocolBufferException { |
1762 | - if (!isInitialized()) { |
1763 | - throw newUninitializedMessageException( |
1764 | - result).asInvalidProtocolBufferException(); |
1765 | - } |
1766 | - return buildPartial(); |
1767 | - } |
1768 | - |
1769 | - public org.drizzle.messages.TableMessage.Table.TableOptions buildPartial() { |
1770 | - if (result == null) { |
1771 | - throw new IllegalStateException( |
1772 | - "build() has already been called on this Builder."); |
1773 | - } |
1774 | - org.drizzle.messages.TableMessage.Table.TableOptions returnMe = result; |
1775 | - result = null; |
1776 | - return returnMe; |
1777 | - } |
1778 | - |
1779 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
1780 | - if (other instanceof org.drizzle.messages.TableMessage.Table.TableOptions) { |
1781 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.TableOptions)other); |
1782 | - } else { |
1783 | - super.mergeFrom(other); |
1784 | - return this; |
1785 | - } |
1786 | - } |
1787 | - |
1788 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.TableOptions other) { |
1789 | - if (other == org.drizzle.messages.TableMessage.Table.TableOptions.getDefaultInstance()) return this; |
1790 | - if (other.hasAutoIncrement()) { |
1791 | - setAutoIncrement(other.getAutoIncrement()); |
1792 | - } |
1793 | - if (other.hasCollation()) { |
1794 | - setCollation(other.getCollation()); |
1795 | - } |
1796 | - if (other.hasCollationId()) { |
1797 | - setCollationId(other.getCollationId()); |
1798 | - } |
1799 | - if (other.hasDataFileName()) { |
1800 | - setDataFileName(other.getDataFileName()); |
1801 | - } |
1802 | - if (other.hasIndexFileName()) { |
1803 | - setIndexFileName(other.getIndexFileName()); |
1804 | - } |
1805 | - if (other.hasMaxRows()) { |
1806 | - setMaxRows(other.getMaxRows()); |
1807 | - } |
1808 | - if (other.hasMinRows()) { |
1809 | - setMinRows(other.getMinRows()); |
1810 | - } |
1811 | - if (other.hasAutoIncrementValue()) { |
1812 | - setAutoIncrementValue(other.getAutoIncrementValue()); |
1813 | - } |
1814 | - if (other.hasAvgRowLength()) { |
1815 | - setAvgRowLength(other.getAvgRowLength()); |
1816 | - } |
1817 | - if (other.hasKeyBlockSize()) { |
1818 | - setKeyBlockSize(other.getKeyBlockSize()); |
1819 | - } |
1820 | - if (other.hasBlockSize()) { |
1821 | - setBlockSize(other.getBlockSize()); |
1822 | - } |
1823 | - if (other.hasComment()) { |
1824 | - setComment(other.getComment()); |
1825 | - } |
1826 | - if (other.hasPackKeys()) { |
1827 | - setPackKeys(other.getPackKeys()); |
1828 | - } |
1829 | - if (other.hasPackRecord()) { |
1830 | - setPackRecord(other.getPackRecord()); |
1831 | - } |
1832 | - if (other.hasChecksum()) { |
1833 | - setChecksum(other.getChecksum()); |
1834 | - } |
1835 | - if (other.hasPageChecksum()) { |
1836 | - setPageChecksum(other.getPageChecksum()); |
1837 | - } |
1838 | - if (other.hasDelayKeyWrite()) { |
1839 | - setDelayKeyWrite(other.getDelayKeyWrite()); |
1840 | - } |
1841 | - if (other.hasRowType()) { |
1842 | - setRowType(other.getRowType()); |
1843 | - } |
1844 | - this.mergeUnknownFields(other.getUnknownFields()); |
1845 | - return this; |
1846 | - } |
1847 | - |
1848 | - public Builder mergeFrom( |
1849 | - com.google.protobuf.CodedInputStream input, |
1850 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
1851 | - throws java.io.IOException { |
1852 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
1853 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
1854 | - this.getUnknownFields()); |
1855 | - while (true) { |
1856 | - int tag = input.readTag(); |
1857 | - switch (tag) { |
1858 | - case 0: |
1859 | - this.setUnknownFields(unknownFields.build()); |
1860 | - return this; |
1861 | - default: { |
1862 | - if (!parseUnknownField(input, unknownFields, |
1863 | - extensionRegistry, tag)) { |
1864 | - this.setUnknownFields(unknownFields.build()); |
1865 | - return this; |
1866 | - } |
1867 | - break; |
1868 | - } |
1869 | - case 8: { |
1870 | - setAutoIncrement(input.readUInt64()); |
1871 | - break; |
1872 | - } |
1873 | - case 18: { |
1874 | - setCollation(input.readString()); |
1875 | - break; |
1876 | - } |
1877 | - case 24: { |
1878 | - setCollationId(input.readUInt32()); |
1879 | - break; |
1880 | - } |
1881 | - case 42: { |
1882 | - setDataFileName(input.readString()); |
1883 | - break; |
1884 | - } |
1885 | - case 50: { |
1886 | - setIndexFileName(input.readString()); |
1887 | - break; |
1888 | - } |
1889 | - case 56: { |
1890 | - setMaxRows(input.readUInt64()); |
1891 | - break; |
1892 | - } |
1893 | - case 64: { |
1894 | - setMinRows(input.readUInt64()); |
1895 | - break; |
1896 | - } |
1897 | - case 72: { |
1898 | - setAutoIncrementValue(input.readUInt64()); |
1899 | - break; |
1900 | - } |
1901 | - case 88: { |
1902 | - setAvgRowLength(input.readUInt32()); |
1903 | - break; |
1904 | - } |
1905 | - case 96: { |
1906 | - setKeyBlockSize(input.readUInt32()); |
1907 | - break; |
1908 | - } |
1909 | - case 104: { |
1910 | - setBlockSize(input.readUInt32()); |
1911 | - break; |
1912 | - } |
1913 | - case 114: { |
1914 | - setComment(input.readString()); |
1915 | - break; |
1916 | - } |
1917 | - case 120: { |
1918 | - setPackKeys(input.readBool()); |
1919 | - break; |
1920 | - } |
1921 | - case 128: { |
1922 | - setPackRecord(input.readBool()); |
1923 | - break; |
1924 | - } |
1925 | - case 136: { |
1926 | - setChecksum(input.readBool()); |
1927 | - break; |
1928 | - } |
1929 | - case 144: { |
1930 | - setPageChecksum(input.readBool()); |
1931 | - break; |
1932 | - } |
1933 | - case 152: { |
1934 | - setDelayKeyWrite(input.readBool()); |
1935 | - break; |
1936 | - } |
1937 | - case 160: { |
1938 | - int rawValue = input.readEnum(); |
1939 | - org.drizzle.messages.TableMessage.Table.TableOptions.RowType value = org.drizzle.messages.TableMessage.Table.TableOptions.RowType.valueOf(rawValue); |
1940 | - if (value == null) { |
1941 | - unknownFields.mergeVarintField(20, rawValue); |
1942 | - } else { |
1943 | - setRowType(value); |
1944 | - } |
1945 | - break; |
1946 | - } |
1947 | - } |
1948 | - } |
1949 | - } |
1950 | - |
1951 | - |
1952 | - // optional uint64 auto_increment = 1; |
1953 | - public boolean hasAutoIncrement() { |
1954 | - return result.hasAutoIncrement(); |
1955 | - } |
1956 | - public long getAutoIncrement() { |
1957 | - return result.getAutoIncrement(); |
1958 | - } |
1959 | - public Builder setAutoIncrement(long value) { |
1960 | - result.hasAutoIncrement = true; |
1961 | - result.autoIncrement_ = value; |
1962 | - return this; |
1963 | - } |
1964 | - public Builder clearAutoIncrement() { |
1965 | - result.hasAutoIncrement = false; |
1966 | - result.autoIncrement_ = 0L; |
1967 | - return this; |
1968 | - } |
1969 | - |
1970 | - // optional string collation = 2; |
1971 | - public boolean hasCollation() { |
1972 | - return result.hasCollation(); |
1973 | - } |
1974 | - public java.lang.String getCollation() { |
1975 | - return result.getCollation(); |
1976 | - } |
1977 | - public Builder setCollation(java.lang.String value) { |
1978 | - if (value == null) { |
1979 | - throw new NullPointerException(); |
1980 | - } |
1981 | - result.hasCollation = true; |
1982 | - result.collation_ = value; |
1983 | - return this; |
1984 | - } |
1985 | - public Builder clearCollation() { |
1986 | - result.hasCollation = false; |
1987 | - result.collation_ = getDefaultInstance().getCollation(); |
1988 | - return this; |
1989 | - } |
1990 | - |
1991 | - // optional uint32 collation_id = 3; |
1992 | - public boolean hasCollationId() { |
1993 | - return result.hasCollationId(); |
1994 | - } |
1995 | - public int getCollationId() { |
1996 | - return result.getCollationId(); |
1997 | - } |
1998 | - public Builder setCollationId(int value) { |
1999 | - result.hasCollationId = true; |
2000 | - result.collationId_ = value; |
2001 | - return this; |
2002 | - } |
2003 | - public Builder clearCollationId() { |
2004 | - result.hasCollationId = false; |
2005 | - result.collationId_ = 0; |
2006 | - return this; |
2007 | - } |
2008 | - |
2009 | - // optional string data_file_name = 5; |
2010 | - public boolean hasDataFileName() { |
2011 | - return result.hasDataFileName(); |
2012 | - } |
2013 | - public java.lang.String getDataFileName() { |
2014 | - return result.getDataFileName(); |
2015 | - } |
2016 | - public Builder setDataFileName(java.lang.String value) { |
2017 | - if (value == null) { |
2018 | - throw new NullPointerException(); |
2019 | - } |
2020 | - result.hasDataFileName = true; |
2021 | - result.dataFileName_ = value; |
2022 | - return this; |
2023 | - } |
2024 | - public Builder clearDataFileName() { |
2025 | - result.hasDataFileName = false; |
2026 | - result.dataFileName_ = getDefaultInstance().getDataFileName(); |
2027 | - return this; |
2028 | - } |
2029 | - |
2030 | - // optional string index_file_name = 6; |
2031 | - public boolean hasIndexFileName() { |
2032 | - return result.hasIndexFileName(); |
2033 | - } |
2034 | - public java.lang.String getIndexFileName() { |
2035 | - return result.getIndexFileName(); |
2036 | - } |
2037 | - public Builder setIndexFileName(java.lang.String value) { |
2038 | - if (value == null) { |
2039 | - throw new NullPointerException(); |
2040 | - } |
2041 | - result.hasIndexFileName = true; |
2042 | - result.indexFileName_ = value; |
2043 | - return this; |
2044 | - } |
2045 | - public Builder clearIndexFileName() { |
2046 | - result.hasIndexFileName = false; |
2047 | - result.indexFileName_ = getDefaultInstance().getIndexFileName(); |
2048 | - return this; |
2049 | - } |
2050 | - |
2051 | - // optional uint64 max_rows = 7; |
2052 | - public boolean hasMaxRows() { |
2053 | - return result.hasMaxRows(); |
2054 | - } |
2055 | - public long getMaxRows() { |
2056 | - return result.getMaxRows(); |
2057 | - } |
2058 | - public Builder setMaxRows(long value) { |
2059 | - result.hasMaxRows = true; |
2060 | - result.maxRows_ = value; |
2061 | - return this; |
2062 | - } |
2063 | - public Builder clearMaxRows() { |
2064 | - result.hasMaxRows = false; |
2065 | - result.maxRows_ = 0L; |
2066 | - return this; |
2067 | - } |
2068 | - |
2069 | - // optional uint64 min_rows = 8; |
2070 | - public boolean hasMinRows() { |
2071 | - return result.hasMinRows(); |
2072 | - } |
2073 | - public long getMinRows() { |
2074 | - return result.getMinRows(); |
2075 | - } |
2076 | - public Builder setMinRows(long value) { |
2077 | - result.hasMinRows = true; |
2078 | - result.minRows_ = value; |
2079 | - return this; |
2080 | - } |
2081 | - public Builder clearMinRows() { |
2082 | - result.hasMinRows = false; |
2083 | - result.minRows_ = 0L; |
2084 | - return this; |
2085 | - } |
2086 | - |
2087 | - // optional uint64 auto_increment_value = 9; |
2088 | - public boolean hasAutoIncrementValue() { |
2089 | - return result.hasAutoIncrementValue(); |
2090 | - } |
2091 | - public long getAutoIncrementValue() { |
2092 | - return result.getAutoIncrementValue(); |
2093 | - } |
2094 | - public Builder setAutoIncrementValue(long value) { |
2095 | - result.hasAutoIncrementValue = true; |
2096 | - result.autoIncrementValue_ = value; |
2097 | - return this; |
2098 | - } |
2099 | - public Builder clearAutoIncrementValue() { |
2100 | - result.hasAutoIncrementValue = false; |
2101 | - result.autoIncrementValue_ = 0L; |
2102 | - return this; |
2103 | - } |
2104 | - |
2105 | - // optional uint32 avg_row_length = 11; |
2106 | - public boolean hasAvgRowLength() { |
2107 | - return result.hasAvgRowLength(); |
2108 | - } |
2109 | - public int getAvgRowLength() { |
2110 | - return result.getAvgRowLength(); |
2111 | - } |
2112 | - public Builder setAvgRowLength(int value) { |
2113 | - result.hasAvgRowLength = true; |
2114 | - result.avgRowLength_ = value; |
2115 | - return this; |
2116 | - } |
2117 | - public Builder clearAvgRowLength() { |
2118 | - result.hasAvgRowLength = false; |
2119 | - result.avgRowLength_ = 0; |
2120 | - return this; |
2121 | - } |
2122 | - |
2123 | - // optional uint32 key_block_size = 12; |
2124 | - public boolean hasKeyBlockSize() { |
2125 | - return result.hasKeyBlockSize(); |
2126 | - } |
2127 | - public int getKeyBlockSize() { |
2128 | - return result.getKeyBlockSize(); |
2129 | - } |
2130 | - public Builder setKeyBlockSize(int value) { |
2131 | - result.hasKeyBlockSize = true; |
2132 | - result.keyBlockSize_ = value; |
2133 | - return this; |
2134 | - } |
2135 | - public Builder clearKeyBlockSize() { |
2136 | - result.hasKeyBlockSize = false; |
2137 | - result.keyBlockSize_ = 0; |
2138 | - return this; |
2139 | - } |
2140 | - |
2141 | - // optional uint32 block_size = 13; |
2142 | - public boolean hasBlockSize() { |
2143 | - return result.hasBlockSize(); |
2144 | - } |
2145 | - public int getBlockSize() { |
2146 | - return result.getBlockSize(); |
2147 | - } |
2148 | - public Builder setBlockSize(int value) { |
2149 | - result.hasBlockSize = true; |
2150 | - result.blockSize_ = value; |
2151 | - return this; |
2152 | - } |
2153 | - public Builder clearBlockSize() { |
2154 | - result.hasBlockSize = false; |
2155 | - result.blockSize_ = 0; |
2156 | - return this; |
2157 | - } |
2158 | - |
2159 | - // optional string comment = 14; |
2160 | - public boolean hasComment() { |
2161 | - return result.hasComment(); |
2162 | - } |
2163 | - public java.lang.String getComment() { |
2164 | - return result.getComment(); |
2165 | - } |
2166 | - public Builder setComment(java.lang.String value) { |
2167 | - if (value == null) { |
2168 | - throw new NullPointerException(); |
2169 | - } |
2170 | - result.hasComment = true; |
2171 | - result.comment_ = value; |
2172 | - return this; |
2173 | - } |
2174 | - public Builder clearComment() { |
2175 | - result.hasComment = false; |
2176 | - result.comment_ = getDefaultInstance().getComment(); |
2177 | - return this; |
2178 | - } |
2179 | - |
2180 | - // optional bool pack_keys = 15; |
2181 | - public boolean hasPackKeys() { |
2182 | - return result.hasPackKeys(); |
2183 | - } |
2184 | - public boolean getPackKeys() { |
2185 | - return result.getPackKeys(); |
2186 | - } |
2187 | - public Builder setPackKeys(boolean value) { |
2188 | - result.hasPackKeys = true; |
2189 | - result.packKeys_ = value; |
2190 | - return this; |
2191 | - } |
2192 | - public Builder clearPackKeys() { |
2193 | - result.hasPackKeys = false; |
2194 | - result.packKeys_ = false; |
2195 | - return this; |
2196 | - } |
2197 | - |
2198 | - // optional bool pack_record = 16; |
2199 | - public boolean hasPackRecord() { |
2200 | - return result.hasPackRecord(); |
2201 | - } |
2202 | - public boolean getPackRecord() { |
2203 | - return result.getPackRecord(); |
2204 | - } |
2205 | - public Builder setPackRecord(boolean value) { |
2206 | - result.hasPackRecord = true; |
2207 | - result.packRecord_ = value; |
2208 | - return this; |
2209 | - } |
2210 | - public Builder clearPackRecord() { |
2211 | - result.hasPackRecord = false; |
2212 | - result.packRecord_ = false; |
2213 | - return this; |
2214 | - } |
2215 | - |
2216 | - // optional bool checksum = 17; |
2217 | - public boolean hasChecksum() { |
2218 | - return result.hasChecksum(); |
2219 | - } |
2220 | - public boolean getChecksum() { |
2221 | - return result.getChecksum(); |
2222 | - } |
2223 | - public Builder setChecksum(boolean value) { |
2224 | - result.hasChecksum = true; |
2225 | - result.checksum_ = value; |
2226 | - return this; |
2227 | - } |
2228 | - public Builder clearChecksum() { |
2229 | - result.hasChecksum = false; |
2230 | - result.checksum_ = false; |
2231 | - return this; |
2232 | - } |
2233 | - |
2234 | - // optional bool page_checksum = 18; |
2235 | - public boolean hasPageChecksum() { |
2236 | - return result.hasPageChecksum(); |
2237 | - } |
2238 | - public boolean getPageChecksum() { |
2239 | - return result.getPageChecksum(); |
2240 | - } |
2241 | - public Builder setPageChecksum(boolean value) { |
2242 | - result.hasPageChecksum = true; |
2243 | - result.pageChecksum_ = value; |
2244 | - return this; |
2245 | - } |
2246 | - public Builder clearPageChecksum() { |
2247 | - result.hasPageChecksum = false; |
2248 | - result.pageChecksum_ = false; |
2249 | - return this; |
2250 | - } |
2251 | - |
2252 | - // optional bool delay_key_write = 19; |
2253 | - public boolean hasDelayKeyWrite() { |
2254 | - return result.hasDelayKeyWrite(); |
2255 | - } |
2256 | - public boolean getDelayKeyWrite() { |
2257 | - return result.getDelayKeyWrite(); |
2258 | - } |
2259 | - public Builder setDelayKeyWrite(boolean value) { |
2260 | - result.hasDelayKeyWrite = true; |
2261 | - result.delayKeyWrite_ = value; |
2262 | - return this; |
2263 | - } |
2264 | - public Builder clearDelayKeyWrite() { |
2265 | - result.hasDelayKeyWrite = false; |
2266 | - result.delayKeyWrite_ = false; |
2267 | - return this; |
2268 | - } |
2269 | - |
2270 | - // optional .drizzled.message.Table.TableOptions.RowType row_type = 20; |
2271 | - public boolean hasRowType() { |
2272 | - return result.hasRowType(); |
2273 | - } |
2274 | - public org.drizzle.messages.TableMessage.Table.TableOptions.RowType getRowType() { |
2275 | - return result.getRowType(); |
2276 | - } |
2277 | - public Builder setRowType(org.drizzle.messages.TableMessage.Table.TableOptions.RowType value) { |
2278 | - if (value == null) { |
2279 | - throw new NullPointerException(); |
2280 | - } |
2281 | - result.hasRowType = true; |
2282 | - result.rowType_ = value; |
2283 | - return this; |
2284 | - } |
2285 | - public Builder clearRowType() { |
2286 | - result.hasRowType = false; |
2287 | - result.rowType_ = org.drizzle.messages.TableMessage.Table.TableOptions.RowType.ROW_TYPE_DEFAULT; |
2288 | - return this; |
2289 | - } |
2290 | - } |
2291 | - |
2292 | - static { |
2293 | - org.drizzle.messages.TableMessage.getDescriptor(); |
2294 | - } |
2295 | - |
2296 | - static { |
2297 | - org.drizzle.messages.TableMessage.internalForceInit(); |
2298 | - } |
2299 | - } |
2300 | - |
2301 | - public static final class TableStats extends |
2302 | - com.google.protobuf.GeneratedMessage { |
2303 | - // Use TableStats.newBuilder() to construct. |
2304 | - private TableStats() {} |
2305 | - |
2306 | - private static final TableStats defaultInstance = new TableStats(); |
2307 | - public static TableStats getDefaultInstance() { |
2308 | - return defaultInstance; |
2309 | - } |
2310 | - |
2311 | - public TableStats getDefaultInstanceForType() { |
2312 | - return defaultInstance; |
2313 | - } |
2314 | - |
2315 | - public static final com.google.protobuf.Descriptors.Descriptor |
2316 | - getDescriptor() { |
2317 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_TableStats_descriptor; |
2318 | - } |
2319 | - |
2320 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
2321 | - internalGetFieldAccessorTable() { |
2322 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_TableStats_fieldAccessorTable; |
2323 | - } |
2324 | - |
2325 | - // optional uint32 avg_row_length = 1; |
2326 | - public static final int AVG_ROW_LENGTH_FIELD_NUMBER = 1; |
2327 | - private boolean hasAvgRowLength; |
2328 | - private int avgRowLength_ = 0; |
2329 | - public boolean hasAvgRowLength() { return hasAvgRowLength; } |
2330 | - public int getAvgRowLength() { return avgRowLength_; } |
2331 | - |
2332 | - // optional uint64 max_rows = 2; |
2333 | - public static final int MAX_ROWS_FIELD_NUMBER = 2; |
2334 | - private boolean hasMaxRows; |
2335 | - private long maxRows_ = 0L; |
2336 | - public boolean hasMaxRows() { return hasMaxRows; } |
2337 | - public long getMaxRows() { return maxRows_; } |
2338 | - |
2339 | - // optional uint32 min_rows = 3; |
2340 | - public static final int MIN_ROWS_FIELD_NUMBER = 3; |
2341 | - private boolean hasMinRows; |
2342 | - private int minRows_ = 0; |
2343 | - public boolean hasMinRows() { return hasMinRows; } |
2344 | - public int getMinRows() { return minRows_; } |
2345 | - |
2346 | - public final boolean isInitialized() { |
2347 | - return true; |
2348 | - } |
2349 | - |
2350 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
2351 | - throws java.io.IOException { |
2352 | - if (hasAvgRowLength()) { |
2353 | - output.writeUInt32(1, getAvgRowLength()); |
2354 | - } |
2355 | - if (hasMaxRows()) { |
2356 | - output.writeUInt64(2, getMaxRows()); |
2357 | - } |
2358 | - if (hasMinRows()) { |
2359 | - output.writeUInt32(3, getMinRows()); |
2360 | - } |
2361 | - getUnknownFields().writeTo(output); |
2362 | - } |
2363 | - |
2364 | - private int memoizedSerializedSize = -1; |
2365 | - public int getSerializedSize() { |
2366 | - int size = memoizedSerializedSize; |
2367 | - if (size != -1) return size; |
2368 | - |
2369 | - size = 0; |
2370 | - if (hasAvgRowLength()) { |
2371 | - size += com.google.protobuf.CodedOutputStream |
2372 | - .computeUInt32Size(1, getAvgRowLength()); |
2373 | - } |
2374 | - if (hasMaxRows()) { |
2375 | - size += com.google.protobuf.CodedOutputStream |
2376 | - .computeUInt64Size(2, getMaxRows()); |
2377 | - } |
2378 | - if (hasMinRows()) { |
2379 | - size += com.google.protobuf.CodedOutputStream |
2380 | - .computeUInt32Size(3, getMinRows()); |
2381 | - } |
2382 | - size += getUnknownFields().getSerializedSize(); |
2383 | - memoizedSerializedSize = size; |
2384 | - return size; |
2385 | - } |
2386 | - |
2387 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2388 | - com.google.protobuf.ByteString data) |
2389 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2390 | - return newBuilder().mergeFrom(data).buildParsed(); |
2391 | - } |
2392 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2393 | - com.google.protobuf.ByteString data, |
2394 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2395 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2396 | - return newBuilder().mergeFrom(data, extensionRegistry) |
2397 | - .buildParsed(); |
2398 | - } |
2399 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom(byte[] data) |
2400 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2401 | - return newBuilder().mergeFrom(data).buildParsed(); |
2402 | - } |
2403 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2404 | - byte[] data, |
2405 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2406 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2407 | - return newBuilder().mergeFrom(data, extensionRegistry) |
2408 | - .buildParsed(); |
2409 | - } |
2410 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom(java.io.InputStream input) |
2411 | - throws java.io.IOException { |
2412 | - return newBuilder().mergeFrom(input).buildParsed(); |
2413 | - } |
2414 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2415 | - java.io.InputStream input, |
2416 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2417 | - throws java.io.IOException { |
2418 | - return newBuilder().mergeFrom(input, extensionRegistry) |
2419 | - .buildParsed(); |
2420 | - } |
2421 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseDelimitedFrom(java.io.InputStream input) |
2422 | - throws java.io.IOException { |
2423 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
2424 | - } |
2425 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseDelimitedFrom( |
2426 | - java.io.InputStream input, |
2427 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2428 | - throws java.io.IOException { |
2429 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
2430 | - .buildParsed(); |
2431 | - } |
2432 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2433 | - com.google.protobuf.CodedInputStream input) |
2434 | - throws java.io.IOException { |
2435 | - return newBuilder().mergeFrom(input).buildParsed(); |
2436 | - } |
2437 | - public static org.drizzle.messages.TableMessage.Table.TableStats parseFrom( |
2438 | - com.google.protobuf.CodedInputStream input, |
2439 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2440 | - throws java.io.IOException { |
2441 | - return newBuilder().mergeFrom(input, extensionRegistry) |
2442 | - .buildParsed(); |
2443 | - } |
2444 | - |
2445 | - public static Builder newBuilder() { return Builder.create(); } |
2446 | - public Builder newBuilderForType() { return newBuilder(); } |
2447 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.TableStats prototype) { |
2448 | - return newBuilder().mergeFrom(prototype); |
2449 | - } |
2450 | - public Builder toBuilder() { return newBuilder(this); } |
2451 | - |
2452 | - public static final class Builder extends |
2453 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
2454 | - private org.drizzle.messages.TableMessage.Table.TableStats result; |
2455 | - |
2456 | - // Construct using org.drizzle.messages.TableMessage.Table.TableStats.newBuilder() |
2457 | - private Builder() {} |
2458 | - |
2459 | - private static Builder create() { |
2460 | - Builder builder = new Builder(); |
2461 | - builder.result = new org.drizzle.messages.TableMessage.Table.TableStats(); |
2462 | - return builder; |
2463 | - } |
2464 | - |
2465 | - protected org.drizzle.messages.TableMessage.Table.TableStats internalGetResult() { |
2466 | - return result; |
2467 | - } |
2468 | - |
2469 | - public Builder clear() { |
2470 | - if (result == null) { |
2471 | - throw new IllegalStateException( |
2472 | - "Cannot call clear() after build()."); |
2473 | - } |
2474 | - result = new org.drizzle.messages.TableMessage.Table.TableStats(); |
2475 | - return this; |
2476 | - } |
2477 | - |
2478 | - public Builder clone() { |
2479 | - return create().mergeFrom(result); |
2480 | - } |
2481 | - |
2482 | - public com.google.protobuf.Descriptors.Descriptor |
2483 | - getDescriptorForType() { |
2484 | - return org.drizzle.messages.TableMessage.Table.TableStats.getDescriptor(); |
2485 | - } |
2486 | - |
2487 | - public org.drizzle.messages.TableMessage.Table.TableStats getDefaultInstanceForType() { |
2488 | - return org.drizzle.messages.TableMessage.Table.TableStats.getDefaultInstance(); |
2489 | - } |
2490 | - |
2491 | - public boolean isInitialized() { |
2492 | - return result.isInitialized(); |
2493 | - } |
2494 | - public org.drizzle.messages.TableMessage.Table.TableStats build() { |
2495 | - if (result != null && !isInitialized()) { |
2496 | - throw newUninitializedMessageException(result); |
2497 | - } |
2498 | - return buildPartial(); |
2499 | - } |
2500 | - |
2501 | - private org.drizzle.messages.TableMessage.Table.TableStats buildParsed() |
2502 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2503 | - if (!isInitialized()) { |
2504 | - throw newUninitializedMessageException( |
2505 | - result).asInvalidProtocolBufferException(); |
2506 | - } |
2507 | - return buildPartial(); |
2508 | - } |
2509 | - |
2510 | - public org.drizzle.messages.TableMessage.Table.TableStats buildPartial() { |
2511 | - if (result == null) { |
2512 | - throw new IllegalStateException( |
2513 | - "build() has already been called on this Builder."); |
2514 | - } |
2515 | - org.drizzle.messages.TableMessage.Table.TableStats returnMe = result; |
2516 | - result = null; |
2517 | - return returnMe; |
2518 | - } |
2519 | - |
2520 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
2521 | - if (other instanceof org.drizzle.messages.TableMessage.Table.TableStats) { |
2522 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.TableStats)other); |
2523 | - } else { |
2524 | - super.mergeFrom(other); |
2525 | - return this; |
2526 | - } |
2527 | - } |
2528 | - |
2529 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.TableStats other) { |
2530 | - if (other == org.drizzle.messages.TableMessage.Table.TableStats.getDefaultInstance()) return this; |
2531 | - if (other.hasAvgRowLength()) { |
2532 | - setAvgRowLength(other.getAvgRowLength()); |
2533 | - } |
2534 | - if (other.hasMaxRows()) { |
2535 | - setMaxRows(other.getMaxRows()); |
2536 | - } |
2537 | - if (other.hasMinRows()) { |
2538 | - setMinRows(other.getMinRows()); |
2539 | - } |
2540 | - this.mergeUnknownFields(other.getUnknownFields()); |
2541 | - return this; |
2542 | - } |
2543 | - |
2544 | - public Builder mergeFrom( |
2545 | - com.google.protobuf.CodedInputStream input, |
2546 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2547 | - throws java.io.IOException { |
2548 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
2549 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
2550 | - this.getUnknownFields()); |
2551 | - while (true) { |
2552 | - int tag = input.readTag(); |
2553 | - switch (tag) { |
2554 | - case 0: |
2555 | - this.setUnknownFields(unknownFields.build()); |
2556 | - return this; |
2557 | - default: { |
2558 | - if (!parseUnknownField(input, unknownFields, |
2559 | - extensionRegistry, tag)) { |
2560 | - this.setUnknownFields(unknownFields.build()); |
2561 | - return this; |
2562 | - } |
2563 | - break; |
2564 | - } |
2565 | - case 8: { |
2566 | - setAvgRowLength(input.readUInt32()); |
2567 | - break; |
2568 | - } |
2569 | - case 16: { |
2570 | - setMaxRows(input.readUInt64()); |
2571 | - break; |
2572 | - } |
2573 | - case 24: { |
2574 | - setMinRows(input.readUInt32()); |
2575 | - break; |
2576 | - } |
2577 | - } |
2578 | - } |
2579 | - } |
2580 | - |
2581 | - |
2582 | - // optional uint32 avg_row_length = 1; |
2583 | - public boolean hasAvgRowLength() { |
2584 | - return result.hasAvgRowLength(); |
2585 | - } |
2586 | - public int getAvgRowLength() { |
2587 | - return result.getAvgRowLength(); |
2588 | - } |
2589 | - public Builder setAvgRowLength(int value) { |
2590 | - result.hasAvgRowLength = true; |
2591 | - result.avgRowLength_ = value; |
2592 | - return this; |
2593 | - } |
2594 | - public Builder clearAvgRowLength() { |
2595 | - result.hasAvgRowLength = false; |
2596 | - result.avgRowLength_ = 0; |
2597 | - return this; |
2598 | - } |
2599 | - |
2600 | - // optional uint64 max_rows = 2; |
2601 | - public boolean hasMaxRows() { |
2602 | - return result.hasMaxRows(); |
2603 | - } |
2604 | - public long getMaxRows() { |
2605 | - return result.getMaxRows(); |
2606 | - } |
2607 | - public Builder setMaxRows(long value) { |
2608 | - result.hasMaxRows = true; |
2609 | - result.maxRows_ = value; |
2610 | - return this; |
2611 | - } |
2612 | - public Builder clearMaxRows() { |
2613 | - result.hasMaxRows = false; |
2614 | - result.maxRows_ = 0L; |
2615 | - return this; |
2616 | - } |
2617 | - |
2618 | - // optional uint32 min_rows = 3; |
2619 | - public boolean hasMinRows() { |
2620 | - return result.hasMinRows(); |
2621 | - } |
2622 | - public int getMinRows() { |
2623 | - return result.getMinRows(); |
2624 | - } |
2625 | - public Builder setMinRows(int value) { |
2626 | - result.hasMinRows = true; |
2627 | - result.minRows_ = value; |
2628 | - return this; |
2629 | - } |
2630 | - public Builder clearMinRows() { |
2631 | - result.hasMinRows = false; |
2632 | - result.minRows_ = 0; |
2633 | - return this; |
2634 | - } |
2635 | - } |
2636 | - |
2637 | - static { |
2638 | - org.drizzle.messages.TableMessage.getDescriptor(); |
2639 | - } |
2640 | - |
2641 | - static { |
2642 | - org.drizzle.messages.TableMessage.internalForceInit(); |
2643 | - } |
2644 | - } |
2645 | - |
2646 | - public static final class ForeignKeyConstraint extends |
2647 | - com.google.protobuf.GeneratedMessage { |
2648 | - // Use ForeignKeyConstraint.newBuilder() to construct. |
2649 | - private ForeignKeyConstraint() {} |
2650 | - |
2651 | - private static final ForeignKeyConstraint defaultInstance = new ForeignKeyConstraint(); |
2652 | - public static ForeignKeyConstraint getDefaultInstance() { |
2653 | - return defaultInstance; |
2654 | - } |
2655 | - |
2656 | - public ForeignKeyConstraint getDefaultInstanceForType() { |
2657 | - return defaultInstance; |
2658 | - } |
2659 | - |
2660 | - public static final com.google.protobuf.Descriptors.Descriptor |
2661 | - getDescriptor() { |
2662 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_ForeignKeyConstraint_descriptor; |
2663 | - } |
2664 | - |
2665 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
2666 | - internalGetFieldAccessorTable() { |
2667 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_ForeignKeyConstraint_fieldAccessorTable; |
2668 | - } |
2669 | - |
2670 | - // required string name = 1; |
2671 | - public static final int NAME_FIELD_NUMBER = 1; |
2672 | - private boolean hasName; |
2673 | - private java.lang.String name_ = ""; |
2674 | - public boolean hasName() { return hasName; } |
2675 | - public java.lang.String getName() { return name_; } |
2676 | - |
2677 | - // required .drizzled.message.Table.Field dependent = 2; |
2678 | - public static final int DEPENDENT_FIELD_NUMBER = 2; |
2679 | - private boolean hasDependent; |
2680 | - private org.drizzle.messages.TableMessage.Table.Field dependent_ = org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance(); |
2681 | - public boolean hasDependent() { return hasDependent; } |
2682 | - public org.drizzle.messages.TableMessage.Table.Field getDependent() { return dependent_; } |
2683 | - |
2684 | - // required .drizzled.message.Table.Field parent = 3; |
2685 | - public static final int PARENT_FIELD_NUMBER = 3; |
2686 | - private boolean hasParent; |
2687 | - private org.drizzle.messages.TableMessage.Table.Field parent_ = org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance(); |
2688 | - public boolean hasParent() { return hasParent; } |
2689 | - public org.drizzle.messages.TableMessage.Table.Field getParent() { return parent_; } |
2690 | - |
2691 | - public final boolean isInitialized() { |
2692 | - if (!hasName) return false; |
2693 | - if (!hasDependent) return false; |
2694 | - if (!hasParent) return false; |
2695 | - if (!getDependent().isInitialized()) return false; |
2696 | - if (!getParent().isInitialized()) return false; |
2697 | - return true; |
2698 | - } |
2699 | - |
2700 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
2701 | - throws java.io.IOException { |
2702 | - if (hasName()) { |
2703 | - output.writeString(1, getName()); |
2704 | - } |
2705 | - if (hasDependent()) { |
2706 | - output.writeMessage(2, getDependent()); |
2707 | - } |
2708 | - if (hasParent()) { |
2709 | - output.writeMessage(3, getParent()); |
2710 | - } |
2711 | - getUnknownFields().writeTo(output); |
2712 | - } |
2713 | - |
2714 | - private int memoizedSerializedSize = -1; |
2715 | - public int getSerializedSize() { |
2716 | - int size = memoizedSerializedSize; |
2717 | - if (size != -1) return size; |
2718 | - |
2719 | - size = 0; |
2720 | - if (hasName()) { |
2721 | - size += com.google.protobuf.CodedOutputStream |
2722 | - .computeStringSize(1, getName()); |
2723 | - } |
2724 | - if (hasDependent()) { |
2725 | - size += com.google.protobuf.CodedOutputStream |
2726 | - .computeMessageSize(2, getDependent()); |
2727 | - } |
2728 | - if (hasParent()) { |
2729 | - size += com.google.protobuf.CodedOutputStream |
2730 | - .computeMessageSize(3, getParent()); |
2731 | - } |
2732 | - size += getUnknownFields().getSerializedSize(); |
2733 | - memoizedSerializedSize = size; |
2734 | - return size; |
2735 | - } |
2736 | - |
2737 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2738 | - com.google.protobuf.ByteString data) |
2739 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2740 | - return newBuilder().mergeFrom(data).buildParsed(); |
2741 | - } |
2742 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2743 | - com.google.protobuf.ByteString data, |
2744 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2745 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2746 | - return newBuilder().mergeFrom(data, extensionRegistry) |
2747 | - .buildParsed(); |
2748 | - } |
2749 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom(byte[] data) |
2750 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2751 | - return newBuilder().mergeFrom(data).buildParsed(); |
2752 | - } |
2753 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2754 | - byte[] data, |
2755 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2756 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2757 | - return newBuilder().mergeFrom(data, extensionRegistry) |
2758 | - .buildParsed(); |
2759 | - } |
2760 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom(java.io.InputStream input) |
2761 | - throws java.io.IOException { |
2762 | - return newBuilder().mergeFrom(input).buildParsed(); |
2763 | - } |
2764 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2765 | - java.io.InputStream input, |
2766 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2767 | - throws java.io.IOException { |
2768 | - return newBuilder().mergeFrom(input, extensionRegistry) |
2769 | - .buildParsed(); |
2770 | - } |
2771 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseDelimitedFrom(java.io.InputStream input) |
2772 | - throws java.io.IOException { |
2773 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
2774 | - } |
2775 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseDelimitedFrom( |
2776 | - java.io.InputStream input, |
2777 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2778 | - throws java.io.IOException { |
2779 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
2780 | - .buildParsed(); |
2781 | - } |
2782 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2783 | - com.google.protobuf.CodedInputStream input) |
2784 | - throws java.io.IOException { |
2785 | - return newBuilder().mergeFrom(input).buildParsed(); |
2786 | - } |
2787 | - public static org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint parseFrom( |
2788 | - com.google.protobuf.CodedInputStream input, |
2789 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2790 | - throws java.io.IOException { |
2791 | - return newBuilder().mergeFrom(input, extensionRegistry) |
2792 | - .buildParsed(); |
2793 | - } |
2794 | - |
2795 | - public static Builder newBuilder() { return Builder.create(); } |
2796 | - public Builder newBuilderForType() { return newBuilder(); } |
2797 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint prototype) { |
2798 | - return newBuilder().mergeFrom(prototype); |
2799 | - } |
2800 | - public Builder toBuilder() { return newBuilder(this); } |
2801 | - |
2802 | - public static final class Builder extends |
2803 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
2804 | - private org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint result; |
2805 | - |
2806 | - // Construct using org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint.newBuilder() |
2807 | - private Builder() {} |
2808 | - |
2809 | - private static Builder create() { |
2810 | - Builder builder = new Builder(); |
2811 | - builder.result = new org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint(); |
2812 | - return builder; |
2813 | - } |
2814 | - |
2815 | - protected org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint internalGetResult() { |
2816 | - return result; |
2817 | - } |
2818 | - |
2819 | - public Builder clear() { |
2820 | - if (result == null) { |
2821 | - throw new IllegalStateException( |
2822 | - "Cannot call clear() after build()."); |
2823 | - } |
2824 | - result = new org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint(); |
2825 | - return this; |
2826 | - } |
2827 | - |
2828 | - public Builder clone() { |
2829 | - return create().mergeFrom(result); |
2830 | - } |
2831 | - |
2832 | - public com.google.protobuf.Descriptors.Descriptor |
2833 | - getDescriptorForType() { |
2834 | - return org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint.getDescriptor(); |
2835 | - } |
2836 | - |
2837 | - public org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint getDefaultInstanceForType() { |
2838 | - return org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint.getDefaultInstance(); |
2839 | - } |
2840 | - |
2841 | - public boolean isInitialized() { |
2842 | - return result.isInitialized(); |
2843 | - } |
2844 | - public org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint build() { |
2845 | - if (result != null && !isInitialized()) { |
2846 | - throw newUninitializedMessageException(result); |
2847 | - } |
2848 | - return buildPartial(); |
2849 | - } |
2850 | - |
2851 | - private org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint buildParsed() |
2852 | - throws com.google.protobuf.InvalidProtocolBufferException { |
2853 | - if (!isInitialized()) { |
2854 | - throw newUninitializedMessageException( |
2855 | - result).asInvalidProtocolBufferException(); |
2856 | - } |
2857 | - return buildPartial(); |
2858 | - } |
2859 | - |
2860 | - public org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint buildPartial() { |
2861 | - if (result == null) { |
2862 | - throw new IllegalStateException( |
2863 | - "build() has already been called on this Builder."); |
2864 | - } |
2865 | - org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint returnMe = result; |
2866 | - result = null; |
2867 | - return returnMe; |
2868 | - } |
2869 | - |
2870 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
2871 | - if (other instanceof org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint) { |
2872 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint)other); |
2873 | - } else { |
2874 | - super.mergeFrom(other); |
2875 | - return this; |
2876 | - } |
2877 | - } |
2878 | - |
2879 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint other) { |
2880 | - if (other == org.drizzle.messages.TableMessage.Table.ForeignKeyConstraint.getDefaultInstance()) return this; |
2881 | - if (other.hasName()) { |
2882 | - setName(other.getName()); |
2883 | - } |
2884 | - if (other.hasDependent()) { |
2885 | - mergeDependent(other.getDependent()); |
2886 | - } |
2887 | - if (other.hasParent()) { |
2888 | - mergeParent(other.getParent()); |
2889 | - } |
2890 | - this.mergeUnknownFields(other.getUnknownFields()); |
2891 | - return this; |
2892 | - } |
2893 | - |
2894 | - public Builder mergeFrom( |
2895 | - com.google.protobuf.CodedInputStream input, |
2896 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
2897 | - throws java.io.IOException { |
2898 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
2899 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
2900 | - this.getUnknownFields()); |
2901 | - while (true) { |
2902 | - int tag = input.readTag(); |
2903 | - switch (tag) { |
2904 | - case 0: |
2905 | - this.setUnknownFields(unknownFields.build()); |
2906 | - return this; |
2907 | - default: { |
2908 | - if (!parseUnknownField(input, unknownFields, |
2909 | - extensionRegistry, tag)) { |
2910 | - this.setUnknownFields(unknownFields.build()); |
2911 | - return this; |
2912 | - } |
2913 | - break; |
2914 | - } |
2915 | - case 10: { |
2916 | - setName(input.readString()); |
2917 | - break; |
2918 | - } |
2919 | - case 18: { |
2920 | - org.drizzle.messages.TableMessage.Table.Field.Builder subBuilder = org.drizzle.messages.TableMessage.Table.Field.newBuilder(); |
2921 | - if (hasDependent()) { |
2922 | - subBuilder.mergeFrom(getDependent()); |
2923 | - } |
2924 | - input.readMessage(subBuilder, extensionRegistry); |
2925 | - setDependent(subBuilder.buildPartial()); |
2926 | - break; |
2927 | - } |
2928 | - case 26: { |
2929 | - org.drizzle.messages.TableMessage.Table.Field.Builder subBuilder = org.drizzle.messages.TableMessage.Table.Field.newBuilder(); |
2930 | - if (hasParent()) { |
2931 | - subBuilder.mergeFrom(getParent()); |
2932 | - } |
2933 | - input.readMessage(subBuilder, extensionRegistry); |
2934 | - setParent(subBuilder.buildPartial()); |
2935 | - break; |
2936 | - } |
2937 | - } |
2938 | - } |
2939 | - } |
2940 | - |
2941 | - |
2942 | - // required string name = 1; |
2943 | - public boolean hasName() { |
2944 | - return result.hasName(); |
2945 | - } |
2946 | - public java.lang.String getName() { |
2947 | - return result.getName(); |
2948 | - } |
2949 | - public Builder setName(java.lang.String value) { |
2950 | - if (value == null) { |
2951 | - throw new NullPointerException(); |
2952 | - } |
2953 | - result.hasName = true; |
2954 | - result.name_ = value; |
2955 | - return this; |
2956 | - } |
2957 | - public Builder clearName() { |
2958 | - result.hasName = false; |
2959 | - result.name_ = getDefaultInstance().getName(); |
2960 | - return this; |
2961 | - } |
2962 | - |
2963 | - // required .drizzled.message.Table.Field dependent = 2; |
2964 | - public boolean hasDependent() { |
2965 | - return result.hasDependent(); |
2966 | - } |
2967 | - public org.drizzle.messages.TableMessage.Table.Field getDependent() { |
2968 | - return result.getDependent(); |
2969 | - } |
2970 | - public Builder setDependent(org.drizzle.messages.TableMessage.Table.Field value) { |
2971 | - if (value == null) { |
2972 | - throw new NullPointerException(); |
2973 | - } |
2974 | - result.hasDependent = true; |
2975 | - result.dependent_ = value; |
2976 | - return this; |
2977 | - } |
2978 | - public Builder setDependent(org.drizzle.messages.TableMessage.Table.Field.Builder builderForValue) { |
2979 | - result.hasDependent = true; |
2980 | - result.dependent_ = builderForValue.build(); |
2981 | - return this; |
2982 | - } |
2983 | - public Builder mergeDependent(org.drizzle.messages.TableMessage.Table.Field value) { |
2984 | - if (result.hasDependent() && |
2985 | - result.dependent_ != org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance()) { |
2986 | - result.dependent_ = |
2987 | - org.drizzle.messages.TableMessage.Table.Field.newBuilder(result.dependent_).mergeFrom(value).buildPartial(); |
2988 | - } else { |
2989 | - result.dependent_ = value; |
2990 | - } |
2991 | - result.hasDependent = true; |
2992 | - return this; |
2993 | - } |
2994 | - public Builder clearDependent() { |
2995 | - result.hasDependent = false; |
2996 | - result.dependent_ = org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance(); |
2997 | - return this; |
2998 | - } |
2999 | - |
3000 | - // required .drizzled.message.Table.Field parent = 3; |
3001 | - public boolean hasParent() { |
3002 | - return result.hasParent(); |
3003 | - } |
3004 | - public org.drizzle.messages.TableMessage.Table.Field getParent() { |
3005 | - return result.getParent(); |
3006 | - } |
3007 | - public Builder setParent(org.drizzle.messages.TableMessage.Table.Field value) { |
3008 | - if (value == null) { |
3009 | - throw new NullPointerException(); |
3010 | - } |
3011 | - result.hasParent = true; |
3012 | - result.parent_ = value; |
3013 | - return this; |
3014 | - } |
3015 | - public Builder setParent(org.drizzle.messages.TableMessage.Table.Field.Builder builderForValue) { |
3016 | - result.hasParent = true; |
3017 | - result.parent_ = builderForValue.build(); |
3018 | - return this; |
3019 | - } |
3020 | - public Builder mergeParent(org.drizzle.messages.TableMessage.Table.Field value) { |
3021 | - if (result.hasParent() && |
3022 | - result.parent_ != org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance()) { |
3023 | - result.parent_ = |
3024 | - org.drizzle.messages.TableMessage.Table.Field.newBuilder(result.parent_).mergeFrom(value).buildPartial(); |
3025 | - } else { |
3026 | - result.parent_ = value; |
3027 | - } |
3028 | - result.hasParent = true; |
3029 | - return this; |
3030 | - } |
3031 | - public Builder clearParent() { |
3032 | - result.hasParent = false; |
3033 | - result.parent_ = org.drizzle.messages.TableMessage.Table.Field.getDefaultInstance(); |
3034 | - return this; |
3035 | - } |
3036 | - } |
3037 | - |
3038 | - static { |
3039 | - org.drizzle.messages.TableMessage.getDescriptor(); |
3040 | - } |
3041 | - |
3042 | - static { |
3043 | - org.drizzle.messages.TableMessage.internalForceInit(); |
3044 | - } |
3045 | - } |
3046 | - |
3047 | - public static final class Field extends |
3048 | - com.google.protobuf.GeneratedMessage { |
3049 | - // Use Field.newBuilder() to construct. |
3050 | - private Field() {} |
3051 | - |
3052 | - private static final Field defaultInstance = new Field(); |
3053 | - public static Field getDefaultInstance() { |
3054 | - return defaultInstance; |
3055 | - } |
3056 | - |
3057 | - public Field getDefaultInstanceForType() { |
3058 | - return defaultInstance; |
3059 | - } |
3060 | - |
3061 | - public static final com.google.protobuf.Descriptors.Descriptor |
3062 | - getDescriptor() { |
3063 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_descriptor; |
3064 | - } |
3065 | - |
3066 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
3067 | - internalGetFieldAccessorTable() { |
3068 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_fieldAccessorTable; |
3069 | - } |
3070 | - |
3071 | - public enum FieldType |
3072 | - implements com.google.protobuf.ProtocolMessageEnum { |
3073 | - DOUBLE(0, 0), |
3074 | - VARCHAR(1, 1), |
3075 | - BLOB(2, 2), |
3076 | - ENUM(3, 3), |
3077 | - INTEGER(4, 4), |
3078 | - BIGINT(5, 5), |
3079 | - DECIMAL(6, 6), |
3080 | - DATE(7, 7), |
3081 | - TIME(8, 8), |
3082 | - TIMESTAMP(9, 9), |
3083 | - DATETIME(10, 10), |
3084 | - ; |
3085 | - |
3086 | - |
3087 | - public final int getNumber() { return value; } |
3088 | - |
3089 | - public static FieldType valueOf(int value) { |
3090 | - switch (value) { |
3091 | - case 0: return DOUBLE; |
3092 | - case 1: return VARCHAR; |
3093 | - case 2: return BLOB; |
3094 | - case 3: return ENUM; |
3095 | - case 4: return INTEGER; |
3096 | - case 5: return BIGINT; |
3097 | - case 6: return DECIMAL; |
3098 | - case 7: return DATE; |
3099 | - case 8: return TIME; |
3100 | - case 9: return TIMESTAMP; |
3101 | - case 10: return DATETIME; |
3102 | - default: return null; |
3103 | - } |
3104 | - } |
3105 | - |
3106 | - public static com.google.protobuf.Internal.EnumLiteMap<FieldType> |
3107 | - internalGetValueMap() { |
3108 | - return internalValueMap; |
3109 | - } |
3110 | - private static com.google.protobuf.Internal.EnumLiteMap<FieldType> |
3111 | - internalValueMap = |
3112 | - new com.google.protobuf.Internal.EnumLiteMap<FieldType>() { |
3113 | - public FieldType findValueByNumber(int number) { |
3114 | - return FieldType.valueOf(number) |
3115 | - ; } |
3116 | - }; |
3117 | - |
3118 | - public final com.google.protobuf.Descriptors.EnumValueDescriptor |
3119 | - getValueDescriptor() { |
3120 | - return getDescriptor().getValues().get(index); |
3121 | - } |
3122 | - public final com.google.protobuf.Descriptors.EnumDescriptor |
3123 | - getDescriptorForType() { |
3124 | - return getDescriptor(); |
3125 | - } |
3126 | - public static final com.google.protobuf.Descriptors.EnumDescriptor |
3127 | - getDescriptor() { |
3128 | - return org.drizzle.messages.TableMessage.Table.Field.getDescriptor().getEnumTypes().get(0); |
3129 | - } |
3130 | - |
3131 | - private static final FieldType[] VALUES = { |
3132 | - DOUBLE, VARCHAR, BLOB, ENUM, INTEGER, BIGINT, DECIMAL, DATE, TIME, TIMESTAMP, DATETIME, |
3133 | - }; |
3134 | - public static FieldType valueOf( |
3135 | - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { |
3136 | - if (desc.getType() != getDescriptor()) { |
3137 | - throw new java.lang.IllegalArgumentException( |
3138 | - "EnumValueDescriptor is not for this type."); |
3139 | - } |
3140 | - return VALUES[desc.getIndex()]; |
3141 | - } |
3142 | - private final int index; |
3143 | - private final int value; |
3144 | - private FieldType(int index, int value) { |
3145 | - this.index = index; |
3146 | - this.value = value; |
3147 | - } |
3148 | - |
3149 | - static { |
3150 | - org.drizzle.messages.TableMessage.getDescriptor(); |
3151 | - } |
3152 | - } |
3153 | - |
3154 | - public enum FieldFormatType |
3155 | - implements com.google.protobuf.ProtocolMessageEnum { |
3156 | - DefaultFormat(0, 0), |
3157 | - FixedFormat(1, 1), |
3158 | - DynamicFormat(2, 2), |
3159 | - ; |
3160 | - |
3161 | - |
3162 | - public final int getNumber() { return value; } |
3163 | - |
3164 | - public static FieldFormatType valueOf(int value) { |
3165 | - switch (value) { |
3166 | - case 0: return DefaultFormat; |
3167 | - case 1: return FixedFormat; |
3168 | - case 2: return DynamicFormat; |
3169 | - default: return null; |
3170 | - } |
3171 | - } |
3172 | - |
3173 | - public static com.google.protobuf.Internal.EnumLiteMap<FieldFormatType> |
3174 | - internalGetValueMap() { |
3175 | - return internalValueMap; |
3176 | - } |
3177 | - private static com.google.protobuf.Internal.EnumLiteMap<FieldFormatType> |
3178 | - internalValueMap = |
3179 | - new com.google.protobuf.Internal.EnumLiteMap<FieldFormatType>() { |
3180 | - public FieldFormatType findValueByNumber(int number) { |
3181 | - return FieldFormatType.valueOf(number) |
3182 | - ; } |
3183 | - }; |
3184 | - |
3185 | - public final com.google.protobuf.Descriptors.EnumValueDescriptor |
3186 | - getValueDescriptor() { |
3187 | - return getDescriptor().getValues().get(index); |
3188 | - } |
3189 | - public final com.google.protobuf.Descriptors.EnumDescriptor |
3190 | - getDescriptorForType() { |
3191 | - return getDescriptor(); |
3192 | - } |
3193 | - public static final com.google.protobuf.Descriptors.EnumDescriptor |
3194 | - getDescriptor() { |
3195 | - return org.drizzle.messages.TableMessage.Table.Field.getDescriptor().getEnumTypes().get(1); |
3196 | - } |
3197 | - |
3198 | - private static final FieldFormatType[] VALUES = { |
3199 | - DefaultFormat, FixedFormat, DynamicFormat, |
3200 | - }; |
3201 | - public static FieldFormatType valueOf( |
3202 | - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { |
3203 | - if (desc.getType() != getDescriptor()) { |
3204 | - throw new java.lang.IllegalArgumentException( |
3205 | - "EnumValueDescriptor is not for this type."); |
3206 | - } |
3207 | - return VALUES[desc.getIndex()]; |
3208 | - } |
3209 | - private final int index; |
3210 | - private final int value; |
3211 | - private FieldFormatType(int index, int value) { |
3212 | - this.index = index; |
3213 | - this.value = value; |
3214 | - } |
3215 | - |
3216 | - static { |
3217 | - org.drizzle.messages.TableMessage.getDescriptor(); |
3218 | - } |
3219 | - } |
3220 | - |
3221 | - public static final class FieldOptions extends |
3222 | - com.google.protobuf.GeneratedMessage { |
3223 | - // Use FieldOptions.newBuilder() to construct. |
3224 | - private FieldOptions() {} |
3225 | - |
3226 | - private static final FieldOptions defaultInstance = new FieldOptions(); |
3227 | - public static FieldOptions getDefaultInstance() { |
3228 | - return defaultInstance; |
3229 | - } |
3230 | - |
3231 | - public FieldOptions getDefaultInstanceForType() { |
3232 | - return defaultInstance; |
3233 | - } |
3234 | - |
3235 | - public static final com.google.protobuf.Descriptors.Descriptor |
3236 | - getDescriptor() { |
3237 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_FieldOptions_descriptor; |
3238 | - } |
3239 | - |
3240 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
3241 | - internalGetFieldAccessorTable() { |
3242 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_FieldOptions_fieldAccessorTable; |
3243 | - } |
3244 | - |
3245 | - // optional string default_value = 1; |
3246 | - public static final int DEFAULT_VALUE_FIELD_NUMBER = 1; |
3247 | - private boolean hasDefaultValue; |
3248 | - private java.lang.String defaultValue_ = ""; |
3249 | - public boolean hasDefaultValue() { return hasDefaultValue; } |
3250 | - public java.lang.String getDefaultValue() { return defaultValue_; } |
3251 | - |
3252 | - // optional string update_value = 2; |
3253 | - public static final int UPDATE_VALUE_FIELD_NUMBER = 2; |
3254 | - private boolean hasUpdateValue; |
3255 | - private java.lang.String updateValue_ = ""; |
3256 | - public boolean hasUpdateValue() { return hasUpdateValue; } |
3257 | - public java.lang.String getUpdateValue() { return updateValue_; } |
3258 | - |
3259 | - // optional bool default_null = 3 [default = false]; |
3260 | - public static final int DEFAULT_NULL_FIELD_NUMBER = 3; |
3261 | - private boolean hasDefaultNull; |
3262 | - private boolean defaultNull_ = false; |
3263 | - public boolean hasDefaultNull() { return hasDefaultNull; } |
3264 | - public boolean getDefaultNull() { return defaultNull_; } |
3265 | - |
3266 | - // optional bytes default_bin_value = 4; |
3267 | - public static final int DEFAULT_BIN_VALUE_FIELD_NUMBER = 4; |
3268 | - private boolean hasDefaultBinValue; |
3269 | - private com.google.protobuf.ByteString defaultBinValue_ = com.google.protobuf.ByteString.EMPTY; |
3270 | - public boolean hasDefaultBinValue() { return hasDefaultBinValue; } |
3271 | - public com.google.protobuf.ByteString getDefaultBinValue() { return defaultBinValue_; } |
3272 | - |
3273 | - public final boolean isInitialized() { |
3274 | - return true; |
3275 | - } |
3276 | - |
3277 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
3278 | - throws java.io.IOException { |
3279 | - if (hasDefaultValue()) { |
3280 | - output.writeString(1, getDefaultValue()); |
3281 | - } |
3282 | - if (hasUpdateValue()) { |
3283 | - output.writeString(2, getUpdateValue()); |
3284 | - } |
3285 | - if (hasDefaultNull()) { |
3286 | - output.writeBool(3, getDefaultNull()); |
3287 | - } |
3288 | - if (hasDefaultBinValue()) { |
3289 | - output.writeBytes(4, getDefaultBinValue()); |
3290 | - } |
3291 | - getUnknownFields().writeTo(output); |
3292 | - } |
3293 | - |
3294 | - private int memoizedSerializedSize = -1; |
3295 | - public int getSerializedSize() { |
3296 | - int size = memoizedSerializedSize; |
3297 | - if (size != -1) return size; |
3298 | - |
3299 | - size = 0; |
3300 | - if (hasDefaultValue()) { |
3301 | - size += com.google.protobuf.CodedOutputStream |
3302 | - .computeStringSize(1, getDefaultValue()); |
3303 | - } |
3304 | - if (hasUpdateValue()) { |
3305 | - size += com.google.protobuf.CodedOutputStream |
3306 | - .computeStringSize(2, getUpdateValue()); |
3307 | - } |
3308 | - if (hasDefaultNull()) { |
3309 | - size += com.google.protobuf.CodedOutputStream |
3310 | - .computeBoolSize(3, getDefaultNull()); |
3311 | - } |
3312 | - if (hasDefaultBinValue()) { |
3313 | - size += com.google.protobuf.CodedOutputStream |
3314 | - .computeBytesSize(4, getDefaultBinValue()); |
3315 | - } |
3316 | - size += getUnknownFields().getSerializedSize(); |
3317 | - memoizedSerializedSize = size; |
3318 | - return size; |
3319 | - } |
3320 | - |
3321 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3322 | - com.google.protobuf.ByteString data) |
3323 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3324 | - return newBuilder().mergeFrom(data).buildParsed(); |
3325 | - } |
3326 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3327 | - com.google.protobuf.ByteString data, |
3328 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3329 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3330 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3331 | - .buildParsed(); |
3332 | - } |
3333 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom(byte[] data) |
3334 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3335 | - return newBuilder().mergeFrom(data).buildParsed(); |
3336 | - } |
3337 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3338 | - byte[] data, |
3339 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3340 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3341 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3342 | - .buildParsed(); |
3343 | - } |
3344 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom(java.io.InputStream input) |
3345 | - throws java.io.IOException { |
3346 | - return newBuilder().mergeFrom(input).buildParsed(); |
3347 | - } |
3348 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3349 | - java.io.InputStream input, |
3350 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3351 | - throws java.io.IOException { |
3352 | - return newBuilder().mergeFrom(input, extensionRegistry) |
3353 | - .buildParsed(); |
3354 | - } |
3355 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseDelimitedFrom(java.io.InputStream input) |
3356 | - throws java.io.IOException { |
3357 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
3358 | - } |
3359 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseDelimitedFrom( |
3360 | - java.io.InputStream input, |
3361 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3362 | - throws java.io.IOException { |
3363 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
3364 | - .buildParsed(); |
3365 | - } |
3366 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3367 | - com.google.protobuf.CodedInputStream input) |
3368 | - throws java.io.IOException { |
3369 | - return newBuilder().mergeFrom(input).buildParsed(); |
3370 | - } |
3371 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldOptions parseFrom( |
3372 | - com.google.protobuf.CodedInputStream input, |
3373 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3374 | - throws java.io.IOException { |
3375 | - return newBuilder().mergeFrom(input, extensionRegistry) |
3376 | - .buildParsed(); |
3377 | - } |
3378 | - |
3379 | - public static Builder newBuilder() { return Builder.create(); } |
3380 | - public Builder newBuilderForType() { return newBuilder(); } |
3381 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.Field.FieldOptions prototype) { |
3382 | - return newBuilder().mergeFrom(prototype); |
3383 | - } |
3384 | - public Builder toBuilder() { return newBuilder(this); } |
3385 | - |
3386 | - public static final class Builder extends |
3387 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
3388 | - private org.drizzle.messages.TableMessage.Table.Field.FieldOptions result; |
3389 | - |
3390 | - // Construct using org.drizzle.messages.TableMessage.Table.Field.FieldOptions.newBuilder() |
3391 | - private Builder() {} |
3392 | - |
3393 | - private static Builder create() { |
3394 | - Builder builder = new Builder(); |
3395 | - builder.result = new org.drizzle.messages.TableMessage.Table.Field.FieldOptions(); |
3396 | - return builder; |
3397 | - } |
3398 | - |
3399 | - protected org.drizzle.messages.TableMessage.Table.Field.FieldOptions internalGetResult() { |
3400 | - return result; |
3401 | - } |
3402 | - |
3403 | - public Builder clear() { |
3404 | - if (result == null) { |
3405 | - throw new IllegalStateException( |
3406 | - "Cannot call clear() after build()."); |
3407 | - } |
3408 | - result = new org.drizzle.messages.TableMessage.Table.Field.FieldOptions(); |
3409 | - return this; |
3410 | - } |
3411 | - |
3412 | - public Builder clone() { |
3413 | - return create().mergeFrom(result); |
3414 | - } |
3415 | - |
3416 | - public com.google.protobuf.Descriptors.Descriptor |
3417 | - getDescriptorForType() { |
3418 | - return org.drizzle.messages.TableMessage.Table.Field.FieldOptions.getDescriptor(); |
3419 | - } |
3420 | - |
3421 | - public org.drizzle.messages.TableMessage.Table.Field.FieldOptions getDefaultInstanceForType() { |
3422 | - return org.drizzle.messages.TableMessage.Table.Field.FieldOptions.getDefaultInstance(); |
3423 | - } |
3424 | - |
3425 | - public boolean isInitialized() { |
3426 | - return result.isInitialized(); |
3427 | - } |
3428 | - public org.drizzle.messages.TableMessage.Table.Field.FieldOptions build() { |
3429 | - if (result != null && !isInitialized()) { |
3430 | - throw newUninitializedMessageException(result); |
3431 | - } |
3432 | - return buildPartial(); |
3433 | - } |
3434 | - |
3435 | - private org.drizzle.messages.TableMessage.Table.Field.FieldOptions buildParsed() |
3436 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3437 | - if (!isInitialized()) { |
3438 | - throw newUninitializedMessageException( |
3439 | - result).asInvalidProtocolBufferException(); |
3440 | - } |
3441 | - return buildPartial(); |
3442 | - } |
3443 | - |
3444 | - public org.drizzle.messages.TableMessage.Table.Field.FieldOptions buildPartial() { |
3445 | - if (result == null) { |
3446 | - throw new IllegalStateException( |
3447 | - "build() has already been called on this Builder."); |
3448 | - } |
3449 | - org.drizzle.messages.TableMessage.Table.Field.FieldOptions returnMe = result; |
3450 | - result = null; |
3451 | - return returnMe; |
3452 | - } |
3453 | - |
3454 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
3455 | - if (other instanceof org.drizzle.messages.TableMessage.Table.Field.FieldOptions) { |
3456 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.Field.FieldOptions)other); |
3457 | - } else { |
3458 | - super.mergeFrom(other); |
3459 | - return this; |
3460 | - } |
3461 | - } |
3462 | - |
3463 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.Field.FieldOptions other) { |
3464 | - if (other == org.drizzle.messages.TableMessage.Table.Field.FieldOptions.getDefaultInstance()) return this; |
3465 | - if (other.hasDefaultValue()) { |
3466 | - setDefaultValue(other.getDefaultValue()); |
3467 | - } |
3468 | - if (other.hasUpdateValue()) { |
3469 | - setUpdateValue(other.getUpdateValue()); |
3470 | - } |
3471 | - if (other.hasDefaultNull()) { |
3472 | - setDefaultNull(other.getDefaultNull()); |
3473 | - } |
3474 | - if (other.hasDefaultBinValue()) { |
3475 | - setDefaultBinValue(other.getDefaultBinValue()); |
3476 | - } |
3477 | - this.mergeUnknownFields(other.getUnknownFields()); |
3478 | - return this; |
3479 | - } |
3480 | - |
3481 | - public Builder mergeFrom( |
3482 | - com.google.protobuf.CodedInputStream input, |
3483 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3484 | - throws java.io.IOException { |
3485 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
3486 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
3487 | - this.getUnknownFields()); |
3488 | - while (true) { |
3489 | - int tag = input.readTag(); |
3490 | - switch (tag) { |
3491 | - case 0: |
3492 | - this.setUnknownFields(unknownFields.build()); |
3493 | - return this; |
3494 | - default: { |
3495 | - if (!parseUnknownField(input, unknownFields, |
3496 | - extensionRegistry, tag)) { |
3497 | - this.setUnknownFields(unknownFields.build()); |
3498 | - return this; |
3499 | - } |
3500 | - break; |
3501 | - } |
3502 | - case 10: { |
3503 | - setDefaultValue(input.readString()); |
3504 | - break; |
3505 | - } |
3506 | - case 18: { |
3507 | - setUpdateValue(input.readString()); |
3508 | - break; |
3509 | - } |
3510 | - case 24: { |
3511 | - setDefaultNull(input.readBool()); |
3512 | - break; |
3513 | - } |
3514 | - case 34: { |
3515 | - setDefaultBinValue(input.readBytes()); |
3516 | - break; |
3517 | - } |
3518 | - } |
3519 | - } |
3520 | - } |
3521 | - |
3522 | - |
3523 | - // optional string default_value = 1; |
3524 | - public boolean hasDefaultValue() { |
3525 | - return result.hasDefaultValue(); |
3526 | - } |
3527 | - public java.lang.String getDefaultValue() { |
3528 | - return result.getDefaultValue(); |
3529 | - } |
3530 | - public Builder setDefaultValue(java.lang.String value) { |
3531 | - if (value == null) { |
3532 | - throw new NullPointerException(); |
3533 | - } |
3534 | - result.hasDefaultValue = true; |
3535 | - result.defaultValue_ = value; |
3536 | - return this; |
3537 | - } |
3538 | - public Builder clearDefaultValue() { |
3539 | - result.hasDefaultValue = false; |
3540 | - result.defaultValue_ = getDefaultInstance().getDefaultValue(); |
3541 | - return this; |
3542 | - } |
3543 | - |
3544 | - // optional string update_value = 2; |
3545 | - public boolean hasUpdateValue() { |
3546 | - return result.hasUpdateValue(); |
3547 | - } |
3548 | - public java.lang.String getUpdateValue() { |
3549 | - return result.getUpdateValue(); |
3550 | - } |
3551 | - public Builder setUpdateValue(java.lang.String value) { |
3552 | - if (value == null) { |
3553 | - throw new NullPointerException(); |
3554 | - } |
3555 | - result.hasUpdateValue = true; |
3556 | - result.updateValue_ = value; |
3557 | - return this; |
3558 | - } |
3559 | - public Builder clearUpdateValue() { |
3560 | - result.hasUpdateValue = false; |
3561 | - result.updateValue_ = getDefaultInstance().getUpdateValue(); |
3562 | - return this; |
3563 | - } |
3564 | - |
3565 | - // optional bool default_null = 3 [default = false]; |
3566 | - public boolean hasDefaultNull() { |
3567 | - return result.hasDefaultNull(); |
3568 | - } |
3569 | - public boolean getDefaultNull() { |
3570 | - return result.getDefaultNull(); |
3571 | - } |
3572 | - public Builder setDefaultNull(boolean value) { |
3573 | - result.hasDefaultNull = true; |
3574 | - result.defaultNull_ = value; |
3575 | - return this; |
3576 | - } |
3577 | - public Builder clearDefaultNull() { |
3578 | - result.hasDefaultNull = false; |
3579 | - result.defaultNull_ = false; |
3580 | - return this; |
3581 | - } |
3582 | - |
3583 | - // optional bytes default_bin_value = 4; |
3584 | - public boolean hasDefaultBinValue() { |
3585 | - return result.hasDefaultBinValue(); |
3586 | - } |
3587 | - public com.google.protobuf.ByteString getDefaultBinValue() { |
3588 | - return result.getDefaultBinValue(); |
3589 | - } |
3590 | - public Builder setDefaultBinValue(com.google.protobuf.ByteString value) { |
3591 | - if (value == null) { |
3592 | - throw new NullPointerException(); |
3593 | - } |
3594 | - result.hasDefaultBinValue = true; |
3595 | - result.defaultBinValue_ = value; |
3596 | - return this; |
3597 | - } |
3598 | - public Builder clearDefaultBinValue() { |
3599 | - result.hasDefaultBinValue = false; |
3600 | - result.defaultBinValue_ = getDefaultInstance().getDefaultBinValue(); |
3601 | - return this; |
3602 | - } |
3603 | - } |
3604 | - |
3605 | - static { |
3606 | - org.drizzle.messages.TableMessage.getDescriptor(); |
3607 | - } |
3608 | - |
3609 | - static { |
3610 | - org.drizzle.messages.TableMessage.internalForceInit(); |
3611 | - } |
3612 | - } |
3613 | - |
3614 | - public static final class TimestampFieldOptions extends |
3615 | - com.google.protobuf.GeneratedMessage { |
3616 | - // Use TimestampFieldOptions.newBuilder() to construct. |
3617 | - private TimestampFieldOptions() {} |
3618 | - |
3619 | - private static final TimestampFieldOptions defaultInstance = new TimestampFieldOptions(); |
3620 | - public static TimestampFieldOptions getDefaultInstance() { |
3621 | - return defaultInstance; |
3622 | - } |
3623 | - |
3624 | - public TimestampFieldOptions getDefaultInstanceForType() { |
3625 | - return defaultInstance; |
3626 | - } |
3627 | - |
3628 | - public static final com.google.protobuf.Descriptors.Descriptor |
3629 | - getDescriptor() { |
3630 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_TimestampFieldOptions_descriptor; |
3631 | - } |
3632 | - |
3633 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
3634 | - internalGetFieldAccessorTable() { |
3635 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_TimestampFieldOptions_fieldAccessorTable; |
3636 | - } |
3637 | - |
3638 | - // optional bool auto_updates = 1 [default = false]; |
3639 | - public static final int AUTO_UPDATES_FIELD_NUMBER = 1; |
3640 | - private boolean hasAutoUpdates; |
3641 | - private boolean autoUpdates_ = false; |
3642 | - public boolean hasAutoUpdates() { return hasAutoUpdates; } |
3643 | - public boolean getAutoUpdates() { return autoUpdates_; } |
3644 | - |
3645 | - public final boolean isInitialized() { |
3646 | - return true; |
3647 | - } |
3648 | - |
3649 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
3650 | - throws java.io.IOException { |
3651 | - if (hasAutoUpdates()) { |
3652 | - output.writeBool(1, getAutoUpdates()); |
3653 | - } |
3654 | - getUnknownFields().writeTo(output); |
3655 | - } |
3656 | - |
3657 | - private int memoizedSerializedSize = -1; |
3658 | - public int getSerializedSize() { |
3659 | - int size = memoizedSerializedSize; |
3660 | - if (size != -1) return size; |
3661 | - |
3662 | - size = 0; |
3663 | - if (hasAutoUpdates()) { |
3664 | - size += com.google.protobuf.CodedOutputStream |
3665 | - .computeBoolSize(1, getAutoUpdates()); |
3666 | - } |
3667 | - size += getUnknownFields().getSerializedSize(); |
3668 | - memoizedSerializedSize = size; |
3669 | - return size; |
3670 | - } |
3671 | - |
3672 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3673 | - com.google.protobuf.ByteString data) |
3674 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3675 | - return newBuilder().mergeFrom(data).buildParsed(); |
3676 | - } |
3677 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3678 | - com.google.protobuf.ByteString data, |
3679 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3680 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3681 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3682 | - .buildParsed(); |
3683 | - } |
3684 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom(byte[] data) |
3685 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3686 | - return newBuilder().mergeFrom(data).buildParsed(); |
3687 | - } |
3688 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3689 | - byte[] data, |
3690 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3691 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3692 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3693 | - .buildParsed(); |
3694 | - } |
3695 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom(java.io.InputStream input) |
3696 | - throws java.io.IOException { |
3697 | - return newBuilder().mergeFrom(input).buildParsed(); |
3698 | - } |
3699 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3700 | - java.io.InputStream input, |
3701 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3702 | - throws java.io.IOException { |
3703 | - return newBuilder().mergeFrom(input, extensionRegistry) |
3704 | - .buildParsed(); |
3705 | - } |
3706 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseDelimitedFrom(java.io.InputStream input) |
3707 | - throws java.io.IOException { |
3708 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
3709 | - } |
3710 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseDelimitedFrom( |
3711 | - java.io.InputStream input, |
3712 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3713 | - throws java.io.IOException { |
3714 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
3715 | - .buildParsed(); |
3716 | - } |
3717 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3718 | - com.google.protobuf.CodedInputStream input) |
3719 | - throws java.io.IOException { |
3720 | - return newBuilder().mergeFrom(input).buildParsed(); |
3721 | - } |
3722 | - public static org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions parseFrom( |
3723 | - com.google.protobuf.CodedInputStream input, |
3724 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3725 | - throws java.io.IOException { |
3726 | - return newBuilder().mergeFrom(input, extensionRegistry) |
3727 | - .buildParsed(); |
3728 | - } |
3729 | - |
3730 | - public static Builder newBuilder() { return Builder.create(); } |
3731 | - public Builder newBuilderForType() { return newBuilder(); } |
3732 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions prototype) { |
3733 | - return newBuilder().mergeFrom(prototype); |
3734 | - } |
3735 | - public Builder toBuilder() { return newBuilder(this); } |
3736 | - |
3737 | - public static final class Builder extends |
3738 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
3739 | - private org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions result; |
3740 | - |
3741 | - // Construct using org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions.newBuilder() |
3742 | - private Builder() {} |
3743 | - |
3744 | - private static Builder create() { |
3745 | - Builder builder = new Builder(); |
3746 | - builder.result = new org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions(); |
3747 | - return builder; |
3748 | - } |
3749 | - |
3750 | - protected org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions internalGetResult() { |
3751 | - return result; |
3752 | - } |
3753 | - |
3754 | - public Builder clear() { |
3755 | - if (result == null) { |
3756 | - throw new IllegalStateException( |
3757 | - "Cannot call clear() after build()."); |
3758 | - } |
3759 | - result = new org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions(); |
3760 | - return this; |
3761 | - } |
3762 | - |
3763 | - public Builder clone() { |
3764 | - return create().mergeFrom(result); |
3765 | - } |
3766 | - |
3767 | - public com.google.protobuf.Descriptors.Descriptor |
3768 | - getDescriptorForType() { |
3769 | - return org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions.getDescriptor(); |
3770 | - } |
3771 | - |
3772 | - public org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions getDefaultInstanceForType() { |
3773 | - return org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions.getDefaultInstance(); |
3774 | - } |
3775 | - |
3776 | - public boolean isInitialized() { |
3777 | - return result.isInitialized(); |
3778 | - } |
3779 | - public org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions build() { |
3780 | - if (result != null && !isInitialized()) { |
3781 | - throw newUninitializedMessageException(result); |
3782 | - } |
3783 | - return buildPartial(); |
3784 | - } |
3785 | - |
3786 | - private org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions buildParsed() |
3787 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3788 | - if (!isInitialized()) { |
3789 | - throw newUninitializedMessageException( |
3790 | - result).asInvalidProtocolBufferException(); |
3791 | - } |
3792 | - return buildPartial(); |
3793 | - } |
3794 | - |
3795 | - public org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions buildPartial() { |
3796 | - if (result == null) { |
3797 | - throw new IllegalStateException( |
3798 | - "build() has already been called on this Builder."); |
3799 | - } |
3800 | - org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions returnMe = result; |
3801 | - result = null; |
3802 | - return returnMe; |
3803 | - } |
3804 | - |
3805 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
3806 | - if (other instanceof org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions) { |
3807 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions)other); |
3808 | - } else { |
3809 | - super.mergeFrom(other); |
3810 | - return this; |
3811 | - } |
3812 | - } |
3813 | - |
3814 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions other) { |
3815 | - if (other == org.drizzle.messages.TableMessage.Table.Field.TimestampFieldOptions.getDefaultInstance()) return this; |
3816 | - if (other.hasAutoUpdates()) { |
3817 | - setAutoUpdates(other.getAutoUpdates()); |
3818 | - } |
3819 | - this.mergeUnknownFields(other.getUnknownFields()); |
3820 | - return this; |
3821 | - } |
3822 | - |
3823 | - public Builder mergeFrom( |
3824 | - com.google.protobuf.CodedInputStream input, |
3825 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3826 | - throws java.io.IOException { |
3827 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
3828 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
3829 | - this.getUnknownFields()); |
3830 | - while (true) { |
3831 | - int tag = input.readTag(); |
3832 | - switch (tag) { |
3833 | - case 0: |
3834 | - this.setUnknownFields(unknownFields.build()); |
3835 | - return this; |
3836 | - default: { |
3837 | - if (!parseUnknownField(input, unknownFields, |
3838 | - extensionRegistry, tag)) { |
3839 | - this.setUnknownFields(unknownFields.build()); |
3840 | - return this; |
3841 | - } |
3842 | - break; |
3843 | - } |
3844 | - case 8: { |
3845 | - setAutoUpdates(input.readBool()); |
3846 | - break; |
3847 | - } |
3848 | - } |
3849 | - } |
3850 | - } |
3851 | - |
3852 | - |
3853 | - // optional bool auto_updates = 1 [default = false]; |
3854 | - public boolean hasAutoUpdates() { |
3855 | - return result.hasAutoUpdates(); |
3856 | - } |
3857 | - public boolean getAutoUpdates() { |
3858 | - return result.getAutoUpdates(); |
3859 | - } |
3860 | - public Builder setAutoUpdates(boolean value) { |
3861 | - result.hasAutoUpdates = true; |
3862 | - result.autoUpdates_ = value; |
3863 | - return this; |
3864 | - } |
3865 | - public Builder clearAutoUpdates() { |
3866 | - result.hasAutoUpdates = false; |
3867 | - result.autoUpdates_ = false; |
3868 | - return this; |
3869 | - } |
3870 | - } |
3871 | - |
3872 | - static { |
3873 | - org.drizzle.messages.TableMessage.getDescriptor(); |
3874 | - } |
3875 | - |
3876 | - static { |
3877 | - org.drizzle.messages.TableMessage.internalForceInit(); |
3878 | - } |
3879 | - } |
3880 | - |
3881 | - public static final class FieldConstraints extends |
3882 | - com.google.protobuf.GeneratedMessage { |
3883 | - // Use FieldConstraints.newBuilder() to construct. |
3884 | - private FieldConstraints() {} |
3885 | - |
3886 | - private static final FieldConstraints defaultInstance = new FieldConstraints(); |
3887 | - public static FieldConstraints getDefaultInstance() { |
3888 | - return defaultInstance; |
3889 | - } |
3890 | - |
3891 | - public FieldConstraints getDefaultInstanceForType() { |
3892 | - return defaultInstance; |
3893 | - } |
3894 | - |
3895 | - public static final com.google.protobuf.Descriptors.Descriptor |
3896 | - getDescriptor() { |
3897 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_FieldConstraints_descriptor; |
3898 | - } |
3899 | - |
3900 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
3901 | - internalGetFieldAccessorTable() { |
3902 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_FieldConstraints_fieldAccessorTable; |
3903 | - } |
3904 | - |
3905 | - // required bool is_nullable = 1 [default = true]; |
3906 | - public static final int IS_NULLABLE_FIELD_NUMBER = 1; |
3907 | - private boolean hasIsNullable; |
3908 | - private boolean isNullable_ = true; |
3909 | - public boolean hasIsNullable() { return hasIsNullable; } |
3910 | - public boolean getIsNullable() { return isNullable_; } |
3911 | - |
3912 | - // optional bool is_unsigned = 2 [default = false]; |
3913 | - public static final int IS_UNSIGNED_FIELD_NUMBER = 2; |
3914 | - private boolean hasIsUnsigned; |
3915 | - private boolean isUnsigned_ = false; |
3916 | - public boolean hasIsUnsigned() { return hasIsUnsigned; } |
3917 | - public boolean getIsUnsigned() { return isUnsigned_; } |
3918 | - |
3919 | - // repeated string expression = 16; |
3920 | - public static final int EXPRESSION_FIELD_NUMBER = 16; |
3921 | - private java.util.List<java.lang.String> expression_ = |
3922 | - java.util.Collections.emptyList(); |
3923 | - public java.util.List<java.lang.String> getExpressionList() { |
3924 | - return expression_; |
3925 | - } |
3926 | - public int getExpressionCount() { return expression_.size(); } |
3927 | - public java.lang.String getExpression(int index) { |
3928 | - return expression_.get(index); |
3929 | - } |
3930 | - |
3931 | - public final boolean isInitialized() { |
3932 | - if (!hasIsNullable) return false; |
3933 | - return true; |
3934 | - } |
3935 | - |
3936 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
3937 | - throws java.io.IOException { |
3938 | - if (hasIsNullable()) { |
3939 | - output.writeBool(1, getIsNullable()); |
3940 | - } |
3941 | - if (hasIsUnsigned()) { |
3942 | - output.writeBool(2, getIsUnsigned()); |
3943 | - } |
3944 | - for (java.lang.String element : getExpressionList()) { |
3945 | - output.writeString(16, element); |
3946 | - } |
3947 | - getUnknownFields().writeTo(output); |
3948 | - } |
3949 | - |
3950 | - private int memoizedSerializedSize = -1; |
3951 | - public int getSerializedSize() { |
3952 | - int size = memoizedSerializedSize; |
3953 | - if (size != -1) return size; |
3954 | - |
3955 | - size = 0; |
3956 | - if (hasIsNullable()) { |
3957 | - size += com.google.protobuf.CodedOutputStream |
3958 | - .computeBoolSize(1, getIsNullable()); |
3959 | - } |
3960 | - if (hasIsUnsigned()) { |
3961 | - size += com.google.protobuf.CodedOutputStream |
3962 | - .computeBoolSize(2, getIsUnsigned()); |
3963 | - } |
3964 | - { |
3965 | - int dataSize = 0; |
3966 | - for (java.lang.String element : getExpressionList()) { |
3967 | - dataSize += com.google.protobuf.CodedOutputStream |
3968 | - .computeStringSizeNoTag(element); |
3969 | - } |
3970 | - size += dataSize; |
3971 | - size += 2 * getExpressionList().size(); |
3972 | - } |
3973 | - size += getUnknownFields().getSerializedSize(); |
3974 | - memoizedSerializedSize = size; |
3975 | - return size; |
3976 | - } |
3977 | - |
3978 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
3979 | - com.google.protobuf.ByteString data) |
3980 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3981 | - return newBuilder().mergeFrom(data).buildParsed(); |
3982 | - } |
3983 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
3984 | - com.google.protobuf.ByteString data, |
3985 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3986 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3987 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3988 | - .buildParsed(); |
3989 | - } |
3990 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom(byte[] data) |
3991 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3992 | - return newBuilder().mergeFrom(data).buildParsed(); |
3993 | - } |
3994 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
3995 | - byte[] data, |
3996 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
3997 | - throws com.google.protobuf.InvalidProtocolBufferException { |
3998 | - return newBuilder().mergeFrom(data, extensionRegistry) |
3999 | - .buildParsed(); |
4000 | - } |
4001 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom(java.io.InputStream input) |
4002 | - throws java.io.IOException { |
4003 | - return newBuilder().mergeFrom(input).buildParsed(); |
4004 | - } |
4005 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
4006 | - java.io.InputStream input, |
4007 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4008 | - throws java.io.IOException { |
4009 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4010 | - .buildParsed(); |
4011 | - } |
4012 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseDelimitedFrom(java.io.InputStream input) |
4013 | - throws java.io.IOException { |
4014 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
4015 | - } |
4016 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseDelimitedFrom( |
4017 | - java.io.InputStream input, |
4018 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4019 | - throws java.io.IOException { |
4020 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
4021 | - .buildParsed(); |
4022 | - } |
4023 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
4024 | - com.google.protobuf.CodedInputStream input) |
4025 | - throws java.io.IOException { |
4026 | - return newBuilder().mergeFrom(input).buildParsed(); |
4027 | - } |
4028 | - public static org.drizzle.messages.TableMessage.Table.Field.FieldConstraints parseFrom( |
4029 | - com.google.protobuf.CodedInputStream input, |
4030 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4031 | - throws java.io.IOException { |
4032 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4033 | - .buildParsed(); |
4034 | - } |
4035 | - |
4036 | - public static Builder newBuilder() { return Builder.create(); } |
4037 | - public Builder newBuilderForType() { return newBuilder(); } |
4038 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.Field.FieldConstraints prototype) { |
4039 | - return newBuilder().mergeFrom(prototype); |
4040 | - } |
4041 | - public Builder toBuilder() { return newBuilder(this); } |
4042 | - |
4043 | - public static final class Builder extends |
4044 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
4045 | - private org.drizzle.messages.TableMessage.Table.Field.FieldConstraints result; |
4046 | - |
4047 | - // Construct using org.drizzle.messages.TableMessage.Table.Field.FieldConstraints.newBuilder() |
4048 | - private Builder() {} |
4049 | - |
4050 | - private static Builder create() { |
4051 | - Builder builder = new Builder(); |
4052 | - builder.result = new org.drizzle.messages.TableMessage.Table.Field.FieldConstraints(); |
4053 | - return builder; |
4054 | - } |
4055 | - |
4056 | - protected org.drizzle.messages.TableMessage.Table.Field.FieldConstraints internalGetResult() { |
4057 | - return result; |
4058 | - } |
4059 | - |
4060 | - public Builder clear() { |
4061 | - if (result == null) { |
4062 | - throw new IllegalStateException( |
4063 | - "Cannot call clear() after build()."); |
4064 | - } |
4065 | - result = new org.drizzle.messages.TableMessage.Table.Field.FieldConstraints(); |
4066 | - return this; |
4067 | - } |
4068 | - |
4069 | - public Builder clone() { |
4070 | - return create().mergeFrom(result); |
4071 | - } |
4072 | - |
4073 | - public com.google.protobuf.Descriptors.Descriptor |
4074 | - getDescriptorForType() { |
4075 | - return org.drizzle.messages.TableMessage.Table.Field.FieldConstraints.getDescriptor(); |
4076 | - } |
4077 | - |
4078 | - public org.drizzle.messages.TableMessage.Table.Field.FieldConstraints getDefaultInstanceForType() { |
4079 | - return org.drizzle.messages.TableMessage.Table.Field.FieldConstraints.getDefaultInstance(); |
4080 | - } |
4081 | - |
4082 | - public boolean isInitialized() { |
4083 | - return result.isInitialized(); |
4084 | - } |
4085 | - public org.drizzle.messages.TableMessage.Table.Field.FieldConstraints build() { |
4086 | - if (result != null && !isInitialized()) { |
4087 | - throw newUninitializedMessageException(result); |
4088 | - } |
4089 | - return buildPartial(); |
4090 | - } |
4091 | - |
4092 | - private org.drizzle.messages.TableMessage.Table.Field.FieldConstraints buildParsed() |
4093 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4094 | - if (!isInitialized()) { |
4095 | - throw newUninitializedMessageException( |
4096 | - result).asInvalidProtocolBufferException(); |
4097 | - } |
4098 | - return buildPartial(); |
4099 | - } |
4100 | - |
4101 | - public org.drizzle.messages.TableMessage.Table.Field.FieldConstraints buildPartial() { |
4102 | - if (result == null) { |
4103 | - throw new IllegalStateException( |
4104 | - "build() has already been called on this Builder."); |
4105 | - } |
4106 | - if (result.expression_ != java.util.Collections.EMPTY_LIST) { |
4107 | - result.expression_ = |
4108 | - java.util.Collections.unmodifiableList(result.expression_); |
4109 | - } |
4110 | - org.drizzle.messages.TableMessage.Table.Field.FieldConstraints returnMe = result; |
4111 | - result = null; |
4112 | - return returnMe; |
4113 | - } |
4114 | - |
4115 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
4116 | - if (other instanceof org.drizzle.messages.TableMessage.Table.Field.FieldConstraints) { |
4117 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.Field.FieldConstraints)other); |
4118 | - } else { |
4119 | - super.mergeFrom(other); |
4120 | - return this; |
4121 | - } |
4122 | - } |
4123 | - |
4124 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.Field.FieldConstraints other) { |
4125 | - if (other == org.drizzle.messages.TableMessage.Table.Field.FieldConstraints.getDefaultInstance()) return this; |
4126 | - if (other.hasIsNullable()) { |
4127 | - setIsNullable(other.getIsNullable()); |
4128 | - } |
4129 | - if (other.hasIsUnsigned()) { |
4130 | - setIsUnsigned(other.getIsUnsigned()); |
4131 | - } |
4132 | - if (!other.expression_.isEmpty()) { |
4133 | - if (result.expression_.isEmpty()) { |
4134 | - result.expression_ = new java.util.ArrayList<java.lang.String>(); |
4135 | - } |
4136 | - result.expression_.addAll(other.expression_); |
4137 | - } |
4138 | - this.mergeUnknownFields(other.getUnknownFields()); |
4139 | - return this; |
4140 | - } |
4141 | - |
4142 | - public Builder mergeFrom( |
4143 | - com.google.protobuf.CodedInputStream input, |
4144 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4145 | - throws java.io.IOException { |
4146 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
4147 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
4148 | - this.getUnknownFields()); |
4149 | - while (true) { |
4150 | - int tag = input.readTag(); |
4151 | - switch (tag) { |
4152 | - case 0: |
4153 | - this.setUnknownFields(unknownFields.build()); |
4154 | - return this; |
4155 | - default: { |
4156 | - if (!parseUnknownField(input, unknownFields, |
4157 | - extensionRegistry, tag)) { |
4158 | - this.setUnknownFields(unknownFields.build()); |
4159 | - return this; |
4160 | - } |
4161 | - break; |
4162 | - } |
4163 | - case 8: { |
4164 | - setIsNullable(input.readBool()); |
4165 | - break; |
4166 | - } |
4167 | - case 16: { |
4168 | - setIsUnsigned(input.readBool()); |
4169 | - break; |
4170 | - } |
4171 | - case 130: { |
4172 | - addExpression(input.readString()); |
4173 | - break; |
4174 | - } |
4175 | - } |
4176 | - } |
4177 | - } |
4178 | - |
4179 | - |
4180 | - // required bool is_nullable = 1 [default = true]; |
4181 | - public boolean hasIsNullable() { |
4182 | - return result.hasIsNullable(); |
4183 | - } |
4184 | - public boolean getIsNullable() { |
4185 | - return result.getIsNullable(); |
4186 | - } |
4187 | - public Builder setIsNullable(boolean value) { |
4188 | - result.hasIsNullable = true; |
4189 | - result.isNullable_ = value; |
4190 | - return this; |
4191 | - } |
4192 | - public Builder clearIsNullable() { |
4193 | - result.hasIsNullable = false; |
4194 | - result.isNullable_ = true; |
4195 | - return this; |
4196 | - } |
4197 | - |
4198 | - // optional bool is_unsigned = 2 [default = false]; |
4199 | - public boolean hasIsUnsigned() { |
4200 | - return result.hasIsUnsigned(); |
4201 | - } |
4202 | - public boolean getIsUnsigned() { |
4203 | - return result.getIsUnsigned(); |
4204 | - } |
4205 | - public Builder setIsUnsigned(boolean value) { |
4206 | - result.hasIsUnsigned = true; |
4207 | - result.isUnsigned_ = value; |
4208 | - return this; |
4209 | - } |
4210 | - public Builder clearIsUnsigned() { |
4211 | - result.hasIsUnsigned = false; |
4212 | - result.isUnsigned_ = false; |
4213 | - return this; |
4214 | - } |
4215 | - |
4216 | - // repeated string expression = 16; |
4217 | - public java.util.List<java.lang.String> getExpressionList() { |
4218 | - return java.util.Collections.unmodifiableList(result.expression_); |
4219 | - } |
4220 | - public int getExpressionCount() { |
4221 | - return result.getExpressionCount(); |
4222 | - } |
4223 | - public java.lang.String getExpression(int index) { |
4224 | - return result.getExpression(index); |
4225 | - } |
4226 | - public Builder setExpression(int index, java.lang.String value) { |
4227 | - if (value == null) { |
4228 | - throw new NullPointerException(); |
4229 | - } |
4230 | - result.expression_.set(index, value); |
4231 | - return this; |
4232 | - } |
4233 | - public Builder addExpression(java.lang.String value) { |
4234 | - if (value == null) { |
4235 | - throw new NullPointerException(); |
4236 | - } |
4237 | - if (result.expression_.isEmpty()) { |
4238 | - result.expression_ = new java.util.ArrayList<java.lang.String>(); |
4239 | - } |
4240 | - result.expression_.add(value); |
4241 | - return this; |
4242 | - } |
4243 | - public Builder addAllExpression( |
4244 | - java.lang.Iterable<? extends java.lang.String> values) { |
4245 | - if (result.expression_.isEmpty()) { |
4246 | - result.expression_ = new java.util.ArrayList<java.lang.String>(); |
4247 | - } |
4248 | - super.addAll(values, result.expression_); |
4249 | - return this; |
4250 | - } |
4251 | - public Builder clearExpression() { |
4252 | - result.expression_ = java.util.Collections.emptyList(); |
4253 | - return this; |
4254 | - } |
4255 | - } |
4256 | - |
4257 | - static { |
4258 | - org.drizzle.messages.TableMessage.getDescriptor(); |
4259 | - } |
4260 | - |
4261 | - static { |
4262 | - org.drizzle.messages.TableMessage.internalForceInit(); |
4263 | - } |
4264 | - } |
4265 | - |
4266 | - public static final class NumericFieldOptions extends |
4267 | - com.google.protobuf.GeneratedMessage { |
4268 | - // Use NumericFieldOptions.newBuilder() to construct. |
4269 | - private NumericFieldOptions() {} |
4270 | - |
4271 | - private static final NumericFieldOptions defaultInstance = new NumericFieldOptions(); |
4272 | - public static NumericFieldOptions getDefaultInstance() { |
4273 | - return defaultInstance; |
4274 | - } |
4275 | - |
4276 | - public NumericFieldOptions getDefaultInstanceForType() { |
4277 | - return defaultInstance; |
4278 | - } |
4279 | - |
4280 | - public static final com.google.protobuf.Descriptors.Descriptor |
4281 | - getDescriptor() { |
4282 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_NumericFieldOptions_descriptor; |
4283 | - } |
4284 | - |
4285 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
4286 | - internalGetFieldAccessorTable() { |
4287 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_NumericFieldOptions_fieldAccessorTable; |
4288 | - } |
4289 | - |
4290 | - // optional bool is_autoincrement = 1 [default = false]; |
4291 | - public static final int IS_AUTOINCREMENT_FIELD_NUMBER = 1; |
4292 | - private boolean hasIsAutoincrement; |
4293 | - private boolean isAutoincrement_ = false; |
4294 | - public boolean hasIsAutoincrement() { return hasIsAutoincrement; } |
4295 | - public boolean getIsAutoincrement() { return isAutoincrement_; } |
4296 | - |
4297 | - // optional uint32 scale = 2; |
4298 | - public static final int SCALE_FIELD_NUMBER = 2; |
4299 | - private boolean hasScale; |
4300 | - private int scale_ = 0; |
4301 | - public boolean hasScale() { return hasScale; } |
4302 | - public int getScale() { return scale_; } |
4303 | - |
4304 | - // optional uint32 precision = 3; |
4305 | - public static final int PRECISION_FIELD_NUMBER = 3; |
4306 | - private boolean hasPrecision; |
4307 | - private int precision_ = 0; |
4308 | - public boolean hasPrecision() { return hasPrecision; } |
4309 | - public int getPrecision() { return precision_; } |
4310 | - |
4311 | - public final boolean isInitialized() { |
4312 | - return true; |
4313 | - } |
4314 | - |
4315 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
4316 | - throws java.io.IOException { |
4317 | - if (hasIsAutoincrement()) { |
4318 | - output.writeBool(1, getIsAutoincrement()); |
4319 | - } |
4320 | - if (hasScale()) { |
4321 | - output.writeUInt32(2, getScale()); |
4322 | - } |
4323 | - if (hasPrecision()) { |
4324 | - output.writeUInt32(3, getPrecision()); |
4325 | - } |
4326 | - getUnknownFields().writeTo(output); |
4327 | - } |
4328 | - |
4329 | - private int memoizedSerializedSize = -1; |
4330 | - public int getSerializedSize() { |
4331 | - int size = memoizedSerializedSize; |
4332 | - if (size != -1) return size; |
4333 | - |
4334 | - size = 0; |
4335 | - if (hasIsAutoincrement()) { |
4336 | - size += com.google.protobuf.CodedOutputStream |
4337 | - .computeBoolSize(1, getIsAutoincrement()); |
4338 | - } |
4339 | - if (hasScale()) { |
4340 | - size += com.google.protobuf.CodedOutputStream |
4341 | - .computeUInt32Size(2, getScale()); |
4342 | - } |
4343 | - if (hasPrecision()) { |
4344 | - size += com.google.protobuf.CodedOutputStream |
4345 | - .computeUInt32Size(3, getPrecision()); |
4346 | - } |
4347 | - size += getUnknownFields().getSerializedSize(); |
4348 | - memoizedSerializedSize = size; |
4349 | - return size; |
4350 | - } |
4351 | - |
4352 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4353 | - com.google.protobuf.ByteString data) |
4354 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4355 | - return newBuilder().mergeFrom(data).buildParsed(); |
4356 | - } |
4357 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4358 | - com.google.protobuf.ByteString data, |
4359 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4360 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4361 | - return newBuilder().mergeFrom(data, extensionRegistry) |
4362 | - .buildParsed(); |
4363 | - } |
4364 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom(byte[] data) |
4365 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4366 | - return newBuilder().mergeFrom(data).buildParsed(); |
4367 | - } |
4368 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4369 | - byte[] data, |
4370 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4371 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4372 | - return newBuilder().mergeFrom(data, extensionRegistry) |
4373 | - .buildParsed(); |
4374 | - } |
4375 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom(java.io.InputStream input) |
4376 | - throws java.io.IOException { |
4377 | - return newBuilder().mergeFrom(input).buildParsed(); |
4378 | - } |
4379 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4380 | - java.io.InputStream input, |
4381 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4382 | - throws java.io.IOException { |
4383 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4384 | - .buildParsed(); |
4385 | - } |
4386 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseDelimitedFrom(java.io.InputStream input) |
4387 | - throws java.io.IOException { |
4388 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
4389 | - } |
4390 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseDelimitedFrom( |
4391 | - java.io.InputStream input, |
4392 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4393 | - throws java.io.IOException { |
4394 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
4395 | - .buildParsed(); |
4396 | - } |
4397 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4398 | - com.google.protobuf.CodedInputStream input) |
4399 | - throws java.io.IOException { |
4400 | - return newBuilder().mergeFrom(input).buildParsed(); |
4401 | - } |
4402 | - public static org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions parseFrom( |
4403 | - com.google.protobuf.CodedInputStream input, |
4404 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4405 | - throws java.io.IOException { |
4406 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4407 | - .buildParsed(); |
4408 | - } |
4409 | - |
4410 | - public static Builder newBuilder() { return Builder.create(); } |
4411 | - public Builder newBuilderForType() { return newBuilder(); } |
4412 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions prototype) { |
4413 | - return newBuilder().mergeFrom(prototype); |
4414 | - } |
4415 | - public Builder toBuilder() { return newBuilder(this); } |
4416 | - |
4417 | - public static final class Builder extends |
4418 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
4419 | - private org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions result; |
4420 | - |
4421 | - // Construct using org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions.newBuilder() |
4422 | - private Builder() {} |
4423 | - |
4424 | - private static Builder create() { |
4425 | - Builder builder = new Builder(); |
4426 | - builder.result = new org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions(); |
4427 | - return builder; |
4428 | - } |
4429 | - |
4430 | - protected org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions internalGetResult() { |
4431 | - return result; |
4432 | - } |
4433 | - |
4434 | - public Builder clear() { |
4435 | - if (result == null) { |
4436 | - throw new IllegalStateException( |
4437 | - "Cannot call clear() after build()."); |
4438 | - } |
4439 | - result = new org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions(); |
4440 | - return this; |
4441 | - } |
4442 | - |
4443 | - public Builder clone() { |
4444 | - return create().mergeFrom(result); |
4445 | - } |
4446 | - |
4447 | - public com.google.protobuf.Descriptors.Descriptor |
4448 | - getDescriptorForType() { |
4449 | - return org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions.getDescriptor(); |
4450 | - } |
4451 | - |
4452 | - public org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions getDefaultInstanceForType() { |
4453 | - return org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions.getDefaultInstance(); |
4454 | - } |
4455 | - |
4456 | - public boolean isInitialized() { |
4457 | - return result.isInitialized(); |
4458 | - } |
4459 | - public org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions build() { |
4460 | - if (result != null && !isInitialized()) { |
4461 | - throw newUninitializedMessageException(result); |
4462 | - } |
4463 | - return buildPartial(); |
4464 | - } |
4465 | - |
4466 | - private org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions buildParsed() |
4467 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4468 | - if (!isInitialized()) { |
4469 | - throw newUninitializedMessageException( |
4470 | - result).asInvalidProtocolBufferException(); |
4471 | - } |
4472 | - return buildPartial(); |
4473 | - } |
4474 | - |
4475 | - public org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions buildPartial() { |
4476 | - if (result == null) { |
4477 | - throw new IllegalStateException( |
4478 | - "build() has already been called on this Builder."); |
4479 | - } |
4480 | - org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions returnMe = result; |
4481 | - result = null; |
4482 | - return returnMe; |
4483 | - } |
4484 | - |
4485 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
4486 | - if (other instanceof org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions) { |
4487 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions)other); |
4488 | - } else { |
4489 | - super.mergeFrom(other); |
4490 | - return this; |
4491 | - } |
4492 | - } |
4493 | - |
4494 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions other) { |
4495 | - if (other == org.drizzle.messages.TableMessage.Table.Field.NumericFieldOptions.getDefaultInstance()) return this; |
4496 | - if (other.hasIsAutoincrement()) { |
4497 | - setIsAutoincrement(other.getIsAutoincrement()); |
4498 | - } |
4499 | - if (other.hasScale()) { |
4500 | - setScale(other.getScale()); |
4501 | - } |
4502 | - if (other.hasPrecision()) { |
4503 | - setPrecision(other.getPrecision()); |
4504 | - } |
4505 | - this.mergeUnknownFields(other.getUnknownFields()); |
4506 | - return this; |
4507 | - } |
4508 | - |
4509 | - public Builder mergeFrom( |
4510 | - com.google.protobuf.CodedInputStream input, |
4511 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4512 | - throws java.io.IOException { |
4513 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
4514 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
4515 | - this.getUnknownFields()); |
4516 | - while (true) { |
4517 | - int tag = input.readTag(); |
4518 | - switch (tag) { |
4519 | - case 0: |
4520 | - this.setUnknownFields(unknownFields.build()); |
4521 | - return this; |
4522 | - default: { |
4523 | - if (!parseUnknownField(input, unknownFields, |
4524 | - extensionRegistry, tag)) { |
4525 | - this.setUnknownFields(unknownFields.build()); |
4526 | - return this; |
4527 | - } |
4528 | - break; |
4529 | - } |
4530 | - case 8: { |
4531 | - setIsAutoincrement(input.readBool()); |
4532 | - break; |
4533 | - } |
4534 | - case 16: { |
4535 | - setScale(input.readUInt32()); |
4536 | - break; |
4537 | - } |
4538 | - case 24: { |
4539 | - setPrecision(input.readUInt32()); |
4540 | - break; |
4541 | - } |
4542 | - } |
4543 | - } |
4544 | - } |
4545 | - |
4546 | - |
4547 | - // optional bool is_autoincrement = 1 [default = false]; |
4548 | - public boolean hasIsAutoincrement() { |
4549 | - return result.hasIsAutoincrement(); |
4550 | - } |
4551 | - public boolean getIsAutoincrement() { |
4552 | - return result.getIsAutoincrement(); |
4553 | - } |
4554 | - public Builder setIsAutoincrement(boolean value) { |
4555 | - result.hasIsAutoincrement = true; |
4556 | - result.isAutoincrement_ = value; |
4557 | - return this; |
4558 | - } |
4559 | - public Builder clearIsAutoincrement() { |
4560 | - result.hasIsAutoincrement = false; |
4561 | - result.isAutoincrement_ = false; |
4562 | - return this; |
4563 | - } |
4564 | - |
4565 | - // optional uint32 scale = 2; |
4566 | - public boolean hasScale() { |
4567 | - return result.hasScale(); |
4568 | - } |
4569 | - public int getScale() { |
4570 | - return result.getScale(); |
4571 | - } |
4572 | - public Builder setScale(int value) { |
4573 | - result.hasScale = true; |
4574 | - result.scale_ = value; |
4575 | - return this; |
4576 | - } |
4577 | - public Builder clearScale() { |
4578 | - result.hasScale = false; |
4579 | - result.scale_ = 0; |
4580 | - return this; |
4581 | - } |
4582 | - |
4583 | - // optional uint32 precision = 3; |
4584 | - public boolean hasPrecision() { |
4585 | - return result.hasPrecision(); |
4586 | - } |
4587 | - public int getPrecision() { |
4588 | - return result.getPrecision(); |
4589 | - } |
4590 | - public Builder setPrecision(int value) { |
4591 | - result.hasPrecision = true; |
4592 | - result.precision_ = value; |
4593 | - return this; |
4594 | - } |
4595 | - public Builder clearPrecision() { |
4596 | - result.hasPrecision = false; |
4597 | - result.precision_ = 0; |
4598 | - return this; |
4599 | - } |
4600 | - } |
4601 | - |
4602 | - static { |
4603 | - org.drizzle.messages.TableMessage.getDescriptor(); |
4604 | - } |
4605 | - |
4606 | - static { |
4607 | - org.drizzle.messages.TableMessage.internalForceInit(); |
4608 | - } |
4609 | - } |
4610 | - |
4611 | - public static final class StringFieldOptions extends |
4612 | - com.google.protobuf.GeneratedMessage { |
4613 | - // Use StringFieldOptions.newBuilder() to construct. |
4614 | - private StringFieldOptions() {} |
4615 | - |
4616 | - private static final StringFieldOptions defaultInstance = new StringFieldOptions(); |
4617 | - public static StringFieldOptions getDefaultInstance() { |
4618 | - return defaultInstance; |
4619 | - } |
4620 | - |
4621 | - public StringFieldOptions getDefaultInstanceForType() { |
4622 | - return defaultInstance; |
4623 | - } |
4624 | - |
4625 | - public static final com.google.protobuf.Descriptors.Descriptor |
4626 | - getDescriptor() { |
4627 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_StringFieldOptions_descriptor; |
4628 | - } |
4629 | - |
4630 | - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
4631 | - internalGetFieldAccessorTable() { |
4632 | - return org.drizzle.messages.TableMessage.internal_static_drizzled_message_Table_Field_StringFieldOptions_fieldAccessorTable; |
4633 | - } |
4634 | - |
4635 | - // optional bool is_fixed_width = 1 [default = false]; |
4636 | - public static final int IS_FIXED_WIDTH_FIELD_NUMBER = 1; |
4637 | - private boolean hasIsFixedWidth; |
4638 | - private boolean isFixedWidth_ = false; |
4639 | - public boolean hasIsFixedWidth() { return hasIsFixedWidth; } |
4640 | - public boolean getIsFixedWidth() { return isFixedWidth_; } |
4641 | - |
4642 | - // optional uint32 length = 2; |
4643 | - public static final int LENGTH_FIELD_NUMBER = 2; |
4644 | - private boolean hasLength; |
4645 | - private int length_ = 0; |
4646 | - public boolean hasLength() { return hasLength; } |
4647 | - public int getLength() { return length_; } |
4648 | - |
4649 | - // optional uint32 collation_id = 3; |
4650 | - public static final int COLLATION_ID_FIELD_NUMBER = 3; |
4651 | - private boolean hasCollationId; |
4652 | - private int collationId_ = 0; |
4653 | - public boolean hasCollationId() { return hasCollationId; } |
4654 | - public int getCollationId() { return collationId_; } |
4655 | - |
4656 | - // optional string collation = 4; |
4657 | - public static final int COLLATION_FIELD_NUMBER = 4; |
4658 | - private boolean hasCollation; |
4659 | - private java.lang.String collation_ = ""; |
4660 | - public boolean hasCollation() { return hasCollation; } |
4661 | - public java.lang.String getCollation() { return collation_; } |
4662 | - |
4663 | - public final boolean isInitialized() { |
4664 | - return true; |
4665 | - } |
4666 | - |
4667 | - public void writeTo(com.google.protobuf.CodedOutputStream output) |
4668 | - throws java.io.IOException { |
4669 | - if (hasIsFixedWidth()) { |
4670 | - output.writeBool(1, getIsFixedWidth()); |
4671 | - } |
4672 | - if (hasLength()) { |
4673 | - output.writeUInt32(2, getLength()); |
4674 | - } |
4675 | - if (hasCollationId()) { |
4676 | - output.writeUInt32(3, getCollationId()); |
4677 | - } |
4678 | - if (hasCollation()) { |
4679 | - output.writeString(4, getCollation()); |
4680 | - } |
4681 | - getUnknownFields().writeTo(output); |
4682 | - } |
4683 | - |
4684 | - private int memoizedSerializedSize = -1; |
4685 | - public int getSerializedSize() { |
4686 | - int size = memoizedSerializedSize; |
4687 | - if (size != -1) return size; |
4688 | - |
4689 | - size = 0; |
4690 | - if (hasIsFixedWidth()) { |
4691 | - size += com.google.protobuf.CodedOutputStream |
4692 | - .computeBoolSize(1, getIsFixedWidth()); |
4693 | - } |
4694 | - if (hasLength()) { |
4695 | - size += com.google.protobuf.CodedOutputStream |
4696 | - .computeUInt32Size(2, getLength()); |
4697 | - } |
4698 | - if (hasCollationId()) { |
4699 | - size += com.google.protobuf.CodedOutputStream |
4700 | - .computeUInt32Size(3, getCollationId()); |
4701 | - } |
4702 | - if (hasCollation()) { |
4703 | - size += com.google.protobuf.CodedOutputStream |
4704 | - .computeStringSize(4, getCollation()); |
4705 | - } |
4706 | - size += getUnknownFields().getSerializedSize(); |
4707 | - memoizedSerializedSize = size; |
4708 | - return size; |
4709 | - } |
4710 | - |
4711 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4712 | - com.google.protobuf.ByteString data) |
4713 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4714 | - return newBuilder().mergeFrom(data).buildParsed(); |
4715 | - } |
4716 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4717 | - com.google.protobuf.ByteString data, |
4718 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4719 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4720 | - return newBuilder().mergeFrom(data, extensionRegistry) |
4721 | - .buildParsed(); |
4722 | - } |
4723 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom(byte[] data) |
4724 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4725 | - return newBuilder().mergeFrom(data).buildParsed(); |
4726 | - } |
4727 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4728 | - byte[] data, |
4729 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4730 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4731 | - return newBuilder().mergeFrom(data, extensionRegistry) |
4732 | - .buildParsed(); |
4733 | - } |
4734 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom(java.io.InputStream input) |
4735 | - throws java.io.IOException { |
4736 | - return newBuilder().mergeFrom(input).buildParsed(); |
4737 | - } |
4738 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4739 | - java.io.InputStream input, |
4740 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4741 | - throws java.io.IOException { |
4742 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4743 | - .buildParsed(); |
4744 | - } |
4745 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseDelimitedFrom(java.io.InputStream input) |
4746 | - throws java.io.IOException { |
4747 | - return newBuilder().mergeDelimitedFrom(input).buildParsed(); |
4748 | - } |
4749 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseDelimitedFrom( |
4750 | - java.io.InputStream input, |
4751 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4752 | - throws java.io.IOException { |
4753 | - return newBuilder().mergeDelimitedFrom(input, extensionRegistry) |
4754 | - .buildParsed(); |
4755 | - } |
4756 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4757 | - com.google.protobuf.CodedInputStream input) |
4758 | - throws java.io.IOException { |
4759 | - return newBuilder().mergeFrom(input).buildParsed(); |
4760 | - } |
4761 | - public static org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions parseFrom( |
4762 | - com.google.protobuf.CodedInputStream input, |
4763 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4764 | - throws java.io.IOException { |
4765 | - return newBuilder().mergeFrom(input, extensionRegistry) |
4766 | - .buildParsed(); |
4767 | - } |
4768 | - |
4769 | - public static Builder newBuilder() { return Builder.create(); } |
4770 | - public Builder newBuilderForType() { return newBuilder(); } |
4771 | - public static Builder newBuilder(org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions prototype) { |
4772 | - return newBuilder().mergeFrom(prototype); |
4773 | - } |
4774 | - public Builder toBuilder() { return newBuilder(this); } |
4775 | - |
4776 | - public static final class Builder extends |
4777 | - com.google.protobuf.GeneratedMessage.Builder<Builder> { |
4778 | - private org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions result; |
4779 | - |
4780 | - // Construct using org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions.newBuilder() |
4781 | - private Builder() {} |
4782 | - |
4783 | - private static Builder create() { |
4784 | - Builder builder = new Builder(); |
4785 | - builder.result = new org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions(); |
4786 | - return builder; |
4787 | - } |
4788 | - |
4789 | - protected org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions internalGetResult() { |
4790 | - return result; |
4791 | - } |
4792 | - |
4793 | - public Builder clear() { |
4794 | - if (result == null) { |
4795 | - throw new IllegalStateException( |
4796 | - "Cannot call clear() after build()."); |
4797 | - } |
4798 | - result = new org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions(); |
4799 | - return this; |
4800 | - } |
4801 | - |
4802 | - public Builder clone() { |
4803 | - return create().mergeFrom(result); |
4804 | - } |
4805 | - |
4806 | - public com.google.protobuf.Descriptors.Descriptor |
4807 | - getDescriptorForType() { |
4808 | - return org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions.getDescriptor(); |
4809 | - } |
4810 | - |
4811 | - public org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions getDefaultInstanceForType() { |
4812 | - return org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions.getDefaultInstance(); |
4813 | - } |
4814 | - |
4815 | - public boolean isInitialized() { |
4816 | - return result.isInitialized(); |
4817 | - } |
4818 | - public org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions build() { |
4819 | - if (result != null && !isInitialized()) { |
4820 | - throw newUninitializedMessageException(result); |
4821 | - } |
4822 | - return buildPartial(); |
4823 | - } |
4824 | - |
4825 | - private org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions buildParsed() |
4826 | - throws com.google.protobuf.InvalidProtocolBufferException { |
4827 | - if (!isInitialized()) { |
4828 | - throw newUninitializedMessageException( |
4829 | - result).asInvalidProtocolBufferException(); |
4830 | - } |
4831 | - return buildPartial(); |
4832 | - } |
4833 | - |
4834 | - public org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions buildPartial() { |
4835 | - if (result == null) { |
4836 | - throw new IllegalStateException( |
4837 | - "build() has already been called on this Builder."); |
4838 | - } |
4839 | - org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions returnMe = result; |
4840 | - result = null; |
4841 | - return returnMe; |
4842 | - } |
4843 | - |
4844 | - public Builder mergeFrom(com.google.protobuf.Message other) { |
4845 | - if (other instanceof org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions) { |
4846 | - return mergeFrom((org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions)other); |
4847 | - } else { |
4848 | - super.mergeFrom(other); |
4849 | - return this; |
4850 | - } |
4851 | - } |
4852 | - |
4853 | - public Builder mergeFrom(org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions other) { |
4854 | - if (other == org.drizzle.messages.TableMessage.Table.Field.StringFieldOptions.getDefaultInstance()) return this; |
4855 | - if (other.hasIsFixedWidth()) { |
4856 | - setIsFixedWidth(other.getIsFixedWidth()); |
4857 | - } |
4858 | - if (other.hasLength()) { |
4859 | - setLength(other.getLength()); |
4860 | - } |
4861 | - if (other.hasCollationId()) { |
4862 | - setCollationId(other.getCollationId()); |
4863 | - } |
4864 | - if (other.hasCollation()) { |
4865 | - setCollation(other.getCollation()); |
4866 | - } |
4867 | - this.mergeUnknownFields(other.getUnknownFields()); |
4868 | - return this; |
4869 | - } |
4870 | - |
4871 | - public Builder mergeFrom( |
4872 | - com.google.protobuf.CodedInputStream input, |
4873 | - com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
4874 | - throws java.io.IOException { |
4875 | - com.google.protobuf.UnknownFieldSet.Builder unknownFields = |
4876 | - com.google.protobuf.UnknownFieldSet.newBuilder( |
4877 | - this.getUnknownFields()); |
4878 | - while (true) { |
4879 | - int tag = input.readTag(); |
4880 | - switch (tag) { |
4881 | - case 0: |
4882 | - this.setUnknownFields(unknownFields.build()); |
4883 | - return this; |
4884 | - default: { |
4885 | - if (!parseUnknownField(input, unknownFields, |
4886 | - extensionRegistry, tag)) { |
4887 | - this.setUnknownFields(unknownFields.build()); |
4888 | - return this; |
4889 | - } |
4890 | - break; |
4891 | - } |
4892 | - case 8: { |
4893 | - setIsFixedWidth(input.readBool()); |
4894 | - break; |
4895 | - } |
4896 | - case 16: { |
4897 | - setLength(input.readUInt32()); |
4898 | - break; |
4899 | - } |
4900 | - case 24: { |
4901 | - setCollationId(input.readUInt32()); |
4902 | - break; |
4903 | - } |
4904 | - case 34: { |
4905 | - setCollation(input.readString()); |
4906 | - break; |
4907 | - } |
4908 | - } |
4909 | - } |
4910 | - } |
4911 | - |
4912 | - |
4913 | - // optional bool is_fixed_width = 1 [default = false]; |
4914 | - public boolean hasIsFixedWidth() { |
4915 | - return result.hasIsFixedWidth(); |
4916 | - } |
4917 | - public boolean getIsFixedWidth() { |
4918 | - return result.getIsFixedWidth(); |
4919 | - } |
4920 | - public Builder setIsFixedWidth(boolean value) { |
4921 | - result.hasIsFixedWidth = true; |
4922 | - result.isFixedWidth_ = value; |
4923 | - return this; |
4924 | - } |
4925 | - public Builder clearIsFixedWidth() { |
4926 | - result.hasIsFixedWidth = false; |
4927 | - result.isFixedWidth_ = false; |
4928 | - return this; |
4929 | - } |
4930 | - |
4931 | - // optional uint32 length = 2; |
4932 | - public boolean hasLength() { |
4933 | - return result.hasLength(); |
4934 | - } |
4935 | - public int getLength() { |
4936 | - return result.getLength(); |
4937 | - } |
4938 | - public Builder setLength(int value) { |
4939 | - result.hasLength = true; |
4940 | - result.length_ = value; |
4941 | - return this; |
4942 | - } |
4943 | - public Builder clearLength() { |
4944 | - result.hasLength = false; |
4945 | - result.length_ = 0; |
4946 | - return this; |
4947 | - } |
4948 | - |
4949 | - // optional uint32 collation_id = 3; |
4950 | - public boolean hasCollationId() { |
4951 | - return result.hasCollationId(); |
4952 | - } |
4953 | - public int getCollationId() { |
4954 | - return result.getCollationId(); |
4955 | - } |
4956 | - public Builder setCollationId(int value) { |
4957 | - result.hasCollationId = true; |
4958 | - result.collationId_ = value; |
4959 | - return this; |
4960 | - } |
4961 | - public Builder clearCollationId() { |
4962 | - result.hasCollationId = false; |
4963 | - result.collationId_ = 0; |
4964 | - return this; |
4965 | - } |
4966 | - |
4967 | - // optional string collation = 4; |
4968 | - public boolean hasCollation() { |
4969 | - return result.hasCollation(); |
4970 | - } |
4971 | - public java.lang.String getCollation() { |
4972 | - return result.getCollation(); |
4973 | - } |
4974 | - public Builder setCollation(java.lang.String value) { |
4975 | - if (value == null) { |
4976 | - throw new NullPointerException(); |
4977 | - } |
4978 | - result.hasCollation = true; |
4979 | - result.collation_ = value; |
4980 | - return this; |
4981 | - } |
4982 | - public Builder clearCollation() { |
4983 | - result.hasCollation = false; |
4984 | - result.collation_ = getDefaultInstance().getCollation(); |
4985 | - return this; |
4986 | - } |
4987 | - } |
4988 | - |
4989 | - static { |
4990 | - org.drizzle.messages.TableMessage.getDescriptor(); |
4991 | - } |
4992 | - |
4993 | - static { |
4994 | - org.drizzle.messages.TableMessage.internalForceInit(); |
4995 | - } |
4996 | - } |
4997 | - |
4998 | - public static final class SetFieldOptions extends |
4999 | - com.google.protobuf.GeneratedMessage { |
5000 | - // Use SetFieldOptions.newBuilder() to construct. |
The diff has been truncated for viewing.