Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
PointMetadata.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/pdlp/solve_log.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.pdlp;
7
11@com.google.protobuf.Generated
12public final class PointMetadata extends
13 com.google.protobuf.GeneratedMessage implements
14 // @@protoc_insertion_point(message_implements:operations_research.pdlp.PointMetadata)
16private static final long serialVersionUID = 0L;
17 static {
18 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
19 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
20 /* major= */ 4,
21 /* minor= */ 31,
22 /* patch= */ 1,
23 /* suffix= */ "",
24 PointMetadata.class.getName());
25 }
26 // Use PointMetadata.newBuilder() to construct.
27 private PointMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
28 super(builder);
29 }
30 private PointMetadata() {
31 pointType_ = 0;
32 randomPrimalProjections_ = emptyDoubleList();
33 randomDualProjections_ = emptyDoubleList();
34 }
35
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
39 }
40
41 @java.lang.Override
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
47 }
48
49 private int bitField0_;
50 public static final int POINT_TYPE_FIELD_NUMBER = 1;
51 private int pointType_ = 0;
60 @java.lang.Override public boolean hasPointType() {
61 return ((bitField0_ & 0x00000001) != 0);
62 }
63
71 @java.lang.Override public com.google.ortools.pdlp.PointType getPointType() {
72 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
73 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
74 }
75
76 public static final int RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER = 2;
77 @SuppressWarnings("serial")
78 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ =
79 emptyDoubleList();
88 @java.lang.Override
89 public java.util.List<java.lang.Double>
91 return randomPrimalProjections_;
92 }
93
102 return randomPrimalProjections_.size();
103 }
104
113 public double getRandomPrimalProjections(int index) {
114 return randomPrimalProjections_.getDouble(index);
115 }
116 private int randomPrimalProjectionsMemoizedSerializedSize = -1;
117
118 public static final int RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER = 3;
119 @SuppressWarnings("serial")
120 private com.google.protobuf.Internal.DoubleList randomDualProjections_ =
121 emptyDoubleList();
130 @java.lang.Override
131 public java.util.List<java.lang.Double>
133 return randomDualProjections_;
134 }
135
144 return randomDualProjections_.size();
145 }
146
155 public double getRandomDualProjections(int index) {
156 return randomDualProjections_.getDouble(index);
157 }
158 private int randomDualProjectionsMemoizedSerializedSize = -1;
159
160 public static final int ACTIVE_PRIMAL_VARIABLE_COUNT_FIELD_NUMBER = 4;
161 private long activePrimalVariableCount_ = 0L;
170 @java.lang.Override
172 return ((bitField0_ & 0x00000002) != 0);
173 }
174
182 @java.lang.Override
184 return activePrimalVariableCount_;
185 }
186
187 public static final int ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER = 5;
188 private long activeDualVariableCount_ = 0L;
197 @java.lang.Override
198 public boolean hasActiveDualVariableCount() {
199 return ((bitField0_ & 0x00000004) != 0);
200 }
201
209 @java.lang.Override
211 return activeDualVariableCount_;
212 }
213
215 private long activePrimalVariableChange_ = 0L;
225 @java.lang.Override
227 return ((bitField0_ & 0x00000008) != 0);
228 }
229
238 @java.lang.Override
240 return activePrimalVariableChange_;
241 }
242
243 public static final int ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER = 7;
244 private long activeDualVariableChange_ = 0L;
254 @java.lang.Override
256 return ((bitField0_ & 0x00000010) != 0);
257 }
258
267 @java.lang.Override
269 return activeDualVariableChange_;
270 }
271
272 private byte memoizedIsInitialized = -1;
273 @java.lang.Override
274 public final boolean isInitialized() {
275 byte isInitialized = memoizedIsInitialized;
276 if (isInitialized == 1) return true;
277 if (isInitialized == 0) return false;
278
279 memoizedIsInitialized = 1;
280 return true;
281 }
282
283 @java.lang.Override
284 public void writeTo(com.google.protobuf.CodedOutputStream output)
285 throws java.io.IOException {
287 if (((bitField0_ & 0x00000001) != 0)) {
288 output.writeEnum(1, pointType_);
289 }
290 if (getRandomPrimalProjectionsList().size() > 0) {
291 output.writeUInt32NoTag(18);
292 output.writeUInt32NoTag(randomPrimalProjectionsMemoizedSerializedSize);
293 }
294 for (int i = 0; i < randomPrimalProjections_.size(); i++) {
295 output.writeDoubleNoTag(randomPrimalProjections_.getDouble(i));
296 }
297 if (getRandomDualProjectionsList().size() > 0) {
298 output.writeUInt32NoTag(26);
299 output.writeUInt32NoTag(randomDualProjectionsMemoizedSerializedSize);
300 }
301 for (int i = 0; i < randomDualProjections_.size(); i++) {
302 output.writeDoubleNoTag(randomDualProjections_.getDouble(i));
303 }
304 if (((bitField0_ & 0x00000002) != 0)) {
305 output.writeInt64(4, activePrimalVariableCount_);
306 }
307 if (((bitField0_ & 0x00000004) != 0)) {
308 output.writeInt64(5, activeDualVariableCount_);
309 }
310 if (((bitField0_ & 0x00000008) != 0)) {
311 output.writeInt64(6, activePrimalVariableChange_);
312 }
313 if (((bitField0_ & 0x00000010) != 0)) {
314 output.writeInt64(7, activeDualVariableChange_);
315 }
316 getUnknownFields().writeTo(output);
317 }
318
319 @java.lang.Override
320 public int getSerializedSize() {
321 int size = memoizedSize;
322 if (size != -1) return size;
323
324 size = 0;
325 if (((bitField0_ & 0x00000001) != 0)) {
326 size += com.google.protobuf.CodedOutputStream
327 .computeEnumSize(1, pointType_);
328 }
329 {
330 int dataSize = 0;
331 dataSize = 8 * getRandomPrimalProjectionsList().size();
332 size += dataSize;
333 if (!getRandomPrimalProjectionsList().isEmpty()) {
334 size += 1;
335 size += com.google.protobuf.CodedOutputStream
336 .computeInt32SizeNoTag(dataSize);
337 }
338 randomPrimalProjectionsMemoizedSerializedSize = dataSize;
339 }
340 {
341 int dataSize = 0;
342 dataSize = 8 * getRandomDualProjectionsList().size();
343 size += dataSize;
344 if (!getRandomDualProjectionsList().isEmpty()) {
345 size += 1;
346 size += com.google.protobuf.CodedOutputStream
347 .computeInt32SizeNoTag(dataSize);
348 }
349 randomDualProjectionsMemoizedSerializedSize = dataSize;
350 }
351 if (((bitField0_ & 0x00000002) != 0)) {
352 size += com.google.protobuf.CodedOutputStream
353 .computeInt64Size(4, activePrimalVariableCount_);
354 }
355 if (((bitField0_ & 0x00000004) != 0)) {
356 size += com.google.protobuf.CodedOutputStream
357 .computeInt64Size(5, activeDualVariableCount_);
358 }
359 if (((bitField0_ & 0x00000008) != 0)) {
360 size += com.google.protobuf.CodedOutputStream
361 .computeInt64Size(6, activePrimalVariableChange_);
362 }
363 if (((bitField0_ & 0x00000010) != 0)) {
364 size += com.google.protobuf.CodedOutputStream
365 .computeInt64Size(7, activeDualVariableChange_);
366 }
367 size += getUnknownFields().getSerializedSize();
368 memoizedSize = size;
369 return size;
370 }
371
372 @java.lang.Override
373 public boolean equals(final java.lang.Object obj) {
374 if (obj == this) {
375 return true;
376 }
377 if (!(obj instanceof com.google.ortools.pdlp.PointMetadata)) {
378 return super.equals(obj);
379 }
380 com.google.ortools.pdlp.PointMetadata other = (com.google.ortools.pdlp.PointMetadata) obj;
381
382 if (hasPointType() != other.hasPointType()) return false;
383 if (hasPointType()) {
384 if (pointType_ != other.pointType_) return false;
385 }
387 .equals(other.getRandomPrimalProjectionsList())) return false;
389 .equals(other.getRandomDualProjectionsList())) return false;
390 if (hasActivePrimalVariableCount() != other.hasActivePrimalVariableCount()) return false;
393 != other.getActivePrimalVariableCount()) return false;
394 }
395 if (hasActiveDualVariableCount() != other.hasActiveDualVariableCount()) return false;
398 != other.getActiveDualVariableCount()) return false;
399 }
403 != other.getActivePrimalVariableChange()) return false;
404 }
405 if (hasActiveDualVariableChange() != other.hasActiveDualVariableChange()) return false;
408 != other.getActiveDualVariableChange()) return false;
409 }
410 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
411 return true;
412 }
413
414 @java.lang.Override
415 public int hashCode() {
416 if (memoizedHashCode != 0) {
417 return memoizedHashCode;
418 }
419 int hash = 41;
420 hash = (19 * hash) + getDescriptor().hashCode();
421 if (hasPointType()) {
422 hash = (37 * hash) + POINT_TYPE_FIELD_NUMBER;
423 hash = (53 * hash) + pointType_;
424 }
426 hash = (37 * hash) + RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER;
427 hash = (53 * hash) + getRandomPrimalProjectionsList().hashCode();
428 }
430 hash = (37 * hash) + RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER;
431 hash = (53 * hash) + getRandomDualProjectionsList().hashCode();
432 }
435 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
437 }
439 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER;
440 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
442 }
445 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
447 }
449 hash = (37 * hash) + ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER;
450 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
452 }
453 hash = (29 * hash) + getUnknownFields().hashCode();
454 memoizedHashCode = hash;
455 return hash;
456 }
457
459 java.nio.ByteBuffer data)
460 throws com.google.protobuf.InvalidProtocolBufferException {
461 return PARSER.parseFrom(data);
462 }
464 java.nio.ByteBuffer data,
465 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
466 throws com.google.protobuf.InvalidProtocolBufferException {
467 return PARSER.parseFrom(data, extensionRegistry);
468 }
470 com.google.protobuf.ByteString data)
471 throws com.google.protobuf.InvalidProtocolBufferException {
472 return PARSER.parseFrom(data);
473 }
475 com.google.protobuf.ByteString data,
476 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
477 throws com.google.protobuf.InvalidProtocolBufferException {
478 return PARSER.parseFrom(data, extensionRegistry);
479 }
481 throws com.google.protobuf.InvalidProtocolBufferException {
482 return PARSER.parseFrom(data);
483 }
485 byte[] data,
486 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
487 throws com.google.protobuf.InvalidProtocolBufferException {
488 return PARSER.parseFrom(data, extensionRegistry);
489 }
490 public static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input)
491 throws java.io.IOException {
492 return com.google.protobuf.GeneratedMessage
493 .parseWithIOException(PARSER, input);
494 }
496 java.io.InputStream input,
497 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
498 throws java.io.IOException {
499 return com.google.protobuf.GeneratedMessage
500 .parseWithIOException(PARSER, input, extensionRegistry);
501 }
502
503 public static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input)
504 throws java.io.IOException {
505 return com.google.protobuf.GeneratedMessage
506 .parseDelimitedWithIOException(PARSER, input);
507 }
508
510 java.io.InputStream input,
511 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
512 throws java.io.IOException {
513 return com.google.protobuf.GeneratedMessage
514 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
515 }
517 com.google.protobuf.CodedInputStream input)
518 throws java.io.IOException {
519 return com.google.protobuf.GeneratedMessage
520 .parseWithIOException(PARSER, input);
521 }
523 com.google.protobuf.CodedInputStream input,
524 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
525 throws java.io.IOException {
526 return com.google.protobuf.GeneratedMessage
527 .parseWithIOException(PARSER, input, extensionRegistry);
528 }
529
530 @java.lang.Override
531 public Builder newBuilderForType() { return newBuilder(); }
532 public static Builder newBuilder() {
533 return DEFAULT_INSTANCE.toBuilder();
534 }
535 public static Builder newBuilder(com.google.ortools.pdlp.PointMetadata prototype) {
536 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
537 }
538 @java.lang.Override
540 return this == DEFAULT_INSTANCE
541 ? new Builder() : new Builder().mergeFrom(this);
542 }
543
544 @java.lang.Override
546 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
547 Builder builder = new Builder(parent);
548 return builder;
549 }
550
553 public static final class Builder extends
554 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
555 // @@protoc_insertion_point(builder_implements:operations_research.pdlp.PointMetadata)
557 public static final com.google.protobuf.Descriptors.Descriptor
559 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
560 }
561
562 @java.lang.Override
563 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
565 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_fieldAccessorTable
566 .ensureFieldAccessorsInitialized(
567 com.google.ortools.pdlp.PointMetadata.class, com.google.ortools.pdlp.PointMetadata.Builder.class);
568 }
569
570 // Construct using com.google.ortools.pdlp.PointMetadata.newBuilder()
571 private Builder() {
572
573 }
574
575 private Builder(
576 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
577 super(parent);
578
579 }
580 @java.lang.Override
581 public Builder clear() {
582 super.clear();
583 bitField0_ = 0;
584 pointType_ = 0;
585 randomPrimalProjections_ = emptyDoubleList();
586 randomDualProjections_ = emptyDoubleList();
587 activePrimalVariableCount_ = 0L;
588 activeDualVariableCount_ = 0L;
589 activePrimalVariableChange_ = 0L;
590 activeDualVariableChange_ = 0L;
591 return this;
592 }
593
594 @java.lang.Override
595 public com.google.protobuf.Descriptors.Descriptor
597 return com.google.ortools.pdlp.SolveLogOuterClass.internal_static_operations_research_pdlp_PointMetadata_descriptor;
598 }
599
600 @java.lang.Override
602 return com.google.ortools.pdlp.PointMetadata.getDefaultInstance();
603 }
604
605 @java.lang.Override
608 if (!result.isInitialized()) {
609 throw newUninitializedMessageException(result);
610 }
611 return result;
612 }
613
614 @java.lang.Override
616 com.google.ortools.pdlp.PointMetadata result = new com.google.ortools.pdlp.PointMetadata(this);
617 if (bitField0_ != 0) { buildPartial0(result); }
618 onBuilt();
619 return result;
620 }
621
622 private void buildPartial0(com.google.ortools.pdlp.PointMetadata result) {
623 int from_bitField0_ = bitField0_;
624 int to_bitField0_ = 0;
625 if (((from_bitField0_ & 0x00000001) != 0)) {
626 result.pointType_ = pointType_;
627 to_bitField0_ |= 0x00000001;
628 }
629 if (((from_bitField0_ & 0x00000002) != 0)) {
630 randomPrimalProjections_.makeImmutable();
631 result.randomPrimalProjections_ = randomPrimalProjections_;
632 }
633 if (((from_bitField0_ & 0x00000004) != 0)) {
634 randomDualProjections_.makeImmutable();
635 result.randomDualProjections_ = randomDualProjections_;
636 }
637 if (((from_bitField0_ & 0x00000008) != 0)) {
638 result.activePrimalVariableCount_ = activePrimalVariableCount_;
639 to_bitField0_ |= 0x00000002;
640 }
641 if (((from_bitField0_ & 0x00000010) != 0)) {
642 result.activeDualVariableCount_ = activeDualVariableCount_;
643 to_bitField0_ |= 0x00000004;
644 }
645 if (((from_bitField0_ & 0x00000020) != 0)) {
646 result.activePrimalVariableChange_ = activePrimalVariableChange_;
647 to_bitField0_ |= 0x00000008;
648 }
649 if (((from_bitField0_ & 0x00000040) != 0)) {
650 result.activeDualVariableChange_ = activeDualVariableChange_;
651 to_bitField0_ |= 0x00000010;
652 }
653 result.bitField0_ |= to_bitField0_;
654 }
655
656 @java.lang.Override
657 public Builder mergeFrom(com.google.protobuf.Message other) {
658 if (other instanceof com.google.ortools.pdlp.PointMetadata) {
659 return mergeFrom((com.google.ortools.pdlp.PointMetadata)other);
660 } else {
661 super.mergeFrom(other);
662 return this;
663 }
664 }
665
666 public Builder mergeFrom(com.google.ortools.pdlp.PointMetadata other) {
667 if (other == com.google.ortools.pdlp.PointMetadata.getDefaultInstance()) return this;
668 if (other.hasPointType()) {
669 setPointType(other.getPointType());
670 }
671 if (!other.randomPrimalProjections_.isEmpty()) {
672 if (randomPrimalProjections_.isEmpty()) {
673 randomPrimalProjections_ = other.randomPrimalProjections_;
674 randomPrimalProjections_.makeImmutable();
675 bitField0_ |= 0x00000002;
676 } else {
677 ensureRandomPrimalProjectionsIsMutable();
678 randomPrimalProjections_.addAll(other.randomPrimalProjections_);
679 }
680 onChanged();
681 }
682 if (!other.randomDualProjections_.isEmpty()) {
683 if (randomDualProjections_.isEmpty()) {
684 randomDualProjections_ = other.randomDualProjections_;
685 randomDualProjections_.makeImmutable();
686 bitField0_ |= 0x00000004;
687 } else {
688 ensureRandomDualProjectionsIsMutable();
689 randomDualProjections_.addAll(other.randomDualProjections_);
690 }
691 onChanged();
692 }
693 if (other.hasActivePrimalVariableCount()) {
694 setActivePrimalVariableCount(other.getActivePrimalVariableCount());
695 }
696 if (other.hasActiveDualVariableCount()) {
697 setActiveDualVariableCount(other.getActiveDualVariableCount());
698 }
699 if (other.hasActivePrimalVariableChange()) {
700 setActivePrimalVariableChange(other.getActivePrimalVariableChange());
701 }
702 if (other.hasActiveDualVariableChange()) {
703 setActiveDualVariableChange(other.getActiveDualVariableChange());
704 }
705 this.mergeUnknownFields(other.getUnknownFields());
706 onChanged();
707 return this;
708 }
709
710 @java.lang.Override
711 public final boolean isInitialized() {
712 return true;
713 }
714
715 @java.lang.Override
716 public Builder mergeFrom(
717 com.google.protobuf.CodedInputStream input,
718 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
719 throws java.io.IOException {
720 if (extensionRegistry == null) {
721 throw new java.lang.NullPointerException();
722 }
723 try {
724 boolean done = false;
725 while (!done) {
726 int tag = input.readTag();
727 switch (tag) {
728 case 0:
729 done = true;
730 break;
731 case 8: {
732 int tmpRaw = input.readEnum();
734 com.google.ortools.pdlp.PointType.forNumber(tmpRaw);
735 if (tmpValue == null) {
736 mergeUnknownVarintField(1, tmpRaw);
737 } else {
738 pointType_ = tmpRaw;
739 bitField0_ |= 0x00000001;
740 }
741 break;
742 } // case 8
743 case 17: {
744 double v = input.readDouble();
745 ensureRandomPrimalProjectionsIsMutable();
746 randomPrimalProjections_.addDouble(v);
747 break;
748 } // case 17
749 case 18: {
750 int length = input.readRawVarint32();
751 int limit = input.pushLimit(length);
752 int alloc = length > 4096 ? 4096 : length;
753 ensureRandomPrimalProjectionsIsMutable(alloc / 8);
754 while (input.getBytesUntilLimit() > 0) {
755 randomPrimalProjections_.addDouble(input.readDouble());
756 }
757 input.popLimit(limit);
758 break;
759 } // case 18
760 case 25: {
761 double v = input.readDouble();
762 ensureRandomDualProjectionsIsMutable();
763 randomDualProjections_.addDouble(v);
764 break;
765 } // case 25
766 case 26: {
767 int length = input.readRawVarint32();
768 int limit = input.pushLimit(length);
769 int alloc = length > 4096 ? 4096 : length;
770 ensureRandomDualProjectionsIsMutable(alloc / 8);
771 while (input.getBytesUntilLimit() > 0) {
772 randomDualProjections_.addDouble(input.readDouble());
773 }
774 input.popLimit(limit);
775 break;
776 } // case 26
777 case 32: {
778 activePrimalVariableCount_ = input.readInt64();
779 bitField0_ |= 0x00000008;
780 break;
781 } // case 32
782 case 40: {
783 activeDualVariableCount_ = input.readInt64();
784 bitField0_ |= 0x00000010;
785 break;
786 } // case 40
787 case 48: {
788 activePrimalVariableChange_ = input.readInt64();
789 bitField0_ |= 0x00000020;
790 break;
791 } // case 48
792 case 56: {
793 activeDualVariableChange_ = input.readInt64();
794 bitField0_ |= 0x00000040;
795 break;
796 } // case 56
797 default: {
798 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
799 done = true; // was an endgroup tag
800 }
801 break;
802 } // default:
803 } // switch (tag)
804 } // while (!done)
805 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
806 throw e.unwrapIOException();
807 } finally {
808 onChanged();
809 } // finally
810 return this;
811 }
812 private int bitField0_;
813
814 private int pointType_ = 0;
823 @java.lang.Override public boolean hasPointType() {
824 return ((bitField0_ & 0x00000001) != 0);
825 }
826
834 @java.lang.Override
836 com.google.ortools.pdlp.PointType result = com.google.ortools.pdlp.PointType.forNumber(pointType_);
837 return result == null ? com.google.ortools.pdlp.PointType.POINT_TYPE_UNSPECIFIED : result;
838 }
839
848 public Builder setPointType(com.google.ortools.pdlp.PointType value) {
849 if (value == null) { throw new NullPointerException(); }
850 bitField0_ |= 0x00000001;
851 pointType_ = value.getNumber();
852 onChanged();
853 return this;
854 }
855
863 public Builder clearPointType() {
864 bitField0_ = (bitField0_ & ~0x00000001);
865 pointType_ = 0;
866 onChanged();
867 return this;
868 }
869
870 private com.google.protobuf.Internal.DoubleList randomPrimalProjections_ = emptyDoubleList();
871 private void ensureRandomPrimalProjectionsIsMutable() {
872 if (!randomPrimalProjections_.isModifiable()) {
873 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_);
874 }
875 bitField0_ |= 0x00000002;
876 }
877 private void ensureRandomPrimalProjectionsIsMutable(int capacity) {
878 if (!randomPrimalProjections_.isModifiable()) {
879 randomPrimalProjections_ = makeMutableCopy(randomPrimalProjections_, capacity);
880 }
881 bitField0_ |= 0x00000002;
882 }
891 public java.util.List<java.lang.Double>
893 randomPrimalProjections_.makeImmutable();
894 return randomPrimalProjections_;
895 }
896
905 return randomPrimalProjections_.size();
906 }
907
916 public double getRandomPrimalProjections(int index) {
917 return randomPrimalProjections_.getDouble(index);
918 }
919
930 int index, double value) {
931
932 ensureRandomPrimalProjectionsIsMutable();
933 randomPrimalProjections_.setDouble(index, value);
934 bitField0_ |= 0x00000002;
935 onChanged();
936 return this;
937 }
938
947 public Builder addRandomPrimalProjections(double value) {
948
949 ensureRandomPrimalProjectionsIsMutable();
950 randomPrimalProjections_.addDouble(value);
951 bitField0_ |= 0x00000002;
952 onChanged();
953 return this;
954 }
955
965 java.lang.Iterable<? extends java.lang.Double> values) {
966 ensureRandomPrimalProjectionsIsMutable();
967 com.google.protobuf.AbstractMessageLite.Builder.addAll(
968 values, randomPrimalProjections_);
969 bitField0_ |= 0x00000002;
970 onChanged();
971 return this;
972 }
973
982 randomPrimalProjections_ = emptyDoubleList();
983 bitField0_ = (bitField0_ & ~0x00000002);
984 onChanged();
985 return this;
986 }
987
988 private com.google.protobuf.Internal.DoubleList randomDualProjections_ = emptyDoubleList();
989 private void ensureRandomDualProjectionsIsMutable() {
990 if (!randomDualProjections_.isModifiable()) {
991 randomDualProjections_ = makeMutableCopy(randomDualProjections_);
992 }
993 bitField0_ |= 0x00000004;
994 }
995 private void ensureRandomDualProjectionsIsMutable(int capacity) {
996 if (!randomDualProjections_.isModifiable()) {
997 randomDualProjections_ = makeMutableCopy(randomDualProjections_, capacity);
998 }
999 bitField0_ |= 0x00000004;
1000 }
1009 public java.util.List<java.lang.Double>
1011 randomDualProjections_.makeImmutable();
1012 return randomDualProjections_;
1013 }
1014
1023 return randomDualProjections_.size();
1024 }
1025
1034 public double getRandomDualProjections(int index) {
1035 return randomDualProjections_.getDouble(index);
1036 }
1037
1048 int index, double value) {
1049
1050 ensureRandomDualProjectionsIsMutable();
1051 randomDualProjections_.setDouble(index, value);
1052 bitField0_ |= 0x00000004;
1053 onChanged();
1054 return this;
1055 }
1056
1065 public Builder addRandomDualProjections(double value) {
1066
1067 ensureRandomDualProjectionsIsMutable();
1068 randomDualProjections_.addDouble(value);
1069 bitField0_ |= 0x00000004;
1070 onChanged();
1071 return this;
1072 }
1073
1083 java.lang.Iterable<? extends java.lang.Double> values) {
1084 ensureRandomDualProjectionsIsMutable();
1085 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1086 values, randomDualProjections_);
1087 bitField0_ |= 0x00000004;
1088 onChanged();
1089 return this;
1090 }
1091
1100 randomDualProjections_ = emptyDoubleList();
1101 bitField0_ = (bitField0_ & ~0x00000004);
1102 onChanged();
1103 return this;
1104 }
1105
1106 private long activePrimalVariableCount_ ;
1115 @java.lang.Override
1117 return ((bitField0_ & 0x00000008) != 0);
1118 }
1119
1127 @java.lang.Override
1129 return activePrimalVariableCount_;
1130 }
1131
1140 public Builder setActivePrimalVariableCount(long value) {
1141
1142 activePrimalVariableCount_ = value;
1143 bitField0_ |= 0x00000008;
1144 onChanged();
1145 return this;
1146 }
1147
1156 bitField0_ = (bitField0_ & ~0x00000008);
1157 activePrimalVariableCount_ = 0L;
1158 onChanged();
1159 return this;
1160 }
1161
1162 private long activeDualVariableCount_ ;
1171 @java.lang.Override
1173 return ((bitField0_ & 0x00000010) != 0);
1174 }
1175
1183 @java.lang.Override
1185 return activeDualVariableCount_;
1186 }
1187
1196 public Builder setActiveDualVariableCount(long value) {
1197
1198 activeDualVariableCount_ = value;
1199 bitField0_ |= 0x00000010;
1200 onChanged();
1201 return this;
1202 }
1203
1212 bitField0_ = (bitField0_ & ~0x00000010);
1213 activeDualVariableCount_ = 0L;
1214 onChanged();
1215 return this;
1216 }
1217
1218 private long activePrimalVariableChange_ ;
1228 @java.lang.Override
1230 return ((bitField0_ & 0x00000020) != 0);
1231 }
1232
1241 @java.lang.Override
1243 return activePrimalVariableChange_;
1244 }
1245
1255 public Builder setActivePrimalVariableChange(long value) {
1256
1257 activePrimalVariableChange_ = value;
1258 bitField0_ |= 0x00000020;
1259 onChanged();
1260 return this;
1261 }
1262
1272 bitField0_ = (bitField0_ & ~0x00000020);
1273 activePrimalVariableChange_ = 0L;
1274 onChanged();
1275 return this;
1276 }
1277
1278 private long activeDualVariableChange_ ;
1288 @java.lang.Override
1290 return ((bitField0_ & 0x00000040) != 0);
1291 }
1292
1301 @java.lang.Override
1303 return activeDualVariableChange_;
1304 }
1305
1315 public Builder setActiveDualVariableChange(long value) {
1316
1317 activeDualVariableChange_ = value;
1318 bitField0_ |= 0x00000040;
1319 onChanged();
1320 return this;
1321 }
1322
1332 bitField0_ = (bitField0_ & ~0x00000040);
1333 activeDualVariableChange_ = 0L;
1334 onChanged();
1335 return this;
1336 }
1337
1338 // @@protoc_insertion_point(builder_scope:operations_research.pdlp.PointMetadata)
1339 }
1340
1341 // @@protoc_insertion_point(class_scope:operations_research.pdlp.PointMetadata)
1342 private static final com.google.ortools.pdlp.PointMetadata DEFAULT_INSTANCE;
1343 static {
1344 DEFAULT_INSTANCE = new com.google.ortools.pdlp.PointMetadata();
1345 }
1346
1348 return DEFAULT_INSTANCE;
1349 }
1350
1351 private static final com.google.protobuf.Parser<PointMetadata>
1352 PARSER = new com.google.protobuf.AbstractParser<PointMetadata>() {
1353 @java.lang.Override
1354 public PointMetadata parsePartialFrom(
1355 com.google.protobuf.CodedInputStream input,
1356 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1357 throws com.google.protobuf.InvalidProtocolBufferException {
1358 Builder builder = newBuilder();
1359 try {
1360 builder.mergeFrom(input, extensionRegistry);
1361 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1362 throw e.setUnfinishedMessage(builder.buildPartial());
1363 } catch (com.google.protobuf.UninitializedMessageException e) {
1364 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1365 } catch (java.io.IOException e) {
1366 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1367 .setUnfinishedMessage(builder.buildPartial());
1368 }
1369 return builder.buildPartial();
1370 }
1371 };
1372
1373 public static com.google.protobuf.Parser<PointMetadata> parser() {
1374 return PARSER;
1375 }
1376
1377 @java.lang.Override
1378 public com.google.protobuf.Parser<PointMetadata> getParserForType() {
1379 return PARSER;
1380 }
1381
1382 @java.lang.Override
1384 return DEFAULT_INSTANCE;
1385 }
1386
1387}
1388
Builder setRandomPrimalProjections(int index, double value)
Builder setPointType(com.google.ortools.pdlp.PointType value)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.pdlp.PointMetadata getDefaultInstanceForType()
Builder setRandomDualProjections(int index, double value)
Builder mergeFrom(com.google.protobuf.Message other)
Builder addAllRandomPrimalProjections(java.lang.Iterable<? extends java.lang.Double > values)
Builder mergeFrom(com.google.ortools.pdlp.PointMetadata other)
Builder addAllRandomDualProjections(java.lang.Iterable<? extends java.lang.Double > values)
java.util.List< java.lang.Double > getRandomPrimalProjectionsList()
com.google.ortools.pdlp.PointType getPointType()
com.google.ortools.pdlp.PointMetadata build()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
java.util.List< java.lang.Double > getRandomDualProjectionsList()
com.google.ortools.pdlp.PointMetadata buildPartial()
com.google.ortools.pdlp.PointMetadata getDefaultInstanceForType()
com.google.protobuf.Parser< PointMetadata > getParserForType()
static final int ACTIVE_DUAL_VARIABLE_COUNT_FIELD_NUMBER
static com.google.ortools.pdlp.PointMetadata parseFrom(byte[] data)
java.util.List< java.lang.Double > getRandomDualProjectionsList()
static com.google.ortools.pdlp.PointMetadata parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.ortools.pdlp.PointType getPointType()
static Builder newBuilder(com.google.ortools.pdlp.PointMetadata prototype)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.CodedInputStream input)
void writeTo(com.google.protobuf.CodedOutputStream output)
static com.google.ortools.pdlp.PointMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static final int RANDOM_DUAL_PROJECTIONS_FIELD_NUMBER
static final int ACTIVE_PRIMAL_VARIABLE_COUNT_FIELD_NUMBER
static com.google.ortools.pdlp.PointMetadata parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
boolean equals(final java.lang.Object obj)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(java.nio.ByteBuffer data)
java.util.List< java.lang.Double > getRandomPrimalProjectionsList()
static com.google.ortools.pdlp.PointMetadata parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.pdlp.PointMetadata getDefaultInstance()
static final int RANDOM_PRIMAL_PROJECTIONS_FIELD_NUMBER
static com.google.protobuf.Parser< PointMetadata > parser()
static final int ACTIVE_DUAL_VARIABLE_CHANGE_FIELD_NUMBER
static final int ACTIVE_PRIMAL_VARIABLE_CHANGE_FIELD_NUMBER