5package com.google.ortools.bop;
17 com.google.protobuf.GeneratedMessageV3 implements
20private static final long serialVersionUID = 0L;
22 private BopOptimizerMethod(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
30 @SuppressWarnings({
"unused"})
32 UnusedPrivateParameter unused) {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
42 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
44 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
53 implements com.google.protobuf.ProtocolMessageEnum {
119 public static final int SAT_CORE_BASED_VALUE = 0;
123 public static final int SAT_LINEAR_SEARCH_VALUE = 15;
127 public static final int LINEAR_RELAXATION_VALUE = 1;
131 public static final int LOCAL_SEARCH_VALUE = 2;
135 public static final int RANDOM_FIRST_SOLUTION_VALUE = 3;
139 public static final int RANDOM_CONSTRAINT_LNS_VALUE = 4;
143 public static final int RANDOM_VARIABLE_LNS_VALUE = 5;
147 public static final int COMPLETE_LNS_VALUE = 7;
151 public static final int LP_FIRST_SOLUTION_VALUE = 8;
155 public static final int OBJECTIVE_FIRST_SOLUTION_VALUE = 9;
159 public static final int USER_GUIDED_FIRST_SOLUTION_VALUE = 14;
163 public static final int RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP_VALUE = 11;
167 public static final int RANDOM_VARIABLE_LNS_GUIDED_BY_LP_VALUE = 12;
171 public static final int RELATION_GRAPH_LNS_VALUE = 16;
175 public static final int RELATION_GRAPH_LNS_GUIDED_BY_LP_VALUE = 17;
187 @java.lang.Deprecated
189 return forNumber(value);
198 case 0:
return SAT_CORE_BASED;
199 case 15:
return SAT_LINEAR_SEARCH;
200 case 1:
return LINEAR_RELAXATION;
201 case 2:
return LOCAL_SEARCH;
202 case 3:
return RANDOM_FIRST_SOLUTION;
203 case 4:
return RANDOM_CONSTRAINT_LNS;
204 case 5:
return RANDOM_VARIABLE_LNS;
205 case 7:
return COMPLETE_LNS;
206 case 8:
return LP_FIRST_SOLUTION;
207 case 9:
return OBJECTIVE_FIRST_SOLUTION;
208 case 14:
return USER_GUIDED_FIRST_SOLUTION;
209 case 11:
return RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP;
210 case 12:
return RANDOM_VARIABLE_LNS_GUIDED_BY_LP;
211 case 16:
return RELATION_GRAPH_LNS;
212 case 17:
return RELATION_GRAPH_LNS_GUIDED_BY_LP;
213 default:
return null;
217 public static com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>
219 return internalValueMap;
221 private static final com.google.protobuf.Internal.EnumLiteMap<
223 new com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>() {
229 public final com.google.protobuf.Descriptors.EnumValueDescriptor
233 public final com.google.protobuf.Descriptors.EnumDescriptor
237 public static final com.google.protobuf.Descriptors.EnumDescriptor
239 return com.google.ortools.bop.BopOptimizerMethod.getDescriptor().getEnumTypes().get(0);
245 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
247 throw new java.lang.IllegalArgumentException(
248 "EnumValueDescriptor is not for this type.");
250 return VALUES[desc.getIndex()];
253 private final int value;
262 private int bitField0_;
264 private int type_ = 0;
269 @java.lang.Override
public boolean hasType() {
270 return ((bitField0_ & 0x00000001) != 0);
278 return result ==
null ? com.google.ortools.bop.BopOptimizerMethod.OptimizerType.SAT_CORE_BASED : result;
281 private byte memoizedIsInitialized = -1;
288 memoizedIsInitialized = 1;
293 public void writeTo(com.google.protobuf.CodedOutputStream output)
294 throws java.io.IOException {
295 if (((bitField0_ & 0x00000001) != 0)) {
296 output.writeEnum(1, type_);
298 getUnknownFields().writeTo(output);
303 int size = memoizedSize;
304 if (size != -1)
return size;
307 if (((bitField0_ & 0x00000001) != 0)) {
308 size += com.google.protobuf.CodedOutputStream
309 .computeEnumSize(1, type_);
311 size += getUnknownFields().getSerializedSize();
317 public boolean equals(
final java.lang.Object obj) {
321 if (!(obj instanceof com.google.ortools.bop.BopOptimizerMethod)) {
322 return super.equals(obj);
328 if (type_ != other.type_)
return false;
330 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
336 if (memoizedHashCode != 0) {
337 return memoizedHashCode;
343 hash = (53 * hash) + type_;
345 hash = (29 * hash) + getUnknownFields().hashCode();
346 memoizedHashCode = hash;
351 java.nio.ByteBuffer data)
352 throws com.google.protobuf.InvalidProtocolBufferException {
356 java.nio.ByteBuffer data,
357 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
358 throws com.google.protobuf.InvalidProtocolBufferException {
362 com.google.protobuf.ByteString data)
363 throws com.google.protobuf.InvalidProtocolBufferException {
367 com.google.protobuf.ByteString data,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws com.google.protobuf.InvalidProtocolBufferException {
373 throws com.google.protobuf.InvalidProtocolBufferException {
378 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
379 throws com.google.protobuf.InvalidProtocolBufferException {
383 throws java.io.IOException {
384 return com.google.protobuf.GeneratedMessageV3
385 .parseWithIOException(
PARSER, input);
388 java.io.InputStream input,
389 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
390 throws java.io.IOException {
391 return com.google.protobuf.GeneratedMessageV3
392 .parseWithIOException(
PARSER, input, extensionRegistry);
396 throws java.io.IOException {
397 return com.google.protobuf.GeneratedMessageV3
398 .parseDelimitedWithIOException(
PARSER, input);
402 java.io.InputStream input,
403 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
404 throws java.io.IOException {
405 return com.google.protobuf.GeneratedMessageV3
406 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
409 com.google.protobuf.CodedInputStream input)
410 throws java.io.IOException {
411 return com.google.protobuf.GeneratedMessageV3
412 .parseWithIOException(
PARSER, input);
415 com.google.protobuf.CodedInputStream input,
416 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
417 throws java.io.IOException {
418 return com.google.protobuf.GeneratedMessageV3
419 .parseWithIOException(
PARSER, input, extensionRegistry);
432 return this == DEFAULT_INSTANCE
438 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
452 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
455 public static final com.google.protobuf.Descriptors.Descriptor
457 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
461 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
463 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
464 .ensureFieldAccessorsInitialized(
465 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
474 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
487 public com.google.protobuf.Descriptors.Descriptor
489 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
494 return com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance();
501 throw newUninitializedMessageException(result);
509 if (bitField0_ != 0) { buildPartial0(result); }
514 private void buildPartial0(com.google.ortools.bop.BopOptimizerMethod result) {
515 int from_bitField0_ = bitField0_;
516 int to_bitField0_ = 0;
517 if (((from_bitField0_ & 0x00000001) != 0)) {
518 result.type_ = type_;
519 to_bitField0_ |= 0x00000001;
521 result.bitField0_ |= to_bitField0_;
526 return super.
clone();
530 com.google.protobuf.Descriptors.FieldDescriptor field,
531 java.lang.Object value) {
532 return super.
setField(field, value);
536 com.google.protobuf.Descriptors.FieldDescriptor field) {
541 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
546 com.google.protobuf.Descriptors.FieldDescriptor field,
547 int index, java.lang.Object value) {
552 com.google.protobuf.Descriptors.FieldDescriptor field,
553 java.lang.Object value) {
558 if (other instanceof com.google.ortools.bop.BopOptimizerMethod) {
559 return mergeFrom((com.google.ortools.bop.BopOptimizerMethod)other);
561 super.mergeFrom(other);
567 if (other == com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance())
return this;
568 if (other.hasType()) {
583 com.google.protobuf.CodedInputStream input,
584 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
585 throws java.io.IOException {
586 if (extensionRegistry ==
null) {
587 throw new java.lang.NullPointerException();
590 boolean done =
false;
592 int tag = input.readTag();
598 int tmpRaw = input.readEnum();
600 com.google.ortools.bop.BopOptimizerMethod.OptimizerType.forNumber(tmpRaw);
601 if (tmpValue ==
null) {
602 mergeUnknownVarintField(1, tmpRaw);
605 bitField0_ |= 0x00000001;
610 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
617 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
618 throw e.unwrapIOException();
624 private int bitField0_;
626 private int type_ = 0;
631 @java.lang.Override
public boolean hasType() {
632 return ((bitField0_ & 0x00000001) != 0);
641 return result ==
null ? com.google.ortools.bop.BopOptimizerMethod.OptimizerType.SAT_CORE_BASED : result;
648 public Builder setType(com.google.ortools.bop.BopOptimizerMethod.OptimizerType value) {
650 throw new NullPointerException();
652 bitField0_ |= 0x00000001;
653 type_ = value.getNumber();
662 bitField0_ = (bitField0_ & ~0x00000001);
669 final com.google.protobuf.UnknownFieldSet unknownFields) {
675 final com.google.protobuf.UnknownFieldSet unknownFields) {
686 DEFAULT_INSTANCE =
new com.google.ortools.bop.BopOptimizerMethod();
690 return DEFAULT_INSTANCE;
693 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
BopOptimizerMethod>
697 com.google.protobuf.CodedInputStream input,
698 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
699 throws com.google.protobuf.InvalidProtocolBufferException {
702 builder.
mergeFrom(input, extensionRegistry);
703 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
705 }
catch (com.google.protobuf.UninitializedMessageException e) {
706 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
707 }
catch (java.io.IOException e) {
708 throw new com.google.protobuf.InvalidProtocolBufferException(e)
726 return DEFAULT_INSTANCE;