1420c9859SShuo Chen// Generated by the protocol buffer compiler.  DO NOT EDIT!
2420c9859SShuo Chen// source: sudoku.proto
3420c9859SShuo Chen
4420c9859SShuo Chenpackage sudoku;
5420c9859SShuo Chen
6420c9859SShuo Chenpublic final class Sudoku {
7420c9859SShuo Chen  private Sudoku() {}
8420c9859SShuo Chen  public static void registerAllExtensions(
9420c9859SShuo Chen      com.google.protobuf.ExtensionRegistry registry) {
10420c9859SShuo Chen  }
11420c9859SShuo Chen  public interface SudokuRequestOrBuilder
12420c9859SShuo Chen      extends com.google.protobuf.MessageOrBuilder {
13420c9859SShuo Chen
14420c9859SShuo Chen    // required string checkerboard = 1;
15420c9859SShuo Chen    boolean hasCheckerboard();
16420c9859SShuo Chen    String getCheckerboard();
17420c9859SShuo Chen  }
18420c9859SShuo Chen  public static final class SudokuRequest extends
19420c9859SShuo Chen      com.google.protobuf.GeneratedMessage
20420c9859SShuo Chen      implements SudokuRequestOrBuilder {
21420c9859SShuo Chen    // Use SudokuRequest.newBuilder() to construct.
22420c9859SShuo Chen    private SudokuRequest(Builder builder) {
23420c9859SShuo Chen      super(builder);
24420c9859SShuo Chen    }
25420c9859SShuo Chen    private SudokuRequest(boolean noInit) {}
26420c9859SShuo Chen
27420c9859SShuo Chen    private static final SudokuRequest defaultInstance;
28420c9859SShuo Chen    public static SudokuRequest getDefaultInstance() {
29420c9859SShuo Chen      return defaultInstance;
30420c9859SShuo Chen    }
31420c9859SShuo Chen
32420c9859SShuo Chen    public SudokuRequest getDefaultInstanceForType() {
33420c9859SShuo Chen      return defaultInstance;
34420c9859SShuo Chen    }
35420c9859SShuo Chen
36420c9859SShuo Chen    public static final com.google.protobuf.Descriptors.Descriptor
37420c9859SShuo Chen        getDescriptor() {
38420c9859SShuo Chen      return sudoku.Sudoku.internal_static_sudoku_SudokuRequest_descriptor;
39420c9859SShuo Chen    }
40420c9859SShuo Chen
41420c9859SShuo Chen    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
42420c9859SShuo Chen        internalGetFieldAccessorTable() {
43420c9859SShuo Chen      return sudoku.Sudoku.internal_static_sudoku_SudokuRequest_fieldAccessorTable;
44420c9859SShuo Chen    }
45420c9859SShuo Chen
46420c9859SShuo Chen    private int bitField0_;
47420c9859SShuo Chen    // required string checkerboard = 1;
48420c9859SShuo Chen    public static final int CHECKERBOARD_FIELD_NUMBER = 1;
49420c9859SShuo Chen    private java.lang.Object checkerboard_;
50420c9859SShuo Chen    public boolean hasCheckerboard() {
51420c9859SShuo Chen      return ((bitField0_ & 0x00000001) == 0x00000001);
52420c9859SShuo Chen    }
53420c9859SShuo Chen    public String getCheckerboard() {
54420c9859SShuo Chen      java.lang.Object ref = checkerboard_;
55420c9859SShuo Chen      if (ref instanceof String) {
56420c9859SShuo Chen        return (String) ref;
57420c9859SShuo Chen      } else {
58420c9859SShuo Chen        com.google.protobuf.ByteString bs =
59420c9859SShuo Chen            (com.google.protobuf.ByteString) ref;
60420c9859SShuo Chen        String s = bs.toStringUtf8();
61420c9859SShuo Chen        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
62420c9859SShuo Chen          checkerboard_ = s;
63420c9859SShuo Chen        }
64420c9859SShuo Chen        return s;
65420c9859SShuo Chen      }
66420c9859SShuo Chen    }
67420c9859SShuo Chen    private com.google.protobuf.ByteString getCheckerboardBytes() {
68420c9859SShuo Chen      java.lang.Object ref = checkerboard_;
69420c9859SShuo Chen      if (ref instanceof String) {
70420c9859SShuo Chen        com.google.protobuf.ByteString b =
71420c9859SShuo Chen            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
72420c9859SShuo Chen        checkerboard_ = b;
73420c9859SShuo Chen        return b;
74420c9859SShuo Chen      } else {
75420c9859SShuo Chen        return (com.google.protobuf.ByteString) ref;
76420c9859SShuo Chen      }
77420c9859SShuo Chen    }
78420c9859SShuo Chen
79420c9859SShuo Chen    private void initFields() {
80420c9859SShuo Chen      checkerboard_ = "";
81420c9859SShuo Chen    }
82420c9859SShuo Chen    private byte memoizedIsInitialized = -1;
83420c9859SShuo Chen    public final boolean isInitialized() {
84420c9859SShuo Chen      byte isInitialized = memoizedIsInitialized;
85420c9859SShuo Chen      if (isInitialized != -1) return isInitialized == 1;
86420c9859SShuo Chen
87420c9859SShuo Chen      if (!hasCheckerboard()) {
88420c9859SShuo Chen        memoizedIsInitialized = 0;
89420c9859SShuo Chen        return false;
90420c9859SShuo Chen      }
91420c9859SShuo Chen      memoizedIsInitialized = 1;
92420c9859SShuo Chen      return true;
93420c9859SShuo Chen    }
94420c9859SShuo Chen
95420c9859SShuo Chen    public void writeTo(com.google.protobuf.CodedOutputStream output)
96420c9859SShuo Chen                        throws java.io.IOException {
97420c9859SShuo Chen      getSerializedSize();
98420c9859SShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
99420c9859SShuo Chen        output.writeBytes(1, getCheckerboardBytes());
100420c9859SShuo Chen      }
101420c9859SShuo Chen      getUnknownFields().writeTo(output);
102420c9859SShuo Chen    }
103420c9859SShuo Chen
104420c9859SShuo Chen    private int memoizedSerializedSize = -1;
105420c9859SShuo Chen    public int getSerializedSize() {
106420c9859SShuo Chen      int size = memoizedSerializedSize;
107420c9859SShuo Chen      if (size != -1) return size;
108420c9859SShuo Chen
109420c9859SShuo Chen      size = 0;
110420c9859SShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
111420c9859SShuo Chen        size += com.google.protobuf.CodedOutputStream
112420c9859SShuo Chen          .computeBytesSize(1, getCheckerboardBytes());
113420c9859SShuo Chen      }
114420c9859SShuo Chen      size += getUnknownFields().getSerializedSize();
115420c9859SShuo Chen      memoizedSerializedSize = size;
116420c9859SShuo Chen      return size;
117420c9859SShuo Chen    }
118420c9859SShuo Chen
119420c9859SShuo Chen    private static final long serialVersionUID = 0L;
120420c9859SShuo Chen    @java.lang.Override
121420c9859SShuo Chen    protected java.lang.Object writeReplace()
122420c9859SShuo Chen        throws java.io.ObjectStreamException {
123420c9859SShuo Chen      return super.writeReplace();
124420c9859SShuo Chen    }
125420c9859SShuo Chen
126420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
127420c9859SShuo Chen        com.google.protobuf.ByteString data)
128420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
129420c9859SShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
130420c9859SShuo Chen    }
131420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
132420c9859SShuo Chen        com.google.protobuf.ByteString data,
133420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
134420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
135420c9859SShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
136420c9859SShuo Chen               .buildParsed();
137420c9859SShuo Chen    }
138420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(byte[] data)
139420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
140420c9859SShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
141420c9859SShuo Chen    }
142420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
143420c9859SShuo Chen        byte[] data,
144420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
145420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
146420c9859SShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
147420c9859SShuo Chen               .buildParsed();
148420c9859SShuo Chen    }
149420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(java.io.InputStream input)
150420c9859SShuo Chen        throws java.io.IOException {
151420c9859SShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
152420c9859SShuo Chen    }
153420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
154420c9859SShuo Chen        java.io.InputStream input,
155420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
156420c9859SShuo Chen        throws java.io.IOException {
157420c9859SShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
158420c9859SShuo Chen               .buildParsed();
159420c9859SShuo Chen    }
160420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseDelimitedFrom(java.io.InputStream input)
161420c9859SShuo Chen        throws java.io.IOException {
162420c9859SShuo Chen      Builder builder = newBuilder();
163420c9859SShuo Chen      if (builder.mergeDelimitedFrom(input)) {
164420c9859SShuo Chen        return builder.buildParsed();
165420c9859SShuo Chen      } else {
166420c9859SShuo Chen        return null;
167420c9859SShuo Chen      }
168420c9859SShuo Chen    }
169420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseDelimitedFrom(
170420c9859SShuo Chen        java.io.InputStream input,
171420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
172420c9859SShuo Chen        throws java.io.IOException {
173420c9859SShuo Chen      Builder builder = newBuilder();
174420c9859SShuo Chen      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
175420c9859SShuo Chen        return builder.buildParsed();
176420c9859SShuo Chen      } else {
177420c9859SShuo Chen        return null;
178420c9859SShuo Chen      }
179420c9859SShuo Chen    }
180420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
181420c9859SShuo Chen        com.google.protobuf.CodedInputStream input)
182420c9859SShuo Chen        throws java.io.IOException {
183420c9859SShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
184420c9859SShuo Chen    }
185420c9859SShuo Chen    public static sudoku.Sudoku.SudokuRequest parseFrom(
186420c9859SShuo Chen        com.google.protobuf.CodedInputStream input,
187420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
188420c9859SShuo Chen        throws java.io.IOException {
189420c9859SShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
190420c9859SShuo Chen               .buildParsed();
191420c9859SShuo Chen    }
192420c9859SShuo Chen
193420c9859SShuo Chen    public static Builder newBuilder() { return Builder.create(); }
194420c9859SShuo Chen    public Builder newBuilderForType() { return newBuilder(); }
195420c9859SShuo Chen    public static Builder newBuilder(sudoku.Sudoku.SudokuRequest prototype) {
196420c9859SShuo Chen      return newBuilder().mergeFrom(prototype);
197420c9859SShuo Chen    }
198420c9859SShuo Chen    public Builder toBuilder() { return newBuilder(this); }
199420c9859SShuo Chen
200420c9859SShuo Chen    @java.lang.Override
201420c9859SShuo Chen    protected Builder newBuilderForType(
202420c9859SShuo Chen        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
203420c9859SShuo Chen      Builder builder = new Builder(parent);
204420c9859SShuo Chen      return builder;
205420c9859SShuo Chen    }
206420c9859SShuo Chen    public static final class Builder extends
207420c9859SShuo Chen        com.google.protobuf.GeneratedMessage.Builder<Builder>
208420c9859SShuo Chen       implements sudoku.Sudoku.SudokuRequestOrBuilder {
209420c9859SShuo Chen      public static final com.google.protobuf.Descriptors.Descriptor
210420c9859SShuo Chen          getDescriptor() {
211420c9859SShuo Chen        return sudoku.Sudoku.internal_static_sudoku_SudokuRequest_descriptor;
212420c9859SShuo Chen      }
213420c9859SShuo Chen
214420c9859SShuo Chen      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
215420c9859SShuo Chen          internalGetFieldAccessorTable() {
216420c9859SShuo Chen        return sudoku.Sudoku.internal_static_sudoku_SudokuRequest_fieldAccessorTable;
217420c9859SShuo Chen      }
218420c9859SShuo Chen
219420c9859SShuo Chen      // Construct using sudoku.Sudoku.SudokuRequest.newBuilder()
220420c9859SShuo Chen      private Builder() {
221420c9859SShuo Chen        maybeForceBuilderInitialization();
222420c9859SShuo Chen      }
223420c9859SShuo Chen
224420c9859SShuo Chen      private Builder(BuilderParent parent) {
225420c9859SShuo Chen        super(parent);
226420c9859SShuo Chen        maybeForceBuilderInitialization();
227420c9859SShuo Chen      }
228420c9859SShuo Chen      private void maybeForceBuilderInitialization() {
229420c9859SShuo Chen        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
230420c9859SShuo Chen        }
231420c9859SShuo Chen      }
232420c9859SShuo Chen      private static Builder create() {
233420c9859SShuo Chen        return new Builder();
234420c9859SShuo Chen      }
235420c9859SShuo Chen
236420c9859SShuo Chen      public Builder clear() {
237420c9859SShuo Chen        super.clear();
238420c9859SShuo Chen        checkerboard_ = "";
239420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
240420c9859SShuo Chen        return this;
241420c9859SShuo Chen      }
242420c9859SShuo Chen
243420c9859SShuo Chen      public Builder clone() {
244420c9859SShuo Chen        return create().mergeFrom(buildPartial());
245420c9859SShuo Chen      }
246420c9859SShuo Chen
247420c9859SShuo Chen      public com.google.protobuf.Descriptors.Descriptor
248420c9859SShuo Chen          getDescriptorForType() {
249420c9859SShuo Chen        return sudoku.Sudoku.SudokuRequest.getDescriptor();
250420c9859SShuo Chen      }
251420c9859SShuo Chen
252420c9859SShuo Chen      public sudoku.Sudoku.SudokuRequest getDefaultInstanceForType() {
253420c9859SShuo Chen        return sudoku.Sudoku.SudokuRequest.getDefaultInstance();
254420c9859SShuo Chen      }
255420c9859SShuo Chen
256420c9859SShuo Chen      public sudoku.Sudoku.SudokuRequest build() {
257420c9859SShuo Chen        sudoku.Sudoku.SudokuRequest result = buildPartial();
258420c9859SShuo Chen        if (!result.isInitialized()) {
259420c9859SShuo Chen          throw newUninitializedMessageException(result);
260420c9859SShuo Chen        }
261420c9859SShuo Chen        return result;
262420c9859SShuo Chen      }
263420c9859SShuo Chen
264420c9859SShuo Chen      private sudoku.Sudoku.SudokuRequest buildParsed()
265420c9859SShuo Chen          throws com.google.protobuf.InvalidProtocolBufferException {
266420c9859SShuo Chen        sudoku.Sudoku.SudokuRequest result = buildPartial();
267420c9859SShuo Chen        if (!result.isInitialized()) {
268420c9859SShuo Chen          throw newUninitializedMessageException(
269420c9859SShuo Chen            result).asInvalidProtocolBufferException();
270420c9859SShuo Chen        }
271420c9859SShuo Chen        return result;
272420c9859SShuo Chen      }
273420c9859SShuo Chen
274420c9859SShuo Chen      public sudoku.Sudoku.SudokuRequest buildPartial() {
275420c9859SShuo Chen        sudoku.Sudoku.SudokuRequest result = new sudoku.Sudoku.SudokuRequest(this);
276420c9859SShuo Chen        int from_bitField0_ = bitField0_;
277420c9859SShuo Chen        int to_bitField0_ = 0;
278420c9859SShuo Chen        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
279420c9859SShuo Chen          to_bitField0_ |= 0x00000001;
280420c9859SShuo Chen        }
281420c9859SShuo Chen        result.checkerboard_ = checkerboard_;
282420c9859SShuo Chen        result.bitField0_ = to_bitField0_;
283420c9859SShuo Chen        onBuilt();
284420c9859SShuo Chen        return result;
285420c9859SShuo Chen      }
286420c9859SShuo Chen
287420c9859SShuo Chen      public Builder mergeFrom(com.google.protobuf.Message other) {
288420c9859SShuo Chen        if (other instanceof sudoku.Sudoku.SudokuRequest) {
289420c9859SShuo Chen          return mergeFrom((sudoku.Sudoku.SudokuRequest)other);
290420c9859SShuo Chen        } else {
291420c9859SShuo Chen          super.mergeFrom(other);
292420c9859SShuo Chen          return this;
293420c9859SShuo Chen        }
294420c9859SShuo Chen      }
295420c9859SShuo Chen
296420c9859SShuo Chen      public Builder mergeFrom(sudoku.Sudoku.SudokuRequest other) {
297420c9859SShuo Chen        if (other == sudoku.Sudoku.SudokuRequest.getDefaultInstance()) return this;
298420c9859SShuo Chen        if (other.hasCheckerboard()) {
299420c9859SShuo Chen          setCheckerboard(other.getCheckerboard());
300420c9859SShuo Chen        }
301420c9859SShuo Chen        this.mergeUnknownFields(other.getUnknownFields());
302420c9859SShuo Chen        return this;
303420c9859SShuo Chen      }
304420c9859SShuo Chen
305420c9859SShuo Chen      public final boolean isInitialized() {
306420c9859SShuo Chen        if (!hasCheckerboard()) {
307420c9859SShuo Chen
308420c9859SShuo Chen          return false;
309420c9859SShuo Chen        }
310420c9859SShuo Chen        return true;
311420c9859SShuo Chen      }
312420c9859SShuo Chen
313420c9859SShuo Chen      public Builder mergeFrom(
314420c9859SShuo Chen          com.google.protobuf.CodedInputStream input,
315420c9859SShuo Chen          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
316420c9859SShuo Chen          throws java.io.IOException {
317420c9859SShuo Chen        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
318420c9859SShuo Chen          com.google.protobuf.UnknownFieldSet.newBuilder(
319420c9859SShuo Chen            this.getUnknownFields());
320420c9859SShuo Chen        while (true) {
321420c9859SShuo Chen          int tag = input.readTag();
322420c9859SShuo Chen          switch (tag) {
323420c9859SShuo Chen            case 0:
324420c9859SShuo Chen              this.setUnknownFields(unknownFields.build());
325420c9859SShuo Chen              onChanged();
326420c9859SShuo Chen              return this;
327420c9859SShuo Chen            default: {
328420c9859SShuo Chen              if (!parseUnknownField(input, unknownFields,
329420c9859SShuo Chen                                     extensionRegistry, tag)) {
330420c9859SShuo Chen                this.setUnknownFields(unknownFields.build());
331420c9859SShuo Chen                onChanged();
332420c9859SShuo Chen                return this;
333420c9859SShuo Chen              }
334420c9859SShuo Chen              break;
335420c9859SShuo Chen            }
336420c9859SShuo Chen            case 10: {
337420c9859SShuo Chen              bitField0_ |= 0x00000001;
338420c9859SShuo Chen              checkerboard_ = input.readBytes();
339420c9859SShuo Chen              break;
340420c9859SShuo Chen            }
341420c9859SShuo Chen          }
342420c9859SShuo Chen        }
343420c9859SShuo Chen      }
344420c9859SShuo Chen
345420c9859SShuo Chen      private int bitField0_;
346420c9859SShuo Chen
347420c9859SShuo Chen      // required string checkerboard = 1;
348420c9859SShuo Chen      private java.lang.Object checkerboard_ = "";
349420c9859SShuo Chen      public boolean hasCheckerboard() {
350420c9859SShuo Chen        return ((bitField0_ & 0x00000001) == 0x00000001);
351420c9859SShuo Chen      }
352420c9859SShuo Chen      public String getCheckerboard() {
353420c9859SShuo Chen        java.lang.Object ref = checkerboard_;
354420c9859SShuo Chen        if (!(ref instanceof String)) {
355420c9859SShuo Chen          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
356420c9859SShuo Chen          checkerboard_ = s;
357420c9859SShuo Chen          return s;
358420c9859SShuo Chen        } else {
359420c9859SShuo Chen          return (String) ref;
360420c9859SShuo Chen        }
361420c9859SShuo Chen      }
362420c9859SShuo Chen      public Builder setCheckerboard(String value) {
363420c9859SShuo Chen        if (value == null) {
364420c9859SShuo Chen    throw new NullPointerException();
365420c9859SShuo Chen  }
366420c9859SShuo Chen  bitField0_ |= 0x00000001;
367420c9859SShuo Chen        checkerboard_ = value;
368420c9859SShuo Chen        onChanged();
369420c9859SShuo Chen        return this;
370420c9859SShuo Chen      }
371420c9859SShuo Chen      public Builder clearCheckerboard() {
372420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
373420c9859SShuo Chen        checkerboard_ = getDefaultInstance().getCheckerboard();
374420c9859SShuo Chen        onChanged();
375420c9859SShuo Chen        return this;
376420c9859SShuo Chen      }
377420c9859SShuo Chen      void setCheckerboard(com.google.protobuf.ByteString value) {
378420c9859SShuo Chen        bitField0_ |= 0x00000001;
379420c9859SShuo Chen        checkerboard_ = value;
380420c9859SShuo Chen        onChanged();
381420c9859SShuo Chen      }
382420c9859SShuo Chen
383420c9859SShuo Chen      // @@protoc_insertion_point(builder_scope:sudoku.SudokuRequest)
384420c9859SShuo Chen    }
385420c9859SShuo Chen
386420c9859SShuo Chen    static {
387420c9859SShuo Chen      defaultInstance = new SudokuRequest(true);
388420c9859SShuo Chen      defaultInstance.initFields();
389420c9859SShuo Chen    }
390420c9859SShuo Chen
391420c9859SShuo Chen    // @@protoc_insertion_point(class_scope:sudoku.SudokuRequest)
392420c9859SShuo Chen  }
393420c9859SShuo Chen
394420c9859SShuo Chen  public interface SudokuResponseOrBuilder
395420c9859SShuo Chen      extends com.google.protobuf.MessageOrBuilder {
396420c9859SShuo Chen
397420c9859SShuo Chen    // optional bool solved = 1 [default = false];
398420c9859SShuo Chen    boolean hasSolved();
399420c9859SShuo Chen    boolean getSolved();
400420c9859SShuo Chen
401420c9859SShuo Chen    // optional string checkerboard = 2;
402420c9859SShuo Chen    boolean hasCheckerboard();
403420c9859SShuo Chen    String getCheckerboard();
404420c9859SShuo Chen  }
405420c9859SShuo Chen  public static final class SudokuResponse extends
406420c9859SShuo Chen      com.google.protobuf.GeneratedMessage
407420c9859SShuo Chen      implements SudokuResponseOrBuilder {
408420c9859SShuo Chen    // Use SudokuResponse.newBuilder() to construct.
409420c9859SShuo Chen    private SudokuResponse(Builder builder) {
410420c9859SShuo Chen      super(builder);
411420c9859SShuo Chen    }
412420c9859SShuo Chen    private SudokuResponse(boolean noInit) {}
413420c9859SShuo Chen
414420c9859SShuo Chen    private static final SudokuResponse defaultInstance;
415420c9859SShuo Chen    public static SudokuResponse getDefaultInstance() {
416420c9859SShuo Chen      return defaultInstance;
417420c9859SShuo Chen    }
418420c9859SShuo Chen
419420c9859SShuo Chen    public SudokuResponse getDefaultInstanceForType() {
420420c9859SShuo Chen      return defaultInstance;
421420c9859SShuo Chen    }
422420c9859SShuo Chen
423420c9859SShuo Chen    public static final com.google.protobuf.Descriptors.Descriptor
424420c9859SShuo Chen        getDescriptor() {
425420c9859SShuo Chen      return sudoku.Sudoku.internal_static_sudoku_SudokuResponse_descriptor;
426420c9859SShuo Chen    }
427420c9859SShuo Chen
428420c9859SShuo Chen    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
429420c9859SShuo Chen        internalGetFieldAccessorTable() {
430420c9859SShuo Chen      return sudoku.Sudoku.internal_static_sudoku_SudokuResponse_fieldAccessorTable;
431420c9859SShuo Chen    }
432420c9859SShuo Chen
433420c9859SShuo Chen    private int bitField0_;
434420c9859SShuo Chen    // optional bool solved = 1 [default = false];
435420c9859SShuo Chen    public static final int SOLVED_FIELD_NUMBER = 1;
436420c9859SShuo Chen    private boolean solved_;
437420c9859SShuo Chen    public boolean hasSolved() {
438420c9859SShuo Chen      return ((bitField0_ & 0x00000001) == 0x00000001);
439420c9859SShuo Chen    }
440420c9859SShuo Chen    public boolean getSolved() {
441420c9859SShuo Chen      return solved_;
442420c9859SShuo Chen    }
443420c9859SShuo Chen
444420c9859SShuo Chen    // optional string checkerboard = 2;
445420c9859SShuo Chen    public static final int CHECKERBOARD_FIELD_NUMBER = 2;
446420c9859SShuo Chen    private java.lang.Object checkerboard_;
447420c9859SShuo Chen    public boolean hasCheckerboard() {
448420c9859SShuo Chen      return ((bitField0_ & 0x00000002) == 0x00000002);
449420c9859SShuo Chen    }
450420c9859SShuo Chen    public String getCheckerboard() {
451420c9859SShuo Chen      java.lang.Object ref = checkerboard_;
452420c9859SShuo Chen      if (ref instanceof String) {
453420c9859SShuo Chen        return (String) ref;
454420c9859SShuo Chen      } else {
455420c9859SShuo Chen        com.google.protobuf.ByteString bs =
456420c9859SShuo Chen            (com.google.protobuf.ByteString) ref;
457420c9859SShuo Chen        String s = bs.toStringUtf8();
458420c9859SShuo Chen        if (com.google.protobuf.Internal.isValidUtf8(bs)) {
459420c9859SShuo Chen          checkerboard_ = s;
460420c9859SShuo Chen        }
461420c9859SShuo Chen        return s;
462420c9859SShuo Chen      }
463420c9859SShuo Chen    }
464420c9859SShuo Chen    private com.google.protobuf.ByteString getCheckerboardBytes() {
465420c9859SShuo Chen      java.lang.Object ref = checkerboard_;
466420c9859SShuo Chen      if (ref instanceof String) {
467420c9859SShuo Chen        com.google.protobuf.ByteString b =
468420c9859SShuo Chen            com.google.protobuf.ByteString.copyFromUtf8((String) ref);
469420c9859SShuo Chen        checkerboard_ = b;
470420c9859SShuo Chen        return b;
471420c9859SShuo Chen      } else {
472420c9859SShuo Chen        return (com.google.protobuf.ByteString) ref;
473420c9859SShuo Chen      }
474420c9859SShuo Chen    }
475420c9859SShuo Chen
476420c9859SShuo Chen    private void initFields() {
477420c9859SShuo Chen      solved_ = false;
478420c9859SShuo Chen      checkerboard_ = "";
479420c9859SShuo Chen    }
480420c9859SShuo Chen    private byte memoizedIsInitialized = -1;
481420c9859SShuo Chen    public final boolean isInitialized() {
482420c9859SShuo Chen      byte isInitialized = memoizedIsInitialized;
483420c9859SShuo Chen      if (isInitialized != -1) return isInitialized == 1;
484420c9859SShuo Chen
485420c9859SShuo Chen      memoizedIsInitialized = 1;
486420c9859SShuo Chen      return true;
487420c9859SShuo Chen    }
488420c9859SShuo Chen
489420c9859SShuo Chen    public void writeTo(com.google.protobuf.CodedOutputStream output)
490420c9859SShuo Chen                        throws java.io.IOException {
491420c9859SShuo Chen      getSerializedSize();
492420c9859SShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
493420c9859SShuo Chen        output.writeBool(1, solved_);
494420c9859SShuo Chen      }
495420c9859SShuo Chen      if (((bitField0_ & 0x00000002) == 0x00000002)) {
496420c9859SShuo Chen        output.writeBytes(2, getCheckerboardBytes());
497420c9859SShuo Chen      }
498420c9859SShuo Chen      getUnknownFields().writeTo(output);
499420c9859SShuo Chen    }
500420c9859SShuo Chen
501420c9859SShuo Chen    private int memoizedSerializedSize = -1;
502420c9859SShuo Chen    public int getSerializedSize() {
503420c9859SShuo Chen      int size = memoizedSerializedSize;
504420c9859SShuo Chen      if (size != -1) return size;
505420c9859SShuo Chen
506420c9859SShuo Chen      size = 0;
507420c9859SShuo Chen      if (((bitField0_ & 0x00000001) == 0x00000001)) {
508420c9859SShuo Chen        size += com.google.protobuf.CodedOutputStream
509420c9859SShuo Chen          .computeBoolSize(1, solved_);
510420c9859SShuo Chen      }
511420c9859SShuo Chen      if (((bitField0_ & 0x00000002) == 0x00000002)) {
512420c9859SShuo Chen        size += com.google.protobuf.CodedOutputStream
513420c9859SShuo Chen          .computeBytesSize(2, getCheckerboardBytes());
514420c9859SShuo Chen      }
515420c9859SShuo Chen      size += getUnknownFields().getSerializedSize();
516420c9859SShuo Chen      memoizedSerializedSize = size;
517420c9859SShuo Chen      return size;
518420c9859SShuo Chen    }
519420c9859SShuo Chen
520420c9859SShuo Chen    private static final long serialVersionUID = 0L;
521420c9859SShuo Chen    @java.lang.Override
522420c9859SShuo Chen    protected java.lang.Object writeReplace()
523420c9859SShuo Chen        throws java.io.ObjectStreamException {
524420c9859SShuo Chen      return super.writeReplace();
525420c9859SShuo Chen    }
526420c9859SShuo Chen
527420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
528420c9859SShuo Chen        com.google.protobuf.ByteString data)
529420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
530420c9859SShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
531420c9859SShuo Chen    }
532420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
533420c9859SShuo Chen        com.google.protobuf.ByteString data,
534420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
535420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
536420c9859SShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
537420c9859SShuo Chen               .buildParsed();
538420c9859SShuo Chen    }
539420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(byte[] data)
540420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
541420c9859SShuo Chen      return newBuilder().mergeFrom(data).buildParsed();
542420c9859SShuo Chen    }
543420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
544420c9859SShuo Chen        byte[] data,
545420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
546420c9859SShuo Chen        throws com.google.protobuf.InvalidProtocolBufferException {
547420c9859SShuo Chen      return newBuilder().mergeFrom(data, extensionRegistry)
548420c9859SShuo Chen               .buildParsed();
549420c9859SShuo Chen    }
550420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(java.io.InputStream input)
551420c9859SShuo Chen        throws java.io.IOException {
552420c9859SShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
553420c9859SShuo Chen    }
554420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
555420c9859SShuo Chen        java.io.InputStream input,
556420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
557420c9859SShuo Chen        throws java.io.IOException {
558420c9859SShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
559420c9859SShuo Chen               .buildParsed();
560420c9859SShuo Chen    }
561420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseDelimitedFrom(java.io.InputStream input)
562420c9859SShuo Chen        throws java.io.IOException {
563420c9859SShuo Chen      Builder builder = newBuilder();
564420c9859SShuo Chen      if (builder.mergeDelimitedFrom(input)) {
565420c9859SShuo Chen        return builder.buildParsed();
566420c9859SShuo Chen      } else {
567420c9859SShuo Chen        return null;
568420c9859SShuo Chen      }
569420c9859SShuo Chen    }
570420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseDelimitedFrom(
571420c9859SShuo Chen        java.io.InputStream input,
572420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
573420c9859SShuo Chen        throws java.io.IOException {
574420c9859SShuo Chen      Builder builder = newBuilder();
575420c9859SShuo Chen      if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
576420c9859SShuo Chen        return builder.buildParsed();
577420c9859SShuo Chen      } else {
578420c9859SShuo Chen        return null;
579420c9859SShuo Chen      }
580420c9859SShuo Chen    }
581420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
582420c9859SShuo Chen        com.google.protobuf.CodedInputStream input)
583420c9859SShuo Chen        throws java.io.IOException {
584420c9859SShuo Chen      return newBuilder().mergeFrom(input).buildParsed();
585420c9859SShuo Chen    }
586420c9859SShuo Chen    public static sudoku.Sudoku.SudokuResponse parseFrom(
587420c9859SShuo Chen        com.google.protobuf.CodedInputStream input,
588420c9859SShuo Chen        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
589420c9859SShuo Chen        throws java.io.IOException {
590420c9859SShuo Chen      return newBuilder().mergeFrom(input, extensionRegistry)
591420c9859SShuo Chen               .buildParsed();
592420c9859SShuo Chen    }
593420c9859SShuo Chen
594420c9859SShuo Chen    public static Builder newBuilder() { return Builder.create(); }
595420c9859SShuo Chen    public Builder newBuilderForType() { return newBuilder(); }
596420c9859SShuo Chen    public static Builder newBuilder(sudoku.Sudoku.SudokuResponse prototype) {
597420c9859SShuo Chen      return newBuilder().mergeFrom(prototype);
598420c9859SShuo Chen    }
599420c9859SShuo Chen    public Builder toBuilder() { return newBuilder(this); }
600420c9859SShuo Chen
601420c9859SShuo Chen    @java.lang.Override
602420c9859SShuo Chen    protected Builder newBuilderForType(
603420c9859SShuo Chen        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
604420c9859SShuo Chen      Builder builder = new Builder(parent);
605420c9859SShuo Chen      return builder;
606420c9859SShuo Chen    }
607420c9859SShuo Chen    public static final class Builder extends
608420c9859SShuo Chen        com.google.protobuf.GeneratedMessage.Builder<Builder>
609420c9859SShuo Chen       implements sudoku.Sudoku.SudokuResponseOrBuilder {
610420c9859SShuo Chen      public static final com.google.protobuf.Descriptors.Descriptor
611420c9859SShuo Chen          getDescriptor() {
612420c9859SShuo Chen        return sudoku.Sudoku.internal_static_sudoku_SudokuResponse_descriptor;
613420c9859SShuo Chen      }
614420c9859SShuo Chen
615420c9859SShuo Chen      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
616420c9859SShuo Chen          internalGetFieldAccessorTable() {
617420c9859SShuo Chen        return sudoku.Sudoku.internal_static_sudoku_SudokuResponse_fieldAccessorTable;
618420c9859SShuo Chen      }
619420c9859SShuo Chen
620420c9859SShuo Chen      // Construct using sudoku.Sudoku.SudokuResponse.newBuilder()
621420c9859SShuo Chen      private Builder() {
622420c9859SShuo Chen        maybeForceBuilderInitialization();
623420c9859SShuo Chen      }
624420c9859SShuo Chen
625420c9859SShuo Chen      private Builder(BuilderParent parent) {
626420c9859SShuo Chen        super(parent);
627420c9859SShuo Chen        maybeForceBuilderInitialization();
628420c9859SShuo Chen      }
629420c9859SShuo Chen      private void maybeForceBuilderInitialization() {
630420c9859SShuo Chen        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
631420c9859SShuo Chen        }
632420c9859SShuo Chen      }
633420c9859SShuo Chen      private static Builder create() {
634420c9859SShuo Chen        return new Builder();
635420c9859SShuo Chen      }
636420c9859SShuo Chen
637420c9859SShuo Chen      public Builder clear() {
638420c9859SShuo Chen        super.clear();
639420c9859SShuo Chen        solved_ = false;
640420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
641420c9859SShuo Chen        checkerboard_ = "";
642420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000002);
643420c9859SShuo Chen        return this;
644420c9859SShuo Chen      }
645420c9859SShuo Chen
646420c9859SShuo Chen      public Builder clone() {
647420c9859SShuo Chen        return create().mergeFrom(buildPartial());
648420c9859SShuo Chen      }
649420c9859SShuo Chen
650420c9859SShuo Chen      public com.google.protobuf.Descriptors.Descriptor
651420c9859SShuo Chen          getDescriptorForType() {
652420c9859SShuo Chen        return sudoku.Sudoku.SudokuResponse.getDescriptor();
653420c9859SShuo Chen      }
654420c9859SShuo Chen
655420c9859SShuo Chen      public sudoku.Sudoku.SudokuResponse getDefaultInstanceForType() {
656420c9859SShuo Chen        return sudoku.Sudoku.SudokuResponse.getDefaultInstance();
657420c9859SShuo Chen      }
658420c9859SShuo Chen
659420c9859SShuo Chen      public sudoku.Sudoku.SudokuResponse build() {
660420c9859SShuo Chen        sudoku.Sudoku.SudokuResponse result = buildPartial();
661420c9859SShuo Chen        if (!result.isInitialized()) {
662420c9859SShuo Chen          throw newUninitializedMessageException(result);
663420c9859SShuo Chen        }
664420c9859SShuo Chen        return result;
665420c9859SShuo Chen      }
666420c9859SShuo Chen
667420c9859SShuo Chen      private sudoku.Sudoku.SudokuResponse buildParsed()
668420c9859SShuo Chen          throws com.google.protobuf.InvalidProtocolBufferException {
669420c9859SShuo Chen        sudoku.Sudoku.SudokuResponse result = buildPartial();
670420c9859SShuo Chen        if (!result.isInitialized()) {
671420c9859SShuo Chen          throw newUninitializedMessageException(
672420c9859SShuo Chen            result).asInvalidProtocolBufferException();
673420c9859SShuo Chen        }
674420c9859SShuo Chen        return result;
675420c9859SShuo Chen      }
676420c9859SShuo Chen
677420c9859SShuo Chen      public sudoku.Sudoku.SudokuResponse buildPartial() {
678420c9859SShuo Chen        sudoku.Sudoku.SudokuResponse result = new sudoku.Sudoku.SudokuResponse(this);
679420c9859SShuo Chen        int from_bitField0_ = bitField0_;
680420c9859SShuo Chen        int to_bitField0_ = 0;
681420c9859SShuo Chen        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
682420c9859SShuo Chen          to_bitField0_ |= 0x00000001;
683420c9859SShuo Chen        }
684420c9859SShuo Chen        result.solved_ = solved_;
685420c9859SShuo Chen        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
686420c9859SShuo Chen          to_bitField0_ |= 0x00000002;
687420c9859SShuo Chen        }
688420c9859SShuo Chen        result.checkerboard_ = checkerboard_;
689420c9859SShuo Chen        result.bitField0_ = to_bitField0_;
690420c9859SShuo Chen        onBuilt();
691420c9859SShuo Chen        return result;
692420c9859SShuo Chen      }
693420c9859SShuo Chen
694420c9859SShuo Chen      public Builder mergeFrom(com.google.protobuf.Message other) {
695420c9859SShuo Chen        if (other instanceof sudoku.Sudoku.SudokuResponse) {
696420c9859SShuo Chen          return mergeFrom((sudoku.Sudoku.SudokuResponse)other);
697420c9859SShuo Chen        } else {
698420c9859SShuo Chen          super.mergeFrom(other);
699420c9859SShuo Chen          return this;
700420c9859SShuo Chen        }
701420c9859SShuo Chen      }
702420c9859SShuo Chen
703420c9859SShuo Chen      public Builder mergeFrom(sudoku.Sudoku.SudokuResponse other) {
704420c9859SShuo Chen        if (other == sudoku.Sudoku.SudokuResponse.getDefaultInstance()) return this;
705420c9859SShuo Chen        if (other.hasSolved()) {
706420c9859SShuo Chen          setSolved(other.getSolved());
707420c9859SShuo Chen        }
708420c9859SShuo Chen        if (other.hasCheckerboard()) {
709420c9859SShuo Chen          setCheckerboard(other.getCheckerboard());
710420c9859SShuo Chen        }
711420c9859SShuo Chen        this.mergeUnknownFields(other.getUnknownFields());
712420c9859SShuo Chen        return this;
713420c9859SShuo Chen      }
714420c9859SShuo Chen
715420c9859SShuo Chen      public final boolean isInitialized() {
716420c9859SShuo Chen        return true;
717420c9859SShuo Chen      }
718420c9859SShuo Chen
719420c9859SShuo Chen      public Builder mergeFrom(
720420c9859SShuo Chen          com.google.protobuf.CodedInputStream input,
721420c9859SShuo Chen          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
722420c9859SShuo Chen          throws java.io.IOException {
723420c9859SShuo Chen        com.google.protobuf.UnknownFieldSet.Builder unknownFields =
724420c9859SShuo Chen          com.google.protobuf.UnknownFieldSet.newBuilder(
725420c9859SShuo Chen            this.getUnknownFields());
726420c9859SShuo Chen        while (true) {
727420c9859SShuo Chen          int tag = input.readTag();
728420c9859SShuo Chen          switch (tag) {
729420c9859SShuo Chen            case 0:
730420c9859SShuo Chen              this.setUnknownFields(unknownFields.build());
731420c9859SShuo Chen              onChanged();
732420c9859SShuo Chen              return this;
733420c9859SShuo Chen            default: {
734420c9859SShuo Chen              if (!parseUnknownField(input, unknownFields,
735420c9859SShuo Chen                                     extensionRegistry, tag)) {
736420c9859SShuo Chen                this.setUnknownFields(unknownFields.build());
737420c9859SShuo Chen                onChanged();
738420c9859SShuo Chen                return this;
739420c9859SShuo Chen              }
740420c9859SShuo Chen              break;
741420c9859SShuo Chen            }
742420c9859SShuo Chen            case 8: {
743420c9859SShuo Chen              bitField0_ |= 0x00000001;
744420c9859SShuo Chen              solved_ = input.readBool();
745420c9859SShuo Chen              break;
746420c9859SShuo Chen            }
747420c9859SShuo Chen            case 18: {
748420c9859SShuo Chen              bitField0_ |= 0x00000002;
749420c9859SShuo Chen              checkerboard_ = input.readBytes();
750420c9859SShuo Chen              break;
751420c9859SShuo Chen            }
752420c9859SShuo Chen          }
753420c9859SShuo Chen        }
754420c9859SShuo Chen      }
755420c9859SShuo Chen
756420c9859SShuo Chen      private int bitField0_;
757420c9859SShuo Chen
758420c9859SShuo Chen      // optional bool solved = 1 [default = false];
759420c9859SShuo Chen      private boolean solved_ ;
760420c9859SShuo Chen      public boolean hasSolved() {
761420c9859SShuo Chen        return ((bitField0_ & 0x00000001) == 0x00000001);
762420c9859SShuo Chen      }
763420c9859SShuo Chen      public boolean getSolved() {
764420c9859SShuo Chen        return solved_;
765420c9859SShuo Chen      }
766420c9859SShuo Chen      public Builder setSolved(boolean value) {
767420c9859SShuo Chen        bitField0_ |= 0x00000001;
768420c9859SShuo Chen        solved_ = value;
769420c9859SShuo Chen        onChanged();
770420c9859SShuo Chen        return this;
771420c9859SShuo Chen      }
772420c9859SShuo Chen      public Builder clearSolved() {
773420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000001);
774420c9859SShuo Chen        solved_ = false;
775420c9859SShuo Chen        onChanged();
776420c9859SShuo Chen        return this;
777420c9859SShuo Chen      }
778420c9859SShuo Chen
779420c9859SShuo Chen      // optional string checkerboard = 2;
780420c9859SShuo Chen      private java.lang.Object checkerboard_ = "";
781420c9859SShuo Chen      public boolean hasCheckerboard() {
782420c9859SShuo Chen        return ((bitField0_ & 0x00000002) == 0x00000002);
783420c9859SShuo Chen      }
784420c9859SShuo Chen      public String getCheckerboard() {
785420c9859SShuo Chen        java.lang.Object ref = checkerboard_;
786420c9859SShuo Chen        if (!(ref instanceof String)) {
787420c9859SShuo Chen          String s = ((com.google.protobuf.ByteString) ref).toStringUtf8();
788420c9859SShuo Chen          checkerboard_ = s;
789420c9859SShuo Chen          return s;
790420c9859SShuo Chen        } else {
791420c9859SShuo Chen          return (String) ref;
792420c9859SShuo Chen        }
793420c9859SShuo Chen      }
794420c9859SShuo Chen      public Builder setCheckerboard(String value) {
795420c9859SShuo Chen        if (value == null) {
796420c9859SShuo Chen    throw new NullPointerException();
797420c9859SShuo Chen  }
798420c9859SShuo Chen  bitField0_ |= 0x00000002;
799420c9859SShuo Chen        checkerboard_ = value;
800420c9859SShuo Chen        onChanged();
801420c9859SShuo Chen        return this;
802420c9859SShuo Chen      }
803420c9859SShuo Chen      public Builder clearCheckerboard() {
804420c9859SShuo Chen        bitField0_ = (bitField0_ & ~0x00000002);
805420c9859SShuo Chen        checkerboard_ = getDefaultInstance().getCheckerboard();
806420c9859SShuo Chen        onChanged();
807420c9859SShuo Chen        return this;
808420c9859SShuo Chen      }
809420c9859SShuo Chen      void setCheckerboard(com.google.protobuf.ByteString value) {
810420c9859SShuo Chen        bitField0_ |= 0x00000002;
811420c9859SShuo Chen        checkerboard_ = value;
812420c9859SShuo Chen        onChanged();
813420c9859SShuo Chen      }
814420c9859SShuo Chen
815420c9859SShuo Chen      // @@protoc_insertion_point(builder_scope:sudoku.SudokuResponse)
816420c9859SShuo Chen    }
817420c9859SShuo Chen
818420c9859SShuo Chen    static {
819420c9859SShuo Chen      defaultInstance = new SudokuResponse(true);
820420c9859SShuo Chen      defaultInstance.initFields();
821420c9859SShuo Chen    }
822420c9859SShuo Chen
823420c9859SShuo Chen    // @@protoc_insertion_point(class_scope:sudoku.SudokuResponse)
824420c9859SShuo Chen  }
825420c9859SShuo Chen
826420c9859SShuo Chen  public static abstract class SudokuService
827420c9859SShuo Chen      implements com.google.protobuf.Service {
828420c9859SShuo Chen    protected SudokuService() {}
829420c9859SShuo Chen
830420c9859SShuo Chen    public interface Interface {
831420c9859SShuo Chen      public abstract void solve(
832420c9859SShuo Chen          com.google.protobuf.RpcController controller,
833420c9859SShuo Chen          sudoku.Sudoku.SudokuRequest request,
834420c9859SShuo Chen          com.google.protobuf.RpcCallback<sudoku.Sudoku.SudokuResponse> done);
835420c9859SShuo Chen
836420c9859SShuo Chen    }
837420c9859SShuo Chen
838420c9859SShuo Chen    public static com.google.protobuf.Service newReflectiveService(
839420c9859SShuo Chen        final Interface impl) {
840420c9859SShuo Chen      return new SudokuService() {
841420c9859SShuo Chen        @java.lang.Override
842420c9859SShuo Chen        public  void solve(
843420c9859SShuo Chen            com.google.protobuf.RpcController controller,
844420c9859SShuo Chen            sudoku.Sudoku.SudokuRequest request,
845420c9859SShuo Chen            com.google.protobuf.RpcCallback<sudoku.Sudoku.SudokuResponse> done) {
846420c9859SShuo Chen          impl.solve(controller, request, done);
847420c9859SShuo Chen        }
848420c9859SShuo Chen
849420c9859SShuo Chen      };
850420c9859SShuo Chen    }
851420c9859SShuo Chen
852420c9859SShuo Chen    public static com.google.protobuf.BlockingService
853420c9859SShuo Chen        newReflectiveBlockingService(final BlockingInterface impl) {
854420c9859SShuo Chen      return new com.google.protobuf.BlockingService() {
855420c9859SShuo Chen        public final com.google.protobuf.Descriptors.ServiceDescriptor
856420c9859SShuo Chen            getDescriptorForType() {
857420c9859SShuo Chen          return getDescriptor();
858420c9859SShuo Chen        }
859420c9859SShuo Chen
860420c9859SShuo Chen        public final com.google.protobuf.Message callBlockingMethod(
861420c9859SShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method,
862420c9859SShuo Chen            com.google.protobuf.RpcController controller,
863420c9859SShuo Chen            com.google.protobuf.Message request)
864420c9859SShuo Chen            throws com.google.protobuf.ServiceException {
865420c9859SShuo Chen          if (method.getService() != getDescriptor()) {
866420c9859SShuo Chen            throw new java.lang.IllegalArgumentException(
867420c9859SShuo Chen              "Service.callBlockingMethod() given method descriptor for " +
868420c9859SShuo Chen              "wrong service type.");
869420c9859SShuo Chen          }
870420c9859SShuo Chen          switch(method.getIndex()) {
871420c9859SShuo Chen            case 0:
872420c9859SShuo Chen              return impl.solve(controller, (sudoku.Sudoku.SudokuRequest)request);
873420c9859SShuo Chen            default:
874420c9859SShuo Chen              throw new java.lang.AssertionError("Can't get here.");
875420c9859SShuo Chen          }
876420c9859SShuo Chen        }
877420c9859SShuo Chen
878420c9859SShuo Chen        public final com.google.protobuf.Message
879420c9859SShuo Chen            getRequestPrototype(
880420c9859SShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method) {
881420c9859SShuo Chen          if (method.getService() != getDescriptor()) {
882420c9859SShuo Chen            throw new java.lang.IllegalArgumentException(
883420c9859SShuo Chen              "Service.getRequestPrototype() given method " +
884420c9859SShuo Chen              "descriptor for wrong service type.");
885420c9859SShuo Chen          }
886420c9859SShuo Chen          switch(method.getIndex()) {
887420c9859SShuo Chen            case 0:
888420c9859SShuo Chen              return sudoku.Sudoku.SudokuRequest.getDefaultInstance();
889420c9859SShuo Chen            default:
890420c9859SShuo Chen              throw new java.lang.AssertionError("Can't get here.");
891420c9859SShuo Chen          }
892420c9859SShuo Chen        }
893420c9859SShuo Chen
894420c9859SShuo Chen        public final com.google.protobuf.Message
895420c9859SShuo Chen            getResponsePrototype(
896420c9859SShuo Chen            com.google.protobuf.Descriptors.MethodDescriptor method) {
897420c9859SShuo Chen          if (method.getService() != getDescriptor()) {
898420c9859SShuo Chen            throw new java.lang.IllegalArgumentException(
899420c9859SShuo Chen              "Service.getResponsePrototype() given method " +
900420c9859SShuo Chen              "descriptor for wrong service type.");
901420c9859SShuo Chen          }
902420c9859SShuo Chen          switch(method.getIndex()) {
903420c9859SShuo Chen            case 0:
904420c9859SShuo Chen              return sudoku.Sudoku.SudokuResponse.getDefaultInstance();
905420c9859SShuo Chen            default:
906420c9859SShuo Chen              throw new java.lang.AssertionError("Can't get here.");
907420c9859SShuo Chen          }
908420c9859SShuo Chen        }
909420c9859SShuo Chen
910420c9859SShuo Chen      };
911420c9859SShuo Chen    }
912420c9859SShuo Chen
913420c9859SShuo Chen    public abstract void solve(
914420c9859SShuo Chen        com.google.protobuf.RpcController controller,
915420c9859SShuo Chen        sudoku.Sudoku.SudokuRequest request,
916420c9859SShuo Chen        com.google.protobuf.RpcCallback<sudoku.Sudoku.SudokuResponse> done);
917420c9859SShuo Chen
918420c9859SShuo Chen    public static final
919420c9859SShuo Chen        com.google.protobuf.Descriptors.ServiceDescriptor
920420c9859SShuo Chen        getDescriptor() {
921420c9859SShuo Chen      return sudoku.Sudoku.getDescriptor().getServices().get(0);
922420c9859SShuo Chen    }
923420c9859SShuo Chen    public final com.google.protobuf.Descriptors.ServiceDescriptor
924420c9859SShuo Chen        getDescriptorForType() {
925420c9859SShuo Chen      return getDescriptor();
926420c9859SShuo Chen    }
927420c9859SShuo Chen
928420c9859SShuo Chen    public final void callMethod(
929420c9859SShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method,
930420c9859SShuo Chen        com.google.protobuf.RpcController controller,
931420c9859SShuo Chen        com.google.protobuf.Message request,
932420c9859SShuo Chen        com.google.protobuf.RpcCallback<
933420c9859SShuo Chen          com.google.protobuf.Message> done) {
934420c9859SShuo Chen      if (method.getService() != getDescriptor()) {
935420c9859SShuo Chen        throw new java.lang.IllegalArgumentException(
936420c9859SShuo Chen          "Service.callMethod() given method descriptor for wrong " +
937420c9859SShuo Chen          "service type.");
938420c9859SShuo Chen      }
939420c9859SShuo Chen      switch(method.getIndex()) {
940420c9859SShuo Chen        case 0:
941420c9859SShuo Chen          this.solve(controller, (sudoku.Sudoku.SudokuRequest)request,
942420c9859SShuo Chen            com.google.protobuf.RpcUtil.<sudoku.Sudoku.SudokuResponse>specializeCallback(
943420c9859SShuo Chen              done));
944420c9859SShuo Chen          return;
945420c9859SShuo Chen        default:
946420c9859SShuo Chen          throw new java.lang.AssertionError("Can't get here.");
947420c9859SShuo Chen      }
948420c9859SShuo Chen    }
949420c9859SShuo Chen
950420c9859SShuo Chen    public final com.google.protobuf.Message
951420c9859SShuo Chen        getRequestPrototype(
952420c9859SShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method) {
953420c9859SShuo Chen      if (method.getService() != getDescriptor()) {
954420c9859SShuo Chen        throw new java.lang.IllegalArgumentException(
955420c9859SShuo Chen          "Service.getRequestPrototype() given method " +
956420c9859SShuo Chen          "descriptor for wrong service type.");
957420c9859SShuo Chen      }
958420c9859SShuo Chen      switch(method.getIndex()) {
959420c9859SShuo Chen        case 0:
960420c9859SShuo Chen          return sudoku.Sudoku.SudokuRequest.getDefaultInstance();
961420c9859SShuo Chen        default:
962420c9859SShuo Chen          throw new java.lang.AssertionError("Can't get here.");
963420c9859SShuo Chen      }
964420c9859SShuo Chen    }
965420c9859SShuo Chen
966420c9859SShuo Chen    public final com.google.protobuf.Message
967420c9859SShuo Chen        getResponsePrototype(
968420c9859SShuo Chen        com.google.protobuf.Descriptors.MethodDescriptor method) {
969420c9859SShuo Chen      if (method.getService() != getDescriptor()) {
970420c9859SShuo Chen        throw new java.lang.IllegalArgumentException(
971420c9859SShuo Chen          "Service.getResponsePrototype() given method " +
972420c9859SShuo Chen          "descriptor for wrong service type.");
973420c9859SShuo Chen      }
974420c9859SShuo Chen      switch(method.getIndex()) {
975420c9859SShuo Chen        case 0:
976420c9859SShuo Chen          return sudoku.Sudoku.SudokuResponse.getDefaultInstance();
977420c9859SShuo Chen        default:
978420c9859SShuo Chen          throw new java.lang.AssertionError("Can't get here.");
979420c9859SShuo Chen      }
980420c9859SShuo Chen    }
981420c9859SShuo Chen
982420c9859SShuo Chen    public static Stub newStub(
983420c9859SShuo Chen        com.google.protobuf.RpcChannel channel) {
984420c9859SShuo Chen      return new Stub(channel);
985420c9859SShuo Chen    }
986420c9859SShuo Chen
987420c9859SShuo Chen    public static final class Stub extends sudoku.Sudoku.SudokuService implements Interface {
988420c9859SShuo Chen      private Stub(com.google.protobuf.RpcChannel channel) {
989420c9859SShuo Chen        this.channel = channel;
990420c9859SShuo Chen      }
991420c9859SShuo Chen
992420c9859SShuo Chen      private final com.google.protobuf.RpcChannel channel;
993420c9859SShuo Chen
994420c9859SShuo Chen      public com.google.protobuf.RpcChannel getChannel() {
995420c9859SShuo Chen        return channel;
996420c9859SShuo Chen      }
997420c9859SShuo Chen
998420c9859SShuo Chen      public  void solve(
999420c9859SShuo Chen          com.google.protobuf.RpcController controller,
1000420c9859SShuo Chen          sudoku.Sudoku.SudokuRequest request,
1001420c9859SShuo Chen          com.google.protobuf.RpcCallback<sudoku.Sudoku.SudokuResponse> done) {
1002420c9859SShuo Chen        channel.callMethod(
1003420c9859SShuo Chen          getDescriptor().getMethods().get(0),
1004420c9859SShuo Chen          controller,
1005420c9859SShuo Chen          request,
1006420c9859SShuo Chen          sudoku.Sudoku.SudokuResponse.getDefaultInstance(),
1007420c9859SShuo Chen          com.google.protobuf.RpcUtil.generalizeCallback(
1008420c9859SShuo Chen            done,
1009420c9859SShuo Chen            sudoku.Sudoku.SudokuResponse.class,
1010420c9859SShuo Chen            sudoku.Sudoku.SudokuResponse.getDefaultInstance()));
1011420c9859SShuo Chen      }
1012420c9859SShuo Chen    }
1013420c9859SShuo Chen
1014420c9859SShuo Chen    public static BlockingInterface newBlockingStub(
1015420c9859SShuo Chen        com.google.protobuf.BlockingRpcChannel channel) {
1016420c9859SShuo Chen      return new BlockingStub(channel);
1017420c9859SShuo Chen    }
1018420c9859SShuo Chen
1019420c9859SShuo Chen    public interface BlockingInterface {
1020420c9859SShuo Chen      public sudoku.Sudoku.SudokuResponse solve(
1021420c9859SShuo Chen          com.google.protobuf.RpcController controller,
1022420c9859SShuo Chen          sudoku.Sudoku.SudokuRequest request)
1023420c9859SShuo Chen          throws com.google.protobuf.ServiceException;
1024420c9859SShuo Chen    }
1025420c9859SShuo Chen
1026420c9859SShuo Chen    private static final class BlockingStub implements BlockingInterface {
1027420c9859SShuo Chen      private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
1028420c9859SShuo Chen        this.channel = channel;
1029420c9859SShuo Chen      }
1030420c9859SShuo Chen
1031420c9859SShuo Chen      private final com.google.protobuf.BlockingRpcChannel channel;
1032420c9859SShuo Chen
1033420c9859SShuo Chen      public sudoku.Sudoku.SudokuResponse solve(
1034420c9859SShuo Chen          com.google.protobuf.RpcController controller,
1035420c9859SShuo Chen          sudoku.Sudoku.SudokuRequest request)
1036420c9859SShuo Chen          throws com.google.protobuf.ServiceException {
1037420c9859SShuo Chen        return (sudoku.Sudoku.SudokuResponse) channel.callBlockingMethod(
1038420c9859SShuo Chen          getDescriptor().getMethods().get(0),
1039420c9859SShuo Chen          controller,
1040420c9859SShuo Chen          request,
1041420c9859SShuo Chen          sudoku.Sudoku.SudokuResponse.getDefaultInstance());
1042420c9859SShuo Chen      }
1043420c9859SShuo Chen
1044420c9859SShuo Chen    }
1045420c9859SShuo Chen  }
1046420c9859SShuo Chen
1047420c9859SShuo Chen  private static com.google.protobuf.Descriptors.Descriptor
1048420c9859SShuo Chen    internal_static_sudoku_SudokuRequest_descriptor;
1049420c9859SShuo Chen  private static
1050420c9859SShuo Chen    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1051420c9859SShuo Chen      internal_static_sudoku_SudokuRequest_fieldAccessorTable;
1052420c9859SShuo Chen  private static com.google.protobuf.Descriptors.Descriptor
1053420c9859SShuo Chen    internal_static_sudoku_SudokuResponse_descriptor;
1054420c9859SShuo Chen  private static
1055420c9859SShuo Chen    com.google.protobuf.GeneratedMessage.FieldAccessorTable
1056420c9859SShuo Chen      internal_static_sudoku_SudokuResponse_fieldAccessorTable;
1057420c9859SShuo Chen
1058420c9859SShuo Chen  public static com.google.protobuf.Descriptors.FileDescriptor
1059420c9859SShuo Chen      getDescriptor() {
1060420c9859SShuo Chen    return descriptor;
1061420c9859SShuo Chen  }
1062420c9859SShuo Chen  private static com.google.protobuf.Descriptors.FileDescriptor
1063420c9859SShuo Chen      descriptor;
1064420c9859SShuo Chen  static {
1065420c9859SShuo Chen    java.lang.String[] descriptorData = {
1066420c9859SShuo Chen      "\n\014sudoku.proto\022\006sudoku\"%\n\rSudokuRequest\022" +
1067420c9859SShuo Chen      "\024\n\014checkerboard\030\001 \002(\t\"=\n\016SudokuResponse\022" +
1068420c9859SShuo Chen      "\025\n\006solved\030\001 \001(\010:\005false\022\024\n\014checkerboard\030\002" +
1069420c9859SShuo Chen      " \001(\t2G\n\rSudokuService\0226\n\005Solve\022\025.sudoku." +
1070420c9859SShuo Chen      "SudokuRequest\032\026.sudoku.SudokuResponseB\t\200" +
1071420c9859SShuo Chen      "\001\001\210\001\001\220\001\001"
1072420c9859SShuo Chen    };
1073420c9859SShuo Chen    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
1074420c9859SShuo Chen      new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
1075420c9859SShuo Chen        public com.google.protobuf.ExtensionRegistry assignDescriptors(
1076420c9859SShuo Chen            com.google.protobuf.Descriptors.FileDescriptor root) {
1077420c9859SShuo Chen          descriptor = root;
1078420c9859SShuo Chen          internal_static_sudoku_SudokuRequest_descriptor =
1079420c9859SShuo Chen            getDescriptor().getMessageTypes().get(0);
1080420c9859SShuo Chen          internal_static_sudoku_SudokuRequest_fieldAccessorTable = new
1081420c9859SShuo Chen            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1082420c9859SShuo Chen              internal_static_sudoku_SudokuRequest_descriptor,
1083420c9859SShuo Chen              new java.lang.String[] { "Checkerboard", },
1084420c9859SShuo Chen              sudoku.Sudoku.SudokuRequest.class,
1085420c9859SShuo Chen              sudoku.Sudoku.SudokuRequest.Builder.class);
1086420c9859SShuo Chen          internal_static_sudoku_SudokuResponse_descriptor =
1087420c9859SShuo Chen            getDescriptor().getMessageTypes().get(1);
1088420c9859SShuo Chen          internal_static_sudoku_SudokuResponse_fieldAccessorTable = new
1089420c9859SShuo Chen            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
1090420c9859SShuo Chen              internal_static_sudoku_SudokuResponse_descriptor,
1091420c9859SShuo Chen              new java.lang.String[] { "Solved", "Checkerboard", },
1092420c9859SShuo Chen              sudoku.Sudoku.SudokuResponse.class,
1093420c9859SShuo Chen              sudoku.Sudoku.SudokuResponse.Builder.class);
1094420c9859SShuo Chen          return null;
1095420c9859SShuo Chen        }
1096420c9859SShuo Chen      };
1097420c9859SShuo Chen    com.google.protobuf.Descriptors.FileDescriptor
1098420c9859SShuo Chen      .internalBuildGeneratedFileFrom(descriptorData,
1099420c9859SShuo Chen        new com.google.protobuf.Descriptors.FileDescriptor[] {
1100420c9859SShuo Chen        }, assigner);
1101420c9859SShuo Chen  }
1102420c9859SShuo Chen
1103420c9859SShuo Chen  // @@protoc_insertion_point(outer_class_scope)
1104420c9859SShuo Chen}
1105