6package com.google.ortools.bop;
17public final class BopOptimizerMethod
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 BopOptimizerMethod.class.getName());
32 private BopOptimizerMethod(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private BopOptimizerMethod() {
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
55 public enum OptimizerType
56 implements com.google.protobuf.ProtocolMessageEnum {
120 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
121 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
126 OptimizerType.class.getName());
199 @java.lang.Deprecated
200 public static OptimizerType
valueOf(
int value) {
225 default:
return null;
229 public static com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>
231 return internalValueMap;
233 private static final com.google.protobuf.Internal.EnumLiteMap<
235 new com.google.protobuf.Internal.EnumLiteMap<
OptimizerType>() {
241 public final com.google.protobuf.Descriptors.EnumValueDescriptor
245 public final com.google.protobuf.Descriptors.EnumDescriptor
249 public static final com.google.protobuf.Descriptors.EnumDescriptor
251 return com.google.ortools.bop.BopOptimizerMethod.getDescriptor().getEnumTypes().get(0);
257 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
259 throw new java.lang.IllegalArgumentException(
260 "EnumValueDescriptor is not for this type.");
262 return VALUES[desc.getIndex()];
265 private final int value;
274 private int bitField0_;
276 private int type_ = 0;
281 @java.lang.Override
public boolean hasType() {
282 return ((bitField0_ & 0x00000001) != 0);
293 private byte memoizedIsInitialized = -1;
300 memoizedIsInitialized = 1;
305 public void writeTo(com.google.protobuf.CodedOutputStream output)
306 throws java.io.IOException {
307 if (((bitField0_ & 0x00000001) != 0)) {
308 output.writeEnum(1, type_);
310 getUnknownFields().writeTo(output);
315 int size = memoizedSize;
316 if (size != -1)
return size;
319 if (((bitField0_ & 0x00000001) != 0)) {
320 size += com.google.protobuf.CodedOutputStream
321 .computeEnumSize(1, type_);
323 size += getUnknownFields().getSerializedSize();
329 public boolean equals(
final java.lang.Object obj) {
333 if (!(obj instanceof com.google.ortools.bop.BopOptimizerMethod)) {
334 return super.equals(obj);
340 if (type_ != other.type_)
return false;
342 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
348 if (memoizedHashCode != 0) {
349 return memoizedHashCode;
355 hash = (53 * hash) + type_;
357 hash = (29 * hash) + getUnknownFields().hashCode();
358 memoizedHashCode = hash;
363 java.nio.ByteBuffer data)
364 throws com.google.protobuf.InvalidProtocolBufferException {
365 return PARSER.parseFrom(data);
368 java.nio.ByteBuffer data,
369 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
370 throws com.google.protobuf.InvalidProtocolBufferException {
371 return PARSER.parseFrom(data, extensionRegistry);
374 com.google.protobuf.ByteString data)
375 throws com.google.protobuf.InvalidProtocolBufferException {
376 return PARSER.parseFrom(data);
379 com.google.protobuf.ByteString data,
380 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
381 throws com.google.protobuf.InvalidProtocolBufferException {
382 return PARSER.parseFrom(data, extensionRegistry);
385 throws com.google.protobuf.InvalidProtocolBufferException {
386 return PARSER.parseFrom(data);
390 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
391 throws com.google.protobuf.InvalidProtocolBufferException {
392 return PARSER.parseFrom(data, extensionRegistry);
395 throws java.io.IOException {
396 return com.google.protobuf.GeneratedMessage
397 .parseWithIOException(PARSER, input);
400 java.io.InputStream input,
401 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
402 throws java.io.IOException {
403 return com.google.protobuf.GeneratedMessage
404 .parseWithIOException(PARSER, input, extensionRegistry);
408 throws java.io.IOException {
409 return com.google.protobuf.GeneratedMessage
410 .parseDelimitedWithIOException(PARSER, input);
414 java.io.InputStream input,
415 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
416 throws java.io.IOException {
417 return com.google.protobuf.GeneratedMessage
418 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
421 com.google.protobuf.CodedInputStream input)
422 throws java.io.IOException {
423 return com.google.protobuf.GeneratedMessage
424 .parseWithIOException(PARSER, input);
427 com.google.protobuf.CodedInputStream input,
428 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
429 throws java.io.IOException {
430 return com.google.protobuf.GeneratedMessage
431 .parseWithIOException(PARSER, input, extensionRegistry);
437 return DEFAULT_INSTANCE.toBuilder();
440 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
444 return this == DEFAULT_INSTANCE
450 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
463 public static final class Builder
extends
464 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
467 public static final com.google.protobuf.Descriptors.Descriptor
469 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
473 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
475 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_fieldAccessorTable
476 .ensureFieldAccessorsInitialized(
477 com.google.ortools.bop.BopOptimizerMethod.class, com.google.ortools.bop.BopOptimizerMethod.Builder.class);
486 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
499 public com.google.protobuf.Descriptors.Descriptor
501 return com.google.ortools.bop.BopParametersOuterClass.internal_static_operations_research_bop_BopOptimizerMethod_descriptor;
506 return com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance();
513 throw newUninitializedMessageException(result);
521 if (bitField0_ != 0) { buildPartial0(result); }
526 private void buildPartial0(com.google.ortools.bop.BopOptimizerMethod result) {
527 int from_bitField0_ = bitField0_;
528 int to_bitField0_ = 0;
529 if (((from_bitField0_ & 0x00000001) != 0)) {
530 result.type_ = type_;
531 to_bitField0_ |= 0x00000001;
533 result.bitField0_ |= to_bitField0_;
537 public Builder
mergeFrom(com.google.protobuf.Message other) {
538 if (other instanceof com.google.ortools.bop.BopOptimizerMethod) {
539 return mergeFrom((com.google.ortools.bop.BopOptimizerMethod)other);
541 super.mergeFrom(other);
546 public Builder
mergeFrom(com.google.ortools.bop.BopOptimizerMethod other) {
547 if (other == com.google.ortools.bop.BopOptimizerMethod.getDefaultInstance())
return this;
548 if (other.hasType()) {
551 this.mergeUnknownFields(other.getUnknownFields());
563 com.google.protobuf.CodedInputStream input,
564 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
565 throws java.io.IOException {
566 if (extensionRegistry ==
null) {
567 throw new java.lang.NullPointerException();
570 boolean done =
false;
572 int tag = input.readTag();
578 int tmpRaw = input.readEnum();
580 com.google.ortools.bop.BopOptimizerMethod.OptimizerType.forNumber(tmpRaw);
581 if (tmpValue ==
null) {
582 mergeUnknownVarintField(1, tmpRaw);
585 bitField0_ |= 0x00000001;
590 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
597 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
598 throw e.unwrapIOException();
604 private int bitField0_;
606 private int type_ = 0;
611 @java.lang.Override
public boolean hasType() {
612 return ((bitField0_ & 0x00000001) != 0);
628 public Builder
setType(com.google.ortools.bop.BopOptimizerMethod.OptimizerType value) {
630 throw new NullPointerException();
632 bitField0_ |= 0x00000001;
633 type_ = value.getNumber();
642 bitField0_ = (bitField0_ & ~0x00000001);
654 DEFAULT_INSTANCE =
new com.google.ortools.bop.BopOptimizerMethod();
658 return DEFAULT_INSTANCE;
665 com.google.protobuf.CodedInputStream input,
666 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
667 throws com.google.protobuf.InvalidProtocolBufferException {
670 builder.mergeFrom(input, extensionRegistry);
671 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
672 throw e.setUnfinishedMessage(builder.buildPartial());
673 }
catch (com.google.protobuf.UninitializedMessageException e) {
674 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
675 }
catch (java.io.IOException e) {
676 throw new com.google.protobuf.InvalidProtocolBufferException(e)
677 .setUnfinishedMessage(builder.buildPartial());
679 return builder.buildPartial();
683 public static com.google.protobuf.Parser<BopOptimizerMethod>
parser() {
694 return DEFAULT_INSTANCE;