5package com.google.ortools.constraintsolver;
16 com.google.protobuf.GeneratedMessageV3 implements
19private static final long serialVersionUID = 0L;
28 @SuppressWarnings({
"unused"})
30 UnusedPrivateParameter unused) {
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
40 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
42 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
43 .ensureFieldAccessorsInitialized(
44 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
51 implements com.google.protobuf.ProtocolMessageEnum {
129 public static final int UNSET_VALUE = 0;
137 public static final int AUTOMATIC_VALUE = 6;
146 public static final int GREEDY_DESCENT_VALUE = 1;
156 public static final int GUIDED_LOCAL_SEARCH_VALUE = 2;
165 public static final int SIMULATED_ANNEALING_VALUE = 3;
174 public static final int TABU_SEARCH_VALUE = 4;
184 public static final int GENERIC_TABU_SEARCH_VALUE = 5;
188 if (
this == UNRECOGNIZED) {
189 throw new java.lang.IllegalArgumentException(
190 "Can't get the number of an unknown enum value.");
200 @java.lang.Deprecated
202 return forNumber(value);
211 case 0:
return UNSET;
212 case 6:
return AUTOMATIC;
213 case 1:
return GREEDY_DESCENT;
214 case 2:
return GUIDED_LOCAL_SEARCH;
215 case 3:
return SIMULATED_ANNEALING;
216 case 4:
return TABU_SEARCH;
217 case 5:
return GENERIC_TABU_SEARCH;
218 default:
return null;
222 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
224 return internalValueMap;
226 private static final com.google.protobuf.Internal.EnumLiteMap<
227 Value> internalValueMap =
228 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
229 public Value findValueByNumber(
int number) {
234 public final com.google.protobuf.Descriptors.EnumValueDescriptor
236 if (
this == UNRECOGNIZED) {
237 throw new java.lang.IllegalStateException(
238 "Can't get the descriptor of an unrecognized enum value.");
242 public final com.google.protobuf.Descriptors.EnumDescriptor
246 public static final com.google.protobuf.Descriptors.EnumDescriptor
248 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDescriptor().getEnumTypes().get(0);
251 private static final Value[] VALUES = values();
254 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
256 throw new java.lang.IllegalArgumentException(
257 "EnumValueDescriptor is not for this type.");
259 if (desc.getIndex() == -1) {
262 return VALUES[desc.getIndex()];
265 private final int value;
267 private Value(
int value) {
274 private byte memoizedIsInitialized = -1;
281 memoizedIsInitialized = 1;
286 public void writeTo(com.google.protobuf.CodedOutputStream output)
287 throws java.io.IOException {
288 getUnknownFields().writeTo(output);
293 int size = memoizedSize;
294 if (size != -1)
return size;
297 size += getUnknownFields().getSerializedSize();
303 public boolean equals(
final java.lang.Object obj) {
307 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic)) {
308 return super.equals(obj);
312 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
318 if (memoizedHashCode != 0) {
319 return memoizedHashCode;
323 hash = (29 * hash) + getUnknownFields().hashCode();
324 memoizedHashCode = hash;
329 java.nio.ByteBuffer data)
330 throws com.google.protobuf.InvalidProtocolBufferException {
331 return PARSER.parseFrom(data);
334 java.nio.ByteBuffer data,
335 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
336 throws com.google.protobuf.InvalidProtocolBufferException {
337 return PARSER.parseFrom(data, extensionRegistry);
340 com.google.protobuf.ByteString data)
341 throws com.google.protobuf.InvalidProtocolBufferException {
342 return PARSER.parseFrom(data);
345 com.google.protobuf.ByteString data,
346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
347 throws com.google.protobuf.InvalidProtocolBufferException {
348 return PARSER.parseFrom(data, extensionRegistry);
351 throws com.google.protobuf.InvalidProtocolBufferException {
352 return PARSER.parseFrom(data);
356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
357 throws com.google.protobuf.InvalidProtocolBufferException {
358 return PARSER.parseFrom(data, extensionRegistry);
361 throws java.io.IOException {
362 return com.google.protobuf.GeneratedMessageV3
363 .parseWithIOException(PARSER, input);
366 java.io.InputStream input,
367 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
368 throws java.io.IOException {
369 return com.google.protobuf.GeneratedMessageV3
370 .parseWithIOException(PARSER, input, extensionRegistry);
374 throws java.io.IOException {
375 return com.google.protobuf.GeneratedMessageV3
376 .parseDelimitedWithIOException(PARSER, input);
380 java.io.InputStream input,
381 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382 throws java.io.IOException {
383 return com.google.protobuf.GeneratedMessageV3
384 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
387 com.google.protobuf.CodedInputStream input)
388 throws java.io.IOException {
389 return com.google.protobuf.GeneratedMessageV3
390 .parseWithIOException(PARSER, input);
393 com.google.protobuf.CodedInputStream input,
394 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
395 throws java.io.IOException {
396 return com.google.protobuf.GeneratedMessageV3
397 .parseWithIOException(PARSER, input, extensionRegistry);
405 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchMetaheuristic prototype) {
410 return this == DEFAULT_INSTANCE
416 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
429 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
432 public static final com.google.protobuf.Descriptors.Descriptor
434 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
438 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
440 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
441 .ensureFieldAccessorsInitialized(
442 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
451 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
462 public com.google.protobuf.Descriptors.Descriptor
464 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
469 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance();
476 throw newUninitializedMessageException(result);
490 return super.
clone();
494 com.google.protobuf.Descriptors.FieldDescriptor field,
495 java.lang.Object value) {
496 return super.
setField(field, value);
500 com.google.protobuf.Descriptors.FieldDescriptor field) {
505 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
510 com.google.protobuf.Descriptors.FieldDescriptor field,
511 int index, java.lang.Object value) {
516 com.google.protobuf.Descriptors.FieldDescriptor field,
517 java.lang.Object value) {
522 if (other instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic) {
523 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchMetaheuristic)other);
525 super.mergeFrom(other);
530 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalSearchMetaheuristic other) {
531 if (other == com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance())
return this;
544 com.google.protobuf.CodedInputStream input,
545 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
546 throws java.io.IOException {
547 if (extensionRegistry ==
null) {
548 throw new java.lang.NullPointerException();
551 boolean done =
false;
553 int tag = input.readTag();
559 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
566 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
567 throw e.unwrapIOException();
575 final com.google.protobuf.UnknownFieldSet unknownFields) {
581 final com.google.protobuf.UnknownFieldSet unknownFields) {
592 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchMetaheuristic();
596 return DEFAULT_INSTANCE;
603 com.google.protobuf.CodedInputStream input,
604 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
605 throws com.google.protobuf.InvalidProtocolBufferException {
608 builder.mergeFrom(input, extensionRegistry);
609 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
610 throw e.setUnfinishedMessage(builder.buildPartial());
611 }
catch (com.google.protobuf.UninitializedMessageException e) {
612 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
613 }
catch (java.io.IOException e) {
614 throw new com.google.protobuf.InvalidProtocolBufferException(e)
615 .setUnfinishedMessage(builder.buildPartial());
617 return builder.buildPartial();
632 return DEFAULT_INSTANCE;