Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
RegularLimitParameters.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ortools/constraint_solver/search_limit.proto
3
4// Protobuf Java Version: 4.26.1
5package com.google.ortools.constraintsolver;
6
15public final class RegularLimitParameters extends
16 com.google.protobuf.GeneratedMessage implements
17 // @@protoc_insertion_point(message_implements:operations_research.RegularLimitParameters)
19private static final long serialVersionUID = 0L;
20 static {
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 /* major= */ 4,
24 /* minor= */ 26,
25 /* patch= */ 1,
26 /* suffix= */ "",
27 RegularLimitParameters.class.getName());
28 }
29 // Use RegularLimitParameters.newBuilder() to construct.
30 private RegularLimitParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
31 super(builder);
32 }
33 private RegularLimitParameters() {
34 }
35
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
39 }
40
41 @java.lang.Override
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);
47 }
48
49 public static final int TIME_FIELD_NUMBER = 1;
50 private long time_ = 0L;
59 @java.lang.Override
60 public long getTime() {
61 return time_;
62 }
63
64 public static final int BRANCHES_FIELD_NUMBER = 2;
65 private long branches_ = 0L;
70 @java.lang.Override
71 public long getBranches() {
72 return branches_;
73 }
74
75 public static final int FAILURES_FIELD_NUMBER = 3;
76 private long failures_ = 0L;
81 @java.lang.Override
82 public long getFailures() {
83 return failures_;
84 }
85
86 public static final int SOLUTIONS_FIELD_NUMBER = 4;
87 private long solutions_ = 0L;
92 @java.lang.Override
93 public long getSolutions() {
94 return solutions_;
95 }
96
97 public static final int SMART_TIME_CHECK_FIELD_NUMBER = 5;
98 private boolean smartTimeCheck_ = false;
103 @java.lang.Override
104 public boolean getSmartTimeCheck() {
105 return smartTimeCheck_;
106 }
107
108 public static final int CUMULATIVE_FIELD_NUMBER = 6;
109 private boolean cumulative_ = false;
114 @java.lang.Override
115 public boolean getCumulative() {
116 return cumulative_;
117 }
118
119 private byte memoizedIsInitialized = -1;
120 @java.lang.Override
121 public final boolean isInitialized() {
122 byte isInitialized = memoizedIsInitialized;
123 if (isInitialized == 1) return true;
124 if (isInitialized == 0) return false;
125
126 memoizedIsInitialized = 1;
127 return true;
128 }
129
130 @java.lang.Override
131 public void writeTo(com.google.protobuf.CodedOutputStream output)
132 throws java.io.IOException {
133 if (time_ != 0L) {
134 output.writeInt64(1, time_);
135 }
136 if (branches_ != 0L) {
137 output.writeInt64(2, branches_);
138 }
139 if (failures_ != 0L) {
140 output.writeInt64(3, failures_);
141 }
142 if (solutions_ != 0L) {
143 output.writeInt64(4, solutions_);
144 }
145 if (smartTimeCheck_ != false) {
146 output.writeBool(5, smartTimeCheck_);
147 }
148 if (cumulative_ != false) {
149 output.writeBool(6, cumulative_);
150 }
151 getUnknownFields().writeTo(output);
152 }
153
154 @java.lang.Override
155 public int getSerializedSize() {
156 int size = memoizedSize;
157 if (size != -1) return size;
158
159 size = 0;
160 if (time_ != 0L) {
161 size += com.google.protobuf.CodedOutputStream
162 .computeInt64Size(1, time_);
163 }
164 if (branches_ != 0L) {
165 size += com.google.protobuf.CodedOutputStream
166 .computeInt64Size(2, branches_);
167 }
168 if (failures_ != 0L) {
169 size += com.google.protobuf.CodedOutputStream
170 .computeInt64Size(3, failures_);
171 }
172 if (solutions_ != 0L) {
173 size += com.google.protobuf.CodedOutputStream
174 .computeInt64Size(4, solutions_);
175 }
176 if (smartTimeCheck_ != false) {
177 size += com.google.protobuf.CodedOutputStream
178 .computeBoolSize(5, smartTimeCheck_);
179 }
180 if (cumulative_ != false) {
181 size += com.google.protobuf.CodedOutputStream
182 .computeBoolSize(6, cumulative_);
183 }
184 size += getUnknownFields().getSerializedSize();
185 memoizedSize = size;
186 return size;
187 }
188
189 @java.lang.Override
190 public boolean equals(final java.lang.Object obj) {
191 if (obj == this) {
192 return true;
193 }
194 if (!(obj instanceof com.google.ortools.constraintsolver.RegularLimitParameters)) {
195 return super.equals(obj);
196 }
197 com.google.ortools.constraintsolver.RegularLimitParameters other = (com.google.ortools.constraintsolver.RegularLimitParameters) obj;
198
199 if (getTime()
200 != other.getTime()) return false;
201 if (getBranches()
202 != other.getBranches()) return false;
203 if (getFailures()
204 != other.getFailures()) return false;
205 if (getSolutions()
206 != other.getSolutions()) return false;
208 != other.getSmartTimeCheck()) return false;
209 if (getCumulative()
210 != other.getCumulative()) return false;
211 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
212 return true;
213 }
214
215 @java.lang.Override
216 public int hashCode() {
217 if (memoizedHashCode != 0) {
218 return memoizedHashCode;
219 }
220 int hash = 41;
221 hash = (19 * hash) + getDescriptor().hashCode();
222 hash = (37 * hash) + TIME_FIELD_NUMBER;
223 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
224 getTime());
225 hash = (37 * hash) + BRANCHES_FIELD_NUMBER;
226 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
227 getBranches());
228 hash = (37 * hash) + FAILURES_FIELD_NUMBER;
229 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
230 getFailures());
231 hash = (37 * hash) + SOLUTIONS_FIELD_NUMBER;
232 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
233 getSolutions());
234 hash = (37 * hash) + SMART_TIME_CHECK_FIELD_NUMBER;
235 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
237 hash = (37 * hash) + CUMULATIVE_FIELD_NUMBER;
238 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
239 getCumulative());
240 hash = (29 * hash) + getUnknownFields().hashCode();
241 memoizedHashCode = hash;
242 return hash;
243 }
244
246 java.nio.ByteBuffer data)
247 throws com.google.protobuf.InvalidProtocolBufferException {
248 return PARSER.parseFrom(data);
249 }
251 java.nio.ByteBuffer data,
252 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
253 throws com.google.protobuf.InvalidProtocolBufferException {
254 return PARSER.parseFrom(data, extensionRegistry);
255 }
257 com.google.protobuf.ByteString data)
258 throws com.google.protobuf.InvalidProtocolBufferException {
259 return PARSER.parseFrom(data);
260 }
262 com.google.protobuf.ByteString data,
263 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
264 throws com.google.protobuf.InvalidProtocolBufferException {
265 return PARSER.parseFrom(data, extensionRegistry);
266 }
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data);
270 }
272 byte[] data,
273 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
274 throws com.google.protobuf.InvalidProtocolBufferException {
275 return PARSER.parseFrom(data, extensionRegistry);
276 }
278 throws java.io.IOException {
279 return com.google.protobuf.GeneratedMessage
280 .parseWithIOException(PARSER, input);
281 }
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);
288 }
289
291 throws java.io.IOException {
292 return com.google.protobuf.GeneratedMessage
293 .parseDelimitedWithIOException(PARSER, input);
294 }
295
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);
302 }
304 com.google.protobuf.CodedInputStream input)
305 throws java.io.IOException {
306 return com.google.protobuf.GeneratedMessage
307 .parseWithIOException(PARSER, input);
308 }
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);
315 }
316
317 @java.lang.Override
318 public Builder newBuilderForType() { return newBuilder(); }
319 public static Builder newBuilder() {
320 return DEFAULT_INSTANCE.toBuilder();
321 }
322 public static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype) {
323 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
324 }
325 @java.lang.Override
327 return this == DEFAULT_INSTANCE
328 ? new Builder() : new Builder().mergeFrom(this);
329 }
330
331 @java.lang.Override
333 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
334 Builder builder = new Builder(parent);
335 return builder;
336 }
345 public static final class Builder extends
346 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
347 // @@protoc_insertion_point(builder_implements:operations_research.RegularLimitParameters)
348 com.google.ortools.constraintsolver.RegularLimitParametersOrBuilder {
349 public static final com.google.protobuf.Descriptors.Descriptor
351 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
352 }
353
354 @java.lang.Override
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);
360 }
361
362 // Construct using com.google.ortools.constraintsolver.RegularLimitParameters.newBuilder()
363 private Builder() {
364
365 }
366
367 private Builder(
368 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
369 super(parent);
370
371 }
372 @java.lang.Override
373 public Builder clear() {
374 super.clear();
375 bitField0_ = 0;
376 time_ = 0L;
377 branches_ = 0L;
378 failures_ = 0L;
379 solutions_ = 0L;
380 smartTimeCheck_ = false;
381 cumulative_ = false;
382 return this;
383 }
384
385 @java.lang.Override
386 public com.google.protobuf.Descriptors.Descriptor
388 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
389 }
390
391 @java.lang.Override
393 return com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance();
394 }
395
396 @java.lang.Override
399 if (!result.isInitialized()) {
400 throw newUninitializedMessageException(result);
401 }
402 return result;
403 }
404
405 @java.lang.Override
407 com.google.ortools.constraintsolver.RegularLimitParameters result = new com.google.ortools.constraintsolver.RegularLimitParameters(this);
408 if (bitField0_ != 0) { buildPartial0(result); }
409 onBuilt();
410 return result;
411 }
412
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_;
417 }
418 if (((from_bitField0_ & 0x00000002) != 0)) {
419 result.branches_ = branches_;
420 }
421 if (((from_bitField0_ & 0x00000004) != 0)) {
422 result.failures_ = failures_;
423 }
424 if (((from_bitField0_ & 0x00000008) != 0)) {
425 result.solutions_ = solutions_;
426 }
427 if (((from_bitField0_ & 0x00000010) != 0)) {
428 result.smartTimeCheck_ = smartTimeCheck_;
429 }
430 if (((from_bitField0_ & 0x00000020) != 0)) {
431 result.cumulative_ = cumulative_;
432 }
433 }
434
435 @java.lang.Override
436 public Builder mergeFrom(com.google.protobuf.Message other) {
437 if (other instanceof com.google.ortools.constraintsolver.RegularLimitParameters) {
438 return mergeFrom((com.google.ortools.constraintsolver.RegularLimitParameters)other);
439 } else {
440 super.mergeFrom(other);
441 return this;
442 }
443 }
444
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) {
448 setTime(other.getTime());
449 }
450 if (other.getBranches() != 0L) {
451 setBranches(other.getBranches());
452 }
453 if (other.getFailures() != 0L) {
454 setFailures(other.getFailures());
455 }
456 if (other.getSolutions() != 0L) {
457 setSolutions(other.getSolutions());
458 }
459 if (other.getSmartTimeCheck() != false) {
460 setSmartTimeCheck(other.getSmartTimeCheck());
461 }
462 if (other.getCumulative() != false) {
463 setCumulative(other.getCumulative());
464 }
465 this.mergeUnknownFields(other.getUnknownFields());
466 onChanged();
467 return this;
468 }
469
470 @java.lang.Override
471 public final boolean isInitialized() {
472 return true;
473 }
474
475 @java.lang.Override
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();
482 }
483 try {
484 boolean done = false;
485 while (!done) {
486 int tag = input.readTag();
487 switch (tag) {
488 case 0:
489 done = true;
490 break;
491 case 8: {
492 time_ = input.readInt64();
493 bitField0_ |= 0x00000001;
494 break;
495 } // case 8
496 case 16: {
497 branches_ = input.readInt64();
498 bitField0_ |= 0x00000002;
499 break;
500 } // case 16
501 case 24: {
502 failures_ = input.readInt64();
503 bitField0_ |= 0x00000004;
504 break;
505 } // case 24
506 case 32: {
507 solutions_ = input.readInt64();
508 bitField0_ |= 0x00000008;
509 break;
510 } // case 32
511 case 40: {
512 smartTimeCheck_ = input.readBool();
513 bitField0_ |= 0x00000010;
514 break;
515 } // case 40
516 case 48: {
517 cumulative_ = input.readBool();
518 bitField0_ |= 0x00000020;
519 break;
520 } // case 48
521 default: {
522 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
523 done = true; // was an endgroup tag
524 }
525 break;
526 } // default:
527 } // switch (tag)
528 } // while (!done)
529 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
530 throw e.unwrapIOException();
531 } finally {
532 onChanged();
533 } // finally
534 return this;
535 }
536 private int bitField0_;
537
538 private long time_ ;
547 @java.lang.Override
548 public long getTime() {
549 return time_;
550 }
560 public Builder setTime(long value) {
561
562 time_ = value;
563 bitField0_ |= 0x00000001;
564 onChanged();
565 return this;
566 }
576 bitField0_ = (bitField0_ & ~0x00000001);
577 time_ = 0L;
578 onChanged();
579 return this;
580 }
581
582 private long branches_ ;
587 @java.lang.Override
588 public long getBranches() {
589 return branches_;
590 }
596 public Builder setBranches(long value) {
597
598 branches_ = value;
599 bitField0_ |= 0x00000002;
600 onChanged();
601 return this;
602 }
608 bitField0_ = (bitField0_ & ~0x00000002);
609 branches_ = 0L;
610 onChanged();
611 return this;
612 }
613
614 private long failures_ ;
619 @java.lang.Override
620 public long getFailures() {
621 return failures_;
622 }
628 public Builder setFailures(long value) {
629
630 failures_ = value;
631 bitField0_ |= 0x00000004;
632 onChanged();
633 return this;
634 }
640 bitField0_ = (bitField0_ & ~0x00000004);
641 failures_ = 0L;
642 onChanged();
643 return this;
644 }
645
646 private long solutions_ ;
651 @java.lang.Override
652 public long getSolutions() {
653 return solutions_;
654 }
660 public Builder setSolutions(long value) {
661
662 solutions_ = value;
663 bitField0_ |= 0x00000008;
664 onChanged();
665 return this;
666 }
672 bitField0_ = (bitField0_ & ~0x00000008);
673 solutions_ = 0L;
674 onChanged();
675 return this;
676 }
677
678 private boolean smartTimeCheck_ ;
683 @java.lang.Override
684 public boolean getSmartTimeCheck() {
685 return smartTimeCheck_;
686 }
692 public Builder setSmartTimeCheck(boolean value) {
693
694 smartTimeCheck_ = value;
695 bitField0_ |= 0x00000010;
696 onChanged();
697 return this;
698 }
704 bitField0_ = (bitField0_ & ~0x00000010);
705 smartTimeCheck_ = false;
706 onChanged();
707 return this;
708 }
709
710 private boolean cumulative_ ;
715 @java.lang.Override
716 public boolean getCumulative() {
717 return cumulative_;
718 }
724 public Builder setCumulative(boolean value) {
725
726 cumulative_ = value;
727 bitField0_ |= 0x00000020;
728 onChanged();
729 return this;
730 }
736 bitField0_ = (bitField0_ & ~0x00000020);
737 cumulative_ = false;
738 onChanged();
739 return this;
740 }
741
742 // @@protoc_insertion_point(builder_scope:operations_research.RegularLimitParameters)
743 }
744
745 // @@protoc_insertion_point(class_scope:operations_research.RegularLimitParameters)
746 private static final com.google.ortools.constraintsolver.RegularLimitParameters DEFAULT_INSTANCE;
747 static {
748 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.RegularLimitParameters();
749 }
750
752 return DEFAULT_INSTANCE;
753 }
754
755 private static final com.google.protobuf.Parser<RegularLimitParameters>
756 PARSER = new com.google.protobuf.AbstractParser<RegularLimitParameters>() {
757 @java.lang.Override
758 public RegularLimitParameters parsePartialFrom(
759 com.google.protobuf.CodedInputStream input,
760 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
761 throws com.google.protobuf.InvalidProtocolBufferException {
762 Builder builder = newBuilder();
763 try {
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());
772 }
773 return builder.buildPartial();
774 }
775 };
776
777 public static com.google.protobuf.Parser<RegularLimitParameters> parser() {
778 return PARSER;
779 }
780
781 @java.lang.Override
782 public com.google.protobuf.Parser<RegularLimitParameters> getParserForType() {
783 return PARSER;
784 }
785
786 @java.lang.Override
790
791}
792
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
Builder mergeFrom(com.google.ortools.constraintsolver.RegularLimitParameters other)
com.google.ortools.constraintsolver.RegularLimitParameters build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
com.google.ortools.constraintsolver.RegularLimitParameters buildPartial()
com.google.ortools.constraintsolver.RegularLimitParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.RegularLimitParameters getDefaultInstance()
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.RegularLimitParameters parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.constraintsolver.RegularLimitParameters getDefaultInstanceForType()
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(com.google.protobuf.CodedInputStream input)
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.RegularLimitParameters parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Parser< RegularLimitParameters > getParserForType()
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(byte[] data)
static com.google.ortools.constraintsolver.RegularLimitParameters parseFrom(java.io.InputStream input)
static com.google.protobuf.Parser< RegularLimitParameters > parser()