6package com.google.ortools.constraintsolver;
16@com.google.protobuf.Generated
17public final class RuinCompositionStrategy
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 RuinCompositionStrategy.class.getName());
32 private RuinCompositionStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private RuinCompositionStrategy() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.RuinCompositionStrategy.class, com.google.ortools.constraintsolver.RuinCompositionStrategy.Builder.class);
55 implements com.google.protobuf.ProtocolMessageEnum {
93 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
94 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
99 Value.class.getName());
138 throw new java.lang.IllegalArgumentException(
139 "Can't get the number of an unknown enum value.");
149 @java.lang.Deprecated
160 case 0:
return UNSET;
164 default:
return null;
168 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
170 return internalValueMap;
172 private static final com.google.protobuf.Internal.EnumLiteMap<
173 Value> internalValueMap =
174 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
175 public Value findValueByNumber(
int number) {
180 public final com.google.protobuf.Descriptors.EnumValueDescriptor
183 throw new java.lang.IllegalStateException(
184 "Can't get the descriptor of an unrecognized enum value.");
188 public final com.google.protobuf.Descriptors.EnumDescriptor
192 public static com.google.protobuf.Descriptors.EnumDescriptor
194 return com.google.ortools.constraintsolver.RuinCompositionStrategy.getDescriptor().getEnumTypes().get(0);
197 private static final Value[] VALUES = values();
200 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
202 throw new java.lang.IllegalArgumentException(
203 "EnumValueDescriptor is not for this type.");
205 if (desc.getIndex() == -1) {
208 return VALUES[desc.getIndex()];
211 private final int value;
213 private Value(
int value) {
220 private byte memoizedIsInitialized = -1;
227 memoizedIsInitialized = 1;
232 public void writeTo(com.google.protobuf.CodedOutputStream output)
233 throws java.io.IOException {
234 getUnknownFields().writeTo(output);
239 int size = memoizedSize;
240 if (size != -1)
return size;
243 size += getUnknownFields().getSerializedSize();
249 public boolean equals(
final java.lang.Object obj) {
253 if (!(obj instanceof com.google.ortools.constraintsolver.RuinCompositionStrategy)) {
254 return super.equals(obj);
258 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
264 if (memoizedHashCode != 0) {
265 return memoizedHashCode;
269 hash = (29 * hash) + getUnknownFields().hashCode();
270 memoizedHashCode = hash;
275 java.nio.ByteBuffer data)
276 throws com.google.protobuf.InvalidProtocolBufferException {
277 return PARSER.parseFrom(data);
280 java.nio.ByteBuffer data,
281 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
282 throws com.google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data, extensionRegistry);
286 com.google.protobuf.ByteString data)
287 throws com.google.protobuf.InvalidProtocolBufferException {
288 return PARSER.parseFrom(data);
291 com.google.protobuf.ByteString data,
292 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
293 throws com.google.protobuf.InvalidProtocolBufferException {
294 return PARSER.parseFrom(data, extensionRegistry);
297 throws com.google.protobuf.InvalidProtocolBufferException {
298 return PARSER.parseFrom(data);
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws com.google.protobuf.InvalidProtocolBufferException {
304 return PARSER.parseFrom(data, extensionRegistry);
307 throws java.io.IOException {
308 return com.google.protobuf.GeneratedMessage
309 .parseWithIOException(PARSER, input);
312 java.io.InputStream input,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws java.io.IOException {
315 return com.google.protobuf.GeneratedMessage
316 .parseWithIOException(PARSER, input, extensionRegistry);
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessage
322 .parseDelimitedWithIOException(PARSER, input);
326 java.io.InputStream input,
327 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
328 throws java.io.IOException {
329 return com.google.protobuf.GeneratedMessage
330 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
333 com.google.protobuf.CodedInputStream input)
334 throws java.io.IOException {
335 return com.google.protobuf.GeneratedMessage
336 .parseWithIOException(PARSER, input);
339 com.google.protobuf.CodedInputStream input,
340 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
341 throws java.io.IOException {
342 return com.google.protobuf.GeneratedMessage
343 .parseWithIOException(PARSER, input, extensionRegistry);
349 return DEFAULT_INSTANCE.toBuilder();
351 public static Builder newBuilder(com.google.ortools.constraintsolver.RuinCompositionStrategy prototype) {
352 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
356 return this == DEFAULT_INSTANCE
362 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
374 public static final class Builder
extends
375 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
378 public static final com.google.protobuf.Descriptors.Descriptor
380 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
384 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
386 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_fieldAccessorTable
387 .ensureFieldAccessorsInitialized(
388 com.google.ortools.constraintsolver.RuinCompositionStrategy.class, com.google.ortools.constraintsolver.RuinCompositionStrategy.Builder.class);
397 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
408 public com.google.protobuf.Descriptors.Descriptor
410 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
415 return com.google.ortools.constraintsolver.RuinCompositionStrategy.getDefaultInstance();
422 throw newUninitializedMessageException(result);
435 public Builder
mergeFrom(com.google.protobuf.Message other) {
436 if (other instanceof com.google.ortools.constraintsolver.RuinCompositionStrategy) {
437 return mergeFrom((com.google.ortools.constraintsolver.RuinCompositionStrategy)other);
439 super.mergeFrom(other);
444 public Builder
mergeFrom(com.google.ortools.constraintsolver.RuinCompositionStrategy other) {
445 if (other == com.google.ortools.constraintsolver.RuinCompositionStrategy.getDefaultInstance())
return this;
446 this.mergeUnknownFields(other.getUnknownFields());
458 com.google.protobuf.CodedInputStream input,
459 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
460 throws java.io.IOException {
461 if (extensionRegistry ==
null) {
462 throw new java.lang.NullPointerException();
465 boolean done =
false;
467 int tag = input.readTag();
473 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
480 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
481 throw e.unwrapIOException();
494 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RuinCompositionStrategy();
498 return DEFAULT_INSTANCE;
505 com.google.protobuf.CodedInputStream input,
506 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
507 throws com.google.protobuf.InvalidProtocolBufferException {
510 builder.mergeFrom(input, extensionRegistry);
511 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
512 throw e.setUnfinishedMessage(builder.buildPartial());
513 }
catch (com.google.protobuf.UninitializedMessageException e) {
514 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
515 }
catch (java.io.IOException e) {
516 throw new com.google.protobuf.InvalidProtocolBufferException(e)
517 .setUnfinishedMessage(builder.buildPartial());
519 return builder.buildPartial();
523 public static com.google.protobuf.Parser<RuinCompositionStrategy>
parser() {
534 return DEFAULT_INSTANCE;