6package com.google.ortools.constraintsolver;
16public final class RuinCompositionStrategy
extends
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,
28 RuinCompositionStrategy.class.getName());
31 private RuinCompositionStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private RuinCompositionStrategy() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.RuinCompositionStrategy.class, com.google.ortools.constraintsolver.RuinCompositionStrategy.Builder.class);
54 implements com.google.protobuf.ProtocolMessageEnum {
92 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
93 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
98 Value.class.getName());
137 throw new java.lang.IllegalArgumentException(
138 "Can't get the number of an unknown enum value.");
148 @java.lang.Deprecated
159 case 0:
return UNSET;
163 default:
return null;
167 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
169 return internalValueMap;
171 private static final com.google.protobuf.Internal.EnumLiteMap<
172 Value> internalValueMap =
173 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
174 public Value findValueByNumber(
int number) {
179 public final com.google.protobuf.Descriptors.EnumValueDescriptor
182 throw new java.lang.IllegalStateException(
183 "Can't get the descriptor of an unrecognized enum value.");
187 public final com.google.protobuf.Descriptors.EnumDescriptor
191 public static final com.google.protobuf.Descriptors.EnumDescriptor
193 return com.google.ortools.constraintsolver.RuinCompositionStrategy.getDescriptor().getEnumTypes().get(0);
196 private static final Value[] VALUES = values();
199 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
201 throw new java.lang.IllegalArgumentException(
202 "EnumValueDescriptor is not for this type.");
204 if (desc.getIndex() == -1) {
207 return VALUES[desc.getIndex()];
210 private final int value;
212 private Value(
int value) {
219 private byte memoizedIsInitialized = -1;
226 memoizedIsInitialized = 1;
231 public void writeTo(com.google.protobuf.CodedOutputStream output)
232 throws java.io.IOException {
233 getUnknownFields().writeTo(output);
238 int size = memoizedSize;
239 if (size != -1)
return size;
242 size += getUnknownFields().getSerializedSize();
248 public boolean equals(
final java.lang.Object obj) {
252 if (!(obj instanceof com.google.ortools.constraintsolver.RuinCompositionStrategy)) {
253 return super.equals(obj);
257 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
263 if (memoizedHashCode != 0) {
264 return memoizedHashCode;
268 hash = (29 * hash) + getUnknownFields().hashCode();
269 memoizedHashCode = hash;
274 java.nio.ByteBuffer data)
275 throws com.google.protobuf.InvalidProtocolBufferException {
276 return PARSER.parseFrom(data);
279 java.nio.ByteBuffer data,
280 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
281 throws com.google.protobuf.InvalidProtocolBufferException {
282 return PARSER.parseFrom(data, extensionRegistry);
285 com.google.protobuf.ByteString data)
286 throws com.google.protobuf.InvalidProtocolBufferException {
287 return PARSER.parseFrom(data);
290 com.google.protobuf.ByteString data,
291 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
292 throws com.google.protobuf.InvalidProtocolBufferException {
293 return PARSER.parseFrom(data, extensionRegistry);
296 throws com.google.protobuf.InvalidProtocolBufferException {
297 return PARSER.parseFrom(data);
301 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
302 throws com.google.protobuf.InvalidProtocolBufferException {
303 return PARSER.parseFrom(data, extensionRegistry);
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseWithIOException(PARSER, input);
311 java.io.InputStream input,
312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313 throws java.io.IOException {
314 return com.google.protobuf.GeneratedMessage
315 .parseWithIOException(PARSER, input, extensionRegistry);
319 throws java.io.IOException {
320 return com.google.protobuf.GeneratedMessage
321 .parseDelimitedWithIOException(PARSER, input);
325 java.io.InputStream input,
326 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws java.io.IOException {
328 return com.google.protobuf.GeneratedMessage
329 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
332 com.google.protobuf.CodedInputStream input)
333 throws java.io.IOException {
334 return com.google.protobuf.GeneratedMessage
335 .parseWithIOException(PARSER, input);
338 com.google.protobuf.CodedInputStream input,
339 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
340 throws java.io.IOException {
341 return com.google.protobuf.GeneratedMessage
342 .parseWithIOException(PARSER, input, extensionRegistry);
348 return DEFAULT_INSTANCE.toBuilder();
350 public static Builder newBuilder(com.google.ortools.constraintsolver.RuinCompositionStrategy prototype) {
351 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
355 return this == DEFAULT_INSTANCE
361 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
373 public static final class Builder
extends
374 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
377 public static final com.google.protobuf.Descriptors.Descriptor
379 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
383 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
385 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_fieldAccessorTable
386 .ensureFieldAccessorsInitialized(
387 com.google.ortools.constraintsolver.RuinCompositionStrategy.class, com.google.ortools.constraintsolver.RuinCompositionStrategy.Builder.class);
396 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
407 public com.google.protobuf.Descriptors.Descriptor
409 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RuinCompositionStrategy_descriptor;
414 return com.google.ortools.constraintsolver.RuinCompositionStrategy.getDefaultInstance();
421 throw newUninitializedMessageException(result);
434 public Builder
mergeFrom(com.google.protobuf.Message other) {
435 if (other instanceof com.google.ortools.constraintsolver.RuinCompositionStrategy) {
436 return mergeFrom((com.google.ortools.constraintsolver.RuinCompositionStrategy)other);
438 super.mergeFrom(other);
443 public Builder
mergeFrom(com.google.ortools.constraintsolver.RuinCompositionStrategy other) {
444 if (other == com.google.ortools.constraintsolver.RuinCompositionStrategy.getDefaultInstance())
return this;
445 this.mergeUnknownFields(other.getUnknownFields());
457 com.google.protobuf.CodedInputStream input,
458 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
459 throws java.io.IOException {
460 if (extensionRegistry ==
null) {
461 throw new java.lang.NullPointerException();
464 boolean done =
false;
466 int tag = input.readTag();
472 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
479 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
480 throw e.unwrapIOException();
493 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RuinCompositionStrategy();
497 return DEFAULT_INSTANCE;
504 com.google.protobuf.CodedInputStream input,
505 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
506 throws com.google.protobuf.InvalidProtocolBufferException {
509 builder.mergeFrom(input, extensionRegistry);
510 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
511 throw e.setUnfinishedMessage(builder.buildPartial());
512 }
catch (com.google.protobuf.UninitializedMessageException e) {
513 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
514 }
catch (java.io.IOException e) {
515 throw new com.google.protobuf.InvalidProtocolBufferException(e)
516 .setUnfinishedMessage(builder.buildPartial());
518 return builder.buildPartial();
522 public static com.google.protobuf.Parser<RuinCompositionStrategy>
parser() {
533 return DEFAULT_INSTANCE;