6package com.google.ortools.constraintsolver;
16public final class LocalSearchMetaheuristic
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 LocalSearchMetaheuristic.class.getName());
31 private LocalSearchMetaheuristic(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private LocalSearchMetaheuristic() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
54 implements com.google.protobuf.ProtocolMessageEnum {
124 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
125 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
130 Value.class.getName());
201 throw new java.lang.IllegalArgumentException(
202 "Can't get the number of an unknown enum value.");
212 @java.lang.Deprecated
223 case 0:
return UNSET;
230 default:
return null;
234 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
236 return internalValueMap;
238 private static final com.google.protobuf.Internal.EnumLiteMap<
239 Value> internalValueMap =
240 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
241 public Value findValueByNumber(
int number) {
246 public final com.google.protobuf.Descriptors.EnumValueDescriptor
249 throw new java.lang.IllegalStateException(
250 "Can't get the descriptor of an unrecognized enum value.");
254 public final com.google.protobuf.Descriptors.EnumDescriptor
258 public static final com.google.protobuf.Descriptors.EnumDescriptor
260 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDescriptor().getEnumTypes().get(0);
263 private static final Value[] VALUES = values();
266 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
268 throw new java.lang.IllegalArgumentException(
269 "EnumValueDescriptor is not for this type.");
271 if (desc.getIndex() == -1) {
274 return VALUES[desc.getIndex()];
277 private final int value;
279 private Value(
int value) {
286 private byte memoizedIsInitialized = -1;
293 memoizedIsInitialized = 1;
298 public void writeTo(com.google.protobuf.CodedOutputStream output)
299 throws java.io.IOException {
300 getUnknownFields().writeTo(output);
305 int size = memoizedSize;
306 if (size != -1)
return size;
309 size += getUnknownFields().getSerializedSize();
315 public boolean equals(
final java.lang.Object obj) {
319 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic)) {
320 return super.equals(obj);
324 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
330 if (memoizedHashCode != 0) {
331 return memoizedHashCode;
335 hash = (29 * hash) + getUnknownFields().hashCode();
336 memoizedHashCode = hash;
341 java.nio.ByteBuffer data)
342 throws com.google.protobuf.InvalidProtocolBufferException {
343 return PARSER.parseFrom(data);
346 java.nio.ByteBuffer data,
347 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
348 throws com.google.protobuf.InvalidProtocolBufferException {
349 return PARSER.parseFrom(data, extensionRegistry);
352 com.google.protobuf.ByteString data)
353 throws com.google.protobuf.InvalidProtocolBufferException {
354 return PARSER.parseFrom(data);
357 com.google.protobuf.ByteString data,
358 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
359 throws com.google.protobuf.InvalidProtocolBufferException {
360 return PARSER.parseFrom(data, extensionRegistry);
363 throws com.google.protobuf.InvalidProtocolBufferException {
364 return PARSER.parseFrom(data);
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws com.google.protobuf.InvalidProtocolBufferException {
370 return PARSER.parseFrom(data, extensionRegistry);
373 throws java.io.IOException {
374 return com.google.protobuf.GeneratedMessage
375 .parseWithIOException(PARSER, input);
378 java.io.InputStream input,
379 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380 throws java.io.IOException {
381 return com.google.protobuf.GeneratedMessage
382 .parseWithIOException(PARSER, input, extensionRegistry);
386 throws java.io.IOException {
387 return com.google.protobuf.GeneratedMessage
388 .parseDelimitedWithIOException(PARSER, input);
392 java.io.InputStream input,
393 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394 throws java.io.IOException {
395 return com.google.protobuf.GeneratedMessage
396 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
399 com.google.protobuf.CodedInputStream input)
400 throws java.io.IOException {
401 return com.google.protobuf.GeneratedMessage
402 .parseWithIOException(PARSER, input);
405 com.google.protobuf.CodedInputStream input,
406 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
407 throws java.io.IOException {
408 return com.google.protobuf.GeneratedMessage
409 .parseWithIOException(PARSER, input, extensionRegistry);
415 return DEFAULT_INSTANCE.toBuilder();
417 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchMetaheuristic prototype) {
418 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
422 return this == DEFAULT_INSTANCE
428 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
440 public static final class Builder
extends
441 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
444 public static final com.google.protobuf.Descriptors.Descriptor
446 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
450 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
452 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
453 .ensureFieldAccessorsInitialized(
454 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
463 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
474 public com.google.protobuf.Descriptors.Descriptor
476 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
481 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance();
488 throw newUninitializedMessageException(result);
501 public Builder
mergeFrom(com.google.protobuf.Message other) {
502 if (other instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic) {
503 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchMetaheuristic)other);
505 super.mergeFrom(other);
510 public Builder
mergeFrom(com.google.ortools.constraintsolver.LocalSearchMetaheuristic other) {
511 if (other == com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance())
return this;
512 this.mergeUnknownFields(other.getUnknownFields());
524 com.google.protobuf.CodedInputStream input,
525 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
526 throws java.io.IOException {
527 if (extensionRegistry ==
null) {
528 throw new java.lang.NullPointerException();
531 boolean done =
false;
533 int tag = input.readTag();
539 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
546 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
547 throw e.unwrapIOException();
560 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchMetaheuristic();
564 return DEFAULT_INSTANCE;
571 com.google.protobuf.CodedInputStream input,
572 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
573 throws com.google.protobuf.InvalidProtocolBufferException {
576 builder.mergeFrom(input, extensionRegistry);
577 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
578 throw e.setUnfinishedMessage(builder.buildPartial());
579 }
catch (com.google.protobuf.UninitializedMessageException e) {
580 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
581 }
catch (java.io.IOException e) {
582 throw new com.google.protobuf.InvalidProtocolBufferException(e)
583 .setUnfinishedMessage(builder.buildPartial());
585 return builder.buildPartial();
589 public static com.google.protobuf.Parser<LocalSearchMetaheuristic>
parser() {
600 return DEFAULT_INSTANCE;