6package com.google.ortools.constraintsolver;
16@com.google.protobuf.Generated
17public final class LocalSearchMetaheuristic
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 LocalSearchMetaheuristic.class.getName());
32 private LocalSearchMetaheuristic(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private LocalSearchMetaheuristic() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
55 implements com.google.protobuf.ProtocolMessageEnum {
125 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
126 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
131 Value.class.getName());
202 throw new java.lang.IllegalArgumentException(
203 "Can't get the number of an unknown enum value.");
213 @java.lang.Deprecated
224 case 0:
return UNSET;
231 default:
return null;
235 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
237 return internalValueMap;
239 private static final com.google.protobuf.Internal.EnumLiteMap<
240 Value> internalValueMap =
241 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
242 public Value findValueByNumber(
int number) {
247 public final com.google.protobuf.Descriptors.EnumValueDescriptor
250 throw new java.lang.IllegalStateException(
251 "Can't get the descriptor of an unrecognized enum value.");
255 public final com.google.protobuf.Descriptors.EnumDescriptor
259 public static com.google.protobuf.Descriptors.EnumDescriptor
261 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDescriptor().getEnumTypes().get(0);
264 private static final Value[] VALUES = values();
267 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
269 throw new java.lang.IllegalArgumentException(
270 "EnumValueDescriptor is not for this type.");
272 if (desc.getIndex() == -1) {
275 return VALUES[desc.getIndex()];
278 private final int value;
280 private Value(
int value) {
287 private byte memoizedIsInitialized = -1;
294 memoizedIsInitialized = 1;
299 public void writeTo(com.google.protobuf.CodedOutputStream output)
300 throws java.io.IOException {
301 getUnknownFields().writeTo(output);
306 int size = memoizedSize;
307 if (size != -1)
return size;
310 size += getUnknownFields().getSerializedSize();
316 public boolean equals(
final java.lang.Object obj) {
320 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic)) {
321 return super.equals(obj);
325 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
331 if (memoizedHashCode != 0) {
332 return memoizedHashCode;
336 hash = (29 * hash) + getUnknownFields().hashCode();
337 memoizedHashCode = hash;
342 java.nio.ByteBuffer data)
343 throws com.google.protobuf.InvalidProtocolBufferException {
344 return PARSER.parseFrom(data);
347 java.nio.ByteBuffer data,
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws com.google.protobuf.InvalidProtocolBufferException {
350 return PARSER.parseFrom(data, extensionRegistry);
353 com.google.protobuf.ByteString data)
354 throws com.google.protobuf.InvalidProtocolBufferException {
355 return PARSER.parseFrom(data);
358 com.google.protobuf.ByteString data,
359 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
360 throws com.google.protobuf.InvalidProtocolBufferException {
361 return PARSER.parseFrom(data, extensionRegistry);
364 throws com.google.protobuf.InvalidProtocolBufferException {
365 return PARSER.parseFrom(data);
369 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
370 throws com.google.protobuf.InvalidProtocolBufferException {
371 return PARSER.parseFrom(data, extensionRegistry);
374 throws java.io.IOException {
375 return com.google.protobuf.GeneratedMessage
376 .parseWithIOException(PARSER, input);
379 java.io.InputStream input,
380 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381 throws java.io.IOException {
382 return com.google.protobuf.GeneratedMessage
383 .parseWithIOException(PARSER, input, extensionRegistry);
387 throws java.io.IOException {
388 return com.google.protobuf.GeneratedMessage
389 .parseDelimitedWithIOException(PARSER, input);
393 java.io.InputStream input,
394 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
395 throws java.io.IOException {
396 return com.google.protobuf.GeneratedMessage
397 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
400 com.google.protobuf.CodedInputStream input)
401 throws java.io.IOException {
402 return com.google.protobuf.GeneratedMessage
403 .parseWithIOException(PARSER, input);
406 com.google.protobuf.CodedInputStream input,
407 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
408 throws java.io.IOException {
409 return com.google.protobuf.GeneratedMessage
410 .parseWithIOException(PARSER, input, extensionRegistry);
416 return DEFAULT_INSTANCE.toBuilder();
418 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchMetaheuristic prototype) {
419 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
423 return this == DEFAULT_INSTANCE
429 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
441 public static final class Builder
extends
442 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
445 public static final com.google.protobuf.Descriptors.Descriptor
447 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
451 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
453 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_fieldAccessorTable
454 .ensureFieldAccessorsInitialized(
455 com.google.ortools.constraintsolver.LocalSearchMetaheuristic.class, com.google.ortools.constraintsolver.LocalSearchMetaheuristic.Builder.class);
464 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
475 public com.google.protobuf.Descriptors.Descriptor
477 return com.google.ortools.constraintsolver.RoutingEnums.internal_static_operations_research_LocalSearchMetaheuristic_descriptor;
482 return com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance();
489 throw newUninitializedMessageException(result);
502 public Builder
mergeFrom(com.google.protobuf.Message other) {
503 if (other instanceof com.google.ortools.constraintsolver.LocalSearchMetaheuristic) {
504 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchMetaheuristic)other);
506 super.mergeFrom(other);
511 public Builder
mergeFrom(com.google.ortools.constraintsolver.LocalSearchMetaheuristic other) {
512 if (other == com.google.ortools.constraintsolver.LocalSearchMetaheuristic.getDefaultInstance())
return this;
513 this.mergeUnknownFields(other.getUnknownFields());
525 com.google.protobuf.CodedInputStream input,
526 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
527 throws java.io.IOException {
528 if (extensionRegistry ==
null) {
529 throw new java.lang.NullPointerException();
532 boolean done =
false;
534 int tag = input.readTag();
540 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
547 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
548 throw e.unwrapIOException();
561 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchMetaheuristic();
565 return DEFAULT_INSTANCE;
572 com.google.protobuf.CodedInputStream input,
573 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
574 throws com.google.protobuf.InvalidProtocolBufferException {
577 builder.mergeFrom(input, extensionRegistry);
578 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
579 throw e.setUnfinishedMessage(builder.buildPartial());
580 }
catch (com.google.protobuf.UninitializedMessageException e) {
581 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
582 }
catch (java.io.IOException e) {
583 throw new com.google.protobuf.InvalidProtocolBufferException(e)
584 .setUnfinishedMessage(builder.buildPartial());
586 return builder.buildPartial();
590 public static com.google.protobuf.Parser<LocalSearchMetaheuristic>
parser() {
601 return DEFAULT_INSTANCE;