6package com.google.ortools.constraintsolver;
16@com.google.protobuf.Generated
17public final class RegularLimitParameters
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 RegularLimitParameters.class.getName());
32 private RegularLimitParameters(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private RegularLimitParameters() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
52 private long time_ = 0L;
67 private long branches_ = 0L;
78 private long failures_ = 0L;
89 private long solutions_ = 0L;
100 private boolean smartTimeCheck_ =
false;
107 return smartTimeCheck_;
111 private boolean cumulative_ =
false;
121 private byte memoizedIsInitialized = -1;
128 memoizedIsInitialized = 1;
133 public void writeTo(com.google.protobuf.CodedOutputStream output)
134 throws java.io.IOException {
136 output.writeInt64(1, time_);
138 if (branches_ != 0L) {
139 output.writeInt64(2, branches_);
141 if (failures_ != 0L) {
142 output.writeInt64(3, failures_);
144 if (solutions_ != 0L) {
145 output.writeInt64(4, solutions_);
147 if (smartTimeCheck_ !=
false) {
148 output.writeBool(5, smartTimeCheck_);
150 if (cumulative_ !=
false) {
151 output.writeBool(6, cumulative_);
153 getUnknownFields().writeTo(output);
158 int size = memoizedSize;
159 if (size != -1)
return size;
163 size += com.google.protobuf.CodedOutputStream
164 .computeInt64Size(1, time_);
166 if (branches_ != 0L) {
167 size += com.google.protobuf.CodedOutputStream
168 .computeInt64Size(2, branches_);
170 if (failures_ != 0L) {
171 size += com.google.protobuf.CodedOutputStream
172 .computeInt64Size(3, failures_);
174 if (solutions_ != 0L) {
175 size += com.google.protobuf.CodedOutputStream
176 .computeInt64Size(4, solutions_);
178 if (smartTimeCheck_ !=
false) {
179 size += com.google.protobuf.CodedOutputStream
180 .computeBoolSize(5, smartTimeCheck_);
182 if (cumulative_ !=
false) {
183 size += com.google.protobuf.CodedOutputStream
184 .computeBoolSize(6, cumulative_);
186 size += getUnknownFields().getSerializedSize();
192 public boolean equals(
final java.lang.Object obj) {
196 if (!(obj instanceof com.google.ortools.constraintsolver.RegularLimitParameters)) {
197 return super.equals(obj);
202 != other.
getTime())
return false;
213 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
219 if (memoizedHashCode != 0) {
220 return memoizedHashCode;
225 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
228 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
231 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
234 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
237 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
240 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
242 hash = (29 * hash) + getUnknownFields().hashCode();
243 memoizedHashCode = hash;
248 java.nio.ByteBuffer data)
249 throws com.google.protobuf.InvalidProtocolBufferException {
250 return PARSER.parseFrom(data);
253 java.nio.ByteBuffer data,
254 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
255 throws com.google.protobuf.InvalidProtocolBufferException {
256 return PARSER.parseFrom(data, extensionRegistry);
259 com.google.protobuf.ByteString data)
260 throws com.google.protobuf.InvalidProtocolBufferException {
261 return PARSER.parseFrom(data);
264 com.google.protobuf.ByteString data,
265 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266 throws com.google.protobuf.InvalidProtocolBufferException {
267 return PARSER.parseFrom(data, extensionRegistry);
270 throws com.google.protobuf.InvalidProtocolBufferException {
271 return PARSER.parseFrom(data);
275 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws com.google.protobuf.InvalidProtocolBufferException {
277 return PARSER.parseFrom(data, extensionRegistry);
280 throws java.io.IOException {
281 return com.google.protobuf.GeneratedMessage
282 .parseWithIOException(PARSER, input);
285 java.io.InputStream input,
286 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
287 throws java.io.IOException {
288 return com.google.protobuf.GeneratedMessage
289 .parseWithIOException(PARSER, input, extensionRegistry);
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseDelimitedWithIOException(PARSER, input);
299 java.io.InputStream input,
300 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
301 throws java.io.IOException {
302 return com.google.protobuf.GeneratedMessage
303 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
306 com.google.protobuf.CodedInputStream input)
307 throws java.io.IOException {
308 return com.google.protobuf.GeneratedMessage
309 .parseWithIOException(PARSER, input);
312 com.google.protobuf.CodedInputStream input,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws java.io.IOException {
315 return com.google.protobuf.GeneratedMessage
316 .parseWithIOException(PARSER, input, extensionRegistry);
322 return DEFAULT_INSTANCE.toBuilder();
324 public static Builder newBuilder(com.google.ortools.constraintsolver.RegularLimitParameters prototype) {
325 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
329 return this == DEFAULT_INSTANCE
335 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
347 public static final class Builder
extends
348 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
351 public static final com.google.protobuf.Descriptors.Descriptor
353 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
357 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
359 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_fieldAccessorTable
360 .ensureFieldAccessorsInitialized(
361 com.google.ortools.constraintsolver.RegularLimitParameters.class, com.google.ortools.constraintsolver.RegularLimitParameters.Builder.class);
370 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
382 smartTimeCheck_ =
false;
388 public com.google.protobuf.Descriptors.Descriptor
390 return com.google.ortools.constraintsolver.SearchLimitProtobuf.internal_static_operations_research_RegularLimitParameters_descriptor;
395 return com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance();
402 throw newUninitializedMessageException(result);
410 if (bitField0_ != 0) { buildPartial0(result); }
415 private void buildPartial0(com.google.ortools.constraintsolver.RegularLimitParameters result) {
416 int from_bitField0_ = bitField0_;
417 if (((from_bitField0_ & 0x00000001) != 0)) {
418 result.time_ = time_;
420 if (((from_bitField0_ & 0x00000002) != 0)) {
421 result.branches_ = branches_;
423 if (((from_bitField0_ & 0x00000004) != 0)) {
424 result.failures_ = failures_;
426 if (((from_bitField0_ & 0x00000008) != 0)) {
427 result.solutions_ = solutions_;
429 if (((from_bitField0_ & 0x00000010) != 0)) {
430 result.smartTimeCheck_ = smartTimeCheck_;
432 if (((from_bitField0_ & 0x00000020) != 0)) {
433 result.cumulative_ = cumulative_;
438 public Builder
mergeFrom(com.google.protobuf.Message other) {
439 if (other instanceof com.google.ortools.constraintsolver.RegularLimitParameters) {
440 return mergeFrom((com.google.ortools.constraintsolver.RegularLimitParameters)other);
442 super.mergeFrom(other);
447 public Builder
mergeFrom(com.google.ortools.constraintsolver.RegularLimitParameters other) {
448 if (other == com.google.ortools.constraintsolver.RegularLimitParameters.getDefaultInstance())
return this;
449 if (other.getTime() != 0L) {
452 if (other.getBranches() != 0L) {
455 if (other.getFailures() != 0L) {
458 if (other.getSolutions() != 0L) {
461 if (other.getSmartTimeCheck() !=
false) {
464 if (other.getCumulative() !=
false) {
467 this.mergeUnknownFields(other.getUnknownFields());
479 com.google.protobuf.CodedInputStream input,
480 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
481 throws java.io.IOException {
482 if (extensionRegistry ==
null) {
483 throw new java.lang.NullPointerException();
486 boolean done =
false;
488 int tag = input.readTag();
494 time_ = input.readInt64();
495 bitField0_ |= 0x00000001;
499 branches_ = input.readInt64();
500 bitField0_ |= 0x00000002;
504 failures_ = input.readInt64();
505 bitField0_ |= 0x00000004;
509 solutions_ = input.readInt64();
510 bitField0_ |= 0x00000008;
514 smartTimeCheck_ = input.readBool();
515 bitField0_ |= 0x00000010;
519 cumulative_ = input.readBool();
520 bitField0_ |= 0x00000020;
524 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
531 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
532 throw e.unwrapIOException();
538 private int bitField0_;
565 bitField0_ |= 0x00000001;
578 bitField0_ = (bitField0_ & ~0x00000001);
584 private long branches_ ;
601 bitField0_ |= 0x00000002;
610 bitField0_ = (bitField0_ & ~0x00000002);
616 private long failures_ ;
633 bitField0_ |= 0x00000004;
642 bitField0_ = (bitField0_ & ~0x00000004);
648 private long solutions_ ;
665 bitField0_ |= 0x00000008;
674 bitField0_ = (bitField0_ & ~0x00000008);
680 private boolean smartTimeCheck_ ;
687 return smartTimeCheck_;
696 smartTimeCheck_ = value;
697 bitField0_ |= 0x00000010;
706 bitField0_ = (bitField0_ & ~0x00000010);
707 smartTimeCheck_ =
false;
712 private boolean cumulative_ ;
729 bitField0_ |= 0x00000020;
738 bitField0_ = (bitField0_ & ~0x00000020);
750 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RegularLimitParameters();
754 return DEFAULT_INSTANCE;
761 com.google.protobuf.CodedInputStream input,
762 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
763 throws com.google.protobuf.InvalidProtocolBufferException {
766 builder.mergeFrom(input, extensionRegistry);
767 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
768 throw e.setUnfinishedMessage(builder.buildPartial());
769 }
catch (com.google.protobuf.UninitializedMessageException e) {
770 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
771 }
catch (java.io.IOException e) {
772 throw new com.google.protobuf.InvalidProtocolBufferException(e)
773 .setUnfinishedMessage(builder.buildPartial());
775 return builder.buildPartial();
779 public static com.google.protobuf.Parser<RegularLimitParameters>
parser() {
790 return DEFAULT_INSTANCE;