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,
33 firstSolutionStatistics_ = java.util.Collections.emptyList();
34 localSearchOperatorStatistics_ = java.util.Collections.emptyList();
35 localSearchFilterStatistics_ = java.util.Collections.emptyList();
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.LocalSearchStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.Builder.class);
53 com.google.protobuf.MessageOrBuilder {
72 com.google.protobuf.ByteString
93 com.google.protobuf.GeneratedMessage implements
96 private static final long serialVersionUID = 0L;
98 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
99 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
114 public static final com.google.protobuf.Descriptors.Descriptor
116 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_FirstSolutionStatistics_descriptor;
120 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
122 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_FirstSolutionStatistics_fieldAccessorTable
123 .ensureFieldAccessorsInitialized(
124 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder.class);
128 @SuppressWarnings(
"serial")
129 private volatile java.lang.Object strategy_ = "";
140 java.lang.Object ref = strategy_;
141 if (ref instanceof java.lang.String) {
142 return (java.lang.String) ref;
144 com.google.protobuf.ByteString bs =
145 (com.google.protobuf.ByteString) ref;
146 java.lang.String s = bs.toStringUtf8();
160 public com.google.protobuf.ByteString
162 java.lang.Object ref = strategy_;
163 if (ref instanceof java.lang.String) {
164 com.google.protobuf.ByteString b =
165 com.google.protobuf.ByteString.copyFromUtf8(
166 (java.lang.String) ref);
170 return (com.google.protobuf.ByteString) ref;
175 private double durationSeconds_ = 0D;
186 return durationSeconds_;
189 private byte memoizedIsInitialized = -1;
196 memoizedIsInitialized = 1;
201 public void writeTo(com.google.protobuf.CodedOutputStream output)
202 throws java.io.IOException {
203 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(strategy_)) {
204 com.google.protobuf.GeneratedMessage.writeString(output, 1, strategy_);
206 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
207 output.writeDouble(2, durationSeconds_);
209 getUnknownFields().writeTo(output);
214 int size = memoizedSize;
215 if (size != -1)
return size;
218 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(strategy_)) {
219 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, strategy_);
221 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
222 size += com.google.protobuf.CodedOutputStream
223 .computeDoubleSize(2, durationSeconds_);
225 size += getUnknownFields().getSerializedSize();
231 public boolean equals(
final java.lang.Object obj) {
235 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics)) {
236 return super.equals(obj);
243 != java.lang.Double.doubleToLongBits(
245 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
251 if (memoizedHashCode != 0) {
252 return memoizedHashCode;
259 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
261 hash = (29 * hash) + getUnknownFields().hashCode();
262 memoizedHashCode = hash;
267 java.nio.ByteBuffer data)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data);
272 java.nio.ByteBuffer data,
273 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
274 throws com.google.protobuf.InvalidProtocolBufferException {
275 return PARSER.parseFrom(data, extensionRegistry);
278 com.google.protobuf.ByteString data)
279 throws com.google.protobuf.InvalidProtocolBufferException {
280 return PARSER.parseFrom(data);
283 com.google.protobuf.ByteString data,
284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
285 throws com.google.protobuf.InvalidProtocolBufferException {
286 return PARSER.parseFrom(data, extensionRegistry);
289 throws com.google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data);
294 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
295 throws com.google.protobuf.InvalidProtocolBufferException {
296 return PARSER.parseFrom(data, extensionRegistry);
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseWithIOException(PARSER, input);
304 java.io.InputStream input,
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input, extensionRegistry);
312 throws java.io.IOException {
313 return com.google.protobuf.GeneratedMessage
314 .parseDelimitedWithIOException(PARSER, input);
318 java.io.InputStream input,
319 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessage
322 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
325 com.google.protobuf.CodedInputStream input)
326 throws java.io.IOException {
327 return com.google.protobuf.GeneratedMessage
328 .parseWithIOException(PARSER, input);
331 com.google.protobuf.CodedInputStream input,
332 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
333 throws java.io.IOException {
334 return com.google.protobuf.GeneratedMessage
335 .parseWithIOException(PARSER, input, extensionRegistry);
343 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics prototype) {
348 return this == DEFAULT_INSTANCE
354 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
366 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
369 public static final com.google.protobuf.Descriptors.Descriptor
371 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_FirstSolutionStatistics_descriptor;
375 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
377 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_FirstSolutionStatistics_fieldAccessorTable
378 .ensureFieldAccessorsInitialized(
379 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder.class);
388 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
397 durationSeconds_ = 0D;
402 public com.google.protobuf.Descriptors.Descriptor
404 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_FirstSolutionStatistics_descriptor;
409 return com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.getDefaultInstance();
416 throw newUninitializedMessageException(result);
424 if (bitField0_ != 0) { buildPartial0(result); }
429 private void buildPartial0(com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics result) {
430 int from_bitField0_ = bitField0_;
431 if (((from_bitField0_ & 0x00000001) != 0)) {
432 result.strategy_ = strategy_;
434 if (((from_bitField0_ & 0x00000002) != 0)) {
435 result.durationSeconds_ = durationSeconds_;
441 if (other instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics) {
442 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics)other);
444 super.mergeFrom(other);
449 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics other) {
450 if (other == com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.getDefaultInstance())
return this;
451 if (!other.getStrategy().isEmpty()) {
452 strategy_ = other.strategy_;
453 bitField0_ |= 0x00000001;
456 if (other.getDurationSeconds() != 0D) {
459 this.mergeUnknownFields(other.getUnknownFields());
471 com.google.protobuf.CodedInputStream input,
472 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
473 throws java.io.IOException {
474 if (extensionRegistry ==
null) {
475 throw new java.lang.NullPointerException();
478 boolean done =
false;
480 int tag = input.readTag();
486 strategy_ = input.readStringRequireUtf8();
487 bitField0_ |= 0x00000001;
491 durationSeconds_ = input.readDouble();
492 bitField0_ |= 0x00000002;
496 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
503 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
504 throw e.unwrapIOException();
510 private int bitField0_;
512 private java.lang.Object strategy_ =
"";
522 java.lang.Object ref = strategy_;
523 if (!(ref instanceof java.lang.String)) {
524 com.google.protobuf.ByteString bs =
525 (com.google.protobuf.ByteString) ref;
526 java.lang.String s = bs.toStringUtf8();
530 return (java.lang.String) ref;
541 public com.google.protobuf.ByteString
543 java.lang.Object ref = strategy_;
544 if (ref instanceof String) {
545 com.google.protobuf.ByteString b =
546 com.google.protobuf.ByteString.copyFromUtf8(
547 (java.lang.String) ref);
551 return (com.google.protobuf.ByteString) ref;
564 java.lang.String value) {
565 if (value ==
null) {
throw new NullPointerException(); }
567 bitField0_ |= 0x00000001;
581 bitField0_ = (bitField0_ & ~0x00000001);
595 com.google.protobuf.ByteString value) {
596 if (value ==
null) {
throw new NullPointerException(); }
597 checkByteStringIsUtf8(value);
599 bitField0_ |= 0x00000001;
604 private double durationSeconds_ ;
615 return durationSeconds_;
628 durationSeconds_ = value;
629 bitField0_ |= 0x00000002;
642 bitField0_ = (bitField0_ & ~0x00000002);
643 durationSeconds_ = 0D;
654 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics();
658 return DEFAULT_INSTANCE;
665 com.google.protobuf.CodedInputStream input,
666 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
667 throws com.google.protobuf.InvalidProtocolBufferException {
670 builder.
mergeFrom(input, extensionRegistry);
671 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
673 }
catch (com.google.protobuf.UninitializedMessageException e) {
674 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
675 }
catch (java.io.IOException e) {
676 throw new com.google.protobuf.InvalidProtocolBufferException(e)
694 return DEFAULT_INSTANCE;
701 com.google.protobuf.MessageOrBuilder {
720 com.google.protobuf.ByteString
771 com.google.protobuf.GeneratedMessage implements
774 private static final long serialVersionUID = 0L;
776 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
777 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
789 localSearchOperator_ =
"";
792 public static final com.google.protobuf.Descriptors.Descriptor
794 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchOperatorStatistics_descriptor;
798 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
800 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchOperatorStatistics_fieldAccessorTable
801 .ensureFieldAccessorsInitialized(
802 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder.class);
806 @SuppressWarnings(
"serial")
807 private volatile java.lang.Object localSearchOperator_ = "";
818 java.lang.Object ref = localSearchOperator_;
819 if (ref instanceof java.lang.String) {
820 return (java.lang.String) ref;
822 com.google.protobuf.ByteString bs =
823 (com.google.protobuf.ByteString) ref;
824 java.lang.String s = bs.toStringUtf8();
825 localSearchOperator_ = s;
838 public com.google.protobuf.ByteString
840 java.lang.Object ref = localSearchOperator_;
841 if (ref instanceof java.lang.String) {
842 com.google.protobuf.ByteString b =
843 com.google.protobuf.ByteString.copyFromUtf8(
844 (java.lang.String) ref);
845 localSearchOperator_ = b;
848 return (com.google.protobuf.ByteString) ref;
853 private long numNeighbors_ = 0L;
864 return numNeighbors_;
868 private long numFilteredNeighbors_ = 0L;
879 return numFilteredNeighbors_;
883 private long numAcceptedNeighbors_ = 0L;
894 return numAcceptedNeighbors_;
898 private double durationSeconds_ = 0D;
909 return durationSeconds_;
912 private byte memoizedIsInitialized = -1;
919 memoizedIsInitialized = 1;
924 public void writeTo(com.google.protobuf.CodedOutputStream output)
925 throws java.io.IOException {
926 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(localSearchOperator_)) {
927 com.google.protobuf.GeneratedMessage.writeString(output, 1, localSearchOperator_);
929 if (numNeighbors_ != 0L) {
930 output.writeInt64(2, numNeighbors_);
932 if (numFilteredNeighbors_ != 0L) {
933 output.writeInt64(3, numFilteredNeighbors_);
935 if (numAcceptedNeighbors_ != 0L) {
936 output.writeInt64(4, numAcceptedNeighbors_);
938 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
939 output.writeDouble(5, durationSeconds_);
941 getUnknownFields().writeTo(output);
946 int size = memoizedSize;
947 if (size != -1)
return size;
950 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(localSearchOperator_)) {
951 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, localSearchOperator_);
953 if (numNeighbors_ != 0L) {
954 size += com.google.protobuf.CodedOutputStream
955 .computeInt64Size(2, numNeighbors_);
957 if (numFilteredNeighbors_ != 0L) {
958 size += com.google.protobuf.CodedOutputStream
959 .computeInt64Size(3, numFilteredNeighbors_);
961 if (numAcceptedNeighbors_ != 0L) {
962 size += com.google.protobuf.CodedOutputStream
963 .computeInt64Size(4, numAcceptedNeighbors_);
965 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
966 size += com.google.protobuf.CodedOutputStream
967 .computeDoubleSize(5, durationSeconds_);
969 size += getUnknownFields().getSerializedSize();
975 public boolean equals(
final java.lang.Object obj) {
979 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics)) {
980 return super.equals(obj);
993 != java.lang.Double.doubleToLongBits(
995 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
1001 if (memoizedHashCode != 0) {
1002 return memoizedHashCode;
1009 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1012 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1015 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1018 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
1020 hash = (29 * hash) + getUnknownFields().hashCode();
1021 memoizedHashCode = hash;
1026 java.nio.ByteBuffer data)
1027 throws com.google.protobuf.InvalidProtocolBufferException {
1031 java.nio.ByteBuffer data,
1032 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1033 throws com.google.protobuf.InvalidProtocolBufferException {
1034 return PARSER.
parseFrom(data, extensionRegistry);
1037 com.google.protobuf.ByteString data)
1038 throws com.google.protobuf.InvalidProtocolBufferException {
1042 com.google.protobuf.ByteString data,
1043 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1044 throws com.google.protobuf.InvalidProtocolBufferException {
1045 return PARSER.
parseFrom(data, extensionRegistry);
1048 throws com.google.protobuf.InvalidProtocolBufferException {
1053 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1054 throws com.google.protobuf.InvalidProtocolBufferException {
1055 return PARSER.
parseFrom(data, extensionRegistry);
1058 throws java.io.IOException {
1059 return com.google.protobuf.GeneratedMessage
1060 .parseWithIOException(PARSER, input);
1063 java.io.InputStream input,
1064 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1065 throws java.io.IOException {
1066 return com.google.protobuf.GeneratedMessage
1067 .parseWithIOException(PARSER, input, extensionRegistry);
1071 throws java.io.IOException {
1072 return com.google.protobuf.GeneratedMessage
1073 .parseDelimitedWithIOException(PARSER, input);
1077 java.io.InputStream input,
1078 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1079 throws java.io.IOException {
1080 return com.google.protobuf.GeneratedMessage
1081 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
1084 com.google.protobuf.CodedInputStream input)
1085 throws java.io.IOException {
1086 return com.google.protobuf.GeneratedMessage
1087 .parseWithIOException(PARSER, input);
1090 com.google.protobuf.CodedInputStream input,
1091 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1092 throws java.io.IOException {
1093 return com.google.protobuf.GeneratedMessage
1094 .parseWithIOException(PARSER, input, extensionRegistry);
1102 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics prototype) {
1107 return this == DEFAULT_INSTANCE
1113 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1125 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1128 public static final com.google.protobuf.Descriptors.Descriptor
1130 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchOperatorStatistics_descriptor;
1134 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1136 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchOperatorStatistics_fieldAccessorTable
1137 .ensureFieldAccessorsInitialized(
1138 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder.class);
1147 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1155 localSearchOperator_ =
"";
1157 numFilteredNeighbors_ = 0L;
1158 numAcceptedNeighbors_ = 0L;
1159 durationSeconds_ = 0D;
1164 public com.google.protobuf.Descriptors.Descriptor
1166 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchOperatorStatistics_descriptor;
1171 return com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.getDefaultInstance();
1178 throw newUninitializedMessageException(result);
1186 if (bitField0_ != 0) { buildPartial0(result); }
1191 private void buildPartial0(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics result) {
1192 int from_bitField0_ = bitField0_;
1193 if (((from_bitField0_ & 0x00000001) != 0)) {
1194 result.localSearchOperator_ = localSearchOperator_;
1196 if (((from_bitField0_ & 0x00000002) != 0)) {
1197 result.numNeighbors_ = numNeighbors_;
1199 if (((from_bitField0_ & 0x00000004) != 0)) {
1200 result.numFilteredNeighbors_ = numFilteredNeighbors_;
1202 if (((from_bitField0_ & 0x00000008) != 0)) {
1203 result.numAcceptedNeighbors_ = numAcceptedNeighbors_;
1205 if (((from_bitField0_ & 0x00000010) != 0)) {
1206 result.durationSeconds_ = durationSeconds_;
1212 if (other instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics) {
1213 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics)other);
1215 super.mergeFrom(other);
1220 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics other) {
1221 if (other == com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.getDefaultInstance())
return this;
1222 if (!other.getLocalSearchOperator().isEmpty()) {
1223 localSearchOperator_ = other.localSearchOperator_;
1224 bitField0_ |= 0x00000001;
1227 if (other.getNumNeighbors() != 0L) {
1230 if (other.getNumFilteredNeighbors() != 0L) {
1233 if (other.getNumAcceptedNeighbors() != 0L) {
1236 if (other.getDurationSeconds() != 0D) {
1239 this.mergeUnknownFields(other.getUnknownFields());
1251 com.google.protobuf.CodedInputStream input,
1252 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1253 throws java.io.IOException {
1254 if (extensionRegistry ==
null) {
1255 throw new java.lang.NullPointerException();
1258 boolean done =
false;
1260 int tag = input.readTag();
1266 localSearchOperator_ = input.readStringRequireUtf8();
1267 bitField0_ |= 0x00000001;
1271 numNeighbors_ = input.readInt64();
1272 bitField0_ |= 0x00000002;
1276 numFilteredNeighbors_ = input.readInt64();
1277 bitField0_ |= 0x00000004;
1281 numAcceptedNeighbors_ = input.readInt64();
1282 bitField0_ |= 0x00000008;
1286 durationSeconds_ = input.readDouble();
1287 bitField0_ |= 0x00000010;
1291 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1298 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1299 throw e.unwrapIOException();
1305 private int bitField0_;
1307 private java.lang.Object localSearchOperator_ =
"";
1317 java.lang.Object ref = localSearchOperator_;
1318 if (!(ref instanceof java.lang.String)) {
1319 com.google.protobuf.ByteString bs =
1320 (com.google.protobuf.ByteString) ref;
1321 java.lang.String s = bs.toStringUtf8();
1322 localSearchOperator_ = s;
1325 return (java.lang.String) ref;
1336 public com.google.protobuf.ByteString
1338 java.lang.Object ref = localSearchOperator_;
1339 if (ref instanceof String) {
1340 com.google.protobuf.ByteString b =
1341 com.google.protobuf.ByteString.copyFromUtf8(
1342 (java.lang.String) ref);
1343 localSearchOperator_ = b;
1346 return (com.google.protobuf.ByteString) ref;
1359 java.lang.String value) {
1360 if (value ==
null) {
throw new NullPointerException(); }
1361 localSearchOperator_ = value;
1362 bitField0_ |= 0x00000001;
1376 bitField0_ = (bitField0_ & ~0x00000001);
1390 com.google.protobuf.ByteString value) {
1391 if (value ==
null) {
throw new NullPointerException(); }
1392 checkByteStringIsUtf8(value);
1393 localSearchOperator_ = value;
1394 bitField0_ |= 0x00000001;
1399 private long numNeighbors_ ;
1410 return numNeighbors_;
1423 numNeighbors_ = value;
1424 bitField0_ |= 0x00000002;
1437 bitField0_ = (bitField0_ & ~0x00000002);
1443 private long numFilteredNeighbors_ ;
1454 return numFilteredNeighbors_;
1467 numFilteredNeighbors_ = value;
1468 bitField0_ |= 0x00000004;
1481 bitField0_ = (bitField0_ & ~0x00000004);
1482 numFilteredNeighbors_ = 0L;
1487 private long numAcceptedNeighbors_ ;
1498 return numAcceptedNeighbors_;
1511 numAcceptedNeighbors_ = value;
1512 bitField0_ |= 0x00000008;
1525 bitField0_ = (bitField0_ & ~0x00000008);
1526 numAcceptedNeighbors_ = 0L;
1531 private double durationSeconds_ ;
1542 return durationSeconds_;
1555 durationSeconds_ = value;
1556 bitField0_ |= 0x00000010;
1569 bitField0_ = (bitField0_ & ~0x00000010);
1570 durationSeconds_ = 0D;
1581 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics();
1585 return DEFAULT_INSTANCE;
1592 com.google.protobuf.CodedInputStream input,
1593 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1594 throws com.google.protobuf.InvalidProtocolBufferException {
1597 builder.
mergeFrom(input, extensionRegistry);
1598 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1600 }
catch (com.google.protobuf.UninitializedMessageException e) {
1601 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
1602 }
catch (java.io.IOException e) {
1603 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1621 return DEFAULT_INSTANCE;
1628 com.google.protobuf.MessageOrBuilder {
1647 com.google.protobuf.ByteString
1707 com.google.protobuf.ByteString
1718 com.google.protobuf.GeneratedMessage implements
1721 private static final long serialVersionUID = 0L;
1723 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
1724 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
1736 localSearchFilter_ =
"";
1740 public static final com.google.protobuf.Descriptors.Descriptor
1742 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchFilterStatistics_descriptor;
1746 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1748 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchFilterStatistics_fieldAccessorTable
1749 .ensureFieldAccessorsInitialized(
1750 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder.class);
1754 @SuppressWarnings(
"serial")
1755 private volatile java.lang.Object localSearchFilter_ = "";
1766 java.lang.Object ref = localSearchFilter_;
1767 if (ref instanceof java.lang.String) {
1768 return (java.lang.String) ref;
1770 com.google.protobuf.ByteString bs =
1771 (com.google.protobuf.ByteString) ref;
1772 java.lang.String s = bs.toStringUtf8();
1773 localSearchFilter_ = s;
1786 public com.google.protobuf.ByteString
1788 java.lang.Object ref = localSearchFilter_;
1789 if (ref instanceof java.lang.String) {
1790 com.google.protobuf.ByteString b =
1791 com.google.protobuf.ByteString.copyFromUtf8(
1792 (java.lang.String) ref);
1793 localSearchFilter_ = b;
1796 return (com.google.protobuf.ByteString) ref;
1801 private long numCalls_ = 0L;
1816 private long numRejects_ = 0L;
1831 private double durationSeconds_ = 0D;
1842 return durationSeconds_;
1846 private double numRejectsPerSecond_ = 0D;
1857 return numRejectsPerSecond_;
1861 @SuppressWarnings(
"serial")
1862 private volatile java.lang.Object context_ = "";
1873 java.lang.Object ref = context_;
1874 if (ref instanceof java.lang.String) {
1875 return (java.lang.String) ref;
1877 com.google.protobuf.ByteString bs =
1878 (com.google.protobuf.ByteString) ref;
1879 java.lang.String s = bs.toStringUtf8();
1893 public com.google.protobuf.ByteString
1895 java.lang.Object ref = context_;
1896 if (ref instanceof java.lang.String) {
1897 com.google.protobuf.ByteString b =
1898 com.google.protobuf.ByteString.copyFromUtf8(
1899 (java.lang.String) ref);
1903 return (com.google.protobuf.ByteString) ref;
1907 private byte memoizedIsInitialized = -1;
1914 memoizedIsInitialized = 1;
1919 public void writeTo(com.google.protobuf.CodedOutputStream output)
1920 throws java.io.IOException {
1921 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(localSearchFilter_)) {
1922 com.google.protobuf.GeneratedMessage.writeString(output, 1, localSearchFilter_);
1924 if (numCalls_ != 0L) {
1925 output.writeInt64(2, numCalls_);
1927 if (numRejects_ != 0L) {
1928 output.writeInt64(3, numRejects_);
1930 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
1931 output.writeDouble(4, durationSeconds_);
1933 if (java.lang.Double.doubleToRawLongBits(numRejectsPerSecond_) != 0) {
1934 output.writeDouble(5, numRejectsPerSecond_);
1936 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) {
1937 com.google.protobuf.GeneratedMessage.writeString(output, 6, context_);
1939 getUnknownFields().writeTo(output);
1944 int size = memoizedSize;
1945 if (size != -1)
return size;
1948 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(localSearchFilter_)) {
1949 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, localSearchFilter_);
1951 if (numCalls_ != 0L) {
1952 size += com.google.protobuf.CodedOutputStream
1953 .computeInt64Size(2, numCalls_);
1955 if (numRejects_ != 0L) {
1956 size += com.google.protobuf.CodedOutputStream
1957 .computeInt64Size(3, numRejects_);
1959 if (java.lang.Double.doubleToRawLongBits(durationSeconds_) != 0) {
1960 size += com.google.protobuf.CodedOutputStream
1961 .computeDoubleSize(4, durationSeconds_);
1963 if (java.lang.Double.doubleToRawLongBits(numRejectsPerSecond_) != 0) {
1964 size += com.google.protobuf.CodedOutputStream
1965 .computeDoubleSize(5, numRejectsPerSecond_);
1967 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) {
1968 size += com.google.protobuf.GeneratedMessage.computeStringSize(6, context_);
1970 size += getUnknownFields().getSerializedSize();
1971 memoizedSize = size;
1976 public boolean equals(
final java.lang.Object obj) {
1980 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics)) {
1981 return super.equals(obj);
1992 != java.lang.Double.doubleToLongBits(
1995 != java.lang.Double.doubleToLongBits(
1999 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
2005 if (memoizedHashCode != 0) {
2006 return memoizedHashCode;
2013 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2016 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2019 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2022 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
2025 hash = (53 * hash) +
getContext().hashCode();
2026 hash = (29 * hash) + getUnknownFields().hashCode();
2027 memoizedHashCode = hash;
2032 java.nio.ByteBuffer data)
2033 throws com.google.protobuf.InvalidProtocolBufferException {
2037 java.nio.ByteBuffer data,
2038 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2039 throws com.google.protobuf.InvalidProtocolBufferException {
2040 return PARSER.
parseFrom(data, extensionRegistry);
2043 com.google.protobuf.ByteString data)
2044 throws com.google.protobuf.InvalidProtocolBufferException {
2048 com.google.protobuf.ByteString data,
2049 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2050 throws com.google.protobuf.InvalidProtocolBufferException {
2051 return PARSER.
parseFrom(data, extensionRegistry);
2054 throws com.google.protobuf.InvalidProtocolBufferException {
2059 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2060 throws com.google.protobuf.InvalidProtocolBufferException {
2061 return PARSER.
parseFrom(data, extensionRegistry);
2064 throws java.io.IOException {
2065 return com.google.protobuf.GeneratedMessage
2066 .parseWithIOException(PARSER, input);
2069 java.io.InputStream input,
2070 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2071 throws java.io.IOException {
2072 return com.google.protobuf.GeneratedMessage
2073 .parseWithIOException(PARSER, input, extensionRegistry);
2077 throws java.io.IOException {
2078 return com.google.protobuf.GeneratedMessage
2079 .parseDelimitedWithIOException(PARSER, input);
2083 java.io.InputStream input,
2084 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2085 throws java.io.IOException {
2086 return com.google.protobuf.GeneratedMessage
2087 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
2090 com.google.protobuf.CodedInputStream input)
2091 throws java.io.IOException {
2092 return com.google.protobuf.GeneratedMessage
2093 .parseWithIOException(PARSER, input);
2096 com.google.protobuf.CodedInputStream input,
2097 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2098 throws java.io.IOException {
2099 return com.google.protobuf.GeneratedMessage
2100 .parseWithIOException(PARSER, input, extensionRegistry);
2108 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics prototype) {
2113 return this == DEFAULT_INSTANCE
2119 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2131 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
2134 public static final com.google.protobuf.Descriptors.Descriptor
2136 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchFilterStatistics_descriptor;
2140 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
2142 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchFilterStatistics_fieldAccessorTable
2143 .ensureFieldAccessorsInitialized(
2144 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder.class);
2153 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
2161 localSearchFilter_ =
"";
2164 durationSeconds_ = 0D;
2165 numRejectsPerSecond_ = 0D;
2171 public com.google.protobuf.Descriptors.Descriptor
2173 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_LocalSearchFilterStatistics_descriptor;
2178 return com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.getDefaultInstance();
2185 throw newUninitializedMessageException(result);
2193 if (bitField0_ != 0) { buildPartial0(result); }
2198 private void buildPartial0(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics result) {
2199 int from_bitField0_ = bitField0_;
2200 if (((from_bitField0_ & 0x00000001) != 0)) {
2201 result.localSearchFilter_ = localSearchFilter_;
2203 if (((from_bitField0_ & 0x00000002) != 0)) {
2204 result.numCalls_ = numCalls_;
2206 if (((from_bitField0_ & 0x00000004) != 0)) {
2207 result.numRejects_ = numRejects_;
2209 if (((from_bitField0_ & 0x00000008) != 0)) {
2210 result.durationSeconds_ = durationSeconds_;
2212 if (((from_bitField0_ & 0x00000010) != 0)) {
2213 result.numRejectsPerSecond_ = numRejectsPerSecond_;
2215 if (((from_bitField0_ & 0x00000020) != 0)) {
2216 result.context_ = context_;
2222 if (other instanceof com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics) {
2223 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics)other);
2225 super.mergeFrom(other);
2230 public Builder mergeFrom(com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics other) {
2231 if (other == com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.getDefaultInstance())
return this;
2232 if (!other.getLocalSearchFilter().isEmpty()) {
2233 localSearchFilter_ = other.localSearchFilter_;
2234 bitField0_ |= 0x00000001;
2237 if (other.getNumCalls() != 0L) {
2240 if (other.getNumRejects() != 0L) {
2243 if (other.getDurationSeconds() != 0D) {
2246 if (other.getNumRejectsPerSecond() != 0D) {
2249 if (!other.getContext().isEmpty()) {
2250 context_ = other.context_;
2251 bitField0_ |= 0x00000020;
2254 this.mergeUnknownFields(other.getUnknownFields());
2266 com.google.protobuf.CodedInputStream input,
2267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2268 throws java.io.IOException {
2269 if (extensionRegistry ==
null) {
2270 throw new java.lang.NullPointerException();
2273 boolean done =
false;
2275 int tag = input.readTag();
2281 localSearchFilter_ = input.readStringRequireUtf8();
2282 bitField0_ |= 0x00000001;
2286 numCalls_ = input.readInt64();
2287 bitField0_ |= 0x00000002;
2291 numRejects_ = input.readInt64();
2292 bitField0_ |= 0x00000004;
2296 durationSeconds_ = input.readDouble();
2297 bitField0_ |= 0x00000008;
2301 numRejectsPerSecond_ = input.readDouble();
2302 bitField0_ |= 0x00000010;
2306 context_ = input.readStringRequireUtf8();
2307 bitField0_ |= 0x00000020;
2311 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2318 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2319 throw e.unwrapIOException();
2325 private int bitField0_;
2327 private java.lang.Object localSearchFilter_ =
"";
2337 java.lang.Object ref = localSearchFilter_;
2338 if (!(ref instanceof java.lang.String)) {
2339 com.google.protobuf.ByteString bs =
2340 (com.google.protobuf.ByteString) ref;
2341 java.lang.String s = bs.toStringUtf8();
2342 localSearchFilter_ = s;
2345 return (java.lang.String) ref;
2356 public com.google.protobuf.ByteString
2358 java.lang.Object ref = localSearchFilter_;
2359 if (ref instanceof String) {
2360 com.google.protobuf.ByteString b =
2361 com.google.protobuf.ByteString.copyFromUtf8(
2362 (java.lang.String) ref);
2363 localSearchFilter_ = b;
2366 return (com.google.protobuf.ByteString) ref;
2379 java.lang.String value) {
2380 if (value ==
null) {
throw new NullPointerException(); }
2381 localSearchFilter_ = value;
2382 bitField0_ |= 0x00000001;
2396 bitField0_ = (bitField0_ & ~0x00000001);
2410 com.google.protobuf.ByteString value) {
2411 if (value ==
null) {
throw new NullPointerException(); }
2412 checkByteStringIsUtf8(value);
2413 localSearchFilter_ = value;
2414 bitField0_ |= 0x00000001;
2419 private long numCalls_ ;
2444 bitField0_ |= 0x00000002;
2457 bitField0_ = (bitField0_ & ~0x00000002);
2463 private long numRejects_ ;
2487 numRejects_ = value;
2488 bitField0_ |= 0x00000004;
2501 bitField0_ = (bitField0_ & ~0x00000004);
2507 private double durationSeconds_ ;
2518 return durationSeconds_;
2531 durationSeconds_ = value;
2532 bitField0_ |= 0x00000008;
2545 bitField0_ = (bitField0_ & ~0x00000008);
2546 durationSeconds_ = 0D;
2551 private double numRejectsPerSecond_ ;
2562 return numRejectsPerSecond_;
2575 numRejectsPerSecond_ = value;
2576 bitField0_ |= 0x00000010;
2589 bitField0_ = (bitField0_ & ~0x00000010);
2590 numRejectsPerSecond_ = 0D;
2595 private java.lang.Object context_ =
"";
2605 java.lang.Object ref = context_;
2606 if (!(ref instanceof java.lang.String)) {
2607 com.google.protobuf.ByteString bs =
2608 (com.google.protobuf.ByteString) ref;
2609 java.lang.String s = bs.toStringUtf8();
2613 return (java.lang.String) ref;
2624 public com.google.protobuf.ByteString
2626 java.lang.Object ref = context_;
2627 if (ref instanceof String) {
2628 com.google.protobuf.ByteString b =
2629 com.google.protobuf.ByteString.copyFromUtf8(
2630 (java.lang.String) ref);
2634 return (com.google.protobuf.ByteString) ref;
2647 java.lang.String value) {
2648 if (value ==
null) {
throw new NullPointerException(); }
2650 bitField0_ |= 0x00000020;
2664 bitField0_ = (bitField0_ & ~0x00000020);
2678 com.google.protobuf.ByteString value) {
2679 if (value ==
null) {
throw new NullPointerException(); }
2680 checkByteStringIsUtf8(value);
2682 bitField0_ |= 0x00000020;
2693 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics();
2697 return DEFAULT_INSTANCE;
2704 com.google.protobuf.CodedInputStream input,
2705 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2706 throws com.google.protobuf.InvalidProtocolBufferException {
2709 builder.
mergeFrom(input, extensionRegistry);
2710 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2712 }
catch (com.google.protobuf.UninitializedMessageException e) {
2713 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
2714 }
catch (java.io.IOException e) {
2715 throw new com.google.protobuf.InvalidProtocolBufferException(e)
2733 return DEFAULT_INSTANCE;
2739 @SuppressWarnings(
"serial")
2750 return firstSolutionStatistics_;
2760 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatisticsOrBuilder>
2762 return firstSolutionStatistics_;
2773 return firstSolutionStatistics_.size();
2784 return firstSolutionStatistics_.get(index);
2796 return firstSolutionStatistics_.get(index);
2800 @SuppressWarnings(
"serial")
2811 return localSearchOperatorStatistics_;
2821 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatisticsOrBuilder>
2823 return localSearchOperatorStatistics_;
2834 return localSearchOperatorStatistics_.size();
2845 return localSearchOperatorStatistics_.get(index);
2857 return localSearchOperatorStatistics_.get(index);
2861 private long totalNumNeighbors_ = 0L;
2872 return totalNumNeighbors_;
2876 private long totalNumFilteredNeighbors_ = 0L;
2883 return totalNumFilteredNeighbors_;
2887 private long totalNumAcceptedNeighbors_ = 0L;
2894 return totalNumAcceptedNeighbors_;
2898 @SuppressWarnings(
"serial")
2909 return localSearchFilterStatistics_;
2919 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatisticsOrBuilder>
2921 return localSearchFilterStatistics_;
2932 return localSearchFilterStatistics_.size();
2943 return localSearchFilterStatistics_.get(index);
2955 return localSearchFilterStatistics_.get(index);
2958 private byte memoizedIsInitialized = -1;
2965 memoizedIsInitialized = 1;
2970 public void writeTo(com.google.protobuf.CodedOutputStream output)
2971 throws java.io.IOException {
2972 for (
int i = 0; i < localSearchOperatorStatistics_.size(); i++) {
2973 output.writeMessage(1, localSearchOperatorStatistics_.get(i));
2975 for (
int i = 0; i < localSearchFilterStatistics_.size(); i++) {
2976 output.writeMessage(2, localSearchFilterStatistics_.get(i));
2978 if (totalNumNeighbors_ != 0L) {
2979 output.writeInt64(3, totalNumNeighbors_);
2981 if (totalNumFilteredNeighbors_ != 0L) {
2982 output.writeInt64(4, totalNumFilteredNeighbors_);
2984 if (totalNumAcceptedNeighbors_ != 0L) {
2985 output.writeInt64(5, totalNumAcceptedNeighbors_);
2987 for (
int i = 0; i < firstSolutionStatistics_.size(); i++) {
2988 output.writeMessage(6, firstSolutionStatistics_.get(i));
2990 getUnknownFields().writeTo(output);
2995 int size = memoizedSize;
2996 if (size != -1)
return size;
2999 for (
int i = 0; i < localSearchOperatorStatistics_.size(); i++) {
3000 size += com.google.protobuf.CodedOutputStream
3001 .computeMessageSize(1, localSearchOperatorStatistics_.get(i));
3003 for (
int i = 0; i < localSearchFilterStatistics_.size(); i++) {
3004 size += com.google.protobuf.CodedOutputStream
3005 .computeMessageSize(2, localSearchFilterStatistics_.get(i));
3007 if (totalNumNeighbors_ != 0L) {
3008 size += com.google.protobuf.CodedOutputStream
3009 .computeInt64Size(3, totalNumNeighbors_);
3011 if (totalNumFilteredNeighbors_ != 0L) {
3012 size += com.google.protobuf.CodedOutputStream
3013 .computeInt64Size(4, totalNumFilteredNeighbors_);
3015 if (totalNumAcceptedNeighbors_ != 0L) {
3016 size += com.google.protobuf.CodedOutputStream
3017 .computeInt64Size(5, totalNumAcceptedNeighbors_);
3019 for (
int i = 0; i < firstSolutionStatistics_.size(); i++) {
3020 size += com.google.protobuf.CodedOutputStream
3021 .computeMessageSize(6, firstSolutionStatistics_.get(i));
3023 size += getUnknownFields().getSerializedSize();
3024 memoizedSize = size;
3029 public boolean equals(
final java.lang.Object obj) {
3033 if (!(obj instanceof com.google.ortools.constraintsolver.LocalSearchStatistics)) {
3034 return super.equals(obj);
3050 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
3056 if (memoizedHashCode != 0) {
3057 return memoizedHashCode;
3070 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
3073 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
3076 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
3082 hash = (29 * hash) + getUnknownFields().hashCode();
3083 memoizedHashCode = hash;
3088 java.nio.ByteBuffer data)
3089 throws com.google.protobuf.InvalidProtocolBufferException {
3093 java.nio.ByteBuffer data,
3094 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3095 throws com.google.protobuf.InvalidProtocolBufferException {
3096 return PARSER.
parseFrom(data, extensionRegistry);
3099 com.google.protobuf.ByteString data)
3100 throws com.google.protobuf.InvalidProtocolBufferException {
3104 com.google.protobuf.ByteString data,
3105 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3106 throws com.google.protobuf.InvalidProtocolBufferException {
3107 return PARSER.
parseFrom(data, extensionRegistry);
3110 throws com.google.protobuf.InvalidProtocolBufferException {
3115 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3116 throws com.google.protobuf.InvalidProtocolBufferException {
3117 return PARSER.
parseFrom(data, extensionRegistry);
3120 throws java.io.IOException {
3121 return com.google.protobuf.GeneratedMessage
3122 .parseWithIOException(PARSER, input);
3125 java.io.InputStream input,
3126 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3127 throws java.io.IOException {
3128 return com.google.protobuf.GeneratedMessage
3129 .parseWithIOException(PARSER, input, extensionRegistry);
3133 throws java.io.IOException {
3134 return com.google.protobuf.GeneratedMessage
3135 .parseDelimitedWithIOException(PARSER, input);
3139 java.io.InputStream input,
3140 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3141 throws java.io.IOException {
3142 return com.google.protobuf.GeneratedMessage
3143 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
3146 com.google.protobuf.CodedInputStream input)
3147 throws java.io.IOException {
3148 return com.google.protobuf.GeneratedMessage
3149 .parseWithIOException(PARSER, input);
3152 com.google.protobuf.CodedInputStream input,
3153 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3154 throws java.io.IOException {
3155 return com.google.protobuf.GeneratedMessage
3156 .parseWithIOException(PARSER, input, extensionRegistry);
3164 public static Builder newBuilder(com.google.ortools.constraintsolver.LocalSearchStatistics prototype) {
3169 return this == DEFAULT_INSTANCE
3175 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3187 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
3190 public static final com.google.protobuf.Descriptors.Descriptor
3192 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_descriptor;
3196 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
3198 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_fieldAccessorTable
3199 .ensureFieldAccessorsInitialized(
3200 com.google.ortools.constraintsolver.LocalSearchStatistics.class, com.google.ortools.constraintsolver.LocalSearchStatistics.Builder.class);
3209 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
3217 if (firstSolutionStatisticsBuilder_ ==
null) {
3218 firstSolutionStatistics_ = java.util.Collections.emptyList();
3220 firstSolutionStatistics_ =
null;
3221 firstSolutionStatisticsBuilder_.clear();
3223 bitField0_ = (bitField0_ & ~0x00000001);
3224 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3225 localSearchOperatorStatistics_ = java.util.Collections.emptyList();
3227 localSearchOperatorStatistics_ =
null;
3228 localSearchOperatorStatisticsBuilder_.clear();
3230 bitField0_ = (bitField0_ & ~0x00000002);
3231 totalNumNeighbors_ = 0L;
3232 totalNumFilteredNeighbors_ = 0L;
3233 totalNumAcceptedNeighbors_ = 0L;
3234 if (localSearchFilterStatisticsBuilder_ ==
null) {
3235 localSearchFilterStatistics_ = java.util.Collections.emptyList();
3237 localSearchFilterStatistics_ =
null;
3238 localSearchFilterStatisticsBuilder_.clear();
3240 bitField0_ = (bitField0_ & ~0x00000020);
3245 public com.google.protobuf.Descriptors.Descriptor
3247 return com.google.ortools.constraintsolver.SearchStats.internal_static_operations_research_LocalSearchStatistics_descriptor;
3252 return com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance();
3259 throw newUninitializedMessageException(result);
3267 buildPartialRepeatedFields(result);
3268 if (bitField0_ != 0) { buildPartial0(result); }
3273 private void buildPartialRepeatedFields(com.google.ortools.constraintsolver.LocalSearchStatistics result) {
3274 if (firstSolutionStatisticsBuilder_ ==
null) {
3275 if (((bitField0_ & 0x00000001) != 0)) {
3276 firstSolutionStatistics_ = java.util.Collections.unmodifiableList(firstSolutionStatistics_);
3277 bitField0_ = (bitField0_ & ~0x00000001);
3279 result.firstSolutionStatistics_ = firstSolutionStatistics_;
3281 result.firstSolutionStatistics_ = firstSolutionStatisticsBuilder_.build();
3283 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3284 if (((bitField0_ & 0x00000002) != 0)) {
3285 localSearchOperatorStatistics_ = java.util.Collections.unmodifiableList(localSearchOperatorStatistics_);
3286 bitField0_ = (bitField0_ & ~0x00000002);
3288 result.localSearchOperatorStatistics_ = localSearchOperatorStatistics_;
3290 result.localSearchOperatorStatistics_ = localSearchOperatorStatisticsBuilder_.build();
3292 if (localSearchFilterStatisticsBuilder_ ==
null) {
3293 if (((bitField0_ & 0x00000020) != 0)) {
3294 localSearchFilterStatistics_ = java.util.Collections.unmodifiableList(localSearchFilterStatistics_);
3295 bitField0_ = (bitField0_ & ~0x00000020);
3297 result.localSearchFilterStatistics_ = localSearchFilterStatistics_;
3299 result.localSearchFilterStatistics_ = localSearchFilterStatisticsBuilder_.build();
3303 private void buildPartial0(com.google.ortools.constraintsolver.LocalSearchStatistics result) {
3304 int from_bitField0_ = bitField0_;
3305 if (((from_bitField0_ & 0x00000004) != 0)) {
3306 result.totalNumNeighbors_ = totalNumNeighbors_;
3308 if (((from_bitField0_ & 0x00000008) != 0)) {
3309 result.totalNumFilteredNeighbors_ = totalNumFilteredNeighbors_;
3311 if (((from_bitField0_ & 0x00000010) != 0)) {
3312 result.totalNumAcceptedNeighbors_ = totalNumAcceptedNeighbors_;
3318 if (other instanceof com.google.ortools.constraintsolver.LocalSearchStatistics) {
3319 return mergeFrom((com.google.ortools.constraintsolver.LocalSearchStatistics)other);
3321 super.mergeFrom(other);
3327 if (other == com.google.ortools.constraintsolver.LocalSearchStatistics.getDefaultInstance())
return this;
3328 if (firstSolutionStatisticsBuilder_ ==
null) {
3329 if (!other.firstSolutionStatistics_.isEmpty()) {
3330 if (firstSolutionStatistics_.isEmpty()) {
3331 firstSolutionStatistics_ = other.firstSolutionStatistics_;
3332 bitField0_ = (bitField0_ & ~0x00000001);
3334 ensureFirstSolutionStatisticsIsMutable();
3335 firstSolutionStatistics_.addAll(other.firstSolutionStatistics_);
3340 if (!other.firstSolutionStatistics_.isEmpty()) {
3341 if (firstSolutionStatisticsBuilder_.isEmpty()) {
3342 firstSolutionStatisticsBuilder_.dispose();
3343 firstSolutionStatisticsBuilder_ =
null;
3344 firstSolutionStatistics_ = other.firstSolutionStatistics_;
3345 bitField0_ = (bitField0_ & ~0x00000001);
3346 firstSolutionStatisticsBuilder_ =
3347 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
3348 getFirstSolutionStatisticsFieldBuilder() :
null;
3350 firstSolutionStatisticsBuilder_.addAllMessages(other.firstSolutionStatistics_);
3354 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3355 if (!other.localSearchOperatorStatistics_.isEmpty()) {
3356 if (localSearchOperatorStatistics_.isEmpty()) {
3357 localSearchOperatorStatistics_ = other.localSearchOperatorStatistics_;
3358 bitField0_ = (bitField0_ & ~0x00000002);
3360 ensureLocalSearchOperatorStatisticsIsMutable();
3361 localSearchOperatorStatistics_.addAll(other.localSearchOperatorStatistics_);
3366 if (!other.localSearchOperatorStatistics_.isEmpty()) {
3367 if (localSearchOperatorStatisticsBuilder_.isEmpty()) {
3368 localSearchOperatorStatisticsBuilder_.dispose();
3369 localSearchOperatorStatisticsBuilder_ =
null;
3370 localSearchOperatorStatistics_ = other.localSearchOperatorStatistics_;
3371 bitField0_ = (bitField0_ & ~0x00000002);
3372 localSearchOperatorStatisticsBuilder_ =
3373 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
3374 getLocalSearchOperatorStatisticsFieldBuilder() :
null;
3376 localSearchOperatorStatisticsBuilder_.addAllMessages(other.localSearchOperatorStatistics_);
3380 if (other.getTotalNumNeighbors() != 0L) {
3383 if (other.getTotalNumFilteredNeighbors() != 0L) {
3386 if (other.getTotalNumAcceptedNeighbors() != 0L) {
3389 if (localSearchFilterStatisticsBuilder_ ==
null) {
3390 if (!other.localSearchFilterStatistics_.isEmpty()) {
3391 if (localSearchFilterStatistics_.isEmpty()) {
3392 localSearchFilterStatistics_ = other.localSearchFilterStatistics_;
3393 bitField0_ = (bitField0_ & ~0x00000020);
3395 ensureLocalSearchFilterStatisticsIsMutable();
3396 localSearchFilterStatistics_.addAll(other.localSearchFilterStatistics_);
3401 if (!other.localSearchFilterStatistics_.isEmpty()) {
3402 if (localSearchFilterStatisticsBuilder_.isEmpty()) {
3403 localSearchFilterStatisticsBuilder_.dispose();
3404 localSearchFilterStatisticsBuilder_ =
null;
3405 localSearchFilterStatistics_ = other.localSearchFilterStatistics_;
3406 bitField0_ = (bitField0_ & ~0x00000020);
3407 localSearchFilterStatisticsBuilder_ =
3408 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
3409 getLocalSearchFilterStatisticsFieldBuilder() :
null;
3411 localSearchFilterStatisticsBuilder_.addAllMessages(other.localSearchFilterStatistics_);
3415 this.mergeUnknownFields(other.getUnknownFields());
3427 com.google.protobuf.CodedInputStream input,
3428 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3429 throws java.io.IOException {
3430 if (extensionRegistry ==
null) {
3431 throw new java.lang.NullPointerException();
3434 boolean done =
false;
3436 int tag = input.readTag();
3444 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.parser(),
3446 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3447 ensureLocalSearchOperatorStatisticsIsMutable();
3448 localSearchOperatorStatistics_.add(m);
3450 localSearchOperatorStatisticsBuilder_.addMessage(m);
3457 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.parser(),
3459 if (localSearchFilterStatisticsBuilder_ ==
null) {
3460 ensureLocalSearchFilterStatisticsIsMutable();
3461 localSearchFilterStatistics_.add(m);
3463 localSearchFilterStatisticsBuilder_.addMessage(m);
3468 totalNumNeighbors_ = input.readInt64();
3469 bitField0_ |= 0x00000004;
3473 totalNumFilteredNeighbors_ = input.readInt64();
3474 bitField0_ |= 0x00000008;
3478 totalNumAcceptedNeighbors_ = input.readInt64();
3479 bitField0_ |= 0x00000010;
3485 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.parser(),
3487 if (firstSolutionStatisticsBuilder_ ==
null) {
3488 ensureFirstSolutionStatisticsIsMutable();
3489 firstSolutionStatistics_.add(m);
3491 firstSolutionStatisticsBuilder_.addMessage(m);
3496 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3503 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
3504 throw e.unwrapIOException();
3510 private int bitField0_;
3512 private java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics> firstSolutionStatistics_ =
3513 java.util.Collections.emptyList();
3514 private void ensureFirstSolutionStatisticsIsMutable() {
3515 if (!((bitField0_ & 0x00000001) != 0)) {
3516 firstSolutionStatistics_ =
new java.util.ArrayList<com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics>(firstSolutionStatistics_);
3517 bitField0_ |= 0x00000001;
3521 private com.google.protobuf.RepeatedFieldBuilder<
3522 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatisticsOrBuilder> firstSolutionStatisticsBuilder_;
3532 if (firstSolutionStatisticsBuilder_ ==
null) {
3533 return java.util.Collections.unmodifiableList(firstSolutionStatistics_);
3535 return firstSolutionStatisticsBuilder_.getMessageList();
3546 if (firstSolutionStatisticsBuilder_ ==
null) {
3547 return firstSolutionStatistics_.size();
3549 return firstSolutionStatisticsBuilder_.getCount();
3560 if (firstSolutionStatisticsBuilder_ ==
null) {
3561 return firstSolutionStatistics_.get(index);
3563 return firstSolutionStatisticsBuilder_.getMessage(index);
3574 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics value) {
3575 if (firstSolutionStatisticsBuilder_ ==
null) {
3576 if (value ==
null) {
3577 throw new NullPointerException();
3579 ensureFirstSolutionStatisticsIsMutable();
3580 firstSolutionStatistics_.set(index, value);
3583 firstSolutionStatisticsBuilder_.setMessage(index, value);
3595 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder builderForValue) {
3596 if (firstSolutionStatisticsBuilder_ ==
null) {
3597 ensureFirstSolutionStatisticsIsMutable();
3598 firstSolutionStatistics_.set(index, builderForValue.build());
3601 firstSolutionStatisticsBuilder_.setMessage(index, builderForValue.build());
3613 if (firstSolutionStatisticsBuilder_ ==
null) {
3614 if (value ==
null) {
3615 throw new NullPointerException();
3617 ensureFirstSolutionStatisticsIsMutable();
3618 firstSolutionStatistics_.add(value);
3621 firstSolutionStatisticsBuilder_.addMessage(value);
3633 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics value) {
3634 if (firstSolutionStatisticsBuilder_ ==
null) {
3635 if (value ==
null) {
3636 throw new NullPointerException();
3638 ensureFirstSolutionStatisticsIsMutable();
3639 firstSolutionStatistics_.add(index, value);
3642 firstSolutionStatisticsBuilder_.addMessage(index, value);
3654 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder builderForValue) {
3655 if (firstSolutionStatisticsBuilder_ ==
null) {
3656 ensureFirstSolutionStatisticsIsMutable();
3657 firstSolutionStatistics_.add(builderForValue.build());
3660 firstSolutionStatisticsBuilder_.addMessage(builderForValue.build());
3672 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder builderForValue) {
3673 if (firstSolutionStatisticsBuilder_ ==
null) {
3674 ensureFirstSolutionStatisticsIsMutable();
3675 firstSolutionStatistics_.add(index, builderForValue.build());
3678 firstSolutionStatisticsBuilder_.addMessage(index, builderForValue.build());
3690 java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics> values) {
3691 if (firstSolutionStatisticsBuilder_ ==
null) {
3692 ensureFirstSolutionStatisticsIsMutable();
3693 com.google.protobuf.AbstractMessageLite.Builder.addAll(
3694 values, firstSolutionStatistics_);
3697 firstSolutionStatisticsBuilder_.addAllMessages(values);
3709 if (firstSolutionStatisticsBuilder_ ==
null) {
3710 firstSolutionStatistics_ = java.util.Collections.emptyList();
3711 bitField0_ = (bitField0_ & ~0x00000001);
3714 firstSolutionStatisticsBuilder_.clear();
3726 if (firstSolutionStatisticsBuilder_ ==
null) {
3727 ensureFirstSolutionStatisticsIsMutable();
3728 firstSolutionStatistics_.remove(index);
3731 firstSolutionStatisticsBuilder_.remove(index);
3744 return getFirstSolutionStatisticsFieldBuilder().getBuilder(index);
3755 if (firstSolutionStatisticsBuilder_ ==
null) {
3756 return firstSolutionStatistics_.get(index); }
else {
3757 return firstSolutionStatisticsBuilder_.getMessageOrBuilder(index);
3767 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatisticsOrBuilder>
3769 if (firstSolutionStatisticsBuilder_ !=
null) {
3770 return firstSolutionStatisticsBuilder_.getMessageOrBuilderList();
3772 return java.util.Collections.unmodifiableList(firstSolutionStatistics_);
3783 return getFirstSolutionStatisticsFieldBuilder().addBuilder(
3784 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.getDefaultInstance());
3795 return getFirstSolutionStatisticsFieldBuilder().addBuilder(
3796 index, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.getDefaultInstance());
3805 public java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder>
3807 return getFirstSolutionStatisticsFieldBuilder().getBuilderList();
3809 private com.google.protobuf.RepeatedFieldBuilder<
3810 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatisticsOrBuilder>
3811 getFirstSolutionStatisticsFieldBuilder() {
3812 if (firstSolutionStatisticsBuilder_ ==
null) {
3813 firstSolutionStatisticsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
3814 com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.FirstSolutionStatisticsOrBuilder>(
3815 firstSolutionStatistics_,
3816 ((bitField0_ & 0x00000001) != 0),
3817 getParentForChildren(),
3819 firstSolutionStatistics_ =
null;
3821 return firstSolutionStatisticsBuilder_;
3824 private java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics> localSearchOperatorStatistics_ =
3825 java.util.Collections.emptyList();
3826 private void ensureLocalSearchOperatorStatisticsIsMutable() {
3827 if (!((bitField0_ & 0x00000002) != 0)) {
3828 localSearchOperatorStatistics_ =
new java.util.ArrayList<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics>(localSearchOperatorStatistics_);
3829 bitField0_ |= 0x00000002;
3833 private com.google.protobuf.RepeatedFieldBuilder<
3834 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatisticsOrBuilder> localSearchOperatorStatisticsBuilder_;
3844 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3845 return java.util.Collections.unmodifiableList(localSearchOperatorStatistics_);
3847 return localSearchOperatorStatisticsBuilder_.getMessageList();
3858 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3859 return localSearchOperatorStatistics_.size();
3861 return localSearchOperatorStatisticsBuilder_.getCount();
3872 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3873 return localSearchOperatorStatistics_.get(index);
3875 return localSearchOperatorStatisticsBuilder_.getMessage(index);
3886 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics value) {
3887 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3888 if (value ==
null) {
3889 throw new NullPointerException();
3891 ensureLocalSearchOperatorStatisticsIsMutable();
3892 localSearchOperatorStatistics_.set(index, value);
3895 localSearchOperatorStatisticsBuilder_.setMessage(index, value);
3907 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder builderForValue) {
3908 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3909 ensureLocalSearchOperatorStatisticsIsMutable();
3910 localSearchOperatorStatistics_.set(index, builderForValue.build());
3913 localSearchOperatorStatisticsBuilder_.setMessage(index, builderForValue.build());
3925 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3926 if (value ==
null) {
3927 throw new NullPointerException();
3929 ensureLocalSearchOperatorStatisticsIsMutable();
3930 localSearchOperatorStatistics_.add(value);
3933 localSearchOperatorStatisticsBuilder_.addMessage(value);
3945 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics value) {
3946 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3947 if (value ==
null) {
3948 throw new NullPointerException();
3950 ensureLocalSearchOperatorStatisticsIsMutable();
3951 localSearchOperatorStatistics_.add(index, value);
3954 localSearchOperatorStatisticsBuilder_.addMessage(index, value);
3966 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder builderForValue) {
3967 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3968 ensureLocalSearchOperatorStatisticsIsMutable();
3969 localSearchOperatorStatistics_.add(builderForValue.build());
3972 localSearchOperatorStatisticsBuilder_.addMessage(builderForValue.build());
3984 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder builderForValue) {
3985 if (localSearchOperatorStatisticsBuilder_ ==
null) {
3986 ensureLocalSearchOperatorStatisticsIsMutable();
3987 localSearchOperatorStatistics_.add(index, builderForValue.build());
3990 localSearchOperatorStatisticsBuilder_.addMessage(index, builderForValue.build());
4002 java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics> values) {
4003 if (localSearchOperatorStatisticsBuilder_ ==
null) {
4004 ensureLocalSearchOperatorStatisticsIsMutable();
4005 com.google.protobuf.AbstractMessageLite.Builder.addAll(
4006 values, localSearchOperatorStatistics_);
4009 localSearchOperatorStatisticsBuilder_.addAllMessages(values);
4021 if (localSearchOperatorStatisticsBuilder_ ==
null) {
4022 localSearchOperatorStatistics_ = java.util.Collections.emptyList();
4023 bitField0_ = (bitField0_ & ~0x00000002);
4026 localSearchOperatorStatisticsBuilder_.clear();
4038 if (localSearchOperatorStatisticsBuilder_ ==
null) {
4039 ensureLocalSearchOperatorStatisticsIsMutable();
4040 localSearchOperatorStatistics_.remove(index);
4043 localSearchOperatorStatisticsBuilder_.remove(index);
4056 return getLocalSearchOperatorStatisticsFieldBuilder().getBuilder(index);
4067 if (localSearchOperatorStatisticsBuilder_ ==
null) {
4068 return localSearchOperatorStatistics_.get(index); }
else {
4069 return localSearchOperatorStatisticsBuilder_.getMessageOrBuilder(index);
4079 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatisticsOrBuilder>
4081 if (localSearchOperatorStatisticsBuilder_ !=
null) {
4082 return localSearchOperatorStatisticsBuilder_.getMessageOrBuilderList();
4084 return java.util.Collections.unmodifiableList(localSearchOperatorStatistics_);
4095 return getLocalSearchOperatorStatisticsFieldBuilder().addBuilder(
4096 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.getDefaultInstance());
4107 return getLocalSearchOperatorStatisticsFieldBuilder().addBuilder(
4108 index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.getDefaultInstance());
4117 public java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder>
4119 return getLocalSearchOperatorStatisticsFieldBuilder().getBuilderList();
4121 private com.google.protobuf.RepeatedFieldBuilder<
4122 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatisticsOrBuilder>
4123 getLocalSearchOperatorStatisticsFieldBuilder() {
4124 if (localSearchOperatorStatisticsBuilder_ ==
null) {
4125 localSearchOperatorStatisticsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
4126 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchOperatorStatisticsOrBuilder>(
4127 localSearchOperatorStatistics_,
4128 ((bitField0_ & 0x00000002) != 0),
4129 getParentForChildren(),
4131 localSearchOperatorStatistics_ =
null;
4133 return localSearchOperatorStatisticsBuilder_;
4136 private long totalNumNeighbors_ ;
4147 return totalNumNeighbors_;
4160 totalNumNeighbors_ = value;
4161 bitField0_ |= 0x00000004;
4174 bitField0_ = (bitField0_ & ~0x00000004);
4175 totalNumNeighbors_ = 0L;
4180 private long totalNumFilteredNeighbors_ ;
4187 return totalNumFilteredNeighbors_;
4196 totalNumFilteredNeighbors_ = value;
4197 bitField0_ |= 0x00000008;
4206 bitField0_ = (bitField0_ & ~0x00000008);
4207 totalNumFilteredNeighbors_ = 0L;
4212 private long totalNumAcceptedNeighbors_ ;
4219 return totalNumAcceptedNeighbors_;
4228 totalNumAcceptedNeighbors_ = value;
4229 bitField0_ |= 0x00000010;
4238 bitField0_ = (bitField0_ & ~0x00000010);
4239 totalNumAcceptedNeighbors_ = 0L;
4244 private java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics> localSearchFilterStatistics_ =
4245 java.util.Collections.emptyList();
4246 private void ensureLocalSearchFilterStatisticsIsMutable() {
4247 if (!((bitField0_ & 0x00000020) != 0)) {
4248 localSearchFilterStatistics_ =
new java.util.ArrayList<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics>(localSearchFilterStatistics_);
4249 bitField0_ |= 0x00000020;
4253 private com.google.protobuf.RepeatedFieldBuilder<
4254 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatisticsOrBuilder> localSearchFilterStatisticsBuilder_;
4264 if (localSearchFilterStatisticsBuilder_ ==
null) {
4265 return java.util.Collections.unmodifiableList(localSearchFilterStatistics_);
4267 return localSearchFilterStatisticsBuilder_.getMessageList();
4278 if (localSearchFilterStatisticsBuilder_ ==
null) {
4279 return localSearchFilterStatistics_.size();
4281 return localSearchFilterStatisticsBuilder_.getCount();
4292 if (localSearchFilterStatisticsBuilder_ ==
null) {
4293 return localSearchFilterStatistics_.get(index);
4295 return localSearchFilterStatisticsBuilder_.getMessage(index);
4306 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics value) {
4307 if (localSearchFilterStatisticsBuilder_ ==
null) {
4308 if (value ==
null) {
4309 throw new NullPointerException();
4311 ensureLocalSearchFilterStatisticsIsMutable();
4312 localSearchFilterStatistics_.set(index, value);
4315 localSearchFilterStatisticsBuilder_.setMessage(index, value);
4327 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder builderForValue) {
4328 if (localSearchFilterStatisticsBuilder_ ==
null) {
4329 ensureLocalSearchFilterStatisticsIsMutable();
4330 localSearchFilterStatistics_.set(index, builderForValue.build());
4333 localSearchFilterStatisticsBuilder_.setMessage(index, builderForValue.build());
4345 if (localSearchFilterStatisticsBuilder_ ==
null) {
4346 if (value ==
null) {
4347 throw new NullPointerException();
4349 ensureLocalSearchFilterStatisticsIsMutable();
4350 localSearchFilterStatistics_.add(value);
4353 localSearchFilterStatisticsBuilder_.addMessage(value);
4365 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics value) {
4366 if (localSearchFilterStatisticsBuilder_ ==
null) {
4367 if (value ==
null) {
4368 throw new NullPointerException();
4370 ensureLocalSearchFilterStatisticsIsMutable();
4371 localSearchFilterStatistics_.add(index, value);
4374 localSearchFilterStatisticsBuilder_.addMessage(index, value);
4386 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder builderForValue) {
4387 if (localSearchFilterStatisticsBuilder_ ==
null) {
4388 ensureLocalSearchFilterStatisticsIsMutable();
4389 localSearchFilterStatistics_.add(builderForValue.build());
4392 localSearchFilterStatisticsBuilder_.addMessage(builderForValue.build());
4404 int index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder builderForValue) {
4405 if (localSearchFilterStatisticsBuilder_ ==
null) {
4406 ensureLocalSearchFilterStatisticsIsMutable();
4407 localSearchFilterStatistics_.add(index, builderForValue.build());
4410 localSearchFilterStatisticsBuilder_.addMessage(index, builderForValue.build());
4422 java.lang.Iterable<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics> values) {
4423 if (localSearchFilterStatisticsBuilder_ ==
null) {
4424 ensureLocalSearchFilterStatisticsIsMutable();
4425 com.google.protobuf.AbstractMessageLite.Builder.addAll(
4426 values, localSearchFilterStatistics_);
4429 localSearchFilterStatisticsBuilder_.addAllMessages(values);
4441 if (localSearchFilterStatisticsBuilder_ ==
null) {
4442 localSearchFilterStatistics_ = java.util.Collections.emptyList();
4443 bitField0_ = (bitField0_ & ~0x00000020);
4446 localSearchFilterStatisticsBuilder_.clear();
4458 if (localSearchFilterStatisticsBuilder_ ==
null) {
4459 ensureLocalSearchFilterStatisticsIsMutable();
4460 localSearchFilterStatistics_.remove(index);
4463 localSearchFilterStatisticsBuilder_.remove(index);
4476 return getLocalSearchFilterStatisticsFieldBuilder().getBuilder(index);
4487 if (localSearchFilterStatisticsBuilder_ ==
null) {
4488 return localSearchFilterStatistics_.get(index); }
else {
4489 return localSearchFilterStatisticsBuilder_.getMessageOrBuilder(index);
4499 public java.util.List<? extends com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatisticsOrBuilder>
4501 if (localSearchFilterStatisticsBuilder_ !=
null) {
4502 return localSearchFilterStatisticsBuilder_.getMessageOrBuilderList();
4504 return java.util.Collections.unmodifiableList(localSearchFilterStatistics_);
4515 return getLocalSearchFilterStatisticsFieldBuilder().addBuilder(
4516 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.getDefaultInstance());
4527 return getLocalSearchFilterStatisticsFieldBuilder().addBuilder(
4528 index, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.getDefaultInstance());
4537 public java.util.List<com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder>
4539 return getLocalSearchFilterStatisticsFieldBuilder().getBuilderList();
4541 private com.google.protobuf.RepeatedFieldBuilder<
4542 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatisticsOrBuilder>
4543 getLocalSearchFilterStatisticsFieldBuilder() {
4544 if (localSearchFilterStatisticsBuilder_ ==
null) {
4545 localSearchFilterStatisticsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
4546 com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatistics.Builder, com.google.ortools.constraintsolver.LocalSearchStatistics.LocalSearchFilterStatisticsOrBuilder>(
4547 localSearchFilterStatistics_,
4548 ((bitField0_ & 0x00000020) != 0),
4549 getParentForChildren(),
4551 localSearchFilterStatistics_ =
null;
4553 return localSearchFilterStatisticsBuilder_;
4562 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.LocalSearchStatistics();
4566 return DEFAULT_INSTANCE;
4573 com.google.protobuf.CodedInputStream input,
4574 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4575 throws com.google.protobuf.InvalidProtocolBufferException {
4578 builder.mergeFrom(input, extensionRegistry);
4579 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
4580 throw e.setUnfinishedMessage(builder.buildPartial());
4581 }
catch (com.google.protobuf.UninitializedMessageException e) {
4582 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
4583 }
catch (java.io.IOException e) {
4584 throw new com.google.protobuf.InvalidProtocolBufferException(e)
4585 .setUnfinishedMessage(builder.buildPartial());
4587 return builder.buildPartial();
4602 return DEFAULT_INSTANCE;