6package com.google.ortools.constraintsolver;
86@com.google.protobuf.Generated
87public final class SISRRuinStrategy
extends
88 com.google.protobuf.GeneratedMessage implements
91private static final long serialVersionUID = 0L;
93 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
94 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
99 SISRRuinStrategy.class.getName());
102 private SISRRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
105 private SISRRuinStrategy() {
108 public static final com.google.protobuf.Descriptors.Descriptor
110 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
114 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
116 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
117 .ensureFieldAccessorsInitialized(
118 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
121 private int bitField0_;
123 private int maxRemovedSequenceSize_ = 0;
135 return ((bitField0_ & 0x00000001) != 0);
148 return maxRemovedSequenceSize_;
152 private int avgNumRemovedVisits_ = 0;
164 return ((bitField0_ & 0x00000002) != 0);
177 return avgNumRemovedVisits_;
181 private double bypassFactor_ = 0D;
194 return ((bitField0_ & 0x00000004) != 0);
208 return bypassFactor_;
211 private byte memoizedIsInitialized = -1;
218 memoizedIsInitialized = 1;
223 public void writeTo(com.google.protobuf.CodedOutputStream output)
224 throws java.io.IOException {
225 if (((bitField0_ & 0x00000001) != 0)) {
226 output.writeUInt32(1, maxRemovedSequenceSize_);
228 if (((bitField0_ & 0x00000002) != 0)) {
229 output.writeUInt32(2, avgNumRemovedVisits_);
231 if (((bitField0_ & 0x00000004) != 0)) {
232 output.writeDouble(3, bypassFactor_);
234 getUnknownFields().writeTo(output);
239 int size = memoizedSize;
240 if (size != -1)
return size;
243 if (((bitField0_ & 0x00000001) != 0)) {
244 size += com.google.protobuf.CodedOutputStream
245 .computeUInt32Size(1, maxRemovedSequenceSize_);
247 if (((bitField0_ & 0x00000002) != 0)) {
248 size += com.google.protobuf.CodedOutputStream
249 .computeUInt32Size(2, avgNumRemovedVisits_);
251 if (((bitField0_ & 0x00000004) != 0)) {
252 size += com.google.protobuf.CodedOutputStream
253 .computeDoubleSize(3, bypassFactor_);
255 size += getUnknownFields().getSerializedSize();
261 public boolean equals(
final java.lang.Object obj) {
265 if (!(obj instanceof com.google.ortools.constraintsolver.SISRRuinStrategy)) {
266 return super.equals(obj);
283 != java.lang.Double.doubleToLongBits(
286 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
292 if (memoizedHashCode != 0) {
293 return memoizedHashCode;
307 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
310 hash = (29 * hash) + getUnknownFields().hashCode();
311 memoizedHashCode = hash;
316 java.nio.ByteBuffer data)
317 throws com.google.protobuf.InvalidProtocolBufferException {
318 return PARSER.parseFrom(data);
321 java.nio.ByteBuffer data,
322 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
323 throws com.google.protobuf.InvalidProtocolBufferException {
324 return PARSER.parseFrom(data, extensionRegistry);
327 com.google.protobuf.ByteString data)
328 throws com.google.protobuf.InvalidProtocolBufferException {
329 return PARSER.parseFrom(data);
332 com.google.protobuf.ByteString data,
333 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
334 throws com.google.protobuf.InvalidProtocolBufferException {
335 return PARSER.parseFrom(data, extensionRegistry);
338 throws com.google.protobuf.InvalidProtocolBufferException {
339 return PARSER.parseFrom(data);
343 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
344 throws com.google.protobuf.InvalidProtocolBufferException {
345 return PARSER.parseFrom(data, extensionRegistry);
348 throws java.io.IOException {
349 return com.google.protobuf.GeneratedMessage
350 .parseWithIOException(PARSER, input);
353 java.io.InputStream input,
354 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
355 throws java.io.IOException {
356 return com.google.protobuf.GeneratedMessage
357 .parseWithIOException(PARSER, input, extensionRegistry);
361 throws java.io.IOException {
362 return com.google.protobuf.GeneratedMessage
363 .parseDelimitedWithIOException(PARSER, input);
367 java.io.InputStream input,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws java.io.IOException {
370 return com.google.protobuf.GeneratedMessage
371 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
374 com.google.protobuf.CodedInputStream input)
375 throws java.io.IOException {
376 return com.google.protobuf.GeneratedMessage
377 .parseWithIOException(PARSER, input);
380 com.google.protobuf.CodedInputStream input,
381 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
382 throws java.io.IOException {
383 return com.google.protobuf.GeneratedMessage
384 .parseWithIOException(PARSER, input, extensionRegistry);
390 return DEFAULT_INSTANCE.toBuilder();
392 public static Builder newBuilder(com.google.ortools.constraintsolver.SISRRuinStrategy prototype) {
393 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
397 return this == DEFAULT_INSTANCE
403 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
485 public static final class Builder
extends
486 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
489 public static final com.google.protobuf.Descriptors.Descriptor
491 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
495 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
497 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_fieldAccessorTable
498 .ensureFieldAccessorsInitialized(
499 com.google.ortools.constraintsolver.SISRRuinStrategy.class, com.google.ortools.constraintsolver.SISRRuinStrategy.Builder.class);
508 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
516 maxRemovedSequenceSize_ = 0;
517 avgNumRemovedVisits_ = 0;
523 public com.google.protobuf.Descriptors.Descriptor
525 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SISRRuinStrategy_descriptor;
530 return com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance();
537 throw newUninitializedMessageException(result);
545 if (bitField0_ != 0) { buildPartial0(result); }
550 private void buildPartial0(com.google.ortools.constraintsolver.SISRRuinStrategy result) {
551 int from_bitField0_ = bitField0_;
552 int to_bitField0_ = 0;
553 if (((from_bitField0_ & 0x00000001) != 0)) {
554 result.maxRemovedSequenceSize_ = maxRemovedSequenceSize_;
555 to_bitField0_ |= 0x00000001;
557 if (((from_bitField0_ & 0x00000002) != 0)) {
558 result.avgNumRemovedVisits_ = avgNumRemovedVisits_;
559 to_bitField0_ |= 0x00000002;
561 if (((from_bitField0_ & 0x00000004) != 0)) {
562 result.bypassFactor_ = bypassFactor_;
563 to_bitField0_ |= 0x00000004;
565 result.bitField0_ |= to_bitField0_;
569 public Builder
mergeFrom(com.google.protobuf.Message other) {
570 if (other instanceof com.google.ortools.constraintsolver.SISRRuinStrategy) {
571 return mergeFrom((com.google.ortools.constraintsolver.SISRRuinStrategy)other);
573 super.mergeFrom(other);
578 public Builder
mergeFrom(com.google.ortools.constraintsolver.SISRRuinStrategy other) {
579 if (other == com.google.ortools.constraintsolver.SISRRuinStrategy.getDefaultInstance())
return this;
580 if (other.hasMaxRemovedSequenceSize()) {
583 if (other.hasAvgNumRemovedVisits()) {
586 if (other.hasBypassFactor()) {
589 this.mergeUnknownFields(other.getUnknownFields());
601 com.google.protobuf.CodedInputStream input,
602 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
603 throws java.io.IOException {
604 if (extensionRegistry ==
null) {
605 throw new java.lang.NullPointerException();
608 boolean done =
false;
610 int tag = input.readTag();
616 maxRemovedSequenceSize_ = input.readUInt32();
617 bitField0_ |= 0x00000001;
621 avgNumRemovedVisits_ = input.readUInt32();
622 bitField0_ |= 0x00000002;
626 bypassFactor_ = input.readDouble();
627 bitField0_ |= 0x00000004;
631 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
638 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
639 throw e.unwrapIOException();
645 private int bitField0_;
647 private int maxRemovedSequenceSize_ ;
659 return ((bitField0_ & 0x00000001) != 0);
672 return maxRemovedSequenceSize_;
686 maxRemovedSequenceSize_ = value;
687 bitField0_ |= 0x00000001;
701 bitField0_ = (bitField0_ & ~0x00000001);
702 maxRemovedSequenceSize_ = 0;
707 private int avgNumRemovedVisits_ ;
719 return ((bitField0_ & 0x00000002) != 0);
732 return avgNumRemovedVisits_;
746 avgNumRemovedVisits_ = value;
747 bitField0_ |= 0x00000002;
761 bitField0_ = (bitField0_ & ~0x00000002);
762 avgNumRemovedVisits_ = 0;
767 private double bypassFactor_ ;
780 return ((bitField0_ & 0x00000004) != 0);
794 return bypassFactor_;
809 bypassFactor_ = value;
810 bitField0_ |= 0x00000004;
825 bitField0_ = (bitField0_ & ~0x00000004);
837 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SISRRuinStrategy();
841 return DEFAULT_INSTANCE;
848 com.google.protobuf.CodedInputStream input,
849 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
850 throws com.google.protobuf.InvalidProtocolBufferException {
853 builder.mergeFrom(input, extensionRegistry);
854 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
855 throw e.setUnfinishedMessage(builder.buildPartial());
856 }
catch (com.google.protobuf.UninitializedMessageException e) {
857 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
858 }
catch (java.io.IOException e) {
859 throw new com.google.protobuf.InvalidProtocolBufferException(e)
860 .setUnfinishedMessage(builder.buildPartial());
862 return builder.buildPartial();
866 public static com.google.protobuf.Parser<SISRRuinStrategy>
parser() {
877 return DEFAULT_INSTANCE;