Merge lp:~dshrews/rabbitreplication/rabbitreplication_update into lp:rabbitreplication

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
Reviewer Review Type Date Requested Status
Marcus Eriksson Pending
Review via email: mp+47422@code.launchpad.net

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

Subscribers

People subscribed via source and target branches