1518 int size = memoizedSize;
1519 if (size != -1)
return size;
1522 if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) {
1523 size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_);
1527 for (
int i = 0; i < enforcementLiteral_.size(); i++) {
1528 dataSize += com.google.protobuf.CodedOutputStream
1529 .computeInt32SizeNoTag(enforcementLiteral_.getInt(i));
1534 size += com.google.protobuf.CodedOutputStream
1535 .computeInt32SizeNoTag(dataSize);
1537 enforcementLiteralMemoizedSerializedSize = dataSize;
1539 if (constraintCase_ == 3) {
1540 size += com.google.protobuf.CodedOutputStream
1541 .computeMessageSize(3, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1543 if (constraintCase_ == 4) {
1544 size += com.google.protobuf.CodedOutputStream
1545 .computeMessageSize(4, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1547 if (constraintCase_ == 5) {
1548 size += com.google.protobuf.CodedOutputStream
1549 .computeMessageSize(5, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1551 if (constraintCase_ == 7) {
1552 size += com.google.protobuf.CodedOutputStream
1553 .computeMessageSize(7, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1555 if (constraintCase_ == 8) {
1556 size += com.google.protobuf.CodedOutputStream
1557 .computeMessageSize(8, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1559 if (constraintCase_ == 11) {
1560 size += com.google.protobuf.CodedOutputStream
1561 .computeMessageSize(11, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1563 if (constraintCase_ == 12) {
1564 size += com.google.protobuf.CodedOutputStream
1565 .computeMessageSize(12, (com.google.ortools.sat.LinearConstraintProto) constraint_);
1567 if (constraintCase_ == 13) {
1568 size += com.google.protobuf.CodedOutputStream
1569 .computeMessageSize(13, (com.google.ortools.sat.AllDifferentConstraintProto) constraint_);
1571 if (constraintCase_ == 14) {
1572 size += com.google.protobuf.CodedOutputStream
1573 .computeMessageSize(14, (com.google.ortools.sat.ElementConstraintProto) constraint_);
1575 if (constraintCase_ == 15) {
1576 size += com.google.protobuf.CodedOutputStream
1577 .computeMessageSize(15, (com.google.ortools.sat.CircuitConstraintProto) constraint_);
1579 if (constraintCase_ == 16) {
1580 size += com.google.protobuf.CodedOutputStream
1581 .computeMessageSize(16, (com.google.ortools.sat.TableConstraintProto) constraint_);
1583 if (constraintCase_ == 17) {
1584 size += com.google.protobuf.CodedOutputStream
1585 .computeMessageSize(17, (com.google.ortools.sat.AutomatonConstraintProto) constraint_);
1587 if (constraintCase_ == 18) {
1588 size += com.google.protobuf.CodedOutputStream
1589 .computeMessageSize(18, (com.google.ortools.sat.InverseConstraintProto) constraint_);
1591 if (constraintCase_ == 19) {
1592 size += com.google.protobuf.CodedOutputStream
1593 .computeMessageSize(19, (com.google.ortools.sat.IntervalConstraintProto) constraint_);
1595 if (constraintCase_ == 20) {
1596 size += com.google.protobuf.CodedOutputStream
1597 .computeMessageSize(20, (com.google.ortools.sat.NoOverlapConstraintProto) constraint_);
1599 if (constraintCase_ == 21) {
1600 size += com.google.protobuf.CodedOutputStream
1601 .computeMessageSize(21, (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_);
1603 if (constraintCase_ == 22) {
1604 size += com.google.protobuf.CodedOutputStream
1605 .computeMessageSize(22, (com.google.ortools.sat.CumulativeConstraintProto) constraint_);
1607 if (constraintCase_ == 23) {
1608 size += com.google.protobuf.CodedOutputStream
1609 .computeMessageSize(23, (com.google.ortools.sat.RoutesConstraintProto) constraint_);
1611 if (constraintCase_ == 24) {
1612 size += com.google.protobuf.CodedOutputStream
1613 .computeMessageSize(24, (com.google.ortools.sat.ReservoirConstraintProto) constraint_);
1615 if (constraintCase_ == 26) {
1616 size += com.google.protobuf.CodedOutputStream
1617 .computeMessageSize(26, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1619 if (constraintCase_ == 27) {
1620 size += com.google.protobuf.CodedOutputStream
1621 .computeMessageSize(27, (com.google.ortools.sat.LinearArgumentProto) constraint_);
1623 if (constraintCase_ == 29) {
1624 size += com.google.protobuf.CodedOutputStream
1625 .computeMessageSize(29, (com.google.ortools.sat.BoolArgumentProto) constraint_);
1627 if (constraintCase_ == 30) {
1628 size += com.google.protobuf.CodedOutputStream
1629 .computeMessageSize(30, (com.google.ortools.sat.ListOfVariablesProto) constraint_);
1631 size += getUnknownFields().getSerializedSize();
1632 memoizedSize = size;
1965 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
1968 public static final com.google.protobuf.Descriptors.Descriptor
1970 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
1974 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
1976 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_fieldAccessorTable
1977 .ensureFieldAccessorsInitialized(
1978 com.google.ortools.sat.ConstraintProto.class, com.google.ortools.sat.ConstraintProto.Builder.class);
1987 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
1996 enforcementLiteral_ = emptyIntList();
1997 if (boolOrBuilder_ !=
null) {
1998 boolOrBuilder_.clear();
2000 if (boolAndBuilder_ !=
null) {
2001 boolAndBuilder_.clear();
2003 if (atMostOneBuilder_ !=
null) {
2004 atMostOneBuilder_.clear();
2006 if (exactlyOneBuilder_ !=
null) {
2007 exactlyOneBuilder_.clear();
2009 if (boolXorBuilder_ !=
null) {
2010 boolXorBuilder_.clear();
2012 if (intDivBuilder_ !=
null) {
2013 intDivBuilder_.clear();
2015 if (intModBuilder_ !=
null) {
2016 intModBuilder_.clear();
2018 if (intProdBuilder_ !=
null) {
2019 intProdBuilder_.clear();
2021 if (linMaxBuilder_ !=
null) {
2022 linMaxBuilder_.clear();
2024 if (linearBuilder_ !=
null) {
2025 linearBuilder_.clear();
2027 if (allDiffBuilder_ !=
null) {
2028 allDiffBuilder_.clear();
2030 if (elementBuilder_ !=
null) {
2031 elementBuilder_.clear();
2033 if (circuitBuilder_ !=
null) {
2034 circuitBuilder_.clear();
2036 if (routesBuilder_ !=
null) {
2037 routesBuilder_.clear();
2039 if (tableBuilder_ !=
null) {
2040 tableBuilder_.clear();
2042 if (automatonBuilder_ !=
null) {
2043 automatonBuilder_.clear();
2045 if (inverseBuilder_ !=
null) {
2046 inverseBuilder_.clear();
2048 if (reservoirBuilder_ !=
null) {
2049 reservoirBuilder_.clear();
2051 if (intervalBuilder_ !=
null) {
2052 intervalBuilder_.clear();
2054 if (noOverlapBuilder_ !=
null) {
2055 noOverlapBuilder_.clear();
2057 if (noOverlap2DBuilder_ !=
null) {
2058 noOverlap2DBuilder_.clear();
2060 if (cumulativeBuilder_ !=
null) {
2061 cumulativeBuilder_.clear();
2063 if (dummyConstraintBuilder_ !=
null) {
2064 dummyConstraintBuilder_.clear();
2066 constraintCase_ = 0;
2072 public com.google.protobuf.Descriptors.Descriptor
2074 return com.google.ortools.sat.CpModelProtobuf.internal_static_operations_research_sat_ConstraintProto_descriptor;
2079 return com.google.ortools.sat.ConstraintProto.getDefaultInstance();
2086 throw newUninitializedMessageException(result);
2094 if (bitField0_ != 0) { buildPartial0(result); }
2095 buildPartialOneofs(result);
2100 private void buildPartial0(com.google.ortools.sat.ConstraintProto result) {
2101 int from_bitField0_ = bitField0_;
2102 if (((from_bitField0_ & 0x00000001) != 0)) {
2103 result.name_ = name_;
2105 if (((from_bitField0_ & 0x00000002) != 0)) {
2106 enforcementLiteral_.makeImmutable();
2107 result.enforcementLiteral_ = enforcementLiteral_;
2111 private void buildPartialOneofs(com.google.ortools.sat.ConstraintProto result) {
2112 result.constraintCase_ = constraintCase_;
2113 result.constraint_ = this.constraint_;
2114 if (constraintCase_ == 3 &&
2115 boolOrBuilder_ !=
null) {
2116 result.constraint_ = boolOrBuilder_.build();
2118 if (constraintCase_ == 4 &&
2119 boolAndBuilder_ !=
null) {
2120 result.constraint_ = boolAndBuilder_.build();
2122 if (constraintCase_ == 26 &&
2123 atMostOneBuilder_ !=
null) {
2124 result.constraint_ = atMostOneBuilder_.build();
2126 if (constraintCase_ == 29 &&
2127 exactlyOneBuilder_ !=
null) {
2128 result.constraint_ = exactlyOneBuilder_.build();
2130 if (constraintCase_ == 5 &&
2131 boolXorBuilder_ !=
null) {
2132 result.constraint_ = boolXorBuilder_.build();
2134 if (constraintCase_ == 7 &&
2135 intDivBuilder_ !=
null) {
2136 result.constraint_ = intDivBuilder_.build();
2138 if (constraintCase_ == 8 &&
2139 intModBuilder_ !=
null) {
2140 result.constraint_ = intModBuilder_.build();
2142 if (constraintCase_ == 11 &&
2143 intProdBuilder_ !=
null) {
2144 result.constraint_ = intProdBuilder_.build();
2146 if (constraintCase_ == 27 &&
2147 linMaxBuilder_ !=
null) {
2148 result.constraint_ = linMaxBuilder_.build();
2150 if (constraintCase_ == 12 &&
2151 linearBuilder_ !=
null) {
2152 result.constraint_ = linearBuilder_.build();
2154 if (constraintCase_ == 13 &&
2155 allDiffBuilder_ !=
null) {
2156 result.constraint_ = allDiffBuilder_.build();
2158 if (constraintCase_ == 14 &&
2159 elementBuilder_ !=
null) {
2160 result.constraint_ = elementBuilder_.build();
2162 if (constraintCase_ == 15 &&
2163 circuitBuilder_ !=
null) {
2164 result.constraint_ = circuitBuilder_.build();
2166 if (constraintCase_ == 23 &&
2167 routesBuilder_ !=
null) {
2168 result.constraint_ = routesBuilder_.build();
2170 if (constraintCase_ == 16 &&
2171 tableBuilder_ !=
null) {
2172 result.constraint_ = tableBuilder_.build();
2174 if (constraintCase_ == 17 &&
2175 automatonBuilder_ !=
null) {
2176 result.constraint_ = automatonBuilder_.build();
2178 if (constraintCase_ == 18 &&
2179 inverseBuilder_ !=
null) {
2180 result.constraint_ = inverseBuilder_.build();
2182 if (constraintCase_ == 24 &&
2183 reservoirBuilder_ !=
null) {
2184 result.constraint_ = reservoirBuilder_.build();
2186 if (constraintCase_ == 19 &&
2187 intervalBuilder_ !=
null) {
2188 result.constraint_ = intervalBuilder_.build();
2190 if (constraintCase_ == 20 &&
2191 noOverlapBuilder_ !=
null) {
2192 result.constraint_ = noOverlapBuilder_.build();
2194 if (constraintCase_ == 21 &&
2195 noOverlap2DBuilder_ !=
null) {
2196 result.constraint_ = noOverlap2DBuilder_.build();
2198 if (constraintCase_ == 22 &&
2199 cumulativeBuilder_ !=
null) {
2200 result.constraint_ = cumulativeBuilder_.build();
2202 if (constraintCase_ == 30 &&
2203 dummyConstraintBuilder_ !=
null) {
2204 result.constraint_ = dummyConstraintBuilder_.build();
2210 if (other instanceof com.google.ortools.sat.ConstraintProto) {
2211 return mergeFrom((com.google.ortools.sat.ConstraintProto)other);
2213 super.mergeFrom(other);
2219 if (other == com.google.ortools.sat.ConstraintProto.getDefaultInstance())
return this;
2220 if (!other.getName().isEmpty()) {
2221 name_ = other.name_;
2222 bitField0_ |= 0x00000001;
2225 if (!other.enforcementLiteral_.isEmpty()) {
2226 if (enforcementLiteral_.isEmpty()) {
2227 enforcementLiteral_ = other.enforcementLiteral_;
2228 enforcementLiteral_.makeImmutable();
2229 bitField0_ |= 0x00000002;
2231 ensureEnforcementLiteralIsMutable();
2232 enforcementLiteral_.addAll(other.enforcementLiteral_);
2236 switch (other.getConstraintCase()) {
2317 case NO_OVERLAP_2D: {
2325 case DUMMY_CONSTRAINT: {
2329 case CONSTRAINT_NOT_SET: {
2333 this.mergeUnknownFields(other.getUnknownFields());
2345 com.google.protobuf.CodedInputStream input,
2346 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2347 throws java.io.IOException {
2348 if (extensionRegistry ==
null) {
2349 throw new java.lang.NullPointerException();
2352 boolean done =
false;
2354 int tag = input.readTag();
2360 name_ = input.readStringRequireUtf8();
2361 bitField0_ |= 0x00000001;
2365 int v = input.readInt32();
2366 ensureEnforcementLiteralIsMutable();
2367 enforcementLiteral_.addInt(v);
2371 int length = input.readRawVarint32();
2372 int limit = input.pushLimit(length);
2373 ensureEnforcementLiteralIsMutable();
2374 while (input.getBytesUntilLimit() > 0) {
2375 enforcementLiteral_.addInt(input.readInt32());
2377 input.popLimit(limit);
2382 getBoolOrFieldBuilder().getBuilder(),
2384 constraintCase_ = 3;
2389 getBoolAndFieldBuilder().getBuilder(),
2391 constraintCase_ = 4;
2396 getBoolXorFieldBuilder().getBuilder(),
2398 constraintCase_ = 5;
2403 getIntDivFieldBuilder().getBuilder(),
2405 constraintCase_ = 7;
2410 getIntModFieldBuilder().getBuilder(),
2412 constraintCase_ = 8;
2417 getIntProdFieldBuilder().getBuilder(),
2419 constraintCase_ = 11;
2424 getLinearFieldBuilder().getBuilder(),
2426 constraintCase_ = 12;
2431 getAllDiffFieldBuilder().getBuilder(),
2433 constraintCase_ = 13;
2438 getElementFieldBuilder().getBuilder(),
2440 constraintCase_ = 14;
2445 getCircuitFieldBuilder().getBuilder(),
2447 constraintCase_ = 15;
2452 getTableFieldBuilder().getBuilder(),
2454 constraintCase_ = 16;
2459 getAutomatonFieldBuilder().getBuilder(),
2461 constraintCase_ = 17;
2466 getInverseFieldBuilder().getBuilder(),
2468 constraintCase_ = 18;
2473 getIntervalFieldBuilder().getBuilder(),
2475 constraintCase_ = 19;
2480 getNoOverlapFieldBuilder().getBuilder(),
2482 constraintCase_ = 20;
2487 getNoOverlap2DFieldBuilder().getBuilder(),
2489 constraintCase_ = 21;
2494 getCumulativeFieldBuilder().getBuilder(),
2496 constraintCase_ = 22;
2501 getRoutesFieldBuilder().getBuilder(),
2503 constraintCase_ = 23;
2508 getReservoirFieldBuilder().getBuilder(),
2510 constraintCase_ = 24;
2515 getAtMostOneFieldBuilder().getBuilder(),
2517 constraintCase_ = 26;
2522 getLinMaxFieldBuilder().getBuilder(),
2524 constraintCase_ = 27;
2529 getExactlyOneFieldBuilder().getBuilder(),
2531 constraintCase_ = 29;
2536 getDummyConstraintFieldBuilder().getBuilder(),
2538 constraintCase_ = 30;
2542 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
2549 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
2550 throw e.unwrapIOException();
2556 private int constraintCase_ = 0;
2557 private java.lang.Object constraint_;
2565 constraintCase_ = 0;
2571 private int bitField0_;
2573 private java.lang.Object name_ =
"";
2583 java.lang.Object ref = name_;
2584 if (!(ref instanceof java.lang.String)) {
2585 com.google.protobuf.ByteString bs =
2586 (com.google.protobuf.ByteString) ref;
2587 java.lang.String s = bs.toStringUtf8();
2591 return (java.lang.String) ref;
2602 public com.google.protobuf.ByteString
2604 java.lang.Object ref = name_;
2605 if (ref instanceof String) {
2606 com.google.protobuf.ByteString b =
2607 com.google.protobuf.ByteString.copyFromUtf8(
2608 (java.lang.String) ref);
2612 return (com.google.protobuf.ByteString) ref;
2625 java.lang.String value) {
2626 if (value ==
null) {
throw new NullPointerException(); }
2628 bitField0_ |= 0x00000001;
2642 bitField0_ = (bitField0_ & ~0x00000001);
2656 com.google.protobuf.ByteString value) {
2657 if (value ==
null) {
throw new NullPointerException(); }
2658 checkByteStringIsUtf8(value);
2660 bitField0_ |= 0x00000001;
2665 private com.google.protobuf.Internal.IntList enforcementLiteral_ = emptyIntList();
2666 private void ensureEnforcementLiteralIsMutable() {
2667 if (!enforcementLiteral_.isModifiable()) {
2668 enforcementLiteral_ = makeMutableCopy(enforcementLiteral_);
2670 bitField0_ |= 0x00000002;
2693 public java.util.List<java.lang.Integer>
2695 enforcementLiteral_.makeImmutable();
2696 return enforcementLiteral_;
2720 return enforcementLiteral_.size();
2745 return enforcementLiteral_.getInt(index);
2771 int index,
int value) {
2773 ensureEnforcementLiteralIsMutable();
2774 enforcementLiteral_.setInt(index, value);
2775 bitField0_ |= 0x00000002;
2803 ensureEnforcementLiteralIsMutable();
2804 enforcementLiteral_.addInt(value);
2805 bitField0_ |= 0x00000002;
2832 java.lang.Iterable<? extends java.lang.Integer> values) {
2833 ensureEnforcementLiteralIsMutable();
2834 com.google.protobuf.AbstractMessageLite.Builder.addAll(
2835 values, enforcementLiteral_);
2836 bitField0_ |= 0x00000002;
2862 enforcementLiteral_ = emptyIntList();
2863 bitField0_ = (bitField0_ & ~0x00000002);
2868 private com.google.protobuf.SingleFieldBuilder<
2869 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolOrBuilder_;
2880 return constraintCase_ == 3;
2892 if (boolOrBuilder_ ==
null) {
2893 if (constraintCase_ == 3) {
2894 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
2896 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2898 if (constraintCase_ == 3) {
2899 return boolOrBuilder_.getMessage();
2901 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
2912 if (boolOrBuilder_ ==
null) {
2913 if (value ==
null) {
2914 throw new NullPointerException();
2916 constraint_ = value;
2919 boolOrBuilder_.setMessage(value);
2921 constraintCase_ = 3;
2932 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
2933 if (boolOrBuilder_ ==
null) {
2934 constraint_ = builderForValue.build();
2937 boolOrBuilder_.setMessage(builderForValue.build());
2939 constraintCase_ = 3;
2950 if (boolOrBuilder_ ==
null) {
2951 if (constraintCase_ == 3 &&
2952 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
2953 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
2954 .mergeFrom(value).buildPartial();
2956 constraint_ = value;
2960 if (constraintCase_ == 3) {
2961 boolOrBuilder_.mergeFrom(value);
2963 boolOrBuilder_.setMessage(value);
2966 constraintCase_ = 3;
2977 if (boolOrBuilder_ ==
null) {
2978 if (constraintCase_ == 3) {
2979 constraintCase_ = 0;
2984 if (constraintCase_ == 3) {
2985 constraintCase_ = 0;
2988 boolOrBuilder_.clear();
3000 return getBoolOrFieldBuilder().getBuilder();
3011 if ((constraintCase_ == 3) && (boolOrBuilder_ !=
null)) {
3012 return boolOrBuilder_.getMessageOrBuilder();
3014 if (constraintCase_ == 3) {
3015 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3017 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3027 private com.google.protobuf.SingleFieldBuilder<
3028 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3029 getBoolOrFieldBuilder() {
3030 if (boolOrBuilder_ ==
null) {
3031 if (!(constraintCase_ == 3)) {
3032 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3034 boolOrBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3035 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3036 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3037 getParentForChildren(),
3041 constraintCase_ = 3;
3043 return boolOrBuilder_;
3046 private com.google.protobuf.SingleFieldBuilder<
3047 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolAndBuilder_;
3062 return constraintCase_ == 4;
3078 if (boolAndBuilder_ ==
null) {
3079 if (constraintCase_ == 4) {
3080 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3082 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3084 if (constraintCase_ == 4) {
3085 return boolAndBuilder_.getMessage();
3087 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3102 if (boolAndBuilder_ ==
null) {
3103 if (value ==
null) {
3104 throw new NullPointerException();
3106 constraint_ = value;
3109 boolAndBuilder_.setMessage(value);
3111 constraintCase_ = 4;
3126 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3127 if (boolAndBuilder_ ==
null) {
3128 constraint_ = builderForValue.build();
3131 boolAndBuilder_.setMessage(builderForValue.build());
3133 constraintCase_ = 4;
3148 if (boolAndBuilder_ ==
null) {
3149 if (constraintCase_ == 4 &&
3150 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3151 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3152 .mergeFrom(value).buildPartial();
3154 constraint_ = value;
3158 if (constraintCase_ == 4) {
3159 boolAndBuilder_.mergeFrom(value);
3161 boolAndBuilder_.setMessage(value);
3164 constraintCase_ = 4;
3179 if (boolAndBuilder_ ==
null) {
3180 if (constraintCase_ == 4) {
3181 constraintCase_ = 0;
3186 if (constraintCase_ == 4) {
3187 constraintCase_ = 0;
3190 boolAndBuilder_.clear();
3206 return getBoolAndFieldBuilder().getBuilder();
3221 if ((constraintCase_ == 4) && (boolAndBuilder_ !=
null)) {
3222 return boolAndBuilder_.getMessageOrBuilder();
3224 if (constraintCase_ == 4) {
3225 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3227 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3241 private com.google.protobuf.SingleFieldBuilder<
3242 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3243 getBoolAndFieldBuilder() {
3244 if (boolAndBuilder_ ==
null) {
3245 if (!(constraintCase_ == 4)) {
3246 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3248 boolAndBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3249 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3250 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3251 getParentForChildren(),
3255 constraintCase_ = 4;
3257 return boolAndBuilder_;
3260 private com.google.protobuf.SingleFieldBuilder<
3261 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> atMostOneBuilder_;
3282 return constraintCase_ == 26;
3304 if (atMostOneBuilder_ ==
null) {
3305 if (constraintCase_ == 26) {
3306 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3308 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3310 if (constraintCase_ == 26) {
3311 return atMostOneBuilder_.getMessage();
3313 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3334 if (atMostOneBuilder_ ==
null) {
3335 if (value ==
null) {
3336 throw new NullPointerException();
3338 constraint_ = value;
3341 atMostOneBuilder_.setMessage(value);
3343 constraintCase_ = 26;
3364 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3365 if (atMostOneBuilder_ ==
null) {
3366 constraint_ = builderForValue.build();
3369 atMostOneBuilder_.setMessage(builderForValue.build());
3371 constraintCase_ = 26;
3392 if (atMostOneBuilder_ ==
null) {
3393 if (constraintCase_ == 26 &&
3394 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3395 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3396 .mergeFrom(value).buildPartial();
3398 constraint_ = value;
3402 if (constraintCase_ == 26) {
3403 atMostOneBuilder_.mergeFrom(value);
3405 atMostOneBuilder_.setMessage(value);
3408 constraintCase_ = 26;
3429 if (atMostOneBuilder_ ==
null) {
3430 if (constraintCase_ == 26) {
3431 constraintCase_ = 0;
3436 if (constraintCase_ == 26) {
3437 constraintCase_ = 0;
3440 atMostOneBuilder_.clear();
3462 return getAtMostOneFieldBuilder().getBuilder();
3483 if ((constraintCase_ == 26) && (atMostOneBuilder_ !=
null)) {
3484 return atMostOneBuilder_.getMessageOrBuilder();
3486 if (constraintCase_ == 26) {
3487 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3489 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3509 private com.google.protobuf.SingleFieldBuilder<
3510 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3511 getAtMostOneFieldBuilder() {
3512 if (atMostOneBuilder_ ==
null) {
3513 if (!(constraintCase_ == 26)) {
3514 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3516 atMostOneBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3517 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3518 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3519 getParentForChildren(),
3523 constraintCase_ = 26;
3525 return atMostOneBuilder_;
3528 private com.google.protobuf.SingleFieldBuilder<
3529 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> exactlyOneBuilder_;
3551 return constraintCase_ == 29;
3574 if (exactlyOneBuilder_ ==
null) {
3575 if (constraintCase_ == 29) {
3576 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3578 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3580 if (constraintCase_ == 29) {
3581 return exactlyOneBuilder_.getMessage();
3583 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3605 if (exactlyOneBuilder_ ==
null) {
3606 if (value ==
null) {
3607 throw new NullPointerException();
3609 constraint_ = value;
3612 exactlyOneBuilder_.setMessage(value);
3614 constraintCase_ = 29;
3636 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3637 if (exactlyOneBuilder_ ==
null) {
3638 constraint_ = builderForValue.build();
3641 exactlyOneBuilder_.setMessage(builderForValue.build());
3643 constraintCase_ = 29;
3665 if (exactlyOneBuilder_ ==
null) {
3666 if (constraintCase_ == 29 &&
3667 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3668 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3669 .mergeFrom(value).buildPartial();
3671 constraint_ = value;
3675 if (constraintCase_ == 29) {
3676 exactlyOneBuilder_.mergeFrom(value);
3678 exactlyOneBuilder_.setMessage(value);
3681 constraintCase_ = 29;
3703 if (exactlyOneBuilder_ ==
null) {
3704 if (constraintCase_ == 29) {
3705 constraintCase_ = 0;
3710 if (constraintCase_ == 29) {
3711 constraintCase_ = 0;
3714 exactlyOneBuilder_.clear();
3737 return getExactlyOneFieldBuilder().getBuilder();
3759 if ((constraintCase_ == 29) && (exactlyOneBuilder_ !=
null)) {
3760 return exactlyOneBuilder_.getMessageOrBuilder();
3762 if (constraintCase_ == 29) {
3763 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3765 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3786 private com.google.protobuf.SingleFieldBuilder<
3787 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3788 getExactlyOneFieldBuilder() {
3789 if (exactlyOneBuilder_ ==
null) {
3790 if (!(constraintCase_ == 29)) {
3791 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3793 exactlyOneBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3794 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3795 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3796 getParentForChildren(),
3800 constraintCase_ = 29;
3802 return exactlyOneBuilder_;
3805 private com.google.protobuf.SingleFieldBuilder<
3806 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder> boolXorBuilder_;
3817 return constraintCase_ == 5;
3829 if (boolXorBuilder_ ==
null) {
3830 if (constraintCase_ == 5) {
3831 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3833 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3835 if (constraintCase_ == 5) {
3836 return boolXorBuilder_.getMessage();
3838 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3849 if (boolXorBuilder_ ==
null) {
3850 if (value ==
null) {
3851 throw new NullPointerException();
3853 constraint_ = value;
3856 boolXorBuilder_.setMessage(value);
3858 constraintCase_ = 5;
3869 com.google.ortools.sat.BoolArgumentProto.Builder builderForValue) {
3870 if (boolXorBuilder_ ==
null) {
3871 constraint_ = builderForValue.build();
3874 boolXorBuilder_.setMessage(builderForValue.build());
3876 constraintCase_ = 5;
3887 if (boolXorBuilder_ ==
null) {
3888 if (constraintCase_ == 5 &&
3889 constraint_ != com.google.ortools.sat.BoolArgumentProto.getDefaultInstance()) {
3890 constraint_ = com.google.ortools.sat.BoolArgumentProto.newBuilder((com.google.ortools.sat.BoolArgumentProto) constraint_)
3891 .mergeFrom(value).buildPartial();
3893 constraint_ = value;
3897 if (constraintCase_ == 5) {
3898 boolXorBuilder_.mergeFrom(value);
3900 boolXorBuilder_.setMessage(value);
3903 constraintCase_ = 5;
3914 if (boolXorBuilder_ ==
null) {
3915 if (constraintCase_ == 5) {
3916 constraintCase_ = 0;
3921 if (constraintCase_ == 5) {
3922 constraintCase_ = 0;
3925 boolXorBuilder_.clear();
3937 return getBoolXorFieldBuilder().getBuilder();
3948 if ((constraintCase_ == 5) && (boolXorBuilder_ !=
null)) {
3949 return boolXorBuilder_.getMessageOrBuilder();
3951 if (constraintCase_ == 5) {
3952 return (com.google.ortools.sat.BoolArgumentProto) constraint_;
3954 return com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3964 private com.google.protobuf.SingleFieldBuilder<
3965 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>
3966 getBoolXorFieldBuilder() {
3967 if (boolXorBuilder_ ==
null) {
3968 if (!(constraintCase_ == 5)) {
3969 constraint_ = com.google.ortools.sat.BoolArgumentProto.getDefaultInstance();
3971 boolXorBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
3972 com.google.ortools.sat.BoolArgumentProto, com.google.ortools.sat.BoolArgumentProto.Builder, com.google.ortools.sat.BoolArgumentProtoOrBuilder>(
3973 (com.google.ortools.sat.BoolArgumentProto) constraint_,
3974 getParentForChildren(),
3978 constraintCase_ = 5;
3980 return boolXorBuilder_;
3983 private com.google.protobuf.SingleFieldBuilder<
3984 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intDivBuilder_;
4001 return constraintCase_ == 7;
4019 if (intDivBuilder_ ==
null) {
4020 if (constraintCase_ == 7) {
4021 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4023 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4025 if (constraintCase_ == 7) {
4026 return intDivBuilder_.getMessage();
4028 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4045 if (intDivBuilder_ ==
null) {
4046 if (value ==
null) {
4047 throw new NullPointerException();
4049 constraint_ = value;
4052 intDivBuilder_.setMessage(value);
4054 constraintCase_ = 7;
4071 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4072 if (intDivBuilder_ ==
null) {
4073 constraint_ = builderForValue.build();
4076 intDivBuilder_.setMessage(builderForValue.build());
4078 constraintCase_ = 7;
4095 if (intDivBuilder_ ==
null) {
4096 if (constraintCase_ == 7 &&
4097 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4098 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4099 .mergeFrom(value).buildPartial();
4101 constraint_ = value;
4105 if (constraintCase_ == 7) {
4106 intDivBuilder_.mergeFrom(value);
4108 intDivBuilder_.setMessage(value);
4111 constraintCase_ = 7;
4128 if (intDivBuilder_ ==
null) {
4129 if (constraintCase_ == 7) {
4130 constraintCase_ = 0;
4135 if (constraintCase_ == 7) {
4136 constraintCase_ = 0;
4139 intDivBuilder_.clear();
4157 return getIntDivFieldBuilder().getBuilder();
4174 if ((constraintCase_ == 7) && (intDivBuilder_ !=
null)) {
4175 return intDivBuilder_.getMessageOrBuilder();
4177 if (constraintCase_ == 7) {
4178 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4180 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4196 private com.google.protobuf.SingleFieldBuilder<
4197 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4198 getIntDivFieldBuilder() {
4199 if (intDivBuilder_ ==
null) {
4200 if (!(constraintCase_ == 7)) {
4201 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4203 intDivBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4204 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4205 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4206 getParentForChildren(),
4210 constraintCase_ = 7;
4212 return intDivBuilder_;
4215 private com.google.protobuf.SingleFieldBuilder<
4216 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intModBuilder_;
4229 return constraintCase_ == 8;
4243 if (intModBuilder_ ==
null) {
4244 if (constraintCase_ == 8) {
4245 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4247 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4249 if (constraintCase_ == 8) {
4250 return intModBuilder_.getMessage();
4252 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4265 if (intModBuilder_ ==
null) {
4266 if (value ==
null) {
4267 throw new NullPointerException();
4269 constraint_ = value;
4272 intModBuilder_.setMessage(value);
4274 constraintCase_ = 8;
4287 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4288 if (intModBuilder_ ==
null) {
4289 constraint_ = builderForValue.build();
4292 intModBuilder_.setMessage(builderForValue.build());
4294 constraintCase_ = 8;
4307 if (intModBuilder_ ==
null) {
4308 if (constraintCase_ == 8 &&
4309 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4310 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4311 .mergeFrom(value).buildPartial();
4313 constraint_ = value;
4317 if (constraintCase_ == 8) {
4318 intModBuilder_.mergeFrom(value);
4320 intModBuilder_.setMessage(value);
4323 constraintCase_ = 8;
4336 if (intModBuilder_ ==
null) {
4337 if (constraintCase_ == 8) {
4338 constraintCase_ = 0;
4343 if (constraintCase_ == 8) {
4344 constraintCase_ = 0;
4347 intModBuilder_.clear();
4361 return getIntModFieldBuilder().getBuilder();
4374 if ((constraintCase_ == 8) && (intModBuilder_ !=
null)) {
4375 return intModBuilder_.getMessageOrBuilder();
4377 if (constraintCase_ == 8) {
4378 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4380 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4392 private com.google.protobuf.SingleFieldBuilder<
4393 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4394 getIntModFieldBuilder() {
4395 if (intModBuilder_ ==
null) {
4396 if (!(constraintCase_ == 8)) {
4397 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4399 intModBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4400 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4401 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4402 getParentForChildren(),
4406 constraintCase_ = 8;
4408 return intModBuilder_;
4411 private com.google.protobuf.SingleFieldBuilder<
4412 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> intProdBuilder_;
4430 return constraintCase_ == 11;
4449 if (intProdBuilder_ ==
null) {
4450 if (constraintCase_ == 11) {
4451 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4453 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4455 if (constraintCase_ == 11) {
4456 return intProdBuilder_.getMessage();
4458 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4476 if (intProdBuilder_ ==
null) {
4477 if (value ==
null) {
4478 throw new NullPointerException();
4480 constraint_ = value;
4483 intProdBuilder_.setMessage(value);
4485 constraintCase_ = 11;
4503 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4504 if (intProdBuilder_ ==
null) {
4505 constraint_ = builderForValue.build();
4508 intProdBuilder_.setMessage(builderForValue.build());
4510 constraintCase_ = 11;
4528 if (intProdBuilder_ ==
null) {
4529 if (constraintCase_ == 11 &&
4530 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4531 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4532 .mergeFrom(value).buildPartial();
4534 constraint_ = value;
4538 if (constraintCase_ == 11) {
4539 intProdBuilder_.mergeFrom(value);
4541 intProdBuilder_.setMessage(value);
4544 constraintCase_ = 11;
4562 if (intProdBuilder_ ==
null) {
4563 if (constraintCase_ == 11) {
4564 constraintCase_ = 0;
4569 if (constraintCase_ == 11) {
4570 constraintCase_ = 0;
4573 intProdBuilder_.clear();
4592 return getIntProdFieldBuilder().getBuilder();
4610 if ((constraintCase_ == 11) && (intProdBuilder_ !=
null)) {
4611 return intProdBuilder_.getMessageOrBuilder();
4613 if (constraintCase_ == 11) {
4614 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4616 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4633 private com.google.protobuf.SingleFieldBuilder<
4634 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4635 getIntProdFieldBuilder() {
4636 if (intProdBuilder_ ==
null) {
4637 if (!(constraintCase_ == 11)) {
4638 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4640 intProdBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4641 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4642 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4643 getParentForChildren(),
4647 constraintCase_ = 11;
4649 return intProdBuilder_;
4652 private com.google.protobuf.SingleFieldBuilder<
4653 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder> linMaxBuilder_;
4666 return constraintCase_ == 27;
4680 if (linMaxBuilder_ ==
null) {
4681 if (constraintCase_ == 27) {
4682 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4684 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4686 if (constraintCase_ == 27) {
4687 return linMaxBuilder_.getMessage();
4689 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4702 if (linMaxBuilder_ ==
null) {
4703 if (value ==
null) {
4704 throw new NullPointerException();
4706 constraint_ = value;
4709 linMaxBuilder_.setMessage(value);
4711 constraintCase_ = 27;
4724 com.google.ortools.sat.LinearArgumentProto.Builder builderForValue) {
4725 if (linMaxBuilder_ ==
null) {
4726 constraint_ = builderForValue.build();
4729 linMaxBuilder_.setMessage(builderForValue.build());
4731 constraintCase_ = 27;
4744 if (linMaxBuilder_ ==
null) {
4745 if (constraintCase_ == 27 &&
4746 constraint_ != com.google.ortools.sat.LinearArgumentProto.getDefaultInstance()) {
4747 constraint_ = com.google.ortools.sat.LinearArgumentProto.newBuilder((com.google.ortools.sat.LinearArgumentProto) constraint_)
4748 .mergeFrom(value).buildPartial();
4750 constraint_ = value;
4754 if (constraintCase_ == 27) {
4755 linMaxBuilder_.mergeFrom(value);
4757 linMaxBuilder_.setMessage(value);
4760 constraintCase_ = 27;
4773 if (linMaxBuilder_ ==
null) {
4774 if (constraintCase_ == 27) {
4775 constraintCase_ = 0;
4780 if (constraintCase_ == 27) {
4781 constraintCase_ = 0;
4784 linMaxBuilder_.clear();
4798 return getLinMaxFieldBuilder().getBuilder();
4811 if ((constraintCase_ == 27) && (linMaxBuilder_ !=
null)) {
4812 return linMaxBuilder_.getMessageOrBuilder();
4814 if (constraintCase_ == 27) {
4815 return (com.google.ortools.sat.LinearArgumentProto) constraint_;
4817 return com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4829 private com.google.protobuf.SingleFieldBuilder<
4830 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>
4831 getLinMaxFieldBuilder() {
4832 if (linMaxBuilder_ ==
null) {
4833 if (!(constraintCase_ == 27)) {
4834 constraint_ = com.google.ortools.sat.LinearArgumentProto.getDefaultInstance();
4836 linMaxBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
4837 com.google.ortools.sat.LinearArgumentProto, com.google.ortools.sat.LinearArgumentProto.Builder, com.google.ortools.sat.LinearArgumentProtoOrBuilder>(
4838 (com.google.ortools.sat.LinearArgumentProto) constraint_,
4839 getParentForChildren(),
4843 constraintCase_ = 27;
4845 return linMaxBuilder_;
4848 private com.google.protobuf.SingleFieldBuilder<
4849 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder> linearBuilder_;
4861 return constraintCase_ == 12;
4874 if (linearBuilder_ ==
null) {
4875 if (constraintCase_ == 12) {
4876 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
4878 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4880 if (constraintCase_ == 12) {
4881 return linearBuilder_.getMessage();
4883 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
4895 if (linearBuilder_ ==
null) {
4896 if (value ==
null) {
4897 throw new NullPointerException();
4899 constraint_ = value;
4902 linearBuilder_.setMessage(value);
4904 constraintCase_ = 12;
4916 com.google.ortools.sat.LinearConstraintProto.Builder builderForValue) {
4917 if (linearBuilder_ ==
null) {
4918 constraint_ = builderForValue.build();
4921 linearBuilder_.setMessage(builderForValue.build());
4923 constraintCase_ = 12;
4935 if (linearBuilder_ ==
null) {
4936 if (constraintCase_ == 12 &&
4937 constraint_ != com.google.ortools.sat.LinearConstraintProto.getDefaultInstance()) {
4938 constraint_ = com.google.ortools.sat.LinearConstraintProto.newBuilder((com.google.ortools.sat.LinearConstraintProto) constraint_)
4939 .mergeFrom(value).buildPartial();
4941 constraint_ = value;
4945 if (constraintCase_ == 12) {
4946 linearBuilder_.mergeFrom(value);
4948 linearBuilder_.setMessage(value);
4951 constraintCase_ = 12;
4963 if (linearBuilder_ ==
null) {
4964 if (constraintCase_ == 12) {
4965 constraintCase_ = 0;
4970 if (constraintCase_ == 12) {
4971 constraintCase_ = 0;
4974 linearBuilder_.clear();
4987 return getLinearFieldBuilder().getBuilder();
4999 if ((constraintCase_ == 12) && (linearBuilder_ !=
null)) {
5000 return linearBuilder_.getMessageOrBuilder();
5002 if (constraintCase_ == 12) {
5003 return (com.google.ortools.sat.LinearConstraintProto) constraint_;
5005 return com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5016 private com.google.protobuf.SingleFieldBuilder<
5017 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>
5018 getLinearFieldBuilder() {
5019 if (linearBuilder_ ==
null) {
5020 if (!(constraintCase_ == 12)) {
5021 constraint_ = com.google.ortools.sat.LinearConstraintProto.getDefaultInstance();
5023 linearBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5024 com.google.ortools.sat.LinearConstraintProto, com.google.ortools.sat.LinearConstraintProto.Builder, com.google.ortools.sat.LinearConstraintProtoOrBuilder>(
5025 (com.google.ortools.sat.LinearConstraintProto) constraint_,
5026 getParentForChildren(),
5030 constraintCase_ = 12;
5032 return linearBuilder_;
5035 private com.google.protobuf.SingleFieldBuilder<
5036 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder> allDiffBuilder_;
5047 return constraintCase_ == 13;
5059 if (allDiffBuilder_ ==
null) {
5060 if (constraintCase_ == 13) {
5061 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5063 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5065 if (constraintCase_ == 13) {
5066 return allDiffBuilder_.getMessage();
5068 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5079 if (allDiffBuilder_ ==
null) {
5080 if (value ==
null) {
5081 throw new NullPointerException();
5083 constraint_ = value;
5086 allDiffBuilder_.setMessage(value);
5088 constraintCase_ = 13;
5099 com.google.ortools.sat.AllDifferentConstraintProto.Builder builderForValue) {
5100 if (allDiffBuilder_ ==
null) {
5101 constraint_ = builderForValue.build();
5104 allDiffBuilder_.setMessage(builderForValue.build());
5106 constraintCase_ = 13;
5117 if (allDiffBuilder_ ==
null) {
5118 if (constraintCase_ == 13 &&
5119 constraint_ != com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance()) {
5120 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.newBuilder((com.google.ortools.sat.AllDifferentConstraintProto) constraint_)
5121 .mergeFrom(value).buildPartial();
5123 constraint_ = value;
5127 if (constraintCase_ == 13) {
5128 allDiffBuilder_.mergeFrom(value);
5130 allDiffBuilder_.setMessage(value);
5133 constraintCase_ = 13;
5144 if (allDiffBuilder_ ==
null) {
5145 if (constraintCase_ == 13) {
5146 constraintCase_ = 0;
5151 if (constraintCase_ == 13) {
5152 constraintCase_ = 0;
5155 allDiffBuilder_.clear();
5167 return getAllDiffFieldBuilder().getBuilder();
5178 if ((constraintCase_ == 13) && (allDiffBuilder_ !=
null)) {
5179 return allDiffBuilder_.getMessageOrBuilder();
5181 if (constraintCase_ == 13) {
5182 return (com.google.ortools.sat.AllDifferentConstraintProto) constraint_;
5184 return com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5194 private com.google.protobuf.SingleFieldBuilder<
5195 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>
5196 getAllDiffFieldBuilder() {
5197 if (allDiffBuilder_ ==
null) {
5198 if (!(constraintCase_ == 13)) {
5199 constraint_ = com.google.ortools.sat.AllDifferentConstraintProto.getDefaultInstance();
5201 allDiffBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5202 com.google.ortools.sat.AllDifferentConstraintProto, com.google.ortools.sat.AllDifferentConstraintProto.Builder, com.google.ortools.sat.AllDifferentConstraintProtoOrBuilder>(
5203 (com.google.ortools.sat.AllDifferentConstraintProto) constraint_,
5204 getParentForChildren(),
5208 constraintCase_ = 13;
5210 return allDiffBuilder_;
5213 private com.google.protobuf.SingleFieldBuilder<
5214 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder> elementBuilder_;
5226 return constraintCase_ == 14;
5239 if (elementBuilder_ ==
null) {
5240 if (constraintCase_ == 14) {
5241 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5243 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5245 if (constraintCase_ == 14) {
5246 return elementBuilder_.getMessage();
5248 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5260 if (elementBuilder_ ==
null) {
5261 if (value ==
null) {
5262 throw new NullPointerException();
5264 constraint_ = value;
5267 elementBuilder_.setMessage(value);
5269 constraintCase_ = 14;
5281 com.google.ortools.sat.ElementConstraintProto.Builder builderForValue) {
5282 if (elementBuilder_ ==
null) {
5283 constraint_ = builderForValue.build();
5286 elementBuilder_.setMessage(builderForValue.build());
5288 constraintCase_ = 14;
5300 if (elementBuilder_ ==
null) {
5301 if (constraintCase_ == 14 &&
5302 constraint_ != com.google.ortools.sat.ElementConstraintProto.getDefaultInstance()) {
5303 constraint_ = com.google.ortools.sat.ElementConstraintProto.newBuilder((com.google.ortools.sat.ElementConstraintProto) constraint_)
5304 .mergeFrom(value).buildPartial();
5306 constraint_ = value;
5310 if (constraintCase_ == 14) {
5311 elementBuilder_.mergeFrom(value);
5313 elementBuilder_.setMessage(value);
5316 constraintCase_ = 14;
5328 if (elementBuilder_ ==
null) {
5329 if (constraintCase_ == 14) {
5330 constraintCase_ = 0;
5335 if (constraintCase_ == 14) {
5336 constraintCase_ = 0;
5339 elementBuilder_.clear();
5352 return getElementFieldBuilder().getBuilder();
5364 if ((constraintCase_ == 14) && (elementBuilder_ !=
null)) {
5365 return elementBuilder_.getMessageOrBuilder();
5367 if (constraintCase_ == 14) {
5368 return (com.google.ortools.sat.ElementConstraintProto) constraint_;
5370 return com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5381 private com.google.protobuf.SingleFieldBuilder<
5382 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>
5383 getElementFieldBuilder() {
5384 if (elementBuilder_ ==
null) {
5385 if (!(constraintCase_ == 14)) {
5386 constraint_ = com.google.ortools.sat.ElementConstraintProto.getDefaultInstance();
5388 elementBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5389 com.google.ortools.sat.ElementConstraintProto, com.google.ortools.sat.ElementConstraintProto.Builder, com.google.ortools.sat.ElementConstraintProtoOrBuilder>(
5390 (com.google.ortools.sat.ElementConstraintProto) constraint_,
5391 getParentForChildren(),
5395 constraintCase_ = 14;
5397 return elementBuilder_;
5400 private com.google.protobuf.SingleFieldBuilder<
5401 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder> circuitBuilder_;
5413 return constraintCase_ == 15;
5426 if (circuitBuilder_ ==
null) {
5427 if (constraintCase_ == 15) {
5428 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5430 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5432 if (constraintCase_ == 15) {
5433 return circuitBuilder_.getMessage();
5435 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5447 if (circuitBuilder_ ==
null) {
5448 if (value ==
null) {
5449 throw new NullPointerException();
5451 constraint_ = value;
5454 circuitBuilder_.setMessage(value);
5456 constraintCase_ = 15;
5468 com.google.ortools.sat.CircuitConstraintProto.Builder builderForValue) {
5469 if (circuitBuilder_ ==
null) {
5470 constraint_ = builderForValue.build();
5473 circuitBuilder_.setMessage(builderForValue.build());
5475 constraintCase_ = 15;
5487 if (circuitBuilder_ ==
null) {
5488 if (constraintCase_ == 15 &&
5489 constraint_ != com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance()) {
5490 constraint_ = com.google.ortools.sat.CircuitConstraintProto.newBuilder((com.google.ortools.sat.CircuitConstraintProto) constraint_)
5491 .mergeFrom(value).buildPartial();
5493 constraint_ = value;
5497 if (constraintCase_ == 15) {
5498 circuitBuilder_.mergeFrom(value);
5500 circuitBuilder_.setMessage(value);
5503 constraintCase_ = 15;
5515 if (circuitBuilder_ ==
null) {
5516 if (constraintCase_ == 15) {
5517 constraintCase_ = 0;
5522 if (constraintCase_ == 15) {
5523 constraintCase_ = 0;
5526 circuitBuilder_.clear();
5539 return getCircuitFieldBuilder().getBuilder();
5551 if ((constraintCase_ == 15) && (circuitBuilder_ !=
null)) {
5552 return circuitBuilder_.getMessageOrBuilder();
5554 if (constraintCase_ == 15) {
5555 return (com.google.ortools.sat.CircuitConstraintProto) constraint_;
5557 return com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5568 private com.google.protobuf.SingleFieldBuilder<
5569 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>
5570 getCircuitFieldBuilder() {
5571 if (circuitBuilder_ ==
null) {
5572 if (!(constraintCase_ == 15)) {
5573 constraint_ = com.google.ortools.sat.CircuitConstraintProto.getDefaultInstance();
5575 circuitBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5576 com.google.ortools.sat.CircuitConstraintProto, com.google.ortools.sat.CircuitConstraintProto.Builder, com.google.ortools.sat.CircuitConstraintProtoOrBuilder>(
5577 (com.google.ortools.sat.CircuitConstraintProto) constraint_,
5578 getParentForChildren(),
5582 constraintCase_ = 15;
5584 return circuitBuilder_;
5587 private com.google.protobuf.SingleFieldBuilder<
5588 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder> routesBuilder_;
5599 return constraintCase_ == 23;
5611 if (routesBuilder_ ==
null) {
5612 if (constraintCase_ == 23) {
5613 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5615 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5617 if (constraintCase_ == 23) {
5618 return routesBuilder_.getMessage();
5620 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5631 if (routesBuilder_ ==
null) {
5632 if (value ==
null) {
5633 throw new NullPointerException();
5635 constraint_ = value;
5638 routesBuilder_.setMessage(value);
5640 constraintCase_ = 23;
5651 com.google.ortools.sat.RoutesConstraintProto.Builder builderForValue) {
5652 if (routesBuilder_ ==
null) {
5653 constraint_ = builderForValue.build();
5656 routesBuilder_.setMessage(builderForValue.build());
5658 constraintCase_ = 23;
5669 if (routesBuilder_ ==
null) {
5670 if (constraintCase_ == 23 &&
5671 constraint_ != com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance()) {
5672 constraint_ = com.google.ortools.sat.RoutesConstraintProto.newBuilder((com.google.ortools.sat.RoutesConstraintProto) constraint_)
5673 .mergeFrom(value).buildPartial();
5675 constraint_ = value;
5679 if (constraintCase_ == 23) {
5680 routesBuilder_.mergeFrom(value);
5682 routesBuilder_.setMessage(value);
5685 constraintCase_ = 23;
5696 if (routesBuilder_ ==
null) {
5697 if (constraintCase_ == 23) {
5698 constraintCase_ = 0;
5703 if (constraintCase_ == 23) {
5704 constraintCase_ = 0;
5707 routesBuilder_.clear();
5719 return getRoutesFieldBuilder().getBuilder();
5730 if ((constraintCase_ == 23) && (routesBuilder_ !=
null)) {
5731 return routesBuilder_.getMessageOrBuilder();
5733 if (constraintCase_ == 23) {
5734 return (com.google.ortools.sat.RoutesConstraintProto) constraint_;
5736 return com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5746 private com.google.protobuf.SingleFieldBuilder<
5747 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>
5748 getRoutesFieldBuilder() {
5749 if (routesBuilder_ ==
null) {
5750 if (!(constraintCase_ == 23)) {
5751 constraint_ = com.google.ortools.sat.RoutesConstraintProto.getDefaultInstance();
5753 routesBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5754 com.google.ortools.sat.RoutesConstraintProto, com.google.ortools.sat.RoutesConstraintProto.Builder, com.google.ortools.sat.RoutesConstraintProtoOrBuilder>(
5755 (com.google.ortools.sat.RoutesConstraintProto) constraint_,
5756 getParentForChildren(),
5760 constraintCase_ = 23;
5762 return routesBuilder_;
5765 private com.google.protobuf.SingleFieldBuilder<
5766 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder> tableBuilder_;
5778 return constraintCase_ == 16;
5791 if (tableBuilder_ ==
null) {
5792 if (constraintCase_ == 16) {
5793 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5795 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5797 if (constraintCase_ == 16) {
5798 return tableBuilder_.getMessage();
5800 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5812 if (tableBuilder_ ==
null) {
5813 if (value ==
null) {
5814 throw new NullPointerException();
5816 constraint_ = value;
5819 tableBuilder_.setMessage(value);
5821 constraintCase_ = 16;
5833 com.google.ortools.sat.TableConstraintProto.Builder builderForValue) {
5834 if (tableBuilder_ ==
null) {
5835 constraint_ = builderForValue.build();
5838 tableBuilder_.setMessage(builderForValue.build());
5840 constraintCase_ = 16;
5852 if (tableBuilder_ ==
null) {
5853 if (constraintCase_ == 16 &&
5854 constraint_ != com.google.ortools.sat.TableConstraintProto.getDefaultInstance()) {
5855 constraint_ = com.google.ortools.sat.TableConstraintProto.newBuilder((com.google.ortools.sat.TableConstraintProto) constraint_)
5856 .mergeFrom(value).buildPartial();
5858 constraint_ = value;
5862 if (constraintCase_ == 16) {
5863 tableBuilder_.mergeFrom(value);
5865 tableBuilder_.setMessage(value);
5868 constraintCase_ = 16;
5880 if (tableBuilder_ ==
null) {
5881 if (constraintCase_ == 16) {
5882 constraintCase_ = 0;
5887 if (constraintCase_ == 16) {
5888 constraintCase_ = 0;
5891 tableBuilder_.clear();
5904 return getTableFieldBuilder().getBuilder();
5916 if ((constraintCase_ == 16) && (tableBuilder_ !=
null)) {
5917 return tableBuilder_.getMessageOrBuilder();
5919 if (constraintCase_ == 16) {
5920 return (com.google.ortools.sat.TableConstraintProto) constraint_;
5922 return com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5933 private com.google.protobuf.SingleFieldBuilder<
5934 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>
5935 getTableFieldBuilder() {
5936 if (tableBuilder_ ==
null) {
5937 if (!(constraintCase_ == 16)) {
5938 constraint_ = com.google.ortools.sat.TableConstraintProto.getDefaultInstance();
5940 tableBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
5941 com.google.ortools.sat.TableConstraintProto, com.google.ortools.sat.TableConstraintProto.Builder, com.google.ortools.sat.TableConstraintProtoOrBuilder>(
5942 (com.google.ortools.sat.TableConstraintProto) constraint_,
5943 getParentForChildren(),
5947 constraintCase_ = 16;
5949 return tableBuilder_;
5952 private com.google.protobuf.SingleFieldBuilder<
5953 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder> automatonBuilder_;
5965 return constraintCase_ == 17;
5978 if (automatonBuilder_ ==
null) {
5979 if (constraintCase_ == 17) {
5980 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
5982 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
5984 if (constraintCase_ == 17) {
5985 return automatonBuilder_.getMessage();
5987 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
5999 if (automatonBuilder_ ==
null) {
6000 if (value ==
null) {
6001 throw new NullPointerException();
6003 constraint_ = value;
6006 automatonBuilder_.setMessage(value);
6008 constraintCase_ = 17;
6020 com.google.ortools.sat.AutomatonConstraintProto.Builder builderForValue) {
6021 if (automatonBuilder_ ==
null) {
6022 constraint_ = builderForValue.build();
6025 automatonBuilder_.setMessage(builderForValue.build());
6027 constraintCase_ = 17;
6039 if (automatonBuilder_ ==
null) {
6040 if (constraintCase_ == 17 &&
6041 constraint_ != com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance()) {
6042 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.newBuilder((com.google.ortools.sat.AutomatonConstraintProto) constraint_)
6043 .mergeFrom(value).buildPartial();
6045 constraint_ = value;
6049 if (constraintCase_ == 17) {
6050 automatonBuilder_.mergeFrom(value);
6052 automatonBuilder_.setMessage(value);
6055 constraintCase_ = 17;
6067 if (automatonBuilder_ ==
null) {
6068 if (constraintCase_ == 17) {
6069 constraintCase_ = 0;
6074 if (constraintCase_ == 17) {
6075 constraintCase_ = 0;
6078 automatonBuilder_.clear();
6091 return getAutomatonFieldBuilder().getBuilder();
6103 if ((constraintCase_ == 17) && (automatonBuilder_ !=
null)) {
6104 return automatonBuilder_.getMessageOrBuilder();
6106 if (constraintCase_ == 17) {
6107 return (com.google.ortools.sat.AutomatonConstraintProto) constraint_;
6109 return com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6120 private com.google.protobuf.SingleFieldBuilder<
6121 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>
6122 getAutomatonFieldBuilder() {
6123 if (automatonBuilder_ ==
null) {
6124 if (!(constraintCase_ == 17)) {
6125 constraint_ = com.google.ortools.sat.AutomatonConstraintProto.getDefaultInstance();
6127 automatonBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
6128 com.google.ortools.sat.AutomatonConstraintProto, com.google.ortools.sat.AutomatonConstraintProto.Builder, com.google.ortools.sat.AutomatonConstraintProtoOrBuilder>(
6129 (com.google.ortools.sat.AutomatonConstraintProto) constraint_,
6130 getParentForChildren(),
6134 constraintCase_ = 17;
6136 return automatonBuilder_;
6139 private com.google.protobuf.SingleFieldBuilder<
6140 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder> inverseBuilder_;
6152 return constraintCase_ == 18;
6165 if (inverseBuilder_ ==
null) {
6166 if (constraintCase_ == 18) {
6167 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6169 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6171 if (constraintCase_ == 18) {
6172 return inverseBuilder_.getMessage();
6174 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6186 if (inverseBuilder_ ==
null) {
6187 if (value ==
null) {
6188 throw new NullPointerException();
6190 constraint_ = value;
6193 inverseBuilder_.setMessage(value);
6195 constraintCase_ = 18;
6207 com.google.ortools.sat.InverseConstraintProto.Builder builderForValue) {
6208 if (inverseBuilder_ ==
null) {
6209 constraint_ = builderForValue.build();
6212 inverseBuilder_.setMessage(builderForValue.build());
6214 constraintCase_ = 18;
6226 if (inverseBuilder_ ==
null) {
6227 if (constraintCase_ == 18 &&
6228 constraint_ != com.google.ortools.sat.InverseConstraintProto.getDefaultInstance()) {
6229 constraint_ = com.google.ortools.sat.InverseConstraintProto.newBuilder((com.google.ortools.sat.InverseConstraintProto) constraint_)
6230 .mergeFrom(value).buildPartial();
6232 constraint_ = value;
6236 if (constraintCase_ == 18) {
6237 inverseBuilder_.mergeFrom(value);
6239 inverseBuilder_.setMessage(value);
6242 constraintCase_ = 18;
6254 if (inverseBuilder_ ==
null) {
6255 if (constraintCase_ == 18) {
6256 constraintCase_ = 0;
6261 if (constraintCase_ == 18) {
6262 constraintCase_ = 0;
6265 inverseBuilder_.clear();
6278 return getInverseFieldBuilder().getBuilder();
6290 if ((constraintCase_ == 18) && (inverseBuilder_ !=
null)) {
6291 return inverseBuilder_.getMessageOrBuilder();
6293 if (constraintCase_ == 18) {
6294 return (com.google.ortools.sat.InverseConstraintProto) constraint_;
6296 return com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6307 private com.google.protobuf.SingleFieldBuilder<
6308 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>
6309 getInverseFieldBuilder() {
6310 if (inverseBuilder_ ==
null) {
6311 if (!(constraintCase_ == 18)) {
6312 constraint_ = com.google.ortools.sat.InverseConstraintProto.getDefaultInstance();
6314 inverseBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
6315 com.google.ortools.sat.InverseConstraintProto, com.google.ortools.sat.InverseConstraintProto.Builder, com.google.ortools.sat.InverseConstraintProtoOrBuilder>(
6316 (com.google.ortools.sat.InverseConstraintProto) constraint_,
6317 getParentForChildren(),
6321 constraintCase_ = 18;
6323 return inverseBuilder_;
6326 private com.google.protobuf.SingleFieldBuilder<
6327 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder> reservoirBuilder_;
6340 return constraintCase_ == 24;
6354 if (reservoirBuilder_ ==
null) {
6355 if (constraintCase_ == 24) {
6356 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6358 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6360 if (constraintCase_ == 24) {
6361 return reservoirBuilder_.getMessage();
6363 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6376 if (reservoirBuilder_ ==
null) {
6377 if (value ==
null) {
6378 throw new NullPointerException();
6380 constraint_ = value;
6383 reservoirBuilder_.setMessage(value);
6385 constraintCase_ = 24;
6398 com.google.ortools.sat.ReservoirConstraintProto.Builder builderForValue) {
6399 if (reservoirBuilder_ ==
null) {
6400 constraint_ = builderForValue.build();
6403 reservoirBuilder_.setMessage(builderForValue.build());
6405 constraintCase_ = 24;
6418 if (reservoirBuilder_ ==
null) {
6419 if (constraintCase_ == 24 &&
6420 constraint_ != com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance()) {
6421 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.newBuilder((com.google.ortools.sat.ReservoirConstraintProto) constraint_)
6422 .mergeFrom(value).buildPartial();
6424 constraint_ = value;
6428 if (constraintCase_ == 24) {
6429 reservoirBuilder_.mergeFrom(value);
6431 reservoirBuilder_.setMessage(value);
6434 constraintCase_ = 24;
6447 if (reservoirBuilder_ ==
null) {
6448 if (constraintCase_ == 24) {
6449 constraintCase_ = 0;
6454 if (constraintCase_ == 24) {
6455 constraintCase_ = 0;
6458 reservoirBuilder_.clear();
6472 return getReservoirFieldBuilder().getBuilder();
6485 if ((constraintCase_ == 24) && (reservoirBuilder_ !=
null)) {
6486 return reservoirBuilder_.getMessageOrBuilder();
6488 if (constraintCase_ == 24) {
6489 return (com.google.ortools.sat.ReservoirConstraintProto) constraint_;
6491 return com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6503 private com.google.protobuf.SingleFieldBuilder<
6504 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>
6505 getReservoirFieldBuilder() {
6506 if (reservoirBuilder_ ==
null) {
6507 if (!(constraintCase_ == 24)) {
6508 constraint_ = com.google.ortools.sat.ReservoirConstraintProto.getDefaultInstance();
6510 reservoirBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
6511 com.google.ortools.sat.ReservoirConstraintProto, com.google.ortools.sat.ReservoirConstraintProto.Builder, com.google.ortools.sat.ReservoirConstraintProtoOrBuilder>(
6512 (com.google.ortools.sat.ReservoirConstraintProto) constraint_,
6513 getParentForChildren(),
6517 constraintCase_ = 24;
6519 return reservoirBuilder_;
6522 private com.google.protobuf.SingleFieldBuilder<
6523 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder> intervalBuilder_;
6535 return constraintCase_ == 19;
6548 if (intervalBuilder_ ==
null) {
6549 if (constraintCase_ == 19) {
6550 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6552 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6554 if (constraintCase_ == 19) {
6555 return intervalBuilder_.getMessage();
6557 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6569 if (intervalBuilder_ ==
null) {
6570 if (value ==
null) {
6571 throw new NullPointerException();
6573 constraint_ = value;
6576 intervalBuilder_.setMessage(value);
6578 constraintCase_ = 19;
6590 com.google.ortools.sat.IntervalConstraintProto.Builder builderForValue) {
6591 if (intervalBuilder_ ==
null) {
6592 constraint_ = builderForValue.build();
6595 intervalBuilder_.setMessage(builderForValue.build());
6597 constraintCase_ = 19;
6609 if (intervalBuilder_ ==
null) {
6610 if (constraintCase_ == 19 &&
6611 constraint_ != com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance()) {
6612 constraint_ = com.google.ortools.sat.IntervalConstraintProto.newBuilder((com.google.ortools.sat.IntervalConstraintProto) constraint_)
6613 .mergeFrom(value).buildPartial();
6615 constraint_ = value;
6619 if (constraintCase_ == 19) {
6620 intervalBuilder_.mergeFrom(value);
6622 intervalBuilder_.setMessage(value);
6625 constraintCase_ = 19;
6637 if (intervalBuilder_ ==
null) {
6638 if (constraintCase_ == 19) {
6639 constraintCase_ = 0;
6644 if (constraintCase_ == 19) {
6645 constraintCase_ = 0;
6648 intervalBuilder_.clear();
6661 return getIntervalFieldBuilder().getBuilder();
6673 if ((constraintCase_ == 19) && (intervalBuilder_ !=
null)) {
6674 return intervalBuilder_.getMessageOrBuilder();
6676 if (constraintCase_ == 19) {
6677 return (com.google.ortools.sat.IntervalConstraintProto) constraint_;
6679 return com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6690 private com.google.protobuf.SingleFieldBuilder<
6691 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>
6692 getIntervalFieldBuilder() {
6693 if (intervalBuilder_ ==
null) {
6694 if (!(constraintCase_ == 19)) {
6695 constraint_ = com.google.ortools.sat.IntervalConstraintProto.getDefaultInstance();
6697 intervalBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
6698 com.google.ortools.sat.IntervalConstraintProto, com.google.ortools.sat.IntervalConstraintProto.Builder, com.google.ortools.sat.IntervalConstraintProtoOrBuilder>(
6699 (com.google.ortools.sat.IntervalConstraintProto) constraint_,
6700 getParentForChildren(),
6704 constraintCase_ = 19;
6706 return intervalBuilder_;
6709 private com.google.protobuf.SingleFieldBuilder<
6710 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder> noOverlapBuilder_;
6723 return constraintCase_ == 20;
6737 if (noOverlapBuilder_ ==
null) {
6738 if (constraintCase_ == 20) {
6739 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6741 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6743 if (constraintCase_ == 20) {
6744 return noOverlapBuilder_.getMessage();
6746 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6759 if (noOverlapBuilder_ ==
null) {
6760 if (value ==
null) {
6761 throw new NullPointerException();
6763 constraint_ = value;
6766 noOverlapBuilder_.setMessage(value);
6768 constraintCase_ = 20;
6781 com.google.ortools.sat.NoOverlapConstraintProto.Builder builderForValue) {
6782 if (noOverlapBuilder_ ==
null) {
6783 constraint_ = builderForValue.build();
6786 noOverlapBuilder_.setMessage(builderForValue.build());
6788 constraintCase_ = 20;
6801 if (noOverlapBuilder_ ==
null) {
6802 if (constraintCase_ == 20 &&
6803 constraint_ != com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance()) {
6804 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.newBuilder((com.google.ortools.sat.NoOverlapConstraintProto) constraint_)
6805 .mergeFrom(value).buildPartial();
6807 constraint_ = value;
6811 if (constraintCase_ == 20) {
6812 noOverlapBuilder_.mergeFrom(value);
6814 noOverlapBuilder_.setMessage(value);
6817 constraintCase_ = 20;
6830 if (noOverlapBuilder_ ==
null) {
6831 if (constraintCase_ == 20) {
6832 constraintCase_ = 0;
6837 if (constraintCase_ == 20) {
6838 constraintCase_ = 0;
6841 noOverlapBuilder_.clear();
6855 return getNoOverlapFieldBuilder().getBuilder();
6868 if ((constraintCase_ == 20) && (noOverlapBuilder_ !=
null)) {
6869 return noOverlapBuilder_.getMessageOrBuilder();
6871 if (constraintCase_ == 20) {
6872 return (com.google.ortools.sat.NoOverlapConstraintProto) constraint_;
6874 return com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6886 private com.google.protobuf.SingleFieldBuilder<
6887 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>
6888 getNoOverlapFieldBuilder() {
6889 if (noOverlapBuilder_ ==
null) {
6890 if (!(constraintCase_ == 20)) {
6891 constraint_ = com.google.ortools.sat.NoOverlapConstraintProto.getDefaultInstance();
6893 noOverlapBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
6894 com.google.ortools.sat.NoOverlapConstraintProto, com.google.ortools.sat.NoOverlapConstraintProto.Builder, com.google.ortools.sat.NoOverlapConstraintProtoOrBuilder>(
6895 (com.google.ortools.sat.NoOverlapConstraintProto) constraint_,
6896 getParentForChildren(),
6900 constraintCase_ = 20;
6902 return noOverlapBuilder_;
6905 private com.google.protobuf.SingleFieldBuilder<
6906 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder> noOverlap2DBuilder_;
6917 return constraintCase_ == 21;
6929 if (noOverlap2DBuilder_ ==
null) {
6930 if (constraintCase_ == 21) {
6931 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
6933 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6935 if (constraintCase_ == 21) {
6936 return noOverlap2DBuilder_.getMessage();
6938 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
6949 if (noOverlap2DBuilder_ ==
null) {
6950 if (value ==
null) {
6951 throw new NullPointerException();
6953 constraint_ = value;
6956 noOverlap2DBuilder_.setMessage(value);
6958 constraintCase_ = 21;
6969 com.google.ortools.sat.NoOverlap2DConstraintProto.Builder builderForValue) {
6970 if (noOverlap2DBuilder_ ==
null) {
6971 constraint_ = builderForValue.build();
6974 noOverlap2DBuilder_.setMessage(builderForValue.build());
6976 constraintCase_ = 21;
6987 if (noOverlap2DBuilder_ ==
null) {
6988 if (constraintCase_ == 21 &&
6989 constraint_ != com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance()) {
6990 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.newBuilder((com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_)
6991 .mergeFrom(value).buildPartial();
6993 constraint_ = value;
6997 if (constraintCase_ == 21) {
6998 noOverlap2DBuilder_.mergeFrom(value);
7000 noOverlap2DBuilder_.setMessage(value);
7003 constraintCase_ = 21;
7014 if (noOverlap2DBuilder_ ==
null) {
7015 if (constraintCase_ == 21) {
7016 constraintCase_ = 0;
7021 if (constraintCase_ == 21) {
7022 constraintCase_ = 0;
7025 noOverlap2DBuilder_.clear();
7037 return getNoOverlap2DFieldBuilder().getBuilder();
7048 if ((constraintCase_ == 21) && (noOverlap2DBuilder_ !=
null)) {
7049 return noOverlap2DBuilder_.getMessageOrBuilder();
7051 if (constraintCase_ == 21) {
7052 return (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_;
7054 return com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7064 private com.google.protobuf.SingleFieldBuilder<
7065 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>
7066 getNoOverlap2DFieldBuilder() {
7067 if (noOverlap2DBuilder_ ==
null) {
7068 if (!(constraintCase_ == 21)) {
7069 constraint_ = com.google.ortools.sat.NoOverlap2DConstraintProto.getDefaultInstance();
7071 noOverlap2DBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
7072 com.google.ortools.sat.NoOverlap2DConstraintProto, com.google.ortools.sat.NoOverlap2DConstraintProto.Builder, com.google.ortools.sat.NoOverlap2DConstraintProtoOrBuilder>(
7073 (com.google.ortools.sat.NoOverlap2DConstraintProto) constraint_,
7074 getParentForChildren(),
7078 constraintCase_ = 21;
7080 return noOverlap2DBuilder_;
7083 private com.google.protobuf.SingleFieldBuilder<
7084 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder> cumulativeBuilder_;
7097 return constraintCase_ == 22;
7111 if (cumulativeBuilder_ ==
null) {
7112 if (constraintCase_ == 22) {
7113 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7115 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7117 if (constraintCase_ == 22) {
7118 return cumulativeBuilder_.getMessage();
7120 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7133 if (cumulativeBuilder_ ==
null) {
7134 if (value ==
null) {
7135 throw new NullPointerException();
7137 constraint_ = value;
7140 cumulativeBuilder_.setMessage(value);
7142 constraintCase_ = 22;
7155 com.google.ortools.sat.CumulativeConstraintProto.Builder builderForValue) {
7156 if (cumulativeBuilder_ ==
null) {
7157 constraint_ = builderForValue.build();
7160 cumulativeBuilder_.setMessage(builderForValue.build());
7162 constraintCase_ = 22;
7175 if (cumulativeBuilder_ ==
null) {
7176 if (constraintCase_ == 22 &&
7177 constraint_ != com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance()) {
7178 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.newBuilder((com.google.ortools.sat.CumulativeConstraintProto) constraint_)
7179 .mergeFrom(value).buildPartial();
7181 constraint_ = value;
7185 if (constraintCase_ == 22) {
7186 cumulativeBuilder_.mergeFrom(value);
7188 cumulativeBuilder_.setMessage(value);
7191 constraintCase_ = 22;
7204 if (cumulativeBuilder_ ==
null) {
7205 if (constraintCase_ == 22) {
7206 constraintCase_ = 0;
7211 if (constraintCase_ == 22) {
7212 constraintCase_ = 0;
7215 cumulativeBuilder_.clear();
7229 return getCumulativeFieldBuilder().getBuilder();
7242 if ((constraintCase_ == 22) && (cumulativeBuilder_ !=
null)) {
7243 return cumulativeBuilder_.getMessageOrBuilder();
7245 if (constraintCase_ == 22) {
7246 return (com.google.ortools.sat.CumulativeConstraintProto) constraint_;
7248 return com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7260 private com.google.protobuf.SingleFieldBuilder<
7261 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>
7262 getCumulativeFieldBuilder() {
7263 if (cumulativeBuilder_ ==
null) {
7264 if (!(constraintCase_ == 22)) {
7265 constraint_ = com.google.ortools.sat.CumulativeConstraintProto.getDefaultInstance();
7267 cumulativeBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
7268 com.google.ortools.sat.CumulativeConstraintProto, com.google.ortools.sat.CumulativeConstraintProto.Builder, com.google.ortools.sat.CumulativeConstraintProtoOrBuilder>(
7269 (com.google.ortools.sat.CumulativeConstraintProto) constraint_,
7270 getParentForChildren(),
7274 constraintCase_ = 22;
7276 return cumulativeBuilder_;
7279 private com.google.protobuf.SingleFieldBuilder<
7280 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder> dummyConstraintBuilder_;
7292 return constraintCase_ == 30;
7305 if (dummyConstraintBuilder_ ==
null) {
7306 if (constraintCase_ == 30) {
7307 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7309 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7311 if (constraintCase_ == 30) {
7312 return dummyConstraintBuilder_.getMessage();
7314 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7326 if (dummyConstraintBuilder_ ==
null) {
7327 if (value ==
null) {
7328 throw new NullPointerException();
7330 constraint_ = value;
7333 dummyConstraintBuilder_.setMessage(value);
7335 constraintCase_ = 30;
7347 com.google.ortools.sat.ListOfVariablesProto.Builder builderForValue) {
7348 if (dummyConstraintBuilder_ ==
null) {
7349 constraint_ = builderForValue.build();
7352 dummyConstraintBuilder_.setMessage(builderForValue.build());
7354 constraintCase_ = 30;
7366 if (dummyConstraintBuilder_ ==
null) {
7367 if (constraintCase_ == 30 &&
7368 constraint_ != com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance()) {
7369 constraint_ = com.google.ortools.sat.ListOfVariablesProto.newBuilder((com.google.ortools.sat.ListOfVariablesProto) constraint_)
7370 .mergeFrom(value).buildPartial();
7372 constraint_ = value;
7376 if (constraintCase_ == 30) {
7377 dummyConstraintBuilder_.mergeFrom(value);
7379 dummyConstraintBuilder_.setMessage(value);
7382 constraintCase_ = 30;
7394 if (dummyConstraintBuilder_ ==
null) {
7395 if (constraintCase_ == 30) {
7396 constraintCase_ = 0;
7401 if (constraintCase_ == 30) {
7402 constraintCase_ = 0;
7405 dummyConstraintBuilder_.clear();
7418 return getDummyConstraintFieldBuilder().getBuilder();
7430 if ((constraintCase_ == 30) && (dummyConstraintBuilder_ !=
null)) {
7431 return dummyConstraintBuilder_.getMessageOrBuilder();
7433 if (constraintCase_ == 30) {
7434 return (com.google.ortools.sat.ListOfVariablesProto) constraint_;
7436 return com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7447 private com.google.protobuf.SingleFieldBuilder<
7448 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>
7449 getDummyConstraintFieldBuilder() {
7450 if (dummyConstraintBuilder_ ==
null) {
7451 if (!(constraintCase_ == 30)) {
7452 constraint_ = com.google.ortools.sat.ListOfVariablesProto.getDefaultInstance();
7454 dummyConstraintBuilder_ =
new com.google.protobuf.SingleFieldBuilder<
7455 com.google.ortools.sat.ListOfVariablesProto, com.google.ortools.sat.ListOfVariablesProto.Builder, com.google.ortools.sat.ListOfVariablesProtoOrBuilder>(
7456 (com.google.ortools.sat.ListOfVariablesProto) constraint_,
7457 getParentForChildren(),
7461 constraintCase_ = 30;
7463 return dummyConstraintBuilder_;