5package com.google.ortools.constraintsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 private SearchStatistics(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SearchStatistics_descriptor;
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SearchStatistics_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.constraintsolver.SearchStatistics.class, com.google.ortools.constraintsolver.SearchStatistics.Builder.class);
48 private int bitField0_;
61 return ((bitField0_ & 0x00000001) != 0);
73 return localSearchStatistics_ ==
null ? com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance() : localSearchStatistics_;
84 return localSearchStatistics_ ==
null ? com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance() : localSearchStatistics_;
99 return ((bitField0_ & 0x00000002) != 0);
111 return constraintSolverStatistics_ ==
null ? com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance() : constraintSolverStatistics_;
122 return constraintSolverStatistics_ ==
null ? com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance() : constraintSolverStatistics_;
125 private byte memoizedIsInitialized = -1;
132 memoizedIsInitialized = 1;
137 public void writeTo(com.google.protobuf.CodedOutputStream output)
138 throws java.io.IOException {
139 if (((bitField0_ & 0x00000001) != 0)) {
142 if (((bitField0_ & 0x00000002) != 0)) {
145 getUnknownFields().writeTo(output);
150 int size = memoizedSize;
151 if (size != -1)
return size;
154 if (((bitField0_ & 0x00000001) != 0)) {
155 size += com.google.protobuf.CodedOutputStream
158 if (((bitField0_ & 0x00000002) != 0)) {
159 size += com.google.protobuf.CodedOutputStream
162 size += getUnknownFields().getSerializedSize();
168 public boolean equals(
final java.lang.Object obj) {
172 if (!(obj instanceof com.google.ortools.constraintsolver.SearchStatistics)) {
173 return super.equals(obj);
187 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
193 if (memoizedHashCode != 0) {
194 return memoizedHashCode;
206 hash = (29 * hash) + getUnknownFields().hashCode();
207 memoizedHashCode = hash;
212 java.nio.ByteBuffer data)
213 throws com.google.protobuf.InvalidProtocolBufferException {
214 return PARSER.parseFrom(data);
217 java.nio.ByteBuffer data,
218 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
219 throws com.google.protobuf.InvalidProtocolBufferException {
220 return PARSER.parseFrom(data, extensionRegistry);
223 com.google.protobuf.ByteString data)
224 throws com.google.protobuf.InvalidProtocolBufferException {
225 return PARSER.parseFrom(data);
228 com.google.protobuf.ByteString data,
229 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
230 throws com.google.protobuf.InvalidProtocolBufferException {
231 return PARSER.parseFrom(data, extensionRegistry);
234 throws com.google.protobuf.InvalidProtocolBufferException {
235 return PARSER.parseFrom(data);
239 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
240 throws com.google.protobuf.InvalidProtocolBufferException {
241 return PARSER.parseFrom(data, extensionRegistry);
244 throws java.io.IOException {
245 return com.google.protobuf.GeneratedMessage
246 .parseWithIOException(PARSER, input);
249 java.io.InputStream input,
250 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
251 throws java.io.IOException {
252 return com.google.protobuf.GeneratedMessage
253 .parseWithIOException(PARSER, input, extensionRegistry);
257 throws java.io.IOException {
258 return com.google.protobuf.GeneratedMessage
259 .parseDelimitedWithIOException(PARSER, input);
263 java.io.InputStream input,
264 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265 throws java.io.IOException {
266 return com.google.protobuf.GeneratedMessage
267 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
270 com.google.protobuf.CodedInputStream input)
271 throws java.io.IOException {
272 return com.google.protobuf.GeneratedMessage
273 .parseWithIOException(PARSER, input);
276 com.google.protobuf.CodedInputStream input,
277 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278 throws java.io.IOException {
279 return com.google.protobuf.GeneratedMessage
280 .parseWithIOException(PARSER, input, extensionRegistry);
288 public static Builder newBuilder(com.google.ortools.constraintsolver.SearchStatistics prototype) {
293 return this == DEFAULT_INSTANCE
299 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
311 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
314 public static final com.google.protobuf.Descriptors.Descriptor
316 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SearchStatistics_descriptor;
320 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
322 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SearchStatistics_fieldAccessorTable
323 .ensureFieldAccessorsInitialized(
324 com.google.ortools.constraintsolver.SearchStatistics.class, com.google.ortools.constraintsolver.SearchStatistics.Builder.class);
329 maybeForceBuilderInitialization();
333 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
335 maybeForceBuilderInitialization();
337 private void maybeForceBuilderInitialization() {
338 if (com.google.protobuf.GeneratedMessage
339 .alwaysUseFieldBuilders) {
340 getLocalSearchStatisticsFieldBuilder();
341 getConstraintSolverStatisticsFieldBuilder();
348 localSearchStatistics_ =
null;
349 if (localSearchStatisticsBuilder_ !=
null) {
350 localSearchStatisticsBuilder_.dispose();
351 localSearchStatisticsBuilder_ =
null;
353 constraintSolverStatistics_ =
null;
354 if (constraintSolverStatisticsBuilder_ !=
null) {
355 constraintSolverStatisticsBuilder_.dispose();
356 constraintSolverStatisticsBuilder_ =
null;
362 public com.google.protobuf.Descriptors.Descriptor
364 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_SearchStatistics_descriptor;
369 return com.google.ortools.constraintsolver.SearchStatistics.getDefaultInstance();
376 throw newUninitializedMessageException(result);
384 if (bitField0_ != 0) { buildPartial0(result); }
389 private void buildPartial0(com.google.ortools.constraintsolver.SearchStatistics result) {
390 int from_bitField0_ = bitField0_;
391 int to_bitField0_ = 0;
392 if (((from_bitField0_ & 0x00000001) != 0)) {
393 result.localSearchStatistics_ = localSearchStatisticsBuilder_ ==
null
394 ? localSearchStatistics_
395 : localSearchStatisticsBuilder_.build();
396 to_bitField0_ |= 0x00000001;
398 if (((from_bitField0_ & 0x00000002) != 0)) {
399 result.constraintSolverStatistics_ = constraintSolverStatisticsBuilder_ ==
null
400 ? constraintSolverStatistics_
401 : constraintSolverStatisticsBuilder_.build();
402 to_bitField0_ |= 0x00000002;
404 result.bitField0_ |= to_bitField0_;
409 if (other instanceof com.google.ortools.constraintsolver.SearchStatistics) {
410 return mergeFrom((com.google.ortools.constraintsolver.SearchStatistics)other);
412 super.mergeFrom(other);
418 if (other == com.google.ortools.constraintsolver.SearchStatistics.getDefaultInstance())
return this;
419 if (other.hasLocalSearchStatistics()) {
422 if (other.hasConstraintSolverStatistics()) {
425 this.mergeUnknownFields(other.getUnknownFields());
437 com.google.protobuf.CodedInputStream input,
438 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
439 throws java.io.IOException {
440 if (extensionRegistry ==
null) {
441 throw new java.lang.NullPointerException();
444 boolean done =
false;
446 int tag = input.readTag();
453 getLocalSearchStatisticsFieldBuilder().getBuilder(),
455 bitField0_ |= 0x00000001;
460 getConstraintSolverStatisticsFieldBuilder().getBuilder(),
462 bitField0_ |= 0x00000002;
466 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
473 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
474 throw e.unwrapIOException();
480 private int bitField0_;
483 private com.google.protobuf.SingleFieldBuilder<
484 com.google.ortools.constraintsolver.LocalSearchStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatisticsOrBuilder> localSearchStatisticsBuilder_;
494 return ((bitField0_ & 0x00000001) != 0);
505 if (localSearchStatisticsBuilder_ ==
null) {
506 return localSearchStatistics_ ==
null ? com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance() : localSearchStatistics_;
508 return localSearchStatisticsBuilder_.getMessage();
519 if (localSearchStatisticsBuilder_ ==
null) {
521 throw new NullPointerException();
523 localSearchStatistics_ = value;
525 localSearchStatisticsBuilder_.setMessage(value);
527 bitField0_ |= 0x00000001;
539 com.google.ortools.constraintsolver.LocalSearchStatistics.Builder builderForValue) {
540 if (localSearchStatisticsBuilder_ ==
null) {
541 localSearchStatistics_ = builderForValue.build();
543 localSearchStatisticsBuilder_.setMessage(builderForValue.build());
545 bitField0_ |= 0x00000001;
557 if (localSearchStatisticsBuilder_ ==
null) {
558 if (((bitField0_ & 0x00000001) != 0) &&
559 localSearchStatistics_ !=
null &&
560 localSearchStatistics_ != com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance()) {
563 localSearchStatistics_ = value;
566 localSearchStatisticsBuilder_.mergeFrom(value);
568 if (localSearchStatistics_ !=
null) {
569 bitField0_ |= 0x00000001;
582 bitField0_ = (bitField0_ & ~0x00000001);
583 localSearchStatistics_ =
null;
584 if (localSearchStatisticsBuilder_ !=
null) {
585 localSearchStatisticsBuilder_.dispose();
586 localSearchStatisticsBuilder_ =
null;
599 bitField0_ |= 0x00000001;
601 return getLocalSearchStatisticsFieldBuilder().getBuilder();
611 if (localSearchStatisticsBuilder_ !=
null) {
612 return localSearchStatisticsBuilder_.getMessageOrBuilder();
614 return localSearchStatistics_ ==
null ?
615 com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance() : localSearchStatistics_;
625 private com.google.protobuf.SingleFieldBuilder<
626 com.google.ortools.constraintsolver.LocalSearchStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatisticsOrBuilder>
627 getLocalSearchStatisticsFieldBuilder() {
628 if (localSearchStatisticsBuilder_ ==
null) {
629 localSearchStatisticsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
630 com.google.ortools.constraintsolver.LocalSearchStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatisticsOrBuilder>(
632 getParentForChildren(),
634 localSearchStatistics_ =
null;
636 return localSearchStatisticsBuilder_;
640 private com.google.protobuf.SingleFieldBuilder<
641 com.google.ortools.constraintsolver.ConstraintSolverStatistics, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder, com.google.ortools.constraintsolver.ConstraintSolverStatisticsOrBuilder> constraintSolverStatisticsBuilder_;
651 return ((bitField0_ & 0x00000002) != 0);
662 if (constraintSolverStatisticsBuilder_ ==
null) {
663 return constraintSolverStatistics_ ==
null ? com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance() : constraintSolverStatistics_;
665 return constraintSolverStatisticsBuilder_.getMessage();
676 if (constraintSolverStatisticsBuilder_ ==
null) {
678 throw new NullPointerException();
680 constraintSolverStatistics_ = value;
682 constraintSolverStatisticsBuilder_.setMessage(value);
684 bitField0_ |= 0x00000002;
696 com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder builderForValue) {
697 if (constraintSolverStatisticsBuilder_ ==
null) {
698 constraintSolverStatistics_ = builderForValue.build();
700 constraintSolverStatisticsBuilder_.setMessage(builderForValue.build());
702 bitField0_ |= 0x00000002;
714 if (constraintSolverStatisticsBuilder_ ==
null) {
715 if (((bitField0_ & 0x00000002) != 0) &&
716 constraintSolverStatistics_ !=
null &&
717 constraintSolverStatistics_ != com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance()) {
720 constraintSolverStatistics_ = value;
723 constraintSolverStatisticsBuilder_.mergeFrom(value);
725 if (constraintSolverStatistics_ !=
null) {
726 bitField0_ |= 0x00000002;
739 bitField0_ = (bitField0_ & ~0x00000002);
740 constraintSolverStatistics_ =
null;
741 if (constraintSolverStatisticsBuilder_ !=
null) {
742 constraintSolverStatisticsBuilder_.dispose();
743 constraintSolverStatisticsBuilder_ =
null;
756 bitField0_ |= 0x00000002;
758 return getConstraintSolverStatisticsFieldBuilder().getBuilder();
768 if (constraintSolverStatisticsBuilder_ !=
null) {
769 return constraintSolverStatisticsBuilder_.getMessageOrBuilder();
771 return constraintSolverStatistics_ ==
null ?
772 com.google.ortools.constraintsolver.ConstraintSolverStatistics.getDefaultInstance() : constraintSolverStatistics_;
782 private com.google.protobuf.SingleFieldBuilder<
783 com.google.ortools.constraintsolver.ConstraintSolverStatistics, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder, com.google.ortools.constraintsolver.ConstraintSolverStatisticsOrBuilder>
784 getConstraintSolverStatisticsFieldBuilder() {
785 if (constraintSolverStatisticsBuilder_ ==
null) {
786 constraintSolverStatisticsBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
787 com.google.ortools.constraintsolver.ConstraintSolverStatistics, com.google.ortools.constraintsolver.ConstraintSolverStatistics.Builder, com.google.ortools.constraintsolver.ConstraintSolverStatisticsOrBuilder>(
789 getParentForChildren(),
791 constraintSolverStatistics_ =
null;
793 return constraintSolverStatisticsBuilder_;
802 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SearchStatistics();
806 return DEFAULT_INSTANCE;
813 com.google.protobuf.CodedInputStream input,
814 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
815 throws com.google.protobuf.InvalidProtocolBufferException {
818 builder.mergeFrom(input, extensionRegistry);
819 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
820 throw e.setUnfinishedMessage(builder.buildPartial());
821 }
catch (com.google.protobuf.UninitializedMessageException e) {
822 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
823 }
catch (java.io.IOException e) {
824 throw new com.google.protobuf.InvalidProtocolBufferException(e)
825 .setUnfinishedMessage(builder.buildPartial());
827 return builder.buildPartial();
842 return DEFAULT_INSTANCE;