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