Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RoutingSearchStatus.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/routing_enums.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.constraintsolver;
7
15@com.google.protobuf.Generated
16public final class RoutingSearchStatus extends
17 com.google.protobuf.GeneratedMessage implements
18 // @@protoc_insertion_point(message_implements:operations_research.RoutingSearchStatus)
20private static final long serialVersionUID = 0L;
21 static {
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
24 /* major= */ 4,
25 /* minor= */ 31,
26 /* patch= */ 1,
27 /* suffix= */ "",
28 RoutingSearchStatus.class.getName());
29 }
30 // Use RoutingSearchStatus.newBuilder() to construct.
31 private RoutingSearchStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
32 super(builder);
33 }
34 private RoutingSearchStatus() {
35 }
36
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
40 }
41
42 @java.lang.Override
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.RoutingSearchStatus.class, com.google.ortools.constraintsolver.RoutingSearchStatus.Builder.class);
48 }
49
53 public enum Value
54 implements com.google.protobuf.ProtocolMessageEnum {
122 ;
123
124 static {
125 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
126 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
127 /* major= */ 4,
128 /* minor= */ 31,
129 /* patch= */ 1,
130 /* suffix= */ "",
131 Value.class.getName());
132 }
140 public static final int ROUTING_NOT_SOLVED_VALUE = 0;
148 public static final int ROUTING_SUCCESS_VALUE = 1;
166 public static final int ROUTING_FAIL_VALUE = 3;
174 public static final int ROUTING_FAIL_TIMEOUT_VALUE = 4;
182 public static final int ROUTING_INVALID_VALUE = 5;
190 public static final int ROUTING_INFEASIBLE_VALUE = 6;
198 public static final int ROUTING_OPTIMAL_VALUE = 7;
199
200
201 public final int getNumber() {
202 if (this == UNRECOGNIZED) {
203 throw new java.lang.IllegalArgumentException(
204 "Can't get the number of an unknown enum value.");
205 }
206 return value;
207 }
208
214 @java.lang.Deprecated
215 public static Value valueOf(int value) {
216 return forNumber(value);
217 }
218
223 public static Value forNumber(int value) {
224 switch (value) {
225 case 0: return ROUTING_NOT_SOLVED;
226 case 1: return ROUTING_SUCCESS;
228 case 3: return ROUTING_FAIL;
229 case 4: return ROUTING_FAIL_TIMEOUT;
230 case 5: return ROUTING_INVALID;
231 case 6: return ROUTING_INFEASIBLE;
232 case 7: return ROUTING_OPTIMAL;
233 default: return null;
234 }
235 }
236
237 public static com.google.protobuf.Internal.EnumLiteMap<Value>
239 return internalValueMap;
240 }
241 private static final com.google.protobuf.Internal.EnumLiteMap<
242 Value> internalValueMap =
243 new com.google.protobuf.Internal.EnumLiteMap<Value>() {
244 public Value findValueByNumber(int number) {
245 return Value.forNumber(number);
246 }
247 };
248
249 public final com.google.protobuf.Descriptors.EnumValueDescriptor
251 if (this == UNRECOGNIZED) {
252 throw new java.lang.IllegalStateException(
253 "Can't get the descriptor of an unrecognized enum value.");
254 }
255 return getDescriptor().getValues().get(ordinal());
256 }
257 public final com.google.protobuf.Descriptors.EnumDescriptor
259 return getDescriptor();
260 }
261 public static com.google.protobuf.Descriptors.EnumDescriptor
263 return com.google.ortools.constraintsolver.RoutingSearchStatus.getDescriptor().getEnumTypes().get(0);
264 }
265
266 private static final Value[] VALUES = values();
267
268 public static Value valueOf(
269 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
270 if (desc.getType() != getDescriptor()) {
271 throw new java.lang.IllegalArgumentException(
272 "EnumValueDescriptor is not for this type.");
273 }
274 if (desc.getIndex() == -1) {
275 return UNRECOGNIZED;
276 }
277 return VALUES[desc.getIndex()];
278 }
279
280 private final int value;
281
282 private Value(int value) {
283 this.value = value;
284 }
285
286 // @@protoc_insertion_point(enum_scope:operations_research.RoutingSearchStatus.Value)
287 }
288
289 private byte memoizedIsInitialized = -1;
290 @java.lang.Override
291 public final boolean isInitialized() {
292 byte isInitialized = memoizedIsInitialized;
293 if (isInitialized == 1) return true;
294 if (isInitialized == 0) return false;
295
296 memoizedIsInitialized = 1;
297 return true;
298 }
299
300 @java.lang.Override
301 public void writeTo(com.google.protobuf.CodedOutputStream output)
302 throws java.io.IOException {
303 getUnknownFields().writeTo(output);
304 }
305
306 @java.lang.Override
307 public int getSerializedSize() {
308 int size = memoizedSize;
309 if (size != -1) return size;
310
311 size = 0;
312 size += getUnknownFields().getSerializedSize();
313 memoizedSize = size;
314 return size;
315 }
316
317 @java.lang.Override
318 public boolean equals(final java.lang.Object obj) {
319 if (obj == this) {
320 return true;
321 }
322 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchStatus)) {
323 return super.equals(obj);
324 }
325 com.google.ortools.constraintsolver.RoutingSearchStatus other = (com.google.ortools.constraintsolver.RoutingSearchStatus) obj;
326
327 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
328 return true;
329 }
330
331 @java.lang.Override
332 public int hashCode() {
333 if (memoizedHashCode != 0) {
334 return memoizedHashCode;
335 }
336 int hash = 41;
337 hash = (19 * hash) + getDescriptor().hashCode();
338 hash = (29 * hash) + getUnknownFields().hashCode();
339 memoizedHashCode = hash;
340 return hash;
341 }
342
344 java.nio.ByteBuffer data)
345 throws com.google.protobuf.InvalidProtocolBufferException {
346 return PARSER.parseFrom(data);
347 }
349 java.nio.ByteBuffer data,
350 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
351 throws com.google.protobuf.InvalidProtocolBufferException {
352 return PARSER.parseFrom(data, extensionRegistry);
353 }
355 com.google.protobuf.ByteString data)
356 throws com.google.protobuf.InvalidProtocolBufferException {
357 return PARSER.parseFrom(data);
358 }
360 com.google.protobuf.ByteString data,
361 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
362 throws com.google.protobuf.InvalidProtocolBufferException {
363 return PARSER.parseFrom(data, extensionRegistry);
364 }
366 throws com.google.protobuf.InvalidProtocolBufferException {
367 return PARSER.parseFrom(data);
368 }
370 byte[] data,
371 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
372 throws com.google.protobuf.InvalidProtocolBufferException {
373 return PARSER.parseFrom(data, extensionRegistry);
374 }
376 throws java.io.IOException {
377 return com.google.protobuf.GeneratedMessage
378 .parseWithIOException(PARSER, input);
379 }
381 java.io.InputStream input,
382 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
383 throws java.io.IOException {
384 return com.google.protobuf.GeneratedMessage
385 .parseWithIOException(PARSER, input, extensionRegistry);
386 }
387
389 throws java.io.IOException {
390 return com.google.protobuf.GeneratedMessage
391 .parseDelimitedWithIOException(PARSER, input);
392 }
393
395 java.io.InputStream input,
396 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
397 throws java.io.IOException {
398 return com.google.protobuf.GeneratedMessage
399 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
400 }
402 com.google.protobuf.CodedInputStream input)
403 throws java.io.IOException {
404 return com.google.protobuf.GeneratedMessage
405 .parseWithIOException(PARSER, input);
406 }
408 com.google.protobuf.CodedInputStream input,
409 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
410 throws java.io.IOException {
411 return com.google.protobuf.GeneratedMessage
412 .parseWithIOException(PARSER, input, extensionRegistry);
413 }
414
415 @java.lang.Override
416 public Builder newBuilderForType() { return newBuilder(); }
417 public static Builder newBuilder() {
418 return DEFAULT_INSTANCE.toBuilder();
419 }
420 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchStatus prototype) {
421 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
422 }
423 @java.lang.Override
425 return this == DEFAULT_INSTANCE
426 ? new Builder() : new Builder().mergeFrom(this);
427 }
428
429 @java.lang.Override
431 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
432 Builder builder = new Builder(parent);
433 return builder;
434 }
435
442 public static final class Builder extends
443 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
444 // @@protoc_insertion_point(builder_implements:operations_research.RoutingSearchStatus)
446 public static final com.google.protobuf.Descriptors.Descriptor
448 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
449 }
450
451 @java.lang.Override
452 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
454 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_fieldAccessorTable
455 .ensureFieldAccessorsInitialized(
456 com.google.ortools.constraintsolver.RoutingSearchStatus.class, com.google.ortools.constraintsolver.RoutingSearchStatus.Builder.class);
457 }
458
459 // Construct using com.google.ortools.constraintsolver.RoutingSearchStatus.newBuilder()
460 private Builder() {
461
462 }
463
464 private Builder(
465 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
466 super(parent);
467
468 }
469 @java.lang.Override
470 public Builder clear() {
471 super.clear();
472 return this;
473 }
474
475 @java.lang.Override
476 public com.google.protobuf.Descriptors.Descriptor
478 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
479 }
480
481 @java.lang.Override
483 return com.google.ortools.constraintsolver.RoutingSearchStatus.getDefaultInstance();
484 }
485
486 @java.lang.Override
489 if (!result.isInitialized()) {
490 throw newUninitializedMessageException(result);
491 }
492 return result;
493 }
494
495 @java.lang.Override
497 com.google.ortools.constraintsolver.RoutingSearchStatus result = new com.google.ortools.constraintsolver.RoutingSearchStatus(this);
498 onBuilt();
499 return result;
500 }
501
502 @java.lang.Override
503 public Builder mergeFrom(com.google.protobuf.Message other) {
504 if (other instanceof com.google.ortools.constraintsolver.RoutingSearchStatus) {
505 return mergeFrom((com.google.ortools.constraintsolver.RoutingSearchStatus)other);
506 } else {
507 super.mergeFrom(other);
508 return this;
509 }
510 }
511
512 public Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchStatus other) {
513 if (other == com.google.ortools.constraintsolver.RoutingSearchStatus.getDefaultInstance()) return this;
514 this.mergeUnknownFields(other.getUnknownFields());
515 onChanged();
516 return this;
517 }
518
519 @java.lang.Override
520 public final boolean isInitialized() {
521 return true;
522 }
523
524 @java.lang.Override
525 public Builder mergeFrom(
526 com.google.protobuf.CodedInputStream input,
527 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
528 throws java.io.IOException {
529 if (extensionRegistry == null) {
530 throw new java.lang.NullPointerException();
531 }
532 try {
533 boolean done = false;
534 while (!done) {
535 int tag = input.readTag();
536 switch (tag) {
537 case 0:
538 done = true;
539 break;
540 default: {
541 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
542 done = true; // was an endgroup tag
543 }
544 break;
545 } // default:
546 } // switch (tag)
547 } // while (!done)
548 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
549 throw e.unwrapIOException();
550 } finally {
551 onChanged();
552 } // finally
553 return this;
554 }
555
556 // @@protoc_insertion_point(builder_scope:operations_research.RoutingSearchStatus)
557 }
558
559 // @@protoc_insertion_point(class_scope:operations_research.RoutingSearchStatus)
560 private static final com.google.ortools.constraintsolver.RoutingSearchStatus DEFAULT_INSTANCE;
561 static {
562 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.RoutingSearchStatus();
563 }
564
566 return DEFAULT_INSTANCE;
567 }
568
569 private static final com.google.protobuf.Parser<RoutingSearchStatus>
570 PARSER = new com.google.protobuf.AbstractParser<RoutingSearchStatus>() {
571 @java.lang.Override
572 public RoutingSearchStatus parsePartialFrom(
573 com.google.protobuf.CodedInputStream input,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws com.google.protobuf.InvalidProtocolBufferException {
576 Builder builder = newBuilder();
577 try {
578 builder.mergeFrom(input, extensionRegistry);
579 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
580 throw e.setUnfinishedMessage(builder.buildPartial());
581 } catch (com.google.protobuf.UninitializedMessageException e) {
582 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
583 } catch (java.io.IOException e) {
584 throw new com.google.protobuf.InvalidProtocolBufferException(e)
585 .setUnfinishedMessage(builder.buildPartial());
586 }
587 return builder.buildPartial();
588 }
589 };
590
591 public static com.google.protobuf.Parser<RoutingSearchStatus> parser() {
592 return PARSER;
593 }
594
595 @java.lang.Override
596 public com.google.protobuf.Parser<RoutingSearchStatus> getParserForType() {
597 return PARSER;
598 }
599
600 @java.lang.Override
602 return DEFAULT_INSTANCE;
603 }
604
605}
606
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.ortools.constraintsolver.RoutingSearchStatus getDefaultInstanceForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.ortools.constraintsolver.RoutingSearchStatus other)
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.RoutingSearchStatus build()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.constraintsolver.RoutingSearchStatus buildPartial()
static com.google.ortools.constraintsolver.RoutingSearchStatus parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser< RoutingSearchStatus > parser()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchStatus prototype)
com.google.ortools.constraintsolver.RoutingSearchStatus getDefaultInstanceForType()
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RoutingSearchStatus getDefaultInstance()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.ortools.constraintsolver.RoutingSearchStatus parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(byte[] data)
com.google.protobuf.Parser< RoutingSearchStatus > getParserForType()
static com.google.ortools.constraintsolver.RoutingSearchStatus parseFrom(java.io.InputStream input)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap< Value > internalGetValueMap()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static Value valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)