iudex-brutefuzzy-protobuf 1.3.0-java → 1.4.0-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/Manifest.txt +1 -1
- data/README.rdoc +1 -1
- data/lib/iudex-brutefuzzy-protobuf.rb +1 -1
- data/lib/iudex-brutefuzzy-protobuf/base.rb +2 -2
- data/lib/iudex-brutefuzzy-protobuf/iudex-brutefuzzy-protobuf-1.4.0.jar +0 -0
- data/pom.xml +3 -3
- data/proto/brutefuzzy.proto +1 -1
- data/src/main/java/iudex/brutefuzzy/protobuf/ProtocolBuffers.java +458 -254
- data/test/setup.rb +1 -1
- data/test/test_protobuf.rb +1 -1
- metadata +7 -7
- data/lib/iudex-brutefuzzy-protobuf/iudex-brutefuzzy-protobuf-1.3.0.jar +0 -0
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#--
|
2
|
-
# Copyright (c) 2008-
|
2
|
+
# Copyright (c) 2008-2013 David Kellum
|
3
3
|
#
|
4
4
|
# Licensed under the Apache License, Version 2.0 (the "License"); you
|
5
5
|
# may not use this file except in compliance with the License. You may
|
@@ -17,7 +17,7 @@
|
|
17
17
|
module Iudex
|
18
18
|
module BruteFuzzy
|
19
19
|
module Protobuf
|
20
|
-
VERSION = '1.
|
20
|
+
VERSION = '1.4.0'
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
Binary file
|
data/pom.xml
CHANGED
@@ -3,13 +3,13 @@
|
|
3
3
|
<groupId>iudex</groupId>
|
4
4
|
<artifactId>iudex-brutefuzzy-protobuf</artifactId>
|
5
5
|
<packaging>jar</packaging>
|
6
|
-
<version>1.
|
6
|
+
<version>1.4.0</version>
|
7
7
|
<name>Iudex BruteFuzzy Service Protocol Buffers</name>
|
8
8
|
|
9
9
|
<parent>
|
10
10
|
<groupId>iudex</groupId>
|
11
11
|
<artifactId>iudex-parent</artifactId>
|
12
|
-
<version>1.
|
12
|
+
<version>1.4.0</version>
|
13
13
|
<relativePath>..</relativePath>
|
14
14
|
</parent>
|
15
15
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<dependency>
|
18
18
|
<groupId>com.google.protobuf</groupId>
|
19
19
|
<artifactId>protobuf-java</artifactId>
|
20
|
-
<version>2.
|
20
|
+
<version>2.5.0</version>
|
21
21
|
</dependency>
|
22
22
|
</dependencies>
|
23
23
|
|
data/proto/brutefuzzy.proto
CHANGED
@@ -8,20 +8,41 @@ public final class ProtocolBuffers {
|
|
8
8
|
public static void registerAllExtensions(
|
9
9
|
com.google.protobuf.ExtensionRegistry registry) {
|
10
10
|
}
|
11
|
+
/**
|
12
|
+
* Protobuf enum {@code iudex.brutefuzzy.protobuf.RequestAction}
|
13
|
+
*/
|
11
14
|
public enum RequestAction
|
12
15
|
implements com.google.protobuf.ProtocolMessageEnum {
|
16
|
+
/**
|
17
|
+
* <code>CHECK_ONLY = 0;</code>
|
18
|
+
*/
|
13
19
|
CHECK_ONLY(0, 0),
|
20
|
+
/**
|
21
|
+
* <code>ADD = 1;</code>
|
22
|
+
*/
|
14
23
|
ADD(1, 1),
|
24
|
+
/**
|
25
|
+
* <code>REMOVE = 3;</code>
|
26
|
+
*/
|
15
27
|
REMOVE(2, 3),
|
16
28
|
;
|
17
|
-
|
29
|
+
|
30
|
+
/**
|
31
|
+
* <code>CHECK_ONLY = 0;</code>
|
32
|
+
*/
|
18
33
|
public static final int CHECK_ONLY_VALUE = 0;
|
34
|
+
/**
|
35
|
+
* <code>ADD = 1;</code>
|
36
|
+
*/
|
19
37
|
public static final int ADD_VALUE = 1;
|
38
|
+
/**
|
39
|
+
* <code>REMOVE = 3;</code>
|
40
|
+
*/
|
20
41
|
public static final int REMOVE_VALUE = 3;
|
21
|
-
|
22
|
-
|
42
|
+
|
43
|
+
|
23
44
|
public final int getNumber() { return value; }
|
24
|
-
|
45
|
+
|
25
46
|
public static RequestAction valueOf(int value) {
|
26
47
|
switch (value) {
|
27
48
|
case 0: return CHECK_ONLY;
|
@@ -30,7 +51,7 @@ public final class ProtocolBuffers {
|
|
30
51
|
default: return null;
|
31
52
|
}
|
32
53
|
}
|
33
|
-
|
54
|
+
|
34
55
|
public static com.google.protobuf.Internal.EnumLiteMap<RequestAction>
|
35
56
|
internalGetValueMap() {
|
36
57
|
return internalValueMap;
|
@@ -42,7 +63,7 @@ public final class ProtocolBuffers {
|
|
42
63
|
return RequestAction.valueOf(number);
|
43
64
|
}
|
44
65
|
};
|
45
|
-
|
66
|
+
|
46
67
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
47
68
|
getValueDescriptor() {
|
48
69
|
return getDescriptor().getValues().get(index);
|
@@ -55,11 +76,9 @@ public final class ProtocolBuffers {
|
|
55
76
|
getDescriptor() {
|
56
77
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.getDescriptor().getEnumTypes().get(0);
|
57
78
|
}
|
58
|
-
|
59
|
-
private static final RequestAction[] VALUES =
|
60
|
-
|
61
|
-
};
|
62
|
-
|
79
|
+
|
80
|
+
private static final RequestAction[] VALUES = values();
|
81
|
+
|
63
82
|
public static RequestAction valueOf(
|
64
83
|
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
65
84
|
if (desc.getType() != getDescriptor()) {
|
@@ -68,78 +87,180 @@ public final class ProtocolBuffers {
|
|
68
87
|
}
|
69
88
|
return VALUES[desc.getIndex()];
|
70
89
|
}
|
71
|
-
|
90
|
+
|
72
91
|
private final int index;
|
73
92
|
private final int value;
|
74
|
-
|
93
|
+
|
75
94
|
private RequestAction(int index, int value) {
|
76
95
|
this.index = index;
|
77
96
|
this.value = value;
|
78
97
|
}
|
79
|
-
|
98
|
+
|
80
99
|
// @@protoc_insertion_point(enum_scope:iudex.brutefuzzy.protobuf.RequestAction)
|
81
100
|
}
|
82
|
-
|
101
|
+
|
83
102
|
public interface RequestOrBuilder
|
84
103
|
extends com.google.protobuf.MessageOrBuilder {
|
85
|
-
|
104
|
+
|
86
105
|
// required sfixed64 simhash = 1;
|
106
|
+
/**
|
107
|
+
* <code>required sfixed64 simhash = 1;</code>
|
108
|
+
*/
|
87
109
|
boolean hasSimhash();
|
110
|
+
/**
|
111
|
+
* <code>required sfixed64 simhash = 1;</code>
|
112
|
+
*/
|
88
113
|
long getSimhash();
|
89
|
-
|
114
|
+
|
90
115
|
// optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];
|
116
|
+
/**
|
117
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
118
|
+
*/
|
91
119
|
boolean hasAction();
|
120
|
+
/**
|
121
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
122
|
+
*/
|
92
123
|
iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction getAction();
|
93
124
|
}
|
125
|
+
/**
|
126
|
+
* Protobuf type {@code iudex.brutefuzzy.protobuf.Request}
|
127
|
+
*/
|
94
128
|
public static final class Request extends
|
95
129
|
com.google.protobuf.GeneratedMessage
|
96
130
|
implements RequestOrBuilder {
|
97
131
|
// Use Request.newBuilder() to construct.
|
98
|
-
private Request(Builder builder) {
|
132
|
+
private Request(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
|
99
133
|
super(builder);
|
134
|
+
this.unknownFields = builder.getUnknownFields();
|
100
135
|
}
|
101
|
-
private Request(boolean noInit) {}
|
102
|
-
|
136
|
+
private Request(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
137
|
+
|
103
138
|
private static final Request defaultInstance;
|
104
139
|
public static Request getDefaultInstance() {
|
105
140
|
return defaultInstance;
|
106
141
|
}
|
107
|
-
|
142
|
+
|
108
143
|
public Request getDefaultInstanceForType() {
|
109
144
|
return defaultInstance;
|
110
145
|
}
|
111
|
-
|
146
|
+
|
147
|
+
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
148
|
+
@java.lang.Override
|
149
|
+
public final com.google.protobuf.UnknownFieldSet
|
150
|
+
getUnknownFields() {
|
151
|
+
return this.unknownFields;
|
152
|
+
}
|
153
|
+
private Request(
|
154
|
+
com.google.protobuf.CodedInputStream input,
|
155
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
156
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
157
|
+
initFields();
|
158
|
+
int mutable_bitField0_ = 0;
|
159
|
+
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
160
|
+
com.google.protobuf.UnknownFieldSet.newBuilder();
|
161
|
+
try {
|
162
|
+
boolean done = false;
|
163
|
+
while (!done) {
|
164
|
+
int tag = input.readTag();
|
165
|
+
switch (tag) {
|
166
|
+
case 0:
|
167
|
+
done = true;
|
168
|
+
break;
|
169
|
+
default: {
|
170
|
+
if (!parseUnknownField(input, unknownFields,
|
171
|
+
extensionRegistry, tag)) {
|
172
|
+
done = true;
|
173
|
+
}
|
174
|
+
break;
|
175
|
+
}
|
176
|
+
case 9: {
|
177
|
+
bitField0_ |= 0x00000001;
|
178
|
+
simhash_ = input.readSFixed64();
|
179
|
+
break;
|
180
|
+
}
|
181
|
+
case 16: {
|
182
|
+
int rawValue = input.readEnum();
|
183
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction value = iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction.valueOf(rawValue);
|
184
|
+
if (value == null) {
|
185
|
+
unknownFields.mergeVarintField(2, rawValue);
|
186
|
+
} else {
|
187
|
+
bitField0_ |= 0x00000002;
|
188
|
+
action_ = value;
|
189
|
+
}
|
190
|
+
break;
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
195
|
+
throw e.setUnfinishedMessage(this);
|
196
|
+
} catch (java.io.IOException e) {
|
197
|
+
throw new com.google.protobuf.InvalidProtocolBufferException(
|
198
|
+
e.getMessage()).setUnfinishedMessage(this);
|
199
|
+
} finally {
|
200
|
+
this.unknownFields = unknownFields.build();
|
201
|
+
makeExtensionsImmutable();
|
202
|
+
}
|
203
|
+
}
|
112
204
|
public static final com.google.protobuf.Descriptors.Descriptor
|
113
205
|
getDescriptor() {
|
114
206
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_descriptor;
|
115
207
|
}
|
116
|
-
|
208
|
+
|
117
209
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
118
210
|
internalGetFieldAccessorTable() {
|
119
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_fieldAccessorTable
|
211
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_fieldAccessorTable
|
212
|
+
.ensureFieldAccessorsInitialized(
|
213
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.class, iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.Builder.class);
|
214
|
+
}
|
215
|
+
|
216
|
+
public static com.google.protobuf.Parser<Request> PARSER =
|
217
|
+
new com.google.protobuf.AbstractParser<Request>() {
|
218
|
+
public Request parsePartialFrom(
|
219
|
+
com.google.protobuf.CodedInputStream input,
|
220
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
221
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
222
|
+
return new Request(input, extensionRegistry);
|
223
|
+
}
|
224
|
+
};
|
225
|
+
|
226
|
+
@java.lang.Override
|
227
|
+
public com.google.protobuf.Parser<Request> getParserForType() {
|
228
|
+
return PARSER;
|
120
229
|
}
|
121
|
-
|
230
|
+
|
122
231
|
private int bitField0_;
|
123
232
|
// required sfixed64 simhash = 1;
|
124
233
|
public static final int SIMHASH_FIELD_NUMBER = 1;
|
125
234
|
private long simhash_;
|
235
|
+
/**
|
236
|
+
* <code>required sfixed64 simhash = 1;</code>
|
237
|
+
*/
|
126
238
|
public boolean hasSimhash() {
|
127
239
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
128
240
|
}
|
241
|
+
/**
|
242
|
+
* <code>required sfixed64 simhash = 1;</code>
|
243
|
+
*/
|
129
244
|
public long getSimhash() {
|
130
245
|
return simhash_;
|
131
246
|
}
|
132
|
-
|
247
|
+
|
133
248
|
// optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];
|
134
249
|
public static final int ACTION_FIELD_NUMBER = 2;
|
135
250
|
private iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction action_;
|
251
|
+
/**
|
252
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
253
|
+
*/
|
136
254
|
public boolean hasAction() {
|
137
255
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
138
256
|
}
|
257
|
+
/**
|
258
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
259
|
+
*/
|
139
260
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction getAction() {
|
140
261
|
return action_;
|
141
262
|
}
|
142
|
-
|
263
|
+
|
143
264
|
private void initFields() {
|
144
265
|
simhash_ = 0L;
|
145
266
|
action_ = iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction.CHECK_ONLY;
|
@@ -148,7 +269,7 @@ public final class ProtocolBuffers {
|
|
148
269
|
public final boolean isInitialized() {
|
149
270
|
byte isInitialized = memoizedIsInitialized;
|
150
271
|
if (isInitialized != -1) return isInitialized == 1;
|
151
|
-
|
272
|
+
|
152
273
|
if (!hasSimhash()) {
|
153
274
|
memoizedIsInitialized = 0;
|
154
275
|
return false;
|
@@ -156,7 +277,7 @@ public final class ProtocolBuffers {
|
|
156
277
|
memoizedIsInitialized = 1;
|
157
278
|
return true;
|
158
279
|
}
|
159
|
-
|
280
|
+
|
160
281
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
161
282
|
throws java.io.IOException {
|
162
283
|
getSerializedSize();
|
@@ -168,12 +289,12 @@ public final class ProtocolBuffers {
|
|
168
289
|
}
|
169
290
|
getUnknownFields().writeTo(output);
|
170
291
|
}
|
171
|
-
|
292
|
+
|
172
293
|
private int memoizedSerializedSize = -1;
|
173
294
|
public int getSerializedSize() {
|
174
295
|
int size = memoizedSerializedSize;
|
175
296
|
if (size != -1) return size;
|
176
|
-
|
297
|
+
|
177
298
|
size = 0;
|
178
299
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
179
300
|
size += com.google.protobuf.CodedOutputStream
|
@@ -187,94 +308,83 @@ public final class ProtocolBuffers {
|
|
187
308
|
memoizedSerializedSize = size;
|
188
309
|
return size;
|
189
310
|
}
|
190
|
-
|
311
|
+
|
191
312
|
private static final long serialVersionUID = 0L;
|
192
313
|
@java.lang.Override
|
193
314
|
protected java.lang.Object writeReplace()
|
194
315
|
throws java.io.ObjectStreamException {
|
195
316
|
return super.writeReplace();
|
196
317
|
}
|
197
|
-
|
318
|
+
|
198
319
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
199
320
|
com.google.protobuf.ByteString data)
|
200
321
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
201
|
-
return
|
322
|
+
return PARSER.parseFrom(data);
|
202
323
|
}
|
203
324
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
204
325
|
com.google.protobuf.ByteString data,
|
205
326
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
206
327
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
207
|
-
return
|
208
|
-
.buildParsed();
|
328
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
209
329
|
}
|
210
330
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(byte[] data)
|
211
331
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
212
|
-
return
|
332
|
+
return PARSER.parseFrom(data);
|
213
333
|
}
|
214
334
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
215
335
|
byte[] data,
|
216
336
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
217
337
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
218
|
-
return
|
219
|
-
.buildParsed();
|
338
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
220
339
|
}
|
221
340
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(java.io.InputStream input)
|
222
341
|
throws java.io.IOException {
|
223
|
-
return
|
342
|
+
return PARSER.parseFrom(input);
|
224
343
|
}
|
225
344
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
226
345
|
java.io.InputStream input,
|
227
346
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
228
347
|
throws java.io.IOException {
|
229
|
-
return
|
230
|
-
.buildParsed();
|
348
|
+
return PARSER.parseFrom(input, extensionRegistry);
|
231
349
|
}
|
232
350
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseDelimitedFrom(java.io.InputStream input)
|
233
351
|
throws java.io.IOException {
|
234
|
-
|
235
|
-
if (builder.mergeDelimitedFrom(input)) {
|
236
|
-
return builder.buildParsed();
|
237
|
-
} else {
|
238
|
-
return null;
|
239
|
-
}
|
352
|
+
return PARSER.parseDelimitedFrom(input);
|
240
353
|
}
|
241
354
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseDelimitedFrom(
|
242
355
|
java.io.InputStream input,
|
243
356
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
244
357
|
throws java.io.IOException {
|
245
|
-
|
246
|
-
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
|
247
|
-
return builder.buildParsed();
|
248
|
-
} else {
|
249
|
-
return null;
|
250
|
-
}
|
358
|
+
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
251
359
|
}
|
252
360
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
253
361
|
com.google.protobuf.CodedInputStream input)
|
254
362
|
throws java.io.IOException {
|
255
|
-
return
|
363
|
+
return PARSER.parseFrom(input);
|
256
364
|
}
|
257
365
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parseFrom(
|
258
366
|
com.google.protobuf.CodedInputStream input,
|
259
367
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
260
368
|
throws java.io.IOException {
|
261
|
-
return
|
262
|
-
.buildParsed();
|
369
|
+
return PARSER.parseFrom(input, extensionRegistry);
|
263
370
|
}
|
264
|
-
|
371
|
+
|
265
372
|
public static Builder newBuilder() { return Builder.create(); }
|
266
373
|
public Builder newBuilderForType() { return newBuilder(); }
|
267
374
|
public static Builder newBuilder(iudex.brutefuzzy.protobuf.ProtocolBuffers.Request prototype) {
|
268
375
|
return newBuilder().mergeFrom(prototype);
|
269
376
|
}
|
270
377
|
public Builder toBuilder() { return newBuilder(this); }
|
271
|
-
|
378
|
+
|
272
379
|
@java.lang.Override
|
273
380
|
protected Builder newBuilderForType(
|
274
381
|
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
275
382
|
Builder builder = new Builder(parent);
|
276
383
|
return builder;
|
277
384
|
}
|
385
|
+
/**
|
386
|
+
* Protobuf type {@code iudex.brutefuzzy.protobuf.Request}
|
387
|
+
*/
|
278
388
|
public static final class Builder extends
|
279
389
|
com.google.protobuf.GeneratedMessage.Builder<Builder>
|
280
390
|
implements iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestOrBuilder {
|
@@ -282,18 +392,21 @@ public final class ProtocolBuffers {
|
|
282
392
|
getDescriptor() {
|
283
393
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_descriptor;
|
284
394
|
}
|
285
|
-
|
395
|
+
|
286
396
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
287
397
|
internalGetFieldAccessorTable() {
|
288
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_fieldAccessorTable
|
398
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_fieldAccessorTable
|
399
|
+
.ensureFieldAccessorsInitialized(
|
400
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.class, iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.Builder.class);
|
289
401
|
}
|
290
|
-
|
402
|
+
|
291
403
|
// Construct using iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.newBuilder()
|
292
404
|
private Builder() {
|
293
405
|
maybeForceBuilderInitialization();
|
294
406
|
}
|
295
|
-
|
296
|
-
private Builder(
|
407
|
+
|
408
|
+
private Builder(
|
409
|
+
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
297
410
|
super(parent);
|
298
411
|
maybeForceBuilderInitialization();
|
299
412
|
}
|
@@ -304,7 +417,7 @@ public final class ProtocolBuffers {
|
|
304
417
|
private static Builder create() {
|
305
418
|
return new Builder();
|
306
419
|
}
|
307
|
-
|
420
|
+
|
308
421
|
public Builder clear() {
|
309
422
|
super.clear();
|
310
423
|
simhash_ = 0L;
|
@@ -313,20 +426,20 @@ public final class ProtocolBuffers {
|
|
313
426
|
bitField0_ = (bitField0_ & ~0x00000002);
|
314
427
|
return this;
|
315
428
|
}
|
316
|
-
|
429
|
+
|
317
430
|
public Builder clone() {
|
318
431
|
return create().mergeFrom(buildPartial());
|
319
432
|
}
|
320
|
-
|
433
|
+
|
321
434
|
public com.google.protobuf.Descriptors.Descriptor
|
322
435
|
getDescriptorForType() {
|
323
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.
|
436
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Request_descriptor;
|
324
437
|
}
|
325
|
-
|
438
|
+
|
326
439
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Request getDefaultInstanceForType() {
|
327
440
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.getDefaultInstance();
|
328
441
|
}
|
329
|
-
|
442
|
+
|
330
443
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Request build() {
|
331
444
|
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request result = buildPartial();
|
332
445
|
if (!result.isInitialized()) {
|
@@ -334,17 +447,7 @@ public final class ProtocolBuffers {
|
|
334
447
|
}
|
335
448
|
return result;
|
336
449
|
}
|
337
|
-
|
338
|
-
private iudex.brutefuzzy.protobuf.ProtocolBuffers.Request buildParsed()
|
339
|
-
throws com.google.protobuf.InvalidProtocolBufferException {
|
340
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request result = buildPartial();
|
341
|
-
if (!result.isInitialized()) {
|
342
|
-
throw newUninitializedMessageException(
|
343
|
-
result).asInvalidProtocolBufferException();
|
344
|
-
}
|
345
|
-
return result;
|
346
|
-
}
|
347
|
-
|
450
|
+
|
348
451
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Request buildPartial() {
|
349
452
|
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request result = new iudex.brutefuzzy.protobuf.ProtocolBuffers.Request(this);
|
350
453
|
int from_bitField0_ = bitField0_;
|
@@ -361,7 +464,7 @@ public final class ProtocolBuffers {
|
|
361
464
|
onBuilt();
|
362
465
|
return result;
|
363
466
|
}
|
364
|
-
|
467
|
+
|
365
468
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
366
469
|
if (other instanceof iudex.brutefuzzy.protobuf.ProtocolBuffers.Request) {
|
367
470
|
return mergeFrom((iudex.brutefuzzy.protobuf.ProtocolBuffers.Request)other);
|
@@ -370,7 +473,7 @@ public final class ProtocolBuffers {
|
|
370
473
|
return this;
|
371
474
|
}
|
372
475
|
}
|
373
|
-
|
476
|
+
|
374
477
|
public Builder mergeFrom(iudex.brutefuzzy.protobuf.ProtocolBuffers.Request other) {
|
375
478
|
if (other == iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.getDefaultInstance()) return this;
|
376
479
|
if (other.hasSimhash()) {
|
@@ -382,7 +485,7 @@ public final class ProtocolBuffers {
|
|
382
485
|
this.mergeUnknownFields(other.getUnknownFields());
|
383
486
|
return this;
|
384
487
|
}
|
385
|
-
|
488
|
+
|
386
489
|
public final boolean isInitialized() {
|
387
490
|
if (!hasSimhash()) {
|
388
491
|
|
@@ -390,81 +493,76 @@ public final class ProtocolBuffers {
|
|
390
493
|
}
|
391
494
|
return true;
|
392
495
|
}
|
393
|
-
|
496
|
+
|
394
497
|
public Builder mergeFrom(
|
395
498
|
com.google.protobuf.CodedInputStream input,
|
396
499
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
397
500
|
throws java.io.IOException {
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
return this;
|
408
|
-
default: {
|
409
|
-
if (!parseUnknownField(input, unknownFields,
|
410
|
-
extensionRegistry, tag)) {
|
411
|
-
this.setUnknownFields(unknownFields.build());
|
412
|
-
onChanged();
|
413
|
-
return this;
|
414
|
-
}
|
415
|
-
break;
|
416
|
-
}
|
417
|
-
case 9: {
|
418
|
-
bitField0_ |= 0x00000001;
|
419
|
-
simhash_ = input.readSFixed64();
|
420
|
-
break;
|
421
|
-
}
|
422
|
-
case 16: {
|
423
|
-
int rawValue = input.readEnum();
|
424
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction value = iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction.valueOf(rawValue);
|
425
|
-
if (value == null) {
|
426
|
-
unknownFields.mergeVarintField(2, rawValue);
|
427
|
-
} else {
|
428
|
-
bitField0_ |= 0x00000002;
|
429
|
-
action_ = value;
|
430
|
-
}
|
431
|
-
break;
|
432
|
-
}
|
501
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request parsedMessage = null;
|
502
|
+
try {
|
503
|
+
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
504
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
505
|
+
parsedMessage = (iudex.brutefuzzy.protobuf.ProtocolBuffers.Request) e.getUnfinishedMessage();
|
506
|
+
throw e;
|
507
|
+
} finally {
|
508
|
+
if (parsedMessage != null) {
|
509
|
+
mergeFrom(parsedMessage);
|
433
510
|
}
|
434
511
|
}
|
512
|
+
return this;
|
435
513
|
}
|
436
|
-
|
437
514
|
private int bitField0_;
|
438
|
-
|
515
|
+
|
439
516
|
// required sfixed64 simhash = 1;
|
440
517
|
private long simhash_ ;
|
518
|
+
/**
|
519
|
+
* <code>required sfixed64 simhash = 1;</code>
|
520
|
+
*/
|
441
521
|
public boolean hasSimhash() {
|
442
522
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
443
523
|
}
|
524
|
+
/**
|
525
|
+
* <code>required sfixed64 simhash = 1;</code>
|
526
|
+
*/
|
444
527
|
public long getSimhash() {
|
445
528
|
return simhash_;
|
446
529
|
}
|
530
|
+
/**
|
531
|
+
* <code>required sfixed64 simhash = 1;</code>
|
532
|
+
*/
|
447
533
|
public Builder setSimhash(long value) {
|
448
534
|
bitField0_ |= 0x00000001;
|
449
535
|
simhash_ = value;
|
450
536
|
onChanged();
|
451
537
|
return this;
|
452
538
|
}
|
539
|
+
/**
|
540
|
+
* <code>required sfixed64 simhash = 1;</code>
|
541
|
+
*/
|
453
542
|
public Builder clearSimhash() {
|
454
543
|
bitField0_ = (bitField0_ & ~0x00000001);
|
455
544
|
simhash_ = 0L;
|
456
545
|
onChanged();
|
457
546
|
return this;
|
458
547
|
}
|
459
|
-
|
548
|
+
|
460
549
|
// optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];
|
461
550
|
private iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction action_ = iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction.CHECK_ONLY;
|
551
|
+
/**
|
552
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
553
|
+
*/
|
462
554
|
public boolean hasAction() {
|
463
555
|
return ((bitField0_ & 0x00000002) == 0x00000002);
|
464
556
|
}
|
557
|
+
/**
|
558
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
559
|
+
*/
|
465
560
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction getAction() {
|
466
561
|
return action_;
|
467
562
|
}
|
563
|
+
/**
|
564
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
565
|
+
*/
|
468
566
|
public Builder setAction(iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction value) {
|
469
567
|
if (value == null) {
|
470
568
|
throw new NullPointerException();
|
@@ -474,98 +572,222 @@ public final class ProtocolBuffers {
|
|
474
572
|
onChanged();
|
475
573
|
return this;
|
476
574
|
}
|
575
|
+
/**
|
576
|
+
* <code>optional .iudex.brutefuzzy.protobuf.RequestAction action = 2 [default = CHECK_ONLY];</code>
|
577
|
+
*/
|
477
578
|
public Builder clearAction() {
|
478
579
|
bitField0_ = (bitField0_ & ~0x00000002);
|
479
580
|
action_ = iudex.brutefuzzy.protobuf.ProtocolBuffers.RequestAction.CHECK_ONLY;
|
480
581
|
onChanged();
|
481
582
|
return this;
|
482
583
|
}
|
483
|
-
|
584
|
+
|
484
585
|
// @@protoc_insertion_point(builder_scope:iudex.brutefuzzy.protobuf.Request)
|
485
586
|
}
|
486
|
-
|
587
|
+
|
487
588
|
static {
|
488
589
|
defaultInstance = new Request(true);
|
489
590
|
defaultInstance.initFields();
|
490
591
|
}
|
491
|
-
|
592
|
+
|
492
593
|
// @@protoc_insertion_point(class_scope:iudex.brutefuzzy.protobuf.Request)
|
493
594
|
}
|
494
|
-
|
595
|
+
|
495
596
|
public interface ResponseOrBuilder
|
496
597
|
extends com.google.protobuf.MessageOrBuilder {
|
497
|
-
|
598
|
+
|
498
599
|
// required sfixed64 simhash = 1;
|
600
|
+
/**
|
601
|
+
* <code>required sfixed64 simhash = 1;</code>
|
602
|
+
*/
|
499
603
|
boolean hasSimhash();
|
604
|
+
/**
|
605
|
+
* <code>required sfixed64 simhash = 1;</code>
|
606
|
+
*/
|
500
607
|
long getSimhash();
|
501
|
-
|
608
|
+
|
502
609
|
// repeated sfixed64 matches = 2;
|
610
|
+
/**
|
611
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
612
|
+
*/
|
503
613
|
java.util.List<java.lang.Long> getMatchesList();
|
614
|
+
/**
|
615
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
616
|
+
*/
|
504
617
|
int getMatchesCount();
|
618
|
+
/**
|
619
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
620
|
+
*/
|
505
621
|
long getMatches(int index);
|
506
622
|
}
|
623
|
+
/**
|
624
|
+
* Protobuf type {@code iudex.brutefuzzy.protobuf.Response}
|
625
|
+
*/
|
507
626
|
public static final class Response extends
|
508
627
|
com.google.protobuf.GeneratedMessage
|
509
628
|
implements ResponseOrBuilder {
|
510
629
|
// Use Response.newBuilder() to construct.
|
511
|
-
private Response(Builder builder) {
|
630
|
+
private Response(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
|
512
631
|
super(builder);
|
632
|
+
this.unknownFields = builder.getUnknownFields();
|
513
633
|
}
|
514
|
-
private Response(boolean noInit) {}
|
515
|
-
|
634
|
+
private Response(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
|
635
|
+
|
516
636
|
private static final Response defaultInstance;
|
517
637
|
public static Response getDefaultInstance() {
|
518
638
|
return defaultInstance;
|
519
639
|
}
|
520
|
-
|
640
|
+
|
521
641
|
public Response getDefaultInstanceForType() {
|
522
642
|
return defaultInstance;
|
523
643
|
}
|
524
|
-
|
644
|
+
|
645
|
+
private final com.google.protobuf.UnknownFieldSet unknownFields;
|
646
|
+
@java.lang.Override
|
647
|
+
public final com.google.protobuf.UnknownFieldSet
|
648
|
+
getUnknownFields() {
|
649
|
+
return this.unknownFields;
|
650
|
+
}
|
651
|
+
private Response(
|
652
|
+
com.google.protobuf.CodedInputStream input,
|
653
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
654
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
655
|
+
initFields();
|
656
|
+
int mutable_bitField0_ = 0;
|
657
|
+
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
|
658
|
+
com.google.protobuf.UnknownFieldSet.newBuilder();
|
659
|
+
try {
|
660
|
+
boolean done = false;
|
661
|
+
while (!done) {
|
662
|
+
int tag = input.readTag();
|
663
|
+
switch (tag) {
|
664
|
+
case 0:
|
665
|
+
done = true;
|
666
|
+
break;
|
667
|
+
default: {
|
668
|
+
if (!parseUnknownField(input, unknownFields,
|
669
|
+
extensionRegistry, tag)) {
|
670
|
+
done = true;
|
671
|
+
}
|
672
|
+
break;
|
673
|
+
}
|
674
|
+
case 9: {
|
675
|
+
bitField0_ |= 0x00000001;
|
676
|
+
simhash_ = input.readSFixed64();
|
677
|
+
break;
|
678
|
+
}
|
679
|
+
case 17: {
|
680
|
+
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
|
681
|
+
matches_ = new java.util.ArrayList<java.lang.Long>();
|
682
|
+
mutable_bitField0_ |= 0x00000002;
|
683
|
+
}
|
684
|
+
matches_.add(input.readSFixed64());
|
685
|
+
break;
|
686
|
+
}
|
687
|
+
case 18: {
|
688
|
+
int length = input.readRawVarint32();
|
689
|
+
int limit = input.pushLimit(length);
|
690
|
+
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002) && input.getBytesUntilLimit() > 0) {
|
691
|
+
matches_ = new java.util.ArrayList<java.lang.Long>();
|
692
|
+
mutable_bitField0_ |= 0x00000002;
|
693
|
+
}
|
694
|
+
while (input.getBytesUntilLimit() > 0) {
|
695
|
+
matches_.add(input.readSFixed64());
|
696
|
+
}
|
697
|
+
input.popLimit(limit);
|
698
|
+
break;
|
699
|
+
}
|
700
|
+
}
|
701
|
+
}
|
702
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
703
|
+
throw e.setUnfinishedMessage(this);
|
704
|
+
} catch (java.io.IOException e) {
|
705
|
+
throw new com.google.protobuf.InvalidProtocolBufferException(
|
706
|
+
e.getMessage()).setUnfinishedMessage(this);
|
707
|
+
} finally {
|
708
|
+
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
|
709
|
+
matches_ = java.util.Collections.unmodifiableList(matches_);
|
710
|
+
}
|
711
|
+
this.unknownFields = unknownFields.build();
|
712
|
+
makeExtensionsImmutable();
|
713
|
+
}
|
714
|
+
}
|
525
715
|
public static final com.google.protobuf.Descriptors.Descriptor
|
526
716
|
getDescriptor() {
|
527
717
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_descriptor;
|
528
718
|
}
|
529
|
-
|
719
|
+
|
530
720
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
531
721
|
internalGetFieldAccessorTable() {
|
532
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable
|
722
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable
|
723
|
+
.ensureFieldAccessorsInitialized(
|
724
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.class, iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.Builder.class);
|
533
725
|
}
|
534
|
-
|
726
|
+
|
727
|
+
public static com.google.protobuf.Parser<Response> PARSER =
|
728
|
+
new com.google.protobuf.AbstractParser<Response>() {
|
729
|
+
public Response parsePartialFrom(
|
730
|
+
com.google.protobuf.CodedInputStream input,
|
731
|
+
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
732
|
+
throws com.google.protobuf.InvalidProtocolBufferException {
|
733
|
+
return new Response(input, extensionRegistry);
|
734
|
+
}
|
735
|
+
};
|
736
|
+
|
737
|
+
@java.lang.Override
|
738
|
+
public com.google.protobuf.Parser<Response> getParserForType() {
|
739
|
+
return PARSER;
|
740
|
+
}
|
741
|
+
|
535
742
|
private int bitField0_;
|
536
743
|
// required sfixed64 simhash = 1;
|
537
744
|
public static final int SIMHASH_FIELD_NUMBER = 1;
|
538
745
|
private long simhash_;
|
746
|
+
/**
|
747
|
+
* <code>required sfixed64 simhash = 1;</code>
|
748
|
+
*/
|
539
749
|
public boolean hasSimhash() {
|
540
750
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
541
751
|
}
|
752
|
+
/**
|
753
|
+
* <code>required sfixed64 simhash = 1;</code>
|
754
|
+
*/
|
542
755
|
public long getSimhash() {
|
543
756
|
return simhash_;
|
544
757
|
}
|
545
|
-
|
758
|
+
|
546
759
|
// repeated sfixed64 matches = 2;
|
547
760
|
public static final int MATCHES_FIELD_NUMBER = 2;
|
548
761
|
private java.util.List<java.lang.Long> matches_;
|
762
|
+
/**
|
763
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
764
|
+
*/
|
549
765
|
public java.util.List<java.lang.Long>
|
550
766
|
getMatchesList() {
|
551
767
|
return matches_;
|
552
768
|
}
|
769
|
+
/**
|
770
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
771
|
+
*/
|
553
772
|
public int getMatchesCount() {
|
554
773
|
return matches_.size();
|
555
774
|
}
|
775
|
+
/**
|
776
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
777
|
+
*/
|
556
778
|
public long getMatches(int index) {
|
557
779
|
return matches_.get(index);
|
558
780
|
}
|
559
|
-
|
781
|
+
|
560
782
|
private void initFields() {
|
561
783
|
simhash_ = 0L;
|
562
|
-
matches_ = java.util.Collections.emptyList()
|
784
|
+
matches_ = java.util.Collections.emptyList();
|
563
785
|
}
|
564
786
|
private byte memoizedIsInitialized = -1;
|
565
787
|
public final boolean isInitialized() {
|
566
788
|
byte isInitialized = memoizedIsInitialized;
|
567
789
|
if (isInitialized != -1) return isInitialized == 1;
|
568
|
-
|
790
|
+
|
569
791
|
if (!hasSimhash()) {
|
570
792
|
memoizedIsInitialized = 0;
|
571
793
|
return false;
|
@@ -573,7 +795,7 @@ public final class ProtocolBuffers {
|
|
573
795
|
memoizedIsInitialized = 1;
|
574
796
|
return true;
|
575
797
|
}
|
576
|
-
|
798
|
+
|
577
799
|
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
578
800
|
throws java.io.IOException {
|
579
801
|
getSerializedSize();
|
@@ -585,12 +807,12 @@ public final class ProtocolBuffers {
|
|
585
807
|
}
|
586
808
|
getUnknownFields().writeTo(output);
|
587
809
|
}
|
588
|
-
|
810
|
+
|
589
811
|
private int memoizedSerializedSize = -1;
|
590
812
|
public int getSerializedSize() {
|
591
813
|
int size = memoizedSerializedSize;
|
592
814
|
if (size != -1) return size;
|
593
|
-
|
815
|
+
|
594
816
|
size = 0;
|
595
817
|
if (((bitField0_ & 0x00000001) == 0x00000001)) {
|
596
818
|
size += com.google.protobuf.CodedOutputStream
|
@@ -606,94 +828,83 @@ public final class ProtocolBuffers {
|
|
606
828
|
memoizedSerializedSize = size;
|
607
829
|
return size;
|
608
830
|
}
|
609
|
-
|
831
|
+
|
610
832
|
private static final long serialVersionUID = 0L;
|
611
833
|
@java.lang.Override
|
612
834
|
protected java.lang.Object writeReplace()
|
613
835
|
throws java.io.ObjectStreamException {
|
614
836
|
return super.writeReplace();
|
615
837
|
}
|
616
|
-
|
838
|
+
|
617
839
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
618
840
|
com.google.protobuf.ByteString data)
|
619
841
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
620
|
-
return
|
842
|
+
return PARSER.parseFrom(data);
|
621
843
|
}
|
622
844
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
623
845
|
com.google.protobuf.ByteString data,
|
624
846
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
625
847
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
626
|
-
return
|
627
|
-
.buildParsed();
|
848
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
628
849
|
}
|
629
850
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(byte[] data)
|
630
851
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
631
|
-
return
|
852
|
+
return PARSER.parseFrom(data);
|
632
853
|
}
|
633
854
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
634
855
|
byte[] data,
|
635
856
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
636
857
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
637
|
-
return
|
638
|
-
.buildParsed();
|
858
|
+
return PARSER.parseFrom(data, extensionRegistry);
|
639
859
|
}
|
640
860
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(java.io.InputStream input)
|
641
861
|
throws java.io.IOException {
|
642
|
-
return
|
862
|
+
return PARSER.parseFrom(input);
|
643
863
|
}
|
644
864
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
645
865
|
java.io.InputStream input,
|
646
866
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
647
867
|
throws java.io.IOException {
|
648
|
-
return
|
649
|
-
.buildParsed();
|
868
|
+
return PARSER.parseFrom(input, extensionRegistry);
|
650
869
|
}
|
651
870
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseDelimitedFrom(java.io.InputStream input)
|
652
871
|
throws java.io.IOException {
|
653
|
-
|
654
|
-
if (builder.mergeDelimitedFrom(input)) {
|
655
|
-
return builder.buildParsed();
|
656
|
-
} else {
|
657
|
-
return null;
|
658
|
-
}
|
872
|
+
return PARSER.parseDelimitedFrom(input);
|
659
873
|
}
|
660
874
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseDelimitedFrom(
|
661
875
|
java.io.InputStream input,
|
662
876
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
663
877
|
throws java.io.IOException {
|
664
|
-
|
665
|
-
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
|
666
|
-
return builder.buildParsed();
|
667
|
-
} else {
|
668
|
-
return null;
|
669
|
-
}
|
878
|
+
return PARSER.parseDelimitedFrom(input, extensionRegistry);
|
670
879
|
}
|
671
880
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
672
881
|
com.google.protobuf.CodedInputStream input)
|
673
882
|
throws java.io.IOException {
|
674
|
-
return
|
883
|
+
return PARSER.parseFrom(input);
|
675
884
|
}
|
676
885
|
public static iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parseFrom(
|
677
886
|
com.google.protobuf.CodedInputStream input,
|
678
887
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
679
888
|
throws java.io.IOException {
|
680
|
-
return
|
681
|
-
.buildParsed();
|
889
|
+
return PARSER.parseFrom(input, extensionRegistry);
|
682
890
|
}
|
683
|
-
|
891
|
+
|
684
892
|
public static Builder newBuilder() { return Builder.create(); }
|
685
893
|
public Builder newBuilderForType() { return newBuilder(); }
|
686
894
|
public static Builder newBuilder(iudex.brutefuzzy.protobuf.ProtocolBuffers.Response prototype) {
|
687
895
|
return newBuilder().mergeFrom(prototype);
|
688
896
|
}
|
689
897
|
public Builder toBuilder() { return newBuilder(this); }
|
690
|
-
|
898
|
+
|
691
899
|
@java.lang.Override
|
692
900
|
protected Builder newBuilderForType(
|
693
901
|
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
694
902
|
Builder builder = new Builder(parent);
|
695
903
|
return builder;
|
696
904
|
}
|
905
|
+
/**
|
906
|
+
* Protobuf type {@code iudex.brutefuzzy.protobuf.Response}
|
907
|
+
*/
|
697
908
|
public static final class Builder extends
|
698
909
|
com.google.protobuf.GeneratedMessage.Builder<Builder>
|
699
910
|
implements iudex.brutefuzzy.protobuf.ProtocolBuffers.ResponseOrBuilder {
|
@@ -701,18 +912,21 @@ public final class ProtocolBuffers {
|
|
701
912
|
getDescriptor() {
|
702
913
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_descriptor;
|
703
914
|
}
|
704
|
-
|
915
|
+
|
705
916
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
706
917
|
internalGetFieldAccessorTable() {
|
707
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable
|
918
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable
|
919
|
+
.ensureFieldAccessorsInitialized(
|
920
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.class, iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.Builder.class);
|
708
921
|
}
|
709
|
-
|
922
|
+
|
710
923
|
// Construct using iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.newBuilder()
|
711
924
|
private Builder() {
|
712
925
|
maybeForceBuilderInitialization();
|
713
926
|
}
|
714
|
-
|
715
|
-
private Builder(
|
927
|
+
|
928
|
+
private Builder(
|
929
|
+
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
|
716
930
|
super(parent);
|
717
931
|
maybeForceBuilderInitialization();
|
718
932
|
}
|
@@ -723,29 +937,29 @@ public final class ProtocolBuffers {
|
|
723
937
|
private static Builder create() {
|
724
938
|
return new Builder();
|
725
939
|
}
|
726
|
-
|
940
|
+
|
727
941
|
public Builder clear() {
|
728
942
|
super.clear();
|
729
943
|
simhash_ = 0L;
|
730
944
|
bitField0_ = (bitField0_ & ~0x00000001);
|
731
|
-
matches_ = java.util.Collections.emptyList()
|
945
|
+
matches_ = java.util.Collections.emptyList();
|
732
946
|
bitField0_ = (bitField0_ & ~0x00000002);
|
733
947
|
return this;
|
734
948
|
}
|
735
|
-
|
949
|
+
|
736
950
|
public Builder clone() {
|
737
951
|
return create().mergeFrom(buildPartial());
|
738
952
|
}
|
739
|
-
|
953
|
+
|
740
954
|
public com.google.protobuf.Descriptors.Descriptor
|
741
955
|
getDescriptorForType() {
|
742
|
-
return iudex.brutefuzzy.protobuf.ProtocolBuffers.
|
956
|
+
return iudex.brutefuzzy.protobuf.ProtocolBuffers.internal_static_iudex_brutefuzzy_protobuf_Response_descriptor;
|
743
957
|
}
|
744
|
-
|
958
|
+
|
745
959
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Response getDefaultInstanceForType() {
|
746
960
|
return iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.getDefaultInstance();
|
747
961
|
}
|
748
|
-
|
962
|
+
|
749
963
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Response build() {
|
750
964
|
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response result = buildPartial();
|
751
965
|
if (!result.isInitialized()) {
|
@@ -753,17 +967,7 @@ public final class ProtocolBuffers {
|
|
753
967
|
}
|
754
968
|
return result;
|
755
969
|
}
|
756
|
-
|
757
|
-
private iudex.brutefuzzy.protobuf.ProtocolBuffers.Response buildParsed()
|
758
|
-
throws com.google.protobuf.InvalidProtocolBufferException {
|
759
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response result = buildPartial();
|
760
|
-
if (!result.isInitialized()) {
|
761
|
-
throw newUninitializedMessageException(
|
762
|
-
result).asInvalidProtocolBufferException();
|
763
|
-
}
|
764
|
-
return result;
|
765
|
-
}
|
766
|
-
|
970
|
+
|
767
971
|
public iudex.brutefuzzy.protobuf.ProtocolBuffers.Response buildPartial() {
|
768
972
|
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response result = new iudex.brutefuzzy.protobuf.ProtocolBuffers.Response(this);
|
769
973
|
int from_bitField0_ = bitField0_;
|
@@ -781,7 +985,7 @@ public final class ProtocolBuffers {
|
|
781
985
|
onBuilt();
|
782
986
|
return result;
|
783
987
|
}
|
784
|
-
|
988
|
+
|
785
989
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
786
990
|
if (other instanceof iudex.brutefuzzy.protobuf.ProtocolBuffers.Response) {
|
787
991
|
return mergeFrom((iudex.brutefuzzy.protobuf.ProtocolBuffers.Response)other);
|
@@ -790,7 +994,7 @@ public final class ProtocolBuffers {
|
|
790
994
|
return this;
|
791
995
|
}
|
792
996
|
}
|
793
|
-
|
997
|
+
|
794
998
|
public Builder mergeFrom(iudex.brutefuzzy.protobuf.ProtocolBuffers.Response other) {
|
795
999
|
if (other == iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.getDefaultInstance()) return this;
|
796
1000
|
if (other.hasSimhash()) {
|
@@ -809,7 +1013,7 @@ public final class ProtocolBuffers {
|
|
809
1013
|
this.mergeUnknownFields(other.getUnknownFields());
|
810
1014
|
return this;
|
811
1015
|
}
|
812
|
-
|
1016
|
+
|
813
1017
|
public final boolean isInitialized() {
|
814
1018
|
if (!hasSimhash()) {
|
815
1019
|
|
@@ -817,94 +1021,89 @@ public final class ProtocolBuffers {
|
|
817
1021
|
}
|
818
1022
|
return true;
|
819
1023
|
}
|
820
|
-
|
1024
|
+
|
821
1025
|
public Builder mergeFrom(
|
822
1026
|
com.google.protobuf.CodedInputStream input,
|
823
1027
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
824
1028
|
throws java.io.IOException {
|
825
|
-
|
826
|
-
|
827
|
-
|
828
|
-
|
829
|
-
|
830
|
-
|
831
|
-
|
832
|
-
|
833
|
-
|
834
|
-
return this;
|
835
|
-
default: {
|
836
|
-
if (!parseUnknownField(input, unknownFields,
|
837
|
-
extensionRegistry, tag)) {
|
838
|
-
this.setUnknownFields(unknownFields.build());
|
839
|
-
onChanged();
|
840
|
-
return this;
|
841
|
-
}
|
842
|
-
break;
|
843
|
-
}
|
844
|
-
case 9: {
|
845
|
-
bitField0_ |= 0x00000001;
|
846
|
-
simhash_ = input.readSFixed64();
|
847
|
-
break;
|
848
|
-
}
|
849
|
-
case 17: {
|
850
|
-
ensureMatchesIsMutable();
|
851
|
-
matches_.add(input.readSFixed64());
|
852
|
-
break;
|
853
|
-
}
|
854
|
-
case 18: {
|
855
|
-
int length = input.readRawVarint32();
|
856
|
-
int limit = input.pushLimit(length);
|
857
|
-
while (input.getBytesUntilLimit() > 0) {
|
858
|
-
addMatches(input.readSFixed64());
|
859
|
-
}
|
860
|
-
input.popLimit(limit);
|
861
|
-
break;
|
862
|
-
}
|
1029
|
+
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response parsedMessage = null;
|
1030
|
+
try {
|
1031
|
+
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
1032
|
+
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
1033
|
+
parsedMessage = (iudex.brutefuzzy.protobuf.ProtocolBuffers.Response) e.getUnfinishedMessage();
|
1034
|
+
throw e;
|
1035
|
+
} finally {
|
1036
|
+
if (parsedMessage != null) {
|
1037
|
+
mergeFrom(parsedMessage);
|
863
1038
|
}
|
864
1039
|
}
|
1040
|
+
return this;
|
865
1041
|
}
|
866
|
-
|
867
1042
|
private int bitField0_;
|
868
|
-
|
1043
|
+
|
869
1044
|
// required sfixed64 simhash = 1;
|
870
1045
|
private long simhash_ ;
|
1046
|
+
/**
|
1047
|
+
* <code>required sfixed64 simhash = 1;</code>
|
1048
|
+
*/
|
871
1049
|
public boolean hasSimhash() {
|
872
1050
|
return ((bitField0_ & 0x00000001) == 0x00000001);
|
873
1051
|
}
|
1052
|
+
/**
|
1053
|
+
* <code>required sfixed64 simhash = 1;</code>
|
1054
|
+
*/
|
874
1055
|
public long getSimhash() {
|
875
1056
|
return simhash_;
|
876
1057
|
}
|
1058
|
+
/**
|
1059
|
+
* <code>required sfixed64 simhash = 1;</code>
|
1060
|
+
*/
|
877
1061
|
public Builder setSimhash(long value) {
|
878
1062
|
bitField0_ |= 0x00000001;
|
879
1063
|
simhash_ = value;
|
880
1064
|
onChanged();
|
881
1065
|
return this;
|
882
1066
|
}
|
1067
|
+
/**
|
1068
|
+
* <code>required sfixed64 simhash = 1;</code>
|
1069
|
+
*/
|
883
1070
|
public Builder clearSimhash() {
|
884
1071
|
bitField0_ = (bitField0_ & ~0x00000001);
|
885
1072
|
simhash_ = 0L;
|
886
1073
|
onChanged();
|
887
1074
|
return this;
|
888
1075
|
}
|
889
|
-
|
1076
|
+
|
890
1077
|
// repeated sfixed64 matches = 2;
|
891
|
-
private java.util.List<java.lang.Long> matches_ = java.util.Collections.emptyList()
|
1078
|
+
private java.util.List<java.lang.Long> matches_ = java.util.Collections.emptyList();
|
892
1079
|
private void ensureMatchesIsMutable() {
|
893
1080
|
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
|
894
1081
|
matches_ = new java.util.ArrayList<java.lang.Long>(matches_);
|
895
1082
|
bitField0_ |= 0x00000002;
|
896
1083
|
}
|
897
1084
|
}
|
1085
|
+
/**
|
1086
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1087
|
+
*/
|
898
1088
|
public java.util.List<java.lang.Long>
|
899
1089
|
getMatchesList() {
|
900
1090
|
return java.util.Collections.unmodifiableList(matches_);
|
901
1091
|
}
|
1092
|
+
/**
|
1093
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1094
|
+
*/
|
902
1095
|
public int getMatchesCount() {
|
903
1096
|
return matches_.size();
|
904
1097
|
}
|
1098
|
+
/**
|
1099
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1100
|
+
*/
|
905
1101
|
public long getMatches(int index) {
|
906
1102
|
return matches_.get(index);
|
907
1103
|
}
|
1104
|
+
/**
|
1105
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1106
|
+
*/
|
908
1107
|
public Builder setMatches(
|
909
1108
|
int index, long value) {
|
910
1109
|
ensureMatchesIsMutable();
|
@@ -912,12 +1111,18 @@ public final class ProtocolBuffers {
|
|
912
1111
|
onChanged();
|
913
1112
|
return this;
|
914
1113
|
}
|
1114
|
+
/**
|
1115
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1116
|
+
*/
|
915
1117
|
public Builder addMatches(long value) {
|
916
1118
|
ensureMatchesIsMutable();
|
917
1119
|
matches_.add(value);
|
918
1120
|
onChanged();
|
919
1121
|
return this;
|
920
1122
|
}
|
1123
|
+
/**
|
1124
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1125
|
+
*/
|
921
1126
|
public Builder addAllMatches(
|
922
1127
|
java.lang.Iterable<? extends java.lang.Long> values) {
|
923
1128
|
ensureMatchesIsMutable();
|
@@ -925,24 +1130,27 @@ public final class ProtocolBuffers {
|
|
925
1130
|
onChanged();
|
926
1131
|
return this;
|
927
1132
|
}
|
1133
|
+
/**
|
1134
|
+
* <code>repeated sfixed64 matches = 2;</code>
|
1135
|
+
*/
|
928
1136
|
public Builder clearMatches() {
|
929
|
-
matches_ = java.util.Collections.emptyList()
|
1137
|
+
matches_ = java.util.Collections.emptyList();
|
930
1138
|
bitField0_ = (bitField0_ & ~0x00000002);
|
931
1139
|
onChanged();
|
932
1140
|
return this;
|
933
1141
|
}
|
934
|
-
|
1142
|
+
|
935
1143
|
// @@protoc_insertion_point(builder_scope:iudex.brutefuzzy.protobuf.Response)
|
936
1144
|
}
|
937
|
-
|
1145
|
+
|
938
1146
|
static {
|
939
1147
|
defaultInstance = new Response(true);
|
940
1148
|
defaultInstance.initFields();
|
941
1149
|
}
|
942
|
-
|
1150
|
+
|
943
1151
|
// @@protoc_insertion_point(class_scope:iudex.brutefuzzy.protobuf.Response)
|
944
1152
|
}
|
945
|
-
|
1153
|
+
|
946
1154
|
private static com.google.protobuf.Descriptors.Descriptor
|
947
1155
|
internal_static_iudex_brutefuzzy_protobuf_Request_descriptor;
|
948
1156
|
private static
|
@@ -953,7 +1161,7 @@ public final class ProtocolBuffers {
|
|
953
1161
|
private static
|
954
1162
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable
|
955
1163
|
internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable;
|
956
|
-
|
1164
|
+
|
957
1165
|
public static com.google.protobuf.Descriptors.FileDescriptor
|
958
1166
|
getDescriptor() {
|
959
1167
|
return descriptor;
|
@@ -980,17 +1188,13 @@ public final class ProtocolBuffers {
|
|
980
1188
|
internal_static_iudex_brutefuzzy_protobuf_Request_fieldAccessorTable = new
|
981
1189
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
982
1190
|
internal_static_iudex_brutefuzzy_protobuf_Request_descriptor,
|
983
|
-
new java.lang.String[] { "Simhash", "Action", }
|
984
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.class,
|
985
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Request.Builder.class);
|
1191
|
+
new java.lang.String[] { "Simhash", "Action", });
|
986
1192
|
internal_static_iudex_brutefuzzy_protobuf_Response_descriptor =
|
987
1193
|
getDescriptor().getMessageTypes().get(1);
|
988
1194
|
internal_static_iudex_brutefuzzy_protobuf_Response_fieldAccessorTable = new
|
989
1195
|
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
|
990
1196
|
internal_static_iudex_brutefuzzy_protobuf_Response_descriptor,
|
991
|
-
new java.lang.String[] { "Simhash", "Matches", }
|
992
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.class,
|
993
|
-
iudex.brutefuzzy.protobuf.ProtocolBuffers.Response.Builder.class);
|
1197
|
+
new java.lang.String[] { "Simhash", "Matches", });
|
994
1198
|
return null;
|
995
1199
|
}
|
996
1200
|
};
|
@@ -999,6 +1203,6 @@ public final class ProtocolBuffers {
|
|
999
1203
|
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
1000
1204
|
}, assigner);
|
1001
1205
|
}
|
1002
|
-
|
1206
|
+
|
1003
1207
|
// @@protoc_insertion_point(outer_class_scope)
|
1004
1208
|
}
|