6package com.google.ortools.constraintsolver;
84@com.google.protobuf.Generated
85public final class SISRRuinStrategy
extends
86 com.google.protobuf.GeneratedMessage implements
89private static final long serialVersionUID = 0L;
91 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
92 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
100 private SISRRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
103 private SISRRuinStrategy() {
106 public static final com.google.protobuf.Descriptors.Descriptor
108 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
112 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
114 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
115 .ensureFieldAccessorsInitialized(
116 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
119 private int bitField0_;
121 private int maxRemovedSequenceSize_ = 0;
133 return ((bitField0_ & 0x00000001) != 0);
146 return maxRemovedSequenceSize_;
150 private int avgNumRemovedVisits_ = 0;
162 return ((bitField0_ & 0x00000002) != 0);
175 return avgNumRemovedVisits_;
179 private double bypassFactor_ = 0D;
192 return ((bitField0_ & 0x00000004) != 0);
206 return bypassFactor_;
209 private byte memoizedIsInitialized = -1;
216 memoizedIsInitialized = 1;
221 public void writeTo(com.google.protobuf.CodedOutputStream output)
222 throws java.io.IOException {
223 if (((bitField0_ & 0x00000001) != 0)) {
224 output.writeUInt32(1, maxRemovedSequenceSize_);
226 if (((bitField0_ & 0x00000002) != 0)) {
227 output.writeUInt32(2, avgNumRemovedVisits_);
229 if (((bitField0_ & 0x00000004) != 0)) {
230 output.writeDouble(3, bypassFactor_);
232 getUnknownFields().writeTo(output);
237 int size = memoizedSize;
238 if (size != -1)
return size;
241 if (((bitField0_ & 0x00000001) != 0)) {
242 size += com.google.protobuf.CodedOutputStream
243 .computeUInt32Size(1, maxRemovedSequenceSize_);
245 if (((bitField0_ & 0x00000002) != 0)) {
246 size += com.google.protobuf.CodedOutputStream
247 .computeUInt32Size(2, avgNumRemovedVisits_);
249 if (((bitField0_ & 0x00000004) != 0)) {
250 size += com.google.protobuf.CodedOutputStream
251 .computeDoubleSize(3, bypassFactor_);
253 size += getUnknownFields().getSerializedSize();
259 public boolean equals(
final java.lang.Object obj) {
263 if (!(obj instanceof com.google.ortools.constraintsolver.SISRRuinStrategy)) {
264 return super.equals(obj);
281 != java.lang.Double.doubleToLongBits(
284 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
290 if (memoizedHashCode != 0) {
291 return memoizedHashCode;
305 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
308 hash = (29 * hash) + getUnknownFields().hashCode();
309 memoizedHashCode = hash;
314 java.nio.ByteBuffer data)
315 throws com.google.protobuf.InvalidProtocolBufferException {
316 return PARSER.parseFrom(data);
319 java.nio.ByteBuffer data,
320 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
321 throws com.google.protobuf.InvalidProtocolBufferException {
322 return PARSER.parseFrom(data, extensionRegistry);
325 com.google.protobuf.ByteString data)
326 throws com.google.protobuf.InvalidProtocolBufferException {
327 return PARSER.parseFrom(data);
330 com.google.protobuf.ByteString data,
331 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
332 throws com.google.protobuf.InvalidProtocolBufferException {
333 return PARSER.parseFrom(data, extensionRegistry);
336 throws com.google.protobuf.InvalidProtocolBufferException {
337 return PARSER.parseFrom(data);
341 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
342 throws com.google.protobuf.InvalidProtocolBufferException {
343 return PARSER.parseFrom(data, extensionRegistry);
346 throws java.io.IOException {
347 return com.google.protobuf.GeneratedMessage
348 .parseWithIOException(PARSER, input);
351 java.io.InputStream input,
352 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
353 throws java.io.IOException {
354 return com.google.protobuf.GeneratedMessage
355 .parseWithIOException(PARSER, input, extensionRegistry);
359 throws java.io.IOException {
360 return com.google.protobuf.GeneratedMessage
361 .parseDelimitedWithIOException(PARSER, input);
365 java.io.InputStream input,
366 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
367 throws java.io.IOException {
368 return com.google.protobuf.GeneratedMessage
369 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
372 com.google.protobuf.CodedInputStream input)
373 throws java.io.IOException {
374 return com.google.protobuf.GeneratedMessage
375 .parseWithIOException(PARSER, input);
378 com.google.protobuf.CodedInputStream input,
379 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380 throws java.io.IOException {
381 return com.google.protobuf.GeneratedMessage
382 .parseWithIOException(PARSER, input, extensionRegistry);
388 return DEFAULT_INSTANCE.toBuilder();
390 public static Builder newBuilder(com.google.ortools.constraintsolver.SISRRuinStrategy prototype) {
391 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
395 return this == DEFAULT_INSTANCE
401 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
481 public static final class Builder
extends
482 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
485 public static final com.google.protobuf.Descriptors.Descriptor
487 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
491 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
493 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
494 .ensureFieldAccessorsInitialized(
495 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
504 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
512 maxRemovedSequenceSize_ = 0;
513 avgNumRemovedVisits_ = 0;
519 public com.google.protobuf.Descriptors.Descriptor
521 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
526 return com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance();
533 throw newUninitializedMessageException(result);
541 if (bitField0_ != 0) { buildPartial0(result); }
546 private void buildPartial0(com.google.ortools.constraintsolver.SISRRuinStrategy result) {
547 int from_bitField0_ = bitField0_;
548 int to_bitField0_ = 0;
549 if (((from_bitField0_ & 0x00000001) != 0)) {
550 result.maxRemovedSequenceSize_ = maxRemovedSequenceSize_;
551 to_bitField0_ |= 0x00000001;
553 if (((from_bitField0_ & 0x00000002) != 0)) {
554 result.avgNumRemovedVisits_ = avgNumRemovedVisits_;
555 to_bitField0_ |= 0x00000002;
557 if (((from_bitField0_ & 0x00000004) != 0)) {
558 result.bypassFactor_ = bypassFactor_;
559 to_bitField0_ |= 0x00000004;
561 result.bitField0_ |= to_bitField0_;
565 public Builder
mergeFrom(com.google.protobuf.Message other) {
566 if (other instanceof com.google.ortools.constraintsolver.SISRRuinStrategy) {
567 return mergeFrom((com.google.ortools.constraintsolver.SISRRuinStrategy)other);
569 super.mergeFrom(other);
574 public Builder
mergeFrom(com.google.ortools.constraintsolver.SISRRuinStrategy other) {
575 if (other == com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance())
return this;
576 if (other.hasMaxRemovedSequenceSize()) {
579 if (other.hasAvgNumRemovedVisits()) {
582 if (other.hasBypassFactor()) {
585 this.mergeUnknownFields(other.getUnknownFields());
597 com.google.protobuf.CodedInputStream input,
598 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
599 throws java.io.IOException {
600 if (extensionRegistry ==
null) {
601 throw new java.lang.NullPointerException();
604 boolean done =
false;
606 int tag = input.readTag();
612 maxRemovedSequenceSize_ = input.readUInt32();
613 bitField0_ |= 0x00000001;
617 avgNumRemovedVisits_ = input.readUInt32();
618 bitField0_ |= 0x00000002;
622 bypassFactor_ = input.readDouble();
623 bitField0_ |= 0x00000004;
627 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
634 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
635 throw e.unwrapIOException();
641 private int bitField0_;
643 private int maxRemovedSequenceSize_ ;
655 return ((bitField0_ & 0x00000001) != 0);
668 return maxRemovedSequenceSize_;
682 maxRemovedSequenceSize_ = value;
683 bitField0_ |= 0x00000001;
697 bitField0_ = (bitField0_ & ~0x00000001);
698 maxRemovedSequenceSize_ = 0;
703 private int avgNumRemovedVisits_ ;
715 return ((bitField0_ & 0x00000002) != 0);
728 return avgNumRemovedVisits_;
742 avgNumRemovedVisits_ = value;
743 bitField0_ |= 0x00000002;
757 bitField0_ = (bitField0_ & ~0x00000002);
758 avgNumRemovedVisits_ = 0;
763 private double bypassFactor_ ;
776 return ((bitField0_ & 0x00000004) != 0);
790 return bypassFactor_;
805 bypassFactor_ = value;
806 bitField0_ |= 0x00000004;
821 bitField0_ = (bitField0_ & ~0x00000004);
833 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SISRRuinStrategy();
837 return DEFAULT_INSTANCE;
844 com.google.protobuf.CodedInputStream input,
845 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
846 throws com.google.protobuf.InvalidProtocolBufferException {
849 builder.mergeFrom(input, extensionRegistry);
850 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
851 throw e.setUnfinishedMessage(builder.buildPartial());
852 }
catch (com.google.protobuf.UninitializedMessageException e) {
853 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
854 }
catch (java.io.IOException e) {
855 throw new com.google.protobuf.InvalidProtocolBufferException(e)
856 .setUnfinishedMessage(builder.buildPartial());
858 return builder.buildPartial();
862 public static com.google.protobuf.Parser<SISRRuinStrategy>
parser() {
873 return DEFAULT_INSTANCE;