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