5package com.google.ortools.constraintsolver;
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
53 implements com.google.protobuf.ProtocolMessageEnum {
123 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
124 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
129 Value.class.getName());
140 public static final int UNSET_VALUE = 0;
148 public static final int AUTOMATIC_VALUE = 6;
157 public static final int GREEDY_DESCENT_VALUE = 1;
167 public static final int GUIDED_LOCAL_SEARCH_VALUE = 2;
176 public static final int SIMULATED_ANNEALING_VALUE = 3;
185 public static final int TABU_SEARCH_VALUE = 4;
195 public static final int GENERIC_TABU_SEARCH_VALUE = 5;
199 if (
this == UNRECOGNIZED) {
200 throw new java.lang.IllegalArgumentException(
201 "Can't get the number of an unknown enum value.");
211 @java.lang.Deprecated
213 return forNumber(value);
222 case 0:
return UNSET;
223 case 6:
return AUTOMATIC;
224 case 1:
return GREEDY_DESCENT;
225 case 2:
return GUIDED_LOCAL_SEARCH;
226 case 3:
return SIMULATED_ANNEALING;
227 case 4:
return TABU_SEARCH;
228 case 5:
return GENERIC_TABU_SEARCH;
229 default:
return null;
233 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
235 return internalValueMap;
237 private static final com.google.protobuf.Internal.EnumLiteMap<
238 Value> internalValueMap =
239 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
240 public Value findValueByNumber(
int number) {
245 public final com.google.protobuf.Descriptors.EnumValueDescriptor
247 if (
this == UNRECOGNIZED) {
248 throw new java.lang.IllegalStateException(
249 "Can't get the descriptor of an unrecognized enum value.");
253 public final com.google.protobuf.Descriptors.EnumDescriptor
257 public static final com.google.protobuf.Descriptors.EnumDescriptor
259 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDescriptor().getEnumTypes().get(0);
262 private static final Value[] VALUES = values();
265 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
267 throw new java.lang.IllegalArgumentException(
268 "EnumValueDescriptor is not for this type.");
270 if (desc.getIndex() == -1) {
273 return VALUES[desc.getIndex()];
276 private final int value;
278 private Value(
int value) {
285 private byte memoizedIsInitialized = -1;
292 memoizedIsInitialized = 1;
297 public void writeTo(com.google.protobuf.CodedOutputStream output)
298 throws java.io.IOException {
299 getUnknownFields().writeTo(output);
304 int size = memoizedSize;
305 if (size != -1)
return size;
308 size += getUnknownFields().getSerializedSize();
314 public boolean equals(
final java.lang.Object obj) {
318 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic)) {
319 return super.equals(obj);
323 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
329 if (memoizedHashCode != 0) {
330 return memoizedHashCode;
334 hash = (29 * hash) + getUnknownFields().hashCode();
335 memoizedHashCode = hash;
340 java.nio.ByteBuffer data)
341 throws com.google.protobuf.InvalidProtocolBufferException {
342 return PARSER.parseFrom(data);
345 java.nio.ByteBuffer data,
346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
347 throws com.google.protobuf.InvalidProtocolBufferException {
348 return PARSER.parseFrom(data, extensionRegistry);
351 com.google.protobuf.ByteString data)
352 throws com.google.protobuf.InvalidProtocolBufferException {
353 return PARSER.parseFrom(data);
356 com.google.protobuf.ByteString data,
357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
358 throws com.google.protobuf.InvalidProtocolBufferException {
359 return PARSER.parseFrom(data, extensionRegistry);
362 throws com.google.protobuf.InvalidProtocolBufferException {
363 return PARSER.parseFrom(data);
367 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
368 throws com.google.protobuf.InvalidProtocolBufferException {
369 return PARSER.parseFrom(data, extensionRegistry);
372 throws java.io.IOException {
373 return com.google.protobuf.GeneratedMessage
374 .parseWithIOException(PARSER, input);
377 java.io.InputStream input,
378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379 throws java.io.IOException {
380 return com.google.protobuf.GeneratedMessage
381 .parseWithIOException(PARSER, input, extensionRegistry);
385 throws java.io.IOException {
386 return com.google.protobuf.GeneratedMessage
387 .parseDelimitedWithIOException(PARSER, input);
391 java.io.InputStream input,
392 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
393 throws java.io.IOException {
394 return com.google.protobuf.GeneratedMessage
395 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
398 com.google.protobuf.CodedInputStream input)
399 throws java.io.IOException {
400 return com.google.protobuf.GeneratedMessage
401 .parseWithIOException(PARSER, input);
404 com.google.protobuf.CodedInputStream input,
405 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
406 throws java.io.IOException {
407 return com.google.protobuf.GeneratedMessage
408 .parseWithIOException(PARSER, input, extensionRegistry);
416 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchMetaheuristic prototype) {
421 return this == DEFAULT_INSTANCE
427 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
440 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
443 public static final com.google.protobuf.Descriptors.Descriptor
445 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
449 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
451 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
452 .ensureFieldAccessorsInitialized(
453 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
462 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
473 public com.google.protobuf.Descriptors.Descriptor
475 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
480 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance();
487 throw newUninitializedMessageException(result);
501 if (other instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic) {
502 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchMetaheuristic)other);
504 super.mergeFrom(other);
509 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalSearchMetaheuristic other) {
510 if (other == com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance())
return this;
511 this.mergeUnknownFields(other.getUnknownFields());
523 com.google.protobuf.CodedInputStream input,
524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
525 throws java.io.IOException {
526 if (extensionRegistry ==
null) {
527 throw new java.lang.NullPointerException();
530 boolean done =
false;
532 int tag = input.readTag();
538 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
545 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
546 throw e.unwrapIOException();
559 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchMetaheuristic();
563 return DEFAULT_INSTANCE;
570 com.google.protobuf.CodedInputStream input,
571 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
572 throws com.google.protobuf.InvalidProtocolBufferException {
575 builder.mergeFrom(input, extensionRegistry);
576 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
577 throw e.setUnfinishedMessage(builder.buildPartial());
578 }
catch (com.google.protobuf.UninitializedMessageException e) {
579 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
580 }
catch (java.io.IOException e) {
581 throw new com.google.protobuf.InvalidProtocolBufferException(e)
582 .setUnfinishedMessage(builder.buildPartial());
584 return builder.buildPartial();
599 return DEFAULT_INSTANCE;