My favorites
▼
|
Sign in
aeftools
App Engine Tools by appenginefan.com
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
src
/
javatests
/
com
/
appenginefan
/
toolkit
/
persistence
/
TestData.java
r21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
// Generated by the protocol buffer compiler. DO NOT EDIT!
package com.appenginefan.toolkit.persistence;
public final class TestData {
private TestData() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static final class Person
extends com.google.protobuf.GeneratedMessage {
// Use Person.newBuilder() to construct.
private Person() {
}
private static final Person defaultInstance =
new Person();
public static Person getDefaultInstance() {
return defaultInstance;
}
public Person getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.appenginefan.toolkit.persistence.TestData.internal_static_javatests_Person_descriptor;
}
@Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return com.appenginefan.toolkit.persistence.TestData.internal_static_javatests_Person_fieldAccessorTable;
}
// required string name = 1;
private boolean hasName;
private java.lang.String name_ = "";
public boolean hasName() {
return hasName;
}
public java.lang.String getName() {
return name_;
}
// optional string email = 2;
private boolean hasEmail;
private java.lang.String email_ = "";
public boolean hasEmail() {
return hasEmail;
}
public java.lang.String getEmail() {
return email_;
}
@Override
public final boolean isInitialized() {
if (!hasName)
return false;
return true;
}
@Override
public void writeTo(
com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (hasName()) {
output.writeString(1, getName());
}
if (hasEmail()) {
output.writeString(2, getEmail());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
@Override
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1)
return size;
size = 0;
if (hasName()) {
size +=
com.google.protobuf.CodedOutputStream
.computeStringSize(1, getName());
}
if (hasEmail()) {
size +=
com.google.protobuf.CodedOutputStream
.computeStringSize(2, getEmail());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder()
.mergeFrom(data, extensionRegistry).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder()
.mergeFrom(data, extensionRegistry).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input,
extensionRegistry).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.appenginefan.toolkit.persistence.TestData.Person parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input,
extensionRegistry).buildParsed();
}
public static Builder newBuilder() {
return new Builder();
}
public Builder newBuilderForType() {
return new Builder();
}
public static Builder newBuilder(
com.appenginefan.toolkit.persistence.TestData.Person prototype) {
return new Builder().mergeFrom(prototype);
}
public static final class Builder
extends
com.google.protobuf.GeneratedMessage.Builder<Builder> {
// Construct using
// com.appenginefan.toolkit.persistence.TestData.Person.newBuilder()
private Builder() {
}
com.appenginefan.toolkit.persistence.TestData.Person result =
new com.appenginefan.toolkit.persistence.TestData.Person();
@Override
protected com.appenginefan.toolkit.persistence.TestData.Person internalGetResult() {
return result;
}
@Override
public Builder clear() {
result =
new com.appenginefan.toolkit.persistence.TestData.Person();
return this;
}
@Override
public Builder clone() {
return new Builder().mergeFrom(result);
}
@Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.appenginefan.toolkit.persistence.TestData.Person
.getDescriptor();
}
public com.appenginefan.toolkit.persistence.TestData.Person getDefaultInstanceForType() {
return com.appenginefan.toolkit.persistence.TestData.Person
.getDefaultInstance();
}
public com.appenginefan.toolkit.persistence.TestData.Person build() {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result);
}
return buildPartial();
}
private com.appenginefan.toolkit.persistence.TestData.Person buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw new com.google.protobuf.UninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.appenginefan.toolkit.persistence.TestData.Person buildPartial() {
com.appenginefan.toolkit.persistence.TestData.Person returnMe =
result;
result = null;
return returnMe;
}
@Override
public Builder mergeFrom(
com.google.protobuf.Message other) {
if (other instanceof com.appenginefan.toolkit.persistence.TestData.Person) {
return mergeFrom((com.appenginefan.toolkit.persistence.TestData.Person) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.appenginefan.toolkit.persistence.TestData.Person other) {
if (other == com.appenginefan.toolkit.persistence.TestData.Person
.getDefaultInstance())
return this;
if (other.hasName()) {
setName(other.getName());
}
if (other.hasEmail()) {
setEmail(other.getEmail());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return mergeFrom(input,
com.google.protobuf.ExtensionRegistry
.getEmptyRegistry());
}
@Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistry extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet
.newBuilder(this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
setName(input.readString());
break;
}
case 18: {
setEmail(input.readString());
break;
}
}
}
}
// required string name = 1;
public boolean hasName() {
return result.hasName();
}
public java.lang.String getName() {
return result.getName();
}
public Builder setName(java.lang.String value) {
result.hasName = true;
result.name_ = value;
return this;
}
public Builder clearName() {
result.hasName = false;
result.name_ = "";
return this;
}
// optional string email = 2;
public boolean hasEmail() {
return result.hasEmail();
}
public java.lang.String getEmail() {
return result.getEmail();
}
public Builder setEmail(java.lang.String value) {
result.hasEmail = true;
result.email_ = value;
return this;
}
public Builder clearEmail() {
result.hasEmail = false;
result.email_ = "";
return this;
}
}
static {
com.appenginefan.toolkit.persistence.TestData
.getDescriptor();
}
}
private static com.google.protobuf.Descriptors.Descriptor internal_static_javatests_Person_descriptor;
private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_javatests_Person_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
static {
java.lang.String descriptorData =
"\n\034src/javatests/testdata.proto\022\tjavatest"
+ "s\"%\n\006Person\022\014\n\004name\030\001 \002(\t\022\r\n\005email\030\002 \001(\t"
+ "B2\n$com.appenginefan.toolkit.persistence"
+ "B\010TestDataH\001";
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_javatests_Person_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_javatests_Person_fieldAccessorTable =
new com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_javatests_Person_descriptor,
new java.lang.String[] { "Name",
"Email", },
com.appenginefan.toolkit.persistence.TestData.Person.class,
com.appenginefan.toolkit.persistence.TestData.Person.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(
descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {},
assigner);
}
}
Show details
Hide details
Change log
r2
by schefflerjens on Apr 17, 2009
Diff
Initial revision
Go to:
/trunk
/trunk/LICENSE-2.0.txt
/trunk/build.xml
/trunk/dist
/trunk/dist/aeftools.jar
/trunk/docs
/trunk/docs/api
...k/docs/api/allclasses-frame.html
...docs/api/allclasses-noframe.html
/trunk/docs/api/com
/trunk/docs/api/com/appenginefan
...ocs/api/com/appenginefan/toolkit
...appenginefan/toolkit/persistence
...stence/DatastorePersistence.html
...istence/MapBasedPersistence.html
...ence/MarshallingPersistence.html
...rsistence/ObjectPersistence.html
...kit/persistence/Persistence.html
...e/ProtocolBufferPersistence.html
.../persistence/StoreException.html
...rsistence/StringPersistence.html
...t/persistence/package-frame.html
...persistence/package-summary.html
...it/persistence/package-tree.html
...nk/docs/api/constant-values.html
...nk/docs/api/deprecated-list.html
/trunk/docs/api/help-doc.html
/trunk/docs/api/index-all.html
/trunk/docs/api/index.html
/trunk/docs/api/overview-tree.html
/trunk/docs/api/package-list
/trunk/docs/api/resources
...k/docs/api/resources/inherit.gif
...nk/docs/api/serialized-form.html
/trunk/docs/api/stylesheet.css
/trunk/lib
/trunk/lib/readme.txt
/trunk/src
/trunk/src/java
/trunk/src/java/com
/trunk/src/java/com/appenginefan
...rc/java/com/appenginefan/toolkit
...appenginefan/toolkit/persistence
...stence/DatastorePersistence.java
...istence/MapBasedPersistence.java
...ence/MarshallingPersistence.java
...rsistence/ObjectPersistence.java
...kit/persistence/Persistence.java
...e/ProtocolBufferPersistence.java
.../persistence/StoreException.java
Project members,
sign in
to write a code review
Older revisions
All revisions of this file
File info
Size: 12418 bytes, 397 lines
View raw file
Powered by
Google Project Hosting