6package com.google.ortools.constraintsolver;
35public final class CoolingScheduleStrategy
extends
36 com.google.protobuf.GeneratedMessage implements
39private static final long serialVersionUID = 0L;
41 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
42 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
47 CoolingScheduleStrategy.class.getName());
50 private CoolingScheduleStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
53 private CoolingScheduleStrategy() {
56 public static final com.google.protobuf.Descriptors.Descriptor
58 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
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);
73 implements com.google.protobuf.ProtocolMessageEnum {
104 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
105 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
110 Value.class.getName());
142 throw new java.lang.IllegalArgumentException(
143 "Can't get the number of an unknown enum value.");
153 @java.lang.Deprecated
164 case 0:
return UNSET;
167 default:
return null;
171 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
173 return internalValueMap;
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) {
183 public final com.google.protobuf.Descriptors.EnumValueDescriptor
186 throw new java.lang.IllegalStateException(
187 "Can't get the descriptor of an unrecognized enum value.");
191 public final com.google.protobuf.Descriptors.EnumDescriptor
195 public static final com.google.protobuf.Descriptors.EnumDescriptor
197 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDescriptor().getEnumTypes().get(0);
200 private static final Value[] VALUES = values();
203 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
205 throw new java.lang.IllegalArgumentException(
206 "EnumValueDescriptor is not for this type.");
208 if (desc.getIndex() == -1) {
211 return VALUES[desc.getIndex()];
214 private final int value;
216 private Value(
int value) {
223 private byte memoizedIsInitialized = -1;
230 memoizedIsInitialized = 1;
235 public void writeTo(com.google.protobuf.CodedOutputStream output)
236 throws java.io.IOException {
237 getUnknownFields().writeTo(output);
242 int size = memoizedSize;
243 if (size != -1)
return size;
246 size += getUnknownFields().getSerializedSize();
252 public boolean equals(
final java.lang.Object obj) {
256 if (!(obj instanceof com.google.ortools.constraintsolver.CoolingScheduleStrategy)) {
257 return super.equals(obj);
261 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
267 if (memoizedHashCode != 0) {
268 return memoizedHashCode;
272 hash = (29 * hash) + getUnknownFields().hashCode();
273 memoizedHashCode = hash;
278 java.nio.ByteBuffer data)
279 throws com.google.protobuf.InvalidProtocolBufferException {
280 return PARSER.parseFrom(data);
283 java.nio.ByteBuffer data,
284 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
285 throws com.google.protobuf.InvalidProtocolBufferException {
286 return PARSER.parseFrom(data, extensionRegistry);
289 com.google.protobuf.ByteString data)
290 throws com.google.protobuf.InvalidProtocolBufferException {
291 return PARSER.parseFrom(data);
294 com.google.protobuf.ByteString data,
295 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
296 throws com.google.protobuf.InvalidProtocolBufferException {
297 return PARSER.parseFrom(data, extensionRegistry);
300 throws com.google.protobuf.InvalidProtocolBufferException {
301 return PARSER.parseFrom(data);
305 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
306 throws com.google.protobuf.InvalidProtocolBufferException {
307 return PARSER.parseFrom(data, extensionRegistry);
310 throws java.io.IOException {
311 return com.google.protobuf.GeneratedMessage
312 .parseWithIOException(PARSER, input);
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);
323 throws java.io.IOException {
324 return com.google.protobuf.GeneratedMessage
325 .parseDelimitedWithIOException(PARSER, input);
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);
336 com.google.protobuf.CodedInputStream input)
337 throws java.io.IOException {
338 return com.google.protobuf.GeneratedMessage
339 .parseWithIOException(PARSER, input);
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);
352 return DEFAULT_INSTANCE.toBuilder();
354 public static Builder newBuilder(com.google.ortools.constraintsolver.CoolingScheduleStrategy prototype) {
355 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
359 return this == DEFAULT_INSTANCE
365 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
396 public static final class Builder
extends
397 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
400 public static final com.google.protobuf.Descriptors.Descriptor
402 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
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);
419 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
430 public com.google.protobuf.Descriptors.Descriptor
432 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_CoolingScheduleStrategy_descriptor;
437 return com.google.ortools.constraintsolver.CoolingScheduleStrategy.getDefaultInstance();
444 throw newUninitializedMessageException(result);
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);
461 super.mergeFrom(other);
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());
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();
487 boolean done =
false;
489 int tag = input.readTag();
495 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
502 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
503 throw e.unwrapIOException();
516 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.CoolingScheduleStrategy();
520 return DEFAULT_INSTANCE;
527 com.google.protobuf.CodedInputStream input,
528 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
529 throws com.google.protobuf.InvalidProtocolBufferException {
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());
541 return builder.buildPartial();
545 public static com.google.protobuf.Parser<CoolingScheduleStrategy>
parser() {
556 return DEFAULT_INSTANCE;