5package com.google.ortools.constraintsolver;
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
50 private long time_ = 0L;
65 private long branches_ = 0L;
76 private long failures_ = 0L;
87 private long solutions_ = 0L;
98 private boolean smartTimeCheck_ =
false;
105 return smartTimeCheck_;
109 private boolean cumulative_ =
false;
119 private byte memoizedIsInitialized = -1;
126 memoizedIsInitialized = 1;
131 public void writeTo(com.google.protobuf.CodedOutputStream output)
132 throws java.io.IOException {
134 output.writeInt64(1, time_);
136 if (branches_ != 0L) {
137 output.writeInt64(2, branches_);
139 if (failures_ != 0L) {
140 output.writeInt64(3, failures_);
142 if (solutions_ != 0L) {
143 output.writeInt64(4, solutions_);
145 if (smartTimeCheck_ !=
false) {
146 output.writeBool(5, smartTimeCheck_);
148 if (cumulative_ !=
false) {
149 output.writeBool(6, cumulative_);
151 getUnknownFields().writeTo(output);
156 int size = memoizedSize;
157 if (size != -1)
return size;
161 size += com.google.protobuf.CodedOutputStream
162 .computeInt64Size(1, time_);
164 if (branches_ != 0L) {
165 size += com.google.protobuf.CodedOutputStream
166 .computeInt64Size(2, branches_);
168 if (failures_ != 0L) {
169 size += com.google.protobuf.CodedOutputStream
170 .computeInt64Size(3, failures_);
172 if (solutions_ != 0L) {
173 size += com.google.protobuf.CodedOutputStream
174 .computeInt64Size(4, solutions_);
176 if (smartTimeCheck_ !=
false) {
177 size += com.google.protobuf.CodedOutputStream
178 .computeBoolSize(5, smartTimeCheck_);
180 if (cumulative_ !=
false) {
181 size += com.google.protobuf.CodedOutputStream
182 .computeBoolSize(6, cumulative_);
184 size += getUnknownFields().getSerializedSize();
190 public boolean equals(
final java.lang.Object obj) {
194 if (!(obj instanceof com.google.ortools.constraintsolver.RegularLimitParameters)) {
195 return super.equals(obj);
200 != other.
getTime())
return false;
211 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
217 if (memoizedHashCode != 0) {
218 return memoizedHashCode;
223 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
226 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
229 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
232 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
235 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
238 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
240 hash = (29 * hash) + getUnknownFields().hashCode();
241 memoizedHashCode = hash;
246 java.nio.ByteBuffer data)
247 throws com.google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data);
251 java.nio.ByteBuffer data,
252 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253 throws com.google.protobuf.InvalidProtocolBufferException {
254 return PARSER.parseFrom(data, extensionRegistry);
257 com.google.protobuf.ByteString data)
258 throws com.google.protobuf.InvalidProtocolBufferException {
259 return PARSER.parseFrom(data);
262 com.google.protobuf.ByteString data,
263 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
264 throws com.google.protobuf.InvalidProtocolBufferException {
265 return PARSER.parseFrom(data, extensionRegistry);
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data);
273 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
274 throws com.google.protobuf.InvalidProtocolBufferException {
275 return PARSER.parseFrom(data, extensionRegistry);
278 throws java.io.IOException {
279 return com.google.protobuf.GeneratedMessage
280 .parseWithIOException(PARSER, input);
283 java.io.InputStream input,
284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
285 throws java.io.IOException {
286 return com.google.protobuf.GeneratedMessage
287 .parseWithIOException(PARSER, input, extensionRegistry);
291 throws java.io.IOException {
292 return com.google.protobuf.GeneratedMessage
293 .parseDelimitedWithIOException(PARSER, input);
297 java.io.InputStream input,
298 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
304 com.google.protobuf.CodedInputStream input)
305 throws java.io.IOException {
306 return com.google.protobuf.GeneratedMessage
307 .parseWithIOException(PARSER, input);
310 com.google.protobuf.CodedInputStream input,
311 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
312 throws java.io.IOException {
313 return com.google.protobuf.GeneratedMessage
314 .parseWithIOException(PARSER, input, extensionRegistry);
322 public static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype) {
327 return this == DEFAULT_INSTANCE
333 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
346 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
349 public static final com.google.protobuf.Descriptors.Descriptor
351 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
355 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
357 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
358 .ensureFieldAccessorsInitialized(
359 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
368 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
380 smartTimeCheck_ =
false;
386 public com.google.protobuf.Descriptors.Descriptor
388 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
393 return com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance();
400 throw newUninitializedMessageException(result);
408 if (bitField0_ != 0) { buildPartial0(result); }
413 private void buildPartial0(com.google.ortools.constraintsolver.RegularLimitParameters result) {
414 int from_bitField0_ = bitField0_;
415 if (((from_bitField0_ & 0x00000001) != 0)) {
416 result.time_ = time_;
418 if (((from_bitField0_ & 0x00000002) != 0)) {
419 result.branches_ = branches_;
421 if (((from_bitField0_ & 0x00000004) != 0)) {
422 result.failures_ = failures_;
424 if (((from_bitField0_ & 0x00000008) != 0)) {
425 result.solutions_ = solutions_;
427 if (((from_bitField0_ & 0x00000010) != 0)) {
428 result.smartTimeCheck_ = smartTimeCheck_;
430 if (((from_bitField0_ & 0x00000020) != 0)) {
431 result.cumulative_ = cumulative_;
437 if (other instanceof com.google.ortools.constraintsolver.RegularLimitParameters) {
438 return mergeFrom((com.google.ortools.constraintsolver.RegularLimitParameters)other);
440 super.mergeFrom(other);
445 public Builder mergeFrom(com.google.ortools.constraintsolver.RegularLimitParameters other) {
446 if (other == com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance())
return this;
447 if (other.getTime() != 0L) {
450 if (other.getBranches() != 0L) {
453 if (other.getFailures() != 0L) {
456 if (other.getSolutions() != 0L) {
459 if (other.getSmartTimeCheck() !=
false) {
462 if (other.getCumulative() !=
false) {
465 this.mergeUnknownFields(other.getUnknownFields());
477 com.google.protobuf.CodedInputStream input,
478 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
479 throws java.io.IOException {
480 if (extensionRegistry ==
null) {
481 throw new java.lang.NullPointerException();
484 boolean done =
false;
486 int tag = input.readTag();
492 time_ = input.readInt64();
493 bitField0_ |= 0x00000001;
497 branches_ = input.readInt64();
498 bitField0_ |= 0x00000002;
502 failures_ = input.readInt64();
503 bitField0_ |= 0x00000004;
507 solutions_ = input.readInt64();
508 bitField0_ |= 0x00000008;
512 smartTimeCheck_ = input.readBool();
513 bitField0_ |= 0x00000010;
517 cumulative_ = input.readBool();
518 bitField0_ |= 0x00000020;
522 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
529 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
530 throw e.unwrapIOException();
536 private int bitField0_;
563 bitField0_ |= 0x00000001;
576 bitField0_ = (bitField0_ & ~0x00000001);
582 private long branches_ ;
599 bitField0_ |= 0x00000002;
608 bitField0_ = (bitField0_ & ~0x00000002);
614 private long failures_ ;
631 bitField0_ |= 0x00000004;
640 bitField0_ = (bitField0_ & ~0x00000004);
646 private long solutions_ ;
663 bitField0_ |= 0x00000008;
672 bitField0_ = (bitField0_ & ~0x00000008);
678 private boolean smartTimeCheck_ ;
685 return smartTimeCheck_;
694 smartTimeCheck_ = value;
695 bitField0_ |= 0x00000010;
704 bitField0_ = (bitField0_ & ~0x00000010);
705 smartTimeCheck_ =
false;
710 private boolean cumulative_ ;
727 bitField0_ |= 0x00000020;
736 bitField0_ = (bitField0_ & ~0x00000020);
748 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RegularLimitParameters();
752 return DEFAULT_INSTANCE;
759 com.google.protobuf.CodedInputStream input,
760 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761 throws com.google.protobuf.InvalidProtocolBufferException {
764 builder.mergeFrom(input, extensionRegistry);
765 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
766 throw e.setUnfinishedMessage(builder.buildPartial());
767 }
catch (com.google.protobuf.UninitializedMessageException e) {
768 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
769 }
catch (java.io.IOException e) {
770 throw new com.google.protobuf.InvalidProtocolBufferException(e)
771 .setUnfinishedMessage(builder.buildPartial());
773 return builder.buildPartial();
788 return DEFAULT_INSTANCE;