5package com.google.ortools.constraintsolver;
16 com.google.protobuf.GeneratedMessageV3 implements
19private static final long serialVersionUID = 0L;
28 @SuppressWarnings({
"unused"})
30 UnusedPrivateParameter unused) {
34 public static final com.google.protobuf.Descriptors.Descriptor
36 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
40 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
42 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
43 .ensureFieldAccessorsInitialized(
44 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
48 private long time_ = 0L;
63 private long branches_ = 0L;
74 private long failures_ = 0L;
85 private long solutions_ = 0L;
96 private boolean smartTimeCheck_ =
false;
103 return smartTimeCheck_;
107 private boolean cumulative_ =
false;
117 private byte memoizedIsInitialized = -1;
124 memoizedIsInitialized = 1;
129 public void writeTo(com.google.protobuf.CodedOutputStream output)
130 throws java.io.IOException {
132 output.writeInt64(1, time_);
134 if (branches_ != 0L) {
135 output.writeInt64(2, branches_);
137 if (failures_ != 0L) {
138 output.writeInt64(3, failures_);
140 if (solutions_ != 0L) {
141 output.writeInt64(4, solutions_);
143 if (smartTimeCheck_ !=
false) {
144 output.writeBool(5, smartTimeCheck_);
146 if (cumulative_ !=
false) {
147 output.writeBool(6, cumulative_);
149 getUnknownFields().writeTo(output);
154 int size = memoizedSize;
155 if (size != -1)
return size;
159 size += com.google.protobuf.CodedOutputStream
160 .computeInt64Size(1, time_);
162 if (branches_ != 0L) {
163 size += com.google.protobuf.CodedOutputStream
164 .computeInt64Size(2, branches_);
166 if (failures_ != 0L) {
167 size += com.google.protobuf.CodedOutputStream
168 .computeInt64Size(3, failures_);
170 if (solutions_ != 0L) {
171 size += com.google.protobuf.CodedOutputStream
172 .computeInt64Size(4, solutions_);
174 if (smartTimeCheck_ !=
false) {
175 size += com.google.protobuf.CodedOutputStream
176 .computeBoolSize(5, smartTimeCheck_);
178 if (cumulative_ !=
false) {
179 size += com.google.protobuf.CodedOutputStream
180 .computeBoolSize(6, cumulative_);
182 size += getUnknownFields().getSerializedSize();
188 public boolean equals(
final java.lang.Object obj) {
192 if (!(obj instanceof com.google.ortools.constraintsolver.RegularLimitParameters)) {
193 return super.equals(obj);
198 != other.
getTime())
return false;
209 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
215 if (memoizedHashCode != 0) {
216 return memoizedHashCode;
221 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
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.hashBoolean(
236 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
238 hash = (29 * hash) + getUnknownFields().hashCode();
239 memoizedHashCode = hash;
244 java.nio.ByteBuffer data)
245 throws com.google.protobuf.InvalidProtocolBufferException {
246 return PARSER.parseFrom(data);
249 java.nio.ByteBuffer data,
250 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
251 throws com.google.protobuf.InvalidProtocolBufferException {
252 return PARSER.parseFrom(data, extensionRegistry);
255 com.google.protobuf.ByteString data)
256 throws com.google.protobuf.InvalidProtocolBufferException {
257 return PARSER.parseFrom(data);
260 com.google.protobuf.ByteString data,
261 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data, extensionRegistry);
266 throws com.google.protobuf.InvalidProtocolBufferException {
267 return PARSER.parseFrom(data);
271 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
272 throws com.google.protobuf.InvalidProtocolBufferException {
273 return PARSER.parseFrom(data, extensionRegistry);
276 throws java.io.IOException {
277 return com.google.protobuf.GeneratedMessageV3
278 .parseWithIOException(PARSER, input);
281 java.io.InputStream input,
282 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
283 throws java.io.IOException {
284 return com.google.protobuf.GeneratedMessageV3
285 .parseWithIOException(PARSER, input, extensionRegistry);
289 throws java.io.IOException {
290 return com.google.protobuf.GeneratedMessageV3
291 .parseDelimitedWithIOException(PARSER, input);
295 java.io.InputStream input,
296 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
297 throws java.io.IOException {
298 return com.google.protobuf.GeneratedMessageV3
299 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
302 com.google.protobuf.CodedInputStream input)
303 throws java.io.IOException {
304 return com.google.protobuf.GeneratedMessageV3
305 .parseWithIOException(PARSER, input);
308 com.google.protobuf.CodedInputStream input,
309 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
310 throws java.io.IOException {
311 return com.google.protobuf.GeneratedMessageV3
312 .parseWithIOException(PARSER, input, extensionRegistry);
320 public static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype) {
325 return this == DEFAULT_INSTANCE
331 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
344 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
347 public static final com.google.protobuf.Descriptors.Descriptor
349 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
353 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
355 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
356 .ensureFieldAccessorsInitialized(
357 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
366 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
378 smartTimeCheck_ =
false;
384 public com.google.protobuf.Descriptors.Descriptor
386 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
391 return com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance();
398 throw newUninitializedMessageException(result);
406 if (bitField0_ != 0) { buildPartial0(result); }
411 private void buildPartial0(com.google.ortools.constraintsolver.RegularLimitParameters result) {
412 int from_bitField0_ = bitField0_;
413 if (((from_bitField0_ & 0x00000001) != 0)) {
414 result.time_ = time_;
416 if (((from_bitField0_ & 0x00000002) != 0)) {
417 result.branches_ = branches_;
419 if (((from_bitField0_ & 0x00000004) != 0)) {
420 result.failures_ = failures_;
422 if (((from_bitField0_ & 0x00000008) != 0)) {
423 result.solutions_ = solutions_;
425 if (((from_bitField0_ & 0x00000010) != 0)) {
426 result.smartTimeCheck_ = smartTimeCheck_;
428 if (((from_bitField0_ & 0x00000020) != 0)) {
429 result.cumulative_ = cumulative_;
435 return super.
clone();
439 com.google.protobuf.Descriptors.FieldDescriptor field,
440 java.lang.Object value) {
441 return super.
setField(field, value);
445 com.google.protobuf.Descriptors.FieldDescriptor field) {
450 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
455 com.google.protobuf.Descriptors.FieldDescriptor field,
456 int index, java.lang.Object value) {
461 com.google.protobuf.Descriptors.FieldDescriptor field,
462 java.lang.Object value) {
467 if (other instanceof com.google.ortools.constraintsolver.RegularLimitParameters) {
468 return mergeFrom((com.google.ortools.constraintsolver.RegularLimitParameters)other);
470 super.mergeFrom(other);
475 public Builder mergeFrom(com.google.ortools.constraintsolver.RegularLimitParameters other) {
476 if (other == com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance())
return this;
477 if (other.getTime() != 0L) {
480 if (other.getBranches() != 0L) {
483 if (other.getFailures() != 0L) {
486 if (other.getSolutions() != 0L) {
489 if (other.getSmartTimeCheck() !=
false) {
492 if (other.getCumulative() !=
false) {
507 com.google.protobuf.CodedInputStream input,
508 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
509 throws java.io.IOException {
510 if (extensionRegistry ==
null) {
511 throw new java.lang.NullPointerException();
514 boolean done =
false;
516 int tag = input.readTag();
522 time_ = input.readInt64();
523 bitField0_ |= 0x00000001;
527 branches_ = input.readInt64();
528 bitField0_ |= 0x00000002;
532 failures_ = input.readInt64();
533 bitField0_ |= 0x00000004;
537 solutions_ = input.readInt64();
538 bitField0_ |= 0x00000008;
542 smartTimeCheck_ = input.readBool();
543 bitField0_ |= 0x00000010;
547 cumulative_ = input.readBool();
548 bitField0_ |= 0x00000020;
552 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
559 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
560 throw e.unwrapIOException();
566 private int bitField0_;
593 bitField0_ |= 0x00000001;
606 bitField0_ = (bitField0_ & ~0x00000001);
612 private long branches_ ;
629 bitField0_ |= 0x00000002;
638 bitField0_ = (bitField0_ & ~0x00000002);
644 private long failures_ ;
661 bitField0_ |= 0x00000004;
670 bitField0_ = (bitField0_ & ~0x00000004);
676 private long solutions_ ;
693 bitField0_ |= 0x00000008;
702 bitField0_ = (bitField0_ & ~0x00000008);
708 private boolean smartTimeCheck_ ;
715 return smartTimeCheck_;
724 smartTimeCheck_ = value;
725 bitField0_ |= 0x00000010;
734 bitField0_ = (bitField0_ & ~0x00000010);
735 smartTimeCheck_ =
false;
740 private boolean cumulative_ ;
757 bitField0_ |= 0x00000020;
766 bitField0_ = (bitField0_ & ~0x00000020);
773 final com.google.protobuf.UnknownFieldSet unknownFields) {
779 final com.google.protobuf.UnknownFieldSet unknownFields) {
790 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RegularLimitParameters();
794 return DEFAULT_INSTANCE;
801 com.google.protobuf.CodedInputStream input,
802 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
803 throws com.google.protobuf.InvalidProtocolBufferException {
806 builder.mergeFrom(input, extensionRegistry);
807 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
808 throw e.setUnfinishedMessage(builder.buildPartial());
809 }
catch (com.google.protobuf.UninitializedMessageException e) {
810 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
811 }
catch (java.io.IOException e) {
812 throw new com.google.protobuf.InvalidProtocolBufferException(e)
813 .setUnfinishedMessage(builder.buildPartial());
815 return builder.buildPartial();
830 return DEFAULT_INSTANCE;