6package com.google.ortools.constraintsolver;
35@com.google.protobuf.Generated
36public final class CoolingScheduleStrategy
extends
37 com.google.protobuf.GeneratedMessage implements
40private static final long serialVersionUID = 0L;
42 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
43 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
48 CoolingScheduleStrategy.class.getName());
51 private CoolingScheduleStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
54 private CoolingScheduleStrategy() {
57 public static final com.google.protobuf.Descriptors.Descriptor
59 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
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);
74 implements com.google.protobuf.ProtocolMessageEnum {
105 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
106 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
111 Value.class.getName());
143 throw new java.lang.IllegalArgumentException(
144 "Can't get the number of an unknown enum value.");
154 @java.lang.Deprecated
165 case 0:
return UNSET;
168 default:
return null;
172 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
174 return internalValueMap;
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) {
184 public final com.google.protobuf.Descriptors.EnumValueDescriptor
187 throw new java.lang.IllegalStateException(
188 "Can't get the descriptor of an unrecognized enum value.");
192 public final com.google.protobuf.Descriptors.EnumDescriptor
196 public static com.google.protobuf.Descriptors.EnumDescriptor
198 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDescriptor().getEnumTypes().get(0);
201 private static final Value[] VALUES = values();
204 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
206 throw new java.lang.IllegalArgumentException(
207 "EnumValueDescriptor is not for this type.");
209 if (desc.getIndex() == -1) {
212 return VALUES[desc.getIndex()];
215 private final int value;
217 private Value(
int value) {
224 private byte memoizedIsInitialized = -1;
231 memoizedIsInitialized = 1;
236 public void writeTo(com.google.protobuf.CodedOutputStream output)
237 throws java.io.IOException {
238 getUnknownFields().writeTo(output);
243 int size = memoizedSize;
244 if (size != -1)
return size;
247 size += getUnknownFields().getSerializedSize();
253 public boolean equals(
final java.lang.Object obj) {
257 if (!(obj instanceof com.google.ortools.constraintsolver.CoolingScheduleStrategy)) {
258 return super.equals(obj);
262 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
268 if (memoizedHashCode != 0) {
269 return memoizedHashCode;
273 hash = (29 * hash) + getUnknownFields().hashCode();
274 memoizedHashCode = hash;
279 java.nio.ByteBuffer data)
280 throws com.google.protobuf.InvalidProtocolBufferException {
281 return PARSER.parseFrom(data);
284 java.nio.ByteBuffer data,
285 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
286 throws com.google.protobuf.InvalidProtocolBufferException {
287 return PARSER.parseFrom(data, extensionRegistry);
290 com.google.protobuf.ByteString data)
291 throws com.google.protobuf.InvalidProtocolBufferException {
292 return PARSER.parseFrom(data);
295 com.google.protobuf.ByteString data,
296 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
297 throws com.google.protobuf.InvalidProtocolBufferException {
298 return PARSER.parseFrom(data, extensionRegistry);
301 throws com.google.protobuf.InvalidProtocolBufferException {
302 return PARSER.parseFrom(data);
306 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
307 throws com.google.protobuf.InvalidProtocolBufferException {
308 return PARSER.parseFrom(data, extensionRegistry);
311 throws java.io.IOException {
312 return com.google.protobuf.GeneratedMessage
313 .parseWithIOException(PARSER, input);
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);
324 throws java.io.IOException {
325 return com.google.protobuf.GeneratedMessage
326 .parseDelimitedWithIOException(PARSER, input);
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);
337 com.google.protobuf.CodedInputStream input)
338 throws java.io.IOException {
339 return com.google.protobuf.GeneratedMessage
340 .parseWithIOException(PARSER, input);
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);
353 return DEFAULT_INSTANCE.toBuilder();
355 public static Builder newBuilder(com.google.ortools.constraintsolver.CoolingScheduleStrategy prototype) {
356 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
360 return this == DEFAULT_INSTANCE
366 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
397 public static final class Builder
extends
398 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
401 public static final com.google.protobuf.Descriptors.Descriptor
403 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
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);
420 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
431 public com.google.protobuf.Descriptors.Descriptor
433 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
438 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDefaultInstance();
445 throw newUninitializedMessageException(result);
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);
462 super.mergeFrom(other);
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());
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();
488 boolean done =
false;
490 int tag = input.readTag();
496 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
503 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
504 throw e.unwrapIOException();
517 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.CoolingScheduleStrategy();
521 return DEFAULT_INSTANCE;
528 com.google.protobuf.CodedInputStream input,
529 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
530 throws com.google.protobuf.InvalidProtocolBufferException {
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());
542 return builder.buildPartial();
546 public static com.google.protobuf.Parser<CoolingScheduleStrategy>
parser() {
557 return DEFAULT_INSTANCE;