5package com.google.ortools.bop;
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
55 implements com.google.protobuf.ProtocolMessageEnum {
119 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
120 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
130 public static final int SAT_CORE_BASED_VALUE = 0;
134 public static final int SAT_LINEAR_SEARCH_VALUE = 15;
138 public static final int LINEAR_RELAXATION_VALUE = 1;
142 public static final int LOCAL_SEARCH_VALUE = 2;
146 public static final int RANDOM_FIRST_SOLUTION_VALUE = 3;
150 public static final int RANDOM_CONSTRAINT_LNS_VALUE = 4;
154 public static final int RANDOM_VARIABLE_LNS_VALUE = 5;
158 public static final int COMPLETE_LNS_VALUE = 7;
162 public static final int LP_FIRST_SOLUTION_VALUE = 8;
166 public static final int OBJECTIVE_FIRST_SOLUTION_VALUE = 9;
170 public static final int USER_GUIDED_FIRST_SOLUTION_VALUE = 14;
174 public static final int RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP_VALUE = 11;
178 public static final int RANDOM_VARIABLE_LNS_GUIDED_BY_LP_VALUE = 12;
182 public static final int RELATION_GRAPH_LNS_VALUE = 16;
186 public static final int RELATION_GRAPH_LNS_GUIDED_BY_LP_VALUE = 17;
198 @java.lang.Deprecated
200 return forNumber(value);
209 case 0:
return SAT_CORE_BASED;
210 case 15:
return SAT_LINEAR_SEARCH;
211 case 1:
return LINEAR_RELAXATION;
212 case 2:
return LOCAL_SEARCH;
213 case 3:
return RANDOM_FIRST_SOLUTION;
214 case 4:
return RANDOM_CONSTRAINT_LNS;
215 case 5:
return RANDOM_VARIABLE_LNS;
216 case 7:
return COMPLETE_LNS;
217 case 8:
return LP_FIRST_SOLUTION;
218 case 9:
return OBJECTIVE_FIRST_SOLUTION;
219 case 14:
return USER_GUIDED_FIRST_SOLUTION;
220 case 11:
return RANDOM_CONSTRAINT_LNS_GUIDED_BY_LP;
221 case 12:
return RANDOM_VARIABLE_LNS_GUIDED_BY_LP;
222 case 16:
return RELATION_GRAPH_LNS;
223 case 17:
return RELATION_GRAPH_LNS_GUIDED_BY_LP;
224 default:
return null;
228 public static com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>
230 return internalValueMap;
232 private static final com.google.protobuf.Internal.EnumLiteMap<
234 new com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>() {
240 public final com.google.protobuf.Descriptors.EnumValueDescriptor
244 public final com.google.protobuf.Descriptors.EnumDescriptor
248 public static final com.google.protobuf.Descriptors.EnumDescriptor
250 return com.google.ortools.bop.BopOptimizerMethod.getDescriptor().getEnumTypes().get(0);
256 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
258 throw new java.lang.IllegalArgumentException(
259 "EnumValueDescriptor is not for this type.");
261 return VALUES[desc.getIndex()];
264 private final int value;
273 private int bitField0_;
275 private int type_ = 0;
280 @java.lang.Override
public boolean hasType() {
281 return ((bitField0_ & 0x00000001) != 0);
289 return result ==
null ? com.google.ortools.bop.BopOptimizerMethod.OptimizerType.SAT_CORE_BASED : result;
292 private byte memoizedIsInitialized = -1;
299 memoizedIsInitialized = 1;
304 public void writeTo(com.google.protobuf.CodedOutputStream output)
305 throws java.io.IOException {
306 if (((bitField0_ & 0x00000001) != 0)) {
307 output.writeEnum(1, type_);
309 getUnknownFields().writeTo(output);
314 int size = memoizedSize;
315 if (size != -1)
return size;
318 if (((bitField0_ & 0x00000001) != 0)) {
319 size += com.google.protobuf.CodedOutputStream
320 .computeEnumSize(1, type_);
322 size += getUnknownFields().getSerializedSize();
328 public boolean equals(
final java.lang.Object obj) {
332 if (!(obj instanceof com.google.ortools.bop.BopOptimizerMethod)) {
333 return super.equals(obj);
339 if (type_ != other.type_)
return false;
341 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
347 if (memoizedHashCode != 0) {
348 return memoizedHashCode;
354 hash = (53 * hash) + type_;
356 hash = (29 * hash) + getUnknownFields().hashCode();
357 memoizedHashCode = hash;
362 java.nio.ByteBuffer data)
363 throws com.google.protobuf.InvalidProtocolBufferException {
364 return PARSER.parseFrom(data);
367 java.nio.ByteBuffer data,
368 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
369 throws com.google.protobuf.InvalidProtocolBufferException {
370 return PARSER.parseFrom(data, extensionRegistry);
373 com.google.protobuf.ByteString data)
374 throws com.google.protobuf.InvalidProtocolBufferException {
375 return PARSER.parseFrom(data);
378 com.google.protobuf.ByteString data,
379 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
380 throws com.google.protobuf.InvalidProtocolBufferException {
381 return PARSER.parseFrom(data, extensionRegistry);
384 throws com.google.protobuf.InvalidProtocolBufferException {
385 return PARSER.parseFrom(data);
389 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
390 throws com.google.protobuf.InvalidProtocolBufferException {
391 return PARSER.parseFrom(data, extensionRegistry);
394 throws java.io.IOException {
395 return com.google.protobuf.GeneratedMessage
396 .parseWithIOException(PARSER, input);
399 java.io.InputStream input,
400 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
401 throws java.io.IOException {
402 return com.google.protobuf.GeneratedMessage
403 .parseWithIOException(PARSER, input, extensionRegistry);
407 throws java.io.IOException {
408 return com.google.protobuf.GeneratedMessage
409 .parseDelimitedWithIOException(PARSER, input);
413 java.io.InputStream input,
414 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
415 throws java.io.IOException {
416 return com.google.protobuf.GeneratedMessage
417 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
420 com.google.protobuf.CodedInputStream input)
421 throws java.io.IOException {
422 return com.google.protobuf.GeneratedMessage
423 .parseWithIOException(PARSER, input);
426 com.google.protobuf.CodedInputStream input,
427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
428 throws java.io.IOException {
429 return com.google.protobuf.GeneratedMessage
430 .parseWithIOException(PARSER, input, extensionRegistry);
443 return this == DEFAULT_INSTANCE
449 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
463 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
466 public static final com.google.protobuf.Descriptors.Descriptor
468 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
472 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
474 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
475 .ensureFieldAccessorsInitialized(
476 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
485 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
498 public com.google.protobuf.Descriptors.Descriptor
500 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
505 return com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance();
512 throw newUninitializedMessageException(result);
520 if (bitField0_ != 0) { buildPartial0(result); }
525 private void buildPartial0(com.google.ortools.bop.BopOptimizerMethod result) {
526 int from_bitField0_ = bitField0_;
527 int to_bitField0_ = 0;
528 if (((from_bitField0_ & 0x00000001) != 0)) {
529 result.type_ = type_;
530 to_bitField0_ |= 0x00000001;
532 result.bitField0_ |= to_bitField0_;
537 if (other instanceof com.google.ortools.bop.BopOptimizerMethod) {
538 return mergeFrom((com.google.ortools.bop.BopOptimizerMethod)other);
540 super.mergeFrom(other);
546 if (other == com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance())
return this;
547 if (other.hasType()) {
550 this.mergeUnknownFields(other.getUnknownFields());
562 com.google.protobuf.CodedInputStream input,
563 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
564 throws java.io.IOException {
565 if (extensionRegistry ==
null) {
566 throw new java.lang.NullPointerException();
569 boolean done =
false;
571 int tag = input.readTag();
577 int tmpRaw = input.readEnum();
579 com.google.ortools.bop.BopOptimizerMethod.OptimizerType.forNumber(tmpRaw);
580 if (tmpValue ==
null) {
581 mergeUnknownVarintField(1, tmpRaw);
584 bitField0_ |= 0x00000001;
589 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
596 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
597 throw e.unwrapIOException();
603 private int bitField0_;
605 private int type_ = 0;
610 @java.lang.Override
public boolean hasType() {
611 return ((bitField0_ & 0x00000001) != 0);
620 return result ==
null ? com.google.ortools.bop.BopOptimizerMethod.OptimizerType.SAT_CORE_BASED : result;
627 public Builder setType(com.google.ortools.bop.BopOptimizerMethod.OptimizerType value) {
629 throw new NullPointerException();
631 bitField0_ |= 0x00000001;
632 type_ = value.getNumber();
641 bitField0_ = (bitField0_ & ~0x00000001);
653 DEFAULT_INSTANCE =
new com.google.ortools.bop.BopOptimizerMethod();
657 return DEFAULT_INSTANCE;
664 com.google.protobuf.CodedInputStream input,
665 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
666 throws com.google.protobuf.InvalidProtocolBufferException {
669 builder.mergeFrom(input, extensionRegistry);
670 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
671 throw e.setUnfinishedMessage(builder.buildPartial());
672 }
catch (com.google.protobuf.UninitializedMessageException e) {
673 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
674 }
catch (java.io.IOException e) {
675 throw new com.google.protobuf.InvalidProtocolBufferException(e)
676 .setUnfinishedMessage(builder.buildPartial());
678 return builder.buildPartial();
693 return DEFAULT_INSTANCE;