6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class RoutingSearchStatus
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 RoutingSearchStatus.class.getName());
31 private RoutingSearchStatus(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private RoutingSearchStatus() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
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);
54 implements com.google.protobuf.ProtocolMessageEnum {
125 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
126 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
131 Value.class.getName());
203 throw new java.lang.IllegalArgumentException(
204 "Can't get the number of an unknown enum value.");
214 @java.lang.Deprecated
233 default:
return null;
237 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
239 return internalValueMap;
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) {
249 public final com.google.protobuf.Descriptors.EnumValueDescriptor
252 throw new java.lang.IllegalStateException(
253 "Can't get the descriptor of an unrecognized enum value.");
257 public final com.google.protobuf.Descriptors.EnumDescriptor
261 public static com.google.protobuf.Descriptors.EnumDescriptor
263 return com.google.ortools.constraintsolver.RoutingSearchStatus.getDescriptor().getEnumTypes().get(0);
266 private static final Value[] VALUES = values();
269 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
271 throw new java.lang.IllegalArgumentException(
272 "EnumValueDescriptor is not for this type.");
274 if (desc.getIndex() == -1) {
277 return VALUES[desc.getIndex()];
280 private final int value;
282 private Value(
int value) {
289 private byte memoizedIsInitialized = -1;
296 memoizedIsInitialized = 1;
301 public void writeTo(com.google.protobuf.CodedOutputStream output)
302 throws java.io.IOException {
303 getUnknownFields().writeTo(output);
308 int size = memoizedSize;
309 if (size != -1)
return size;
312 size += getUnknownFields().getSerializedSize();
318 public boolean equals(
final java.lang.Object obj) {
322 if (!(obj instanceof com.google.ortools.constraintsolver.RoutingSearchStatus)) {
323 return super.equals(obj);
327 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
333 if (memoizedHashCode != 0) {
334 return memoizedHashCode;
338 hash = (29 * hash) + getUnknownFields().hashCode();
339 memoizedHashCode = hash;
344 java.nio.ByteBuffer data)
345 throws com.google.protobuf.InvalidProtocolBufferException {
346 return PARSER.parseFrom(data);
349 java.nio.ByteBuffer data,
350 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
351 throws com.google.protobuf.InvalidProtocolBufferException {
352 return PARSER.parseFrom(data, extensionRegistry);
355 com.google.protobuf.ByteString data)
356 throws com.google.protobuf.InvalidProtocolBufferException {
357 return PARSER.parseFrom(data);
360 com.google.protobuf.ByteString data,
361 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
362 throws com.google.protobuf.InvalidProtocolBufferException {
363 return PARSER.parseFrom(data, extensionRegistry);
366 throws com.google.protobuf.InvalidProtocolBufferException {
367 return PARSER.parseFrom(data);
371 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
372 throws com.google.protobuf.InvalidProtocolBufferException {
373 return PARSER.parseFrom(data, extensionRegistry);
376 throws java.io.IOException {
377 return com.google.protobuf.GeneratedMessage
378 .parseWithIOException(PARSER, input);
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);
389 throws java.io.IOException {
390 return com.google.protobuf.GeneratedMessage
391 .parseDelimitedWithIOException(PARSER, input);
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);
402 com.google.protobuf.CodedInputStream input)
403 throws java.io.IOException {
404 return com.google.protobuf.GeneratedMessage
405 .parseWithIOException(PARSER, input);
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);
418 return DEFAULT_INSTANCE.toBuilder();
420 public static Builder newBuilder(com.google.ortools.constraintsolver.RoutingSearchStatus prototype) {
421 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
425 return this == DEFAULT_INSTANCE
431 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
442 public static final class Builder
extends
443 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
446 public static final com.google.protobuf.Descriptors.Descriptor
448 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
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);
465 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
476 public com.google.protobuf.Descriptors.Descriptor
478 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_RoutingSearchStatus_descriptor;
483 return com.google.ortools.constraintsolver.RoutingSearchStatus.getDefaultInstance();
490 throw newUninitializedMessageException(result);
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);
507 super.mergeFrom(other);
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());
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();
533 boolean done =
false;
535 int tag = input.readTag();
541 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
548 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
549 throw e.unwrapIOException();
562 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RoutingSearchStatus();
566 return DEFAULT_INSTANCE;
573 com.google.protobuf.CodedInputStream input,
574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
575 throws com.google.protobuf.InvalidProtocolBufferException {
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());
587 return builder.buildPartial();
591 public static com.google.protobuf.Parser<RoutingSearchStatus>
parser() {
602 return DEFAULT_INSTANCE;