6package com.google.ortools.constraintsolver;
15public final class PerturbationStrategy
extends
16 com.google.protobuf.GeneratedMessage implements
19private static final long serialVersionUID = 0L;
21 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
22 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
27 PerturbationStrategy.class.getName());
30 private PerturbationStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private PerturbationStrategy() {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.PerturbationStrategy.class, com.google.ortools.constraintsolver.PerturbationStrategy.Builder.class);
53 implements com.google.protobuf.ProtocolMessageEnum {
74 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
75 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
80 Value.class.getName());
102 throw new java.lang.IllegalArgumentException(
103 "Can't get the number of an unknown enum value.");
113 @java.lang.Deprecated
124 case 0:
return UNSET;
126 default:
return null;
130 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
132 return internalValueMap;
134 private static final com.google.protobuf.Internal.EnumLiteMap<
135 Value> internalValueMap =
136 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
137 public Value findValueByNumber(
int number) {
142 public final com.google.protobuf.Descriptors.EnumValueDescriptor
145 throw new java.lang.IllegalStateException(
146 "Can't get the descriptor of an unrecognized enum value.");
150 public final com.google.protobuf.Descriptors.EnumDescriptor
154 public static final com.google.protobuf.Descriptors.EnumDescriptor
156 return com.google.ortools.constraintsolver.PerturbationStrategy.getDescriptor().getEnumTypes().get(0);
159 private static final Value[] VALUES = values();
162 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
164 throw new java.lang.IllegalArgumentException(
165 "EnumValueDescriptor is not for this type.");
167 if (desc.getIndex() == -1) {
170 return VALUES[desc.getIndex()];
173 private final int value;
175 private Value(
int value) {
182 private byte memoizedIsInitialized = -1;
189 memoizedIsInitialized = 1;
194 public void writeTo(com.google.protobuf.CodedOutputStream output)
195 throws java.io.IOException {
196 getUnknownFields().writeTo(output);
201 int size = memoizedSize;
202 if (size != -1)
return size;
205 size += getUnknownFields().getSerializedSize();
211 public boolean equals(
final java.lang.Object obj) {
215 if (!(obj instanceof com.google.ortools.constraintsolver.PerturbationStrategy)) {
216 return super.equals(obj);
220 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
226 if (memoizedHashCode != 0) {
227 return memoizedHashCode;
231 hash = (29 * hash) + getUnknownFields().hashCode();
232 memoizedHashCode = hash;
237 java.nio.ByteBuffer data)
238 throws com.google.protobuf.InvalidProtocolBufferException {
239 return PARSER.parseFrom(data);
242 java.nio.ByteBuffer data,
243 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
244 throws com.google.protobuf.InvalidProtocolBufferException {
245 return PARSER.parseFrom(data, extensionRegistry);
248 com.google.protobuf.ByteString data)
249 throws com.google.protobuf.InvalidProtocolBufferException {
250 return PARSER.parseFrom(data);
253 com.google.protobuf.ByteString data,
254 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
255 throws com.google.protobuf.InvalidProtocolBufferException {
256 return PARSER.parseFrom(data, extensionRegistry);
259 throws com.google.protobuf.InvalidProtocolBufferException {
260 return PARSER.parseFrom(data);
264 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
265 throws com.google.protobuf.InvalidProtocolBufferException {
266 return PARSER.parseFrom(data, extensionRegistry);
269 throws java.io.IOException {
270 return com.google.protobuf.GeneratedMessage
271 .parseWithIOException(PARSER, input);
274 java.io.InputStream input,
275 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
276 throws java.io.IOException {
277 return com.google.protobuf.GeneratedMessage
278 .parseWithIOException(PARSER, input, extensionRegistry);
282 throws java.io.IOException {
283 return com.google.protobuf.GeneratedMessage
284 .parseDelimitedWithIOException(PARSER, input);
288 java.io.InputStream input,
289 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
290 throws java.io.IOException {
291 return com.google.protobuf.GeneratedMessage
292 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
295 com.google.protobuf.CodedInputStream input)
296 throws java.io.IOException {
297 return com.google.protobuf.GeneratedMessage
298 .parseWithIOException(PARSER, input);
301 com.google.protobuf.CodedInputStream input,
302 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
303 throws java.io.IOException {
304 return com.google.protobuf.GeneratedMessage
305 .parseWithIOException(PARSER, input, extensionRegistry);
311 return DEFAULT_INSTANCE.toBuilder();
313 public static Builder newBuilder(com.google.ortools.constraintsolver.PerturbationStrategy prototype) {
314 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
318 return this == DEFAULT_INSTANCE
324 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
335 public static final class Builder
extends
336 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
339 public static final com.google.protobuf.Descriptors.Descriptor
341 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
345 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
347 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_fieldAccessorTable
348 .ensureFieldAccessorsInitialized(
349 com.google.ortools.constraintsolver.PerturbationStrategy.class, com.google.ortools.constraintsolver.PerturbationStrategy.Builder.class);
358 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
369 public com.google.protobuf.Descriptors.Descriptor
371 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
376 return com.google.ortools.constraintsolver.PerturbationStrategy.getDefaultInstance();
383 throw newUninitializedMessageException(result);
396 public Builder
mergeFrom(com.google.protobuf.Message other) {
397 if (other instanceof com.google.ortools.constraintsolver.PerturbationStrategy) {
398 return mergeFrom((com.google.ortools.constraintsolver.PerturbationStrategy)other);
400 super.mergeFrom(other);
405 public Builder
mergeFrom(com.google.ortools.constraintsolver.PerturbationStrategy other) {
406 if (other == com.google.ortools.constraintsolver.PerturbationStrategy.getDefaultInstance())
return this;
407 this.mergeUnknownFields(other.getUnknownFields());
419 com.google.protobuf.CodedInputStream input,
420 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
421 throws java.io.IOException {
422 if (extensionRegistry ==
null) {
423 throw new java.lang.NullPointerException();
426 boolean done =
false;
428 int tag = input.readTag();
434 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
441 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
442 throw e.unwrapIOException();
455 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.PerturbationStrategy();
459 return DEFAULT_INSTANCE;
466 com.google.protobuf.CodedInputStream input,
467 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
468 throws com.google.protobuf.InvalidProtocolBufferException {
471 builder.mergeFrom(input, extensionRegistry);
472 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
473 throw e.setUnfinishedMessage(builder.buildPartial());
474 }
catch (com.google.protobuf.UninitializedMessageException e) {
475 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
476 }
catch (java.io.IOException e) {
477 throw new com.google.protobuf.InvalidProtocolBufferException(e)
478 .setUnfinishedMessage(builder.buildPartial());
480 return builder.buildPartial();
484 public static com.google.protobuf.Parser<PerturbationStrategy>
parser() {
495 return DEFAULT_INSTANCE;