Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
CoolingScheduleStrategy.java
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// NO CHECKED-IN PROTOBUF GENCODE
3// source: ortools/constraint_solver/routing_ils.proto
4// Protobuf Java Version: 4.31.1
5
6package com.google.ortools.constraintsolver;
7
35@com.google.protobuf.Generated
36public final class CoolingScheduleStrategy extends
37 com.google.protobuf.GeneratedMessage implements
38 // @@protoc_insertion_point(message_implements:operations_research.CoolingScheduleStrategy)
40private static final long serialVersionUID = 0L;
41 static {
42 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
43 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
44 /* major= */ 4,
45 /* minor= */ 31,
46 /* patch= */ 1,
47 /* suffix= */ "",
48 CoolingScheduleStrategy.class.getName());
49 }
50 // Use CoolingScheduleStrategy.newBuilder() to construct.
51 private CoolingScheduleStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
52 super(builder);
53 }
54 private CoolingScheduleStrategy() {
55 }
56
57 public static final com.google.protobuf.Descriptors.Descriptor
59 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
60 }
61
62 @java.lang.Override
63 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
65 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_fieldAccessorTable
66 .ensureFieldAccessorsInitialized(
67 com.google.ortools.constraintsolver.CoolingScheduleStrategy.class, com.google.ortools.constraintsolver.CoolingScheduleStrategy.Builder.class);
68 }
69
73 public enum Value
74 implements com.google.protobuf.ProtocolMessageEnum {
102 ;
103
104 static {
105 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
106 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
107 /* major= */ 4,
108 /* minor= */ 31,
109 /* patch= */ 1,
110 /* suffix= */ "",
111 Value.class.getName());
112 }
120 public static final int UNSET_VALUE = 0;
129 public static final int EXPONENTIAL_VALUE = 1;
138 public static final int LINEAR_VALUE = 2;
139
140
141 public final int getNumber() {
142 if (this == UNRECOGNIZED) {
143 throw new java.lang.IllegalArgumentException(
144 "Can't get the number of an unknown enum value.");
145 }
146 return value;
147 }
148
154 @java.lang.Deprecated
155 public static Value valueOf(int value) {
156 return forNumber(value);
157 }
158
163 public static Value forNumber(int value) {
164 switch (value) {
165 case 0: return UNSET;
166 case 1: return EXPONENTIAL;
167 case 2: return LINEAR;
168 default: return null;
169 }
170 }
171
172 public static com.google.protobuf.Internal.EnumLiteMap<Value>
174 return internalValueMap;
175 }
176 private static final com.google.protobuf.Internal.EnumLiteMap<
177 Value> internalValueMap =
178 new com.google.protobuf.Internal.EnumLiteMap<Value>() {
179 public Value findValueByNumber(int number) {
180 return Value.forNumber(number);
181 }
182 };
183
184 public final com.google.protobuf.Descriptors.EnumValueDescriptor
186 if (this == UNRECOGNIZED) {
187 throw new java.lang.IllegalStateException(
188 "Can't get the descriptor of an unrecognized enum value.");
189 }
190 return getDescriptor().getValues().get(ordinal());
191 }
192 public final com.google.protobuf.Descriptors.EnumDescriptor
194 return getDescriptor();
195 }
196 public static com.google.protobuf.Descriptors.EnumDescriptor
198 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDescriptor().getEnumTypes().get(0);
199 }
200
201 private static final Value[] VALUES = values();
202
203 public static Value valueOf(
204 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
205 if (desc.getType() != getDescriptor()) {
206 throw new java.lang.IllegalArgumentException(
207 "EnumValueDescriptor is not for this type.");
208 }
209 if (desc.getIndex() == -1) {
210 return UNRECOGNIZED;
211 }
212 return VALUES[desc.getIndex()];
213 }
214
215 private final int value;
216
217 private Value(int value) {
218 this.value = value;
219 }
220
221 // @@protoc_insertion_point(enum_scope:operations_research.CoolingScheduleStrategy.Value)
222 }
223
224 private byte memoizedIsInitialized = -1;
225 @java.lang.Override
226 public final boolean isInitialized() {
227 byte isInitialized = memoizedIsInitialized;
228 if (isInitialized == 1) return true;
229 if (isInitialized == 0) return false;
230
231 memoizedIsInitialized = 1;
232 return true;
233 }
234
235 @java.lang.Override
236 public void writeTo(com.google.protobuf.CodedOutputStream output)
237 throws java.io.IOException {
238 getUnknownFields().writeTo(output);
239 }
240
241 @java.lang.Override
242 public int getSerializedSize() {
243 int size = memoizedSize;
244 if (size != -1) return size;
245
246 size = 0;
247 size += getUnknownFields().getSerializedSize();
248 memoizedSize = size;
249 return size;
250 }
251
252 @java.lang.Override
253 public boolean equals(final java.lang.Object obj) {
254 if (obj == this) {
255 return true;
256 }
257 if (!(obj instanceof com.google.ortools.constraintsolver.CoolingScheduleStrategy)) {
258 return super.equals(obj);
259 }
260 com.google.ortools.constraintsolver.CoolingScheduleStrategy other = (com.google.ortools.constraintsolver.CoolingScheduleStrategy) obj;
261
262 if (!getUnknownFields().equals(other.getUnknownFields())) return false;
263 return true;
264 }
265
266 @java.lang.Override
267 public int hashCode() {
268 if (memoizedHashCode != 0) {
269 return memoizedHashCode;
270 }
271 int hash = 41;
272 hash = (19 * hash) + getDescriptor().hashCode();
273 hash = (29 * hash) + getUnknownFields().hashCode();
274 memoizedHashCode = hash;
275 return hash;
276 }
277
279 java.nio.ByteBuffer data)
280 throws com.google.protobuf.InvalidProtocolBufferException {
281 return PARSER.parseFrom(data);
282 }
284 java.nio.ByteBuffer data,
285 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
286 throws com.google.protobuf.InvalidProtocolBufferException {
287 return PARSER.parseFrom(data, extensionRegistry);
288 }
290 com.google.protobuf.ByteString data)
291 throws com.google.protobuf.InvalidProtocolBufferException {
292 return PARSER.parseFrom(data);
293 }
295 com.google.protobuf.ByteString data,
296 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
297 throws com.google.protobuf.InvalidProtocolBufferException {
298 return PARSER.parseFrom(data, extensionRegistry);
299 }
301 throws com.google.protobuf.InvalidProtocolBufferException {
302 return PARSER.parseFrom(data);
303 }
305 byte[] data,
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws com.google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data, extensionRegistry);
309 }
311 throws java.io.IOException {
312 return com.google.protobuf.GeneratedMessage
313 .parseWithIOException(PARSER, input);
314 }
316 java.io.InputStream input,
317 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
318 throws java.io.IOException {
319 return com.google.protobuf.GeneratedMessage
320 .parseWithIOException(PARSER, input, extensionRegistry);
321 }
322
324 throws java.io.IOException {
325 return com.google.protobuf.GeneratedMessage
326 .parseDelimitedWithIOException(PARSER, input);
327 }
328
330 java.io.InputStream input,
331 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
332 throws java.io.IOException {
333 return com.google.protobuf.GeneratedMessage
334 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
335 }
337 com.google.protobuf.CodedInputStream input)
338 throws java.io.IOException {
339 return com.google.protobuf.GeneratedMessage
340 .parseWithIOException(PARSER, input);
341 }
343 com.google.protobuf.CodedInputStream input,
344 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
345 throws java.io.IOException {
346 return com.google.protobuf.GeneratedMessage
347 .parseWithIOException(PARSER, input, extensionRegistry);
348 }
349
350 @java.lang.Override
351 public Builder newBuilderForType() { return newBuilder(); }
352 public static Builder newBuilder() {
353 return DEFAULT_INSTANCE.toBuilder();
354 }
355 public static Builder newBuilder(com.google.ortools.constraintsolver.CoolingScheduleStrategy prototype) {
356 return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
357 }
358 @java.lang.Override
360 return this == DEFAULT_INSTANCE
361 ? new Builder() : new Builder().mergeFrom(this);
362 }
363
364 @java.lang.Override
366 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
367 Builder builder = new Builder(parent);
368 return builder;
369 }
370
397 public static final class Builder extends
398 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
399 // @@protoc_insertion_point(builder_implements:operations_research.CoolingScheduleStrategy)
401 public static final com.google.protobuf.Descriptors.Descriptor
403 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
404 }
405
406 @java.lang.Override
407 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
409 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_fieldAccessorTable
410 .ensureFieldAccessorsInitialized(
411 com.google.ortools.constraintsolver.CoolingScheduleStrategy.class, com.google.ortools.constraintsolver.CoolingScheduleStrategy.Builder.class);
412 }
413
414 // Construct using com.google.ortools.constraintsolver.CoolingScheduleStrategy.newBuilder()
415 private Builder() {
416
417 }
418
419 private Builder(
420 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
421 super(parent);
422
423 }
424 @java.lang.Override
425 public Builder clear() {
426 super.clear();
427 return this;
428 }
429
430 @java.lang.Override
431 public com.google.protobuf.Descriptors.Descriptor
433 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
434 }
435
436 @java.lang.Override
438 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDefaultInstance();
439 }
440
441 @java.lang.Override
444 if (!result.isInitialized()) {
445 throw newUninitializedMessageException(result);
446 }
447 return result;
448 }
449
450 @java.lang.Override
452 com.google.ortools.constraintsolver.CoolingScheduleStrategy result = new com.google.ortools.constraintsolver.CoolingScheduleStrategy(this);
453 onBuilt();
454 return result;
455 }
456
457 @java.lang.Override
458 public Builder mergeFrom(com.google.protobuf.Message other) {
459 if (other instanceof com.google.ortools.constraintsolver.CoolingScheduleStrategy) {
460 return mergeFrom((com.google.ortools.constraintsolver.CoolingScheduleStrategy)other);
461 } else {
462 super.mergeFrom(other);
463 return this;
464 }
465 }
466
467 public Builder mergeFrom(com.google.ortools.constraintsolver.CoolingScheduleStrategy other) {
468 if (other == com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDefaultInstance()) return this;
469 this.mergeUnknownFields(other.getUnknownFields());
470 onChanged();
471 return this;
472 }
473
474 @java.lang.Override
475 public final boolean isInitialized() {
476 return true;
477 }
478
479 @java.lang.Override
480 public Builder mergeFrom(
481 com.google.protobuf.CodedInputStream input,
482 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
483 throws java.io.IOException {
484 if (extensionRegistry == null) {
485 throw new java.lang.NullPointerException();
486 }
487 try {
488 boolean done = false;
489 while (!done) {
490 int tag = input.readTag();
491 switch (tag) {
492 case 0:
493 done = true;
494 break;
495 default: {
496 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
497 done = true; // was an endgroup tag
498 }
499 break;
500 } // default:
501 } // switch (tag)
502 } // while (!done)
503 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
504 throw e.unwrapIOException();
505 } finally {
506 onChanged();
507 } // finally
508 return this;
509 }
510
511 // @@protoc_insertion_point(builder_scope:operations_research.CoolingScheduleStrategy)
512 }
513
514 // @@protoc_insertion_point(class_scope:operations_research.CoolingScheduleStrategy)
515 private static final com.google.ortools.constraintsolver.CoolingScheduleStrategy DEFAULT_INSTANCE;
516 static {
517 DEFAULT_INSTANCE = new com.google.ortools.constraintsolver.CoolingScheduleStrategy();
518 }
519
521 return DEFAULT_INSTANCE;
522 }
523
524 private static final com.google.protobuf.Parser<CoolingScheduleStrategy>
525 PARSER = new com.google.protobuf.AbstractParser<CoolingScheduleStrategy>() {
526 @java.lang.Override
527 public CoolingScheduleStrategy parsePartialFrom(
528 com.google.protobuf.CodedInputStream input,
529 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530 throws com.google.protobuf.InvalidProtocolBufferException {
531 Builder builder = newBuilder();
532 try {
533 builder.mergeFrom(input, extensionRegistry);
534 } catch (com.google.protobuf.InvalidProtocolBufferException e) {
535 throw e.setUnfinishedMessage(builder.buildPartial());
536 } catch (com.google.protobuf.UninitializedMessageException e) {
537 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
538 } catch (java.io.IOException e) {
539 throw new com.google.protobuf.InvalidProtocolBufferException(e)
540 .setUnfinishedMessage(builder.buildPartial());
541 }
542 return builder.buildPartial();
543 }
544 };
545
546 public static com.google.protobuf.Parser<CoolingScheduleStrategy> parser() {
547 return PARSER;
548 }
549
550 @java.lang.Override
551 public com.google.protobuf.Parser<CoolingScheduleStrategy> getParserForType() {
552 return PARSER;
553 }
554
555 @java.lang.Override
557 return DEFAULT_INSTANCE;
558 }
559
560}
561
Builder mergeFrom(com.google.ortools.constraintsolver.CoolingScheduleStrategy other)
com.google.ortools.constraintsolver.CoolingScheduleStrategy buildPartial()
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
com.google.ortools.constraintsolver.CoolingScheduleStrategy getDefaultInstanceForType()
com.google.ortools.constraintsolver.CoolingScheduleStrategy build()
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(byte[] data)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(com.google.protobuf.CodedInputStream input)
com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
static com.google.protobuf.Parser< CoolingScheduleStrategy > parser()
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(java.nio.ByteBuffer data)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
void writeTo(com.google.protobuf.CodedOutputStream output)
Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseDelimitedFrom(java.io.InputStream input)
com.google.ortools.constraintsolver.CoolingScheduleStrategy getDefaultInstanceForType()
com.google.protobuf.Parser< CoolingScheduleStrategy > getParserForType()
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(java.io.InputStream input)
static Builder newBuilder(com.google.ortools.constraintsolver.CoolingScheduleStrategy prototype)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(com.google.protobuf.ByteString data)
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
static com.google.ortools.constraintsolver.CoolingScheduleStrategy getDefaultInstance()
static com.google.ortools.constraintsolver.CoolingScheduleStrategy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
static Value valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
static com.google.protobuf.Internal.EnumLiteMap< Value > internalGetValueMap()
static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()