6package com.google.ortools.constraintsolver;
86public final class SISRRuinStrategy
extends
87 com.google.protobuf.GeneratedMessage implements
90private static final long serialVersionUID = 0L;
92 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
93 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
98 SISRRuinStrategy.class.getName());
101 private SISRRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
104 private SISRRuinStrategy() {
107 public static final com.google.protobuf.Descriptors.Descriptor
109 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
113 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
115 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
116 .ensureFieldAccessorsInitialized(
117 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
120 private int bitField0_;
122 private int maxRemovedSequenceSize_ = 0;
134 return ((bitField0_ & 0x00000001) != 0);
147 return maxRemovedSequenceSize_;
151 private int avgNumRemovedVisits_ = 0;
163 return ((bitField0_ & 0x00000002) != 0);
176 return avgNumRemovedVisits_;
180 private double bypassFactor_ = 0D;
193 return ((bitField0_ & 0x00000004) != 0);
207 return bypassFactor_;
210 private byte memoizedIsInitialized = -1;
217 memoizedIsInitialized = 1;
222 public void writeTo(com.google.protobuf.CodedOutputStream output)
223 throws java.io.IOException {
224 if (((bitField0_ & 0x00000001) != 0)) {
225 output.writeUInt32(1, maxRemovedSequenceSize_);
227 if (((bitField0_ & 0x00000002) != 0)) {
228 output.writeUInt32(2, avgNumRemovedVisits_);
230 if (((bitField0_ & 0x00000004) != 0)) {
231 output.writeDouble(3, bypassFactor_);
233 getUnknownFields().writeTo(output);
238 int size = memoizedSize;
239 if (size != -1)
return size;
242 if (((bitField0_ & 0x00000001) != 0)) {
243 size += com.google.protobuf.CodedOutputStream
244 .computeUInt32Size(1, maxRemovedSequenceSize_);
246 if (((bitField0_ & 0x00000002) != 0)) {
247 size += com.google.protobuf.CodedOutputStream
248 .computeUInt32Size(2, avgNumRemovedVisits_);
250 if (((bitField0_ & 0x00000004) != 0)) {
251 size += com.google.protobuf.CodedOutputStream
252 .computeDoubleSize(3, bypassFactor_);
254 size += getUnknownFields().getSerializedSize();
260 public boolean equals(
final java.lang.Object obj) {
264 if (!(obj instanceof com.google.ortools.constraintsolver.SISRRuinStrategy)) {
265 return super.equals(obj);
282 != java.lang.Double.doubleToLongBits(
285 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
291 if (memoizedHashCode != 0) {
292 return memoizedHashCode;
306 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
309 hash = (29 * hash) + getUnknownFields().hashCode();
310 memoizedHashCode = hash;
315 java.nio.ByteBuffer data)
316 throws com.google.protobuf.InvalidProtocolBufferException {
317 return PARSER.parseFrom(data);
320 java.nio.ByteBuffer data,
321 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
322 throws com.google.protobuf.InvalidProtocolBufferException {
323 return PARSER.parseFrom(data, extensionRegistry);
326 com.google.protobuf.ByteString data)
327 throws com.google.protobuf.InvalidProtocolBufferException {
328 return PARSER.parseFrom(data);
331 com.google.protobuf.ByteString data,
332 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
333 throws com.google.protobuf.InvalidProtocolBufferException {
334 return PARSER.parseFrom(data, extensionRegistry);
337 throws com.google.protobuf.InvalidProtocolBufferException {
338 return PARSER.parseFrom(data);
342 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
343 throws com.google.protobuf.InvalidProtocolBufferException {
344 return PARSER.parseFrom(data, extensionRegistry);
347 throws java.io.IOException {
348 return com.google.protobuf.GeneratedMessage
349 .parseWithIOException(PARSER, input);
352 java.io.InputStream input,
353 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
354 throws java.io.IOException {
355 return com.google.protobuf.GeneratedMessage
356 .parseWithIOException(PARSER, input, extensionRegistry);
360 throws java.io.IOException {
361 return com.google.protobuf.GeneratedMessage
362 .parseDelimitedWithIOException(PARSER, input);
366 java.io.InputStream input,
367 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
368 throws java.io.IOException {
369 return com.google.protobuf.GeneratedMessage
370 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
373 com.google.protobuf.CodedInputStream input)
374 throws java.io.IOException {
375 return com.google.protobuf.GeneratedMessage
376 .parseWithIOException(PARSER, input);
379 com.google.protobuf.CodedInputStream input,
380 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381 throws java.io.IOException {
382 return com.google.protobuf.GeneratedMessage
383 .parseWithIOException(PARSER, input, extensionRegistry);
389 return DEFAULT_INSTANCE.toBuilder();
391 public static Builder newBuilder(com.google.ortools.constraintsolver.SISRRuinStrategy prototype) {
392 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
396 return this == DEFAULT_INSTANCE
402 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
484 public static final class Builder
extends
485 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
488 public static final com.google.protobuf.Descriptors.Descriptor
490 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
494 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
496 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
497 .ensureFieldAccessorsInitialized(
498 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
507 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
515 maxRemovedSequenceSize_ = 0;
516 avgNumRemovedVisits_ = 0;
522 public com.google.protobuf.Descriptors.Descriptor
524 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
529 return com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance();
536 throw newUninitializedMessageException(result);
544 if (bitField0_ != 0) { buildPartial0(result); }
549 private void buildPartial0(com.google.ortools.constraintsolver.SISRRuinStrategy result) {
550 int from_bitField0_ = bitField0_;
551 int to_bitField0_ = 0;
552 if (((from_bitField0_ & 0x00000001) != 0)) {
553 result.maxRemovedSequenceSize_ = maxRemovedSequenceSize_;
554 to_bitField0_ |= 0x00000001;
556 if (((from_bitField0_ & 0x00000002) != 0)) {
557 result.avgNumRemovedVisits_ = avgNumRemovedVisits_;
558 to_bitField0_ |= 0x00000002;
560 if (((from_bitField0_ & 0x00000004) != 0)) {
561 result.bypassFactor_ = bypassFactor_;
562 to_bitField0_ |= 0x00000004;
564 result.bitField0_ |= to_bitField0_;
568 public Builder
mergeFrom(com.google.protobuf.Message other) {
569 if (other instanceof com.google.ortools.constraintsolver.SISRRuinStrategy) {
570 return mergeFrom((com.google.ortools.constraintsolver.SISRRuinStrategy)other);
572 super.mergeFrom(other);
577 public Builder
mergeFrom(com.google.ortools.constraintsolver.SISRRuinStrategy other) {
578 if (other == com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance())
return this;
579 if (other.hasMaxRemovedSequenceSize()) {
582 if (other.hasAvgNumRemovedVisits()) {
585 if (other.hasBypassFactor()) {
588 this.mergeUnknownFields(other.getUnknownFields());
600 com.google.protobuf.CodedInputStream input,
601 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
602 throws java.io.IOException {
603 if (extensionRegistry ==
null) {
604 throw new java.lang.NullPointerException();
607 boolean done =
false;
609 int tag = input.readTag();
615 maxRemovedSequenceSize_ = input.readUInt32();
616 bitField0_ |= 0x00000001;
620 avgNumRemovedVisits_ = input.readUInt32();
621 bitField0_ |= 0x00000002;
625 bypassFactor_ = input.readDouble();
626 bitField0_ |= 0x00000004;
630 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
637 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
638 throw e.unwrapIOException();
644 private int bitField0_;
646 private int maxRemovedSequenceSize_ ;
658 return ((bitField0_ & 0x00000001) != 0);
671 return maxRemovedSequenceSize_;
685 maxRemovedSequenceSize_ = value;
686 bitField0_ |= 0x00000001;
700 bitField0_ = (bitField0_ & ~0x00000001);
701 maxRemovedSequenceSize_ = 0;
706 private int avgNumRemovedVisits_ ;
718 return ((bitField0_ & 0x00000002) != 0);
731 return avgNumRemovedVisits_;
745 avgNumRemovedVisits_ = value;
746 bitField0_ |= 0x00000002;
760 bitField0_ = (bitField0_ & ~0x00000002);
761 avgNumRemovedVisits_ = 0;
766 private double bypassFactor_ ;
779 return ((bitField0_ & 0x00000004) != 0);
793 return bypassFactor_;
808 bypassFactor_ = value;
809 bitField0_ |= 0x00000004;
824 bitField0_ = (bitField0_ & ~0x00000004);
836 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SISRRuinStrategy();
840 return DEFAULT_INSTANCE;
847 com.google.protobuf.CodedInputStream input,
848 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
849 throws com.google.protobuf.InvalidProtocolBufferException {
852 builder.mergeFrom(input, extensionRegistry);
853 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
854 throw e.setUnfinishedMessage(builder.buildPartial());
855 }
catch (com.google.protobuf.UninitializedMessageException e) {
856 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
857 }
catch (java.io.IOException e) {
858 throw new com.google.protobuf.InvalidProtocolBufferException(e)
859 .setUnfinishedMessage(builder.buildPartial());
861 return builder.buildPartial();
865 public static com.google.protobuf.Parser<SISRRuinStrategy>
parser() {
876 return DEFAULT_INSTANCE;