6package com.google.ortools.constraintsolver;
16public final class RegularLimitParameters
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 RegularLimitParameters.class.getName());
31 private RegularLimitParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private RegularLimitParameters() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
51 private long time_ = 0L;
66 private long branches_ = 0L;
77 private long failures_ = 0L;
88 private long solutions_ = 0L;
99 private boolean smartTimeCheck_ =
false;
106 return smartTimeCheck_;
110 private boolean cumulative_ =
false;
120 private byte memoizedIsInitialized = -1;
127 memoizedIsInitialized = 1;
132 public void writeTo(com.google.protobuf.CodedOutputStream output)
133 throws java.io.IOException {
135 output.writeInt64(1, time_);
137 if (branches_ != 0L) {
138 output.writeInt64(2, branches_);
140 if (failures_ != 0L) {
141 output.writeInt64(3, failures_);
143 if (solutions_ != 0L) {
144 output.writeInt64(4, solutions_);
146 if (smartTimeCheck_ !=
false) {
147 output.writeBool(5, smartTimeCheck_);
149 if (cumulative_ !=
false) {
150 output.writeBool(6, cumulative_);
152 getUnknownFields().writeTo(output);
157 int size = memoizedSize;
158 if (size != -1)
return size;
162 size += com.google.protobuf.CodedOutputStream
163 .computeInt64Size(1, time_);
165 if (branches_ != 0L) {
166 size += com.google.protobuf.CodedOutputStream
167 .computeInt64Size(2, branches_);
169 if (failures_ != 0L) {
170 size += com.google.protobuf.CodedOutputStream
171 .computeInt64Size(3, failures_);
173 if (solutions_ != 0L) {
174 size += com.google.protobuf.CodedOutputStream
175 .computeInt64Size(4, solutions_);
177 if (smartTimeCheck_ !=
false) {
178 size += com.google.protobuf.CodedOutputStream
179 .computeBoolSize(5, smartTimeCheck_);
181 if (cumulative_ !=
false) {
182 size += com.google.protobuf.CodedOutputStream
183 .computeBoolSize(6, cumulative_);
185 size += getUnknownFields().getSerializedSize();
191 public boolean equals(
final java.lang.Object obj) {
195 if (!(obj instanceof com.google.ortools.constraintsolver.RegularLimitParameters)) {
196 return super.equals(obj);
201 != other.
getTime())
return false;
212 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
218 if (memoizedHashCode != 0) {
219 return memoizedHashCode;
224 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
227 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
230 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
233 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
236 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
239 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
241 hash = (29 * hash) + getUnknownFields().hashCode();
242 memoizedHashCode = hash;
247 java.nio.ByteBuffer data)
248 throws com.google.protobuf.InvalidProtocolBufferException {
249 return PARSER.parseFrom(data);
252 java.nio.ByteBuffer data,
253 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
254 throws com.google.protobuf.InvalidProtocolBufferException {
255 return PARSER.parseFrom(data, extensionRegistry);
258 com.google.protobuf.ByteString data)
259 throws com.google.protobuf.InvalidProtocolBufferException {
260 return PARSER.parseFrom(data);
263 com.google.protobuf.ByteString data,
264 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265 throws com.google.protobuf.InvalidProtocolBufferException {
266 return PARSER.parseFrom(data, extensionRegistry);
269 throws com.google.protobuf.InvalidProtocolBufferException {
270 return PARSER.parseFrom(data);
274 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
275 throws com.google.protobuf.InvalidProtocolBufferException {
276 return PARSER.parseFrom(data, extensionRegistry);
279 throws java.io.IOException {
280 return com.google.protobuf.GeneratedMessage
281 .parseWithIOException(PARSER, input);
284 java.io.InputStream input,
285 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
286 throws java.io.IOException {
287 return com.google.protobuf.GeneratedMessage
288 .parseWithIOException(PARSER, input, extensionRegistry);
292 throws java.io.IOException {
293 return com.google.protobuf.GeneratedMessage
294 .parseDelimitedWithIOException(PARSER, input);
298 java.io.InputStream input,
299 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
300 throws java.io.IOException {
301 return com.google.protobuf.GeneratedMessage
302 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
305 com.google.protobuf.CodedInputStream input)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input);
311 com.google.protobuf.CodedInputStream input,
312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313 throws java.io.IOException {
314 return com.google.protobuf.GeneratedMessage
315 .parseWithIOException(PARSER, input, extensionRegistry);
321 return DEFAULT_INSTANCE.toBuilder();
323 public static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype) {
324 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
328 return this == DEFAULT_INSTANCE
334 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
346 public static final class Builder
extends
347 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
350 public static final com.google.protobuf.Descriptors.Descriptor
352 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
356 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
358 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
359 .ensureFieldAccessorsInitialized(
360 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
369 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
381 smartTimeCheck_ =
false;
387 public com.google.protobuf.Descriptors.Descriptor
389 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
394 return com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance();
401 throw newUninitializedMessageException(result);
409 if (bitField0_ != 0) { buildPartial0(result); }
414 private void buildPartial0(com.google.ortools.constraintsolver.RegularLimitParameters result) {
415 int from_bitField0_ = bitField0_;
416 if (((from_bitField0_ & 0x00000001) != 0)) {
417 result.time_ = time_;
419 if (((from_bitField0_ & 0x00000002) != 0)) {
420 result.branches_ = branches_;
422 if (((from_bitField0_ & 0x00000004) != 0)) {
423 result.failures_ = failures_;
425 if (((from_bitField0_ & 0x00000008) != 0)) {
426 result.solutions_ = solutions_;
428 if (((from_bitField0_ & 0x00000010) != 0)) {
429 result.smartTimeCheck_ = smartTimeCheck_;
431 if (((from_bitField0_ & 0x00000020) != 0)) {
432 result.cumulative_ = cumulative_;
437 public Builder
mergeFrom(com.google.protobuf.Message other) {
438 if (other instanceof com.google.ortools.constraintsolver.RegularLimitParameters) {
439 return mergeFrom((com.google.ortools.constraintsolver.RegularLimitParameters)other);
441 super.mergeFrom(other);
446 public Builder
mergeFrom(com.google.ortools.constraintsolver.RegularLimitParameters other) {
447 if (other == com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance())
return this;
448 if (other.getTime() != 0L) {
451 if (other.getBranches() != 0L) {
454 if (other.getFailures() != 0L) {
457 if (other.getSolutions() != 0L) {
460 if (other.getSmartTimeCheck() !=
false) {
463 if (other.getCumulative() !=
false) {
466 this.mergeUnknownFields(other.getUnknownFields());
478 com.google.protobuf.CodedInputStream input,
479 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
480 throws java.io.IOException {
481 if (extensionRegistry ==
null) {
482 throw new java.lang.NullPointerException();
485 boolean done =
false;
487 int tag = input.readTag();
493 time_ = input.readInt64();
494 bitField0_ |= 0x00000001;
498 branches_ = input.readInt64();
499 bitField0_ |= 0x00000002;
503 failures_ = input.readInt64();
504 bitField0_ |= 0x00000004;
508 solutions_ = input.readInt64();
509 bitField0_ |= 0x00000008;
513 smartTimeCheck_ = input.readBool();
514 bitField0_ |= 0x00000010;
518 cumulative_ = input.readBool();
519 bitField0_ |= 0x00000020;
523 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
530 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
531 throw e.unwrapIOException();
537 private int bitField0_;
564 bitField0_ |= 0x00000001;
577 bitField0_ = (bitField0_ & ~0x00000001);
583 private long branches_ ;
600 bitField0_ |= 0x00000002;
609 bitField0_ = (bitField0_ & ~0x00000002);
615 private long failures_ ;
632 bitField0_ |= 0x00000004;
641 bitField0_ = (bitField0_ & ~0x00000004);
647 private long solutions_ ;
664 bitField0_ |= 0x00000008;
673 bitField0_ = (bitField0_ & ~0x00000008);
679 private boolean smartTimeCheck_ ;
686 return smartTimeCheck_;
695 smartTimeCheck_ = value;
696 bitField0_ |= 0x00000010;
705 bitField0_ = (bitField0_ & ~0x00000010);
706 smartTimeCheck_ =
false;
711 private boolean cumulative_ ;
728 bitField0_ |= 0x00000020;
737 bitField0_ = (bitField0_ & ~0x00000020);
749 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RegularLimitParameters();
753 return DEFAULT_INSTANCE;
760 com.google.protobuf.CodedInputStream input,
761 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
762 throws com.google.protobuf.InvalidProtocolBufferException {
765 builder.mergeFrom(input, extensionRegistry);
766 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
767 throw e.setUnfinishedMessage(builder.buildPartial());
768 }
catch (com.google.protobuf.UninitializedMessageException e) {
769 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
770 }
catch (java.io.IOException e) {
771 throw new com.google.protobuf.InvalidProtocolBufferException(e)
772 .setUnfinishedMessage(builder.buildPartial());
774 return builder.buildPartial();
778 public static com.google.protobuf.Parser<RegularLimitParameters>
parser() {
789 return DEFAULT_INSTANCE;