6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class PerturbationStrategy
extends
17 com.google.protobuf.GeneratedMessage implements
20private static final long serialVersionUID = 0L;
22 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
23 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
28 PerturbationStrategy.class.getName());
31 private PerturbationStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private PerturbationStrategy() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.PerturbationStrategy.class, com.google.ortools.constraintsolver.PerturbationStrategy.Builder.class);
54 implements com.google.protobuf.ProtocolMessageEnum {
75 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
76 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
81 Value.class.getName());
103 throw new java.lang.IllegalArgumentException(
104 "Can't get the number of an unknown enum value.");
114 @java.lang.Deprecated
125 case 0:
return UNSET;
127 default:
return null;
131 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
133 return internalValueMap;
135 private static final com.google.protobuf.Internal.EnumLiteMap<
136 Value> internalValueMap =
137 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
138 public Value findValueByNumber(
int number) {
143 public final com.google.protobuf.Descriptors.EnumValueDescriptor
146 throw new java.lang.IllegalStateException(
147 "Can't get the descriptor of an unrecognized enum value.");
151 public final com.google.protobuf.Descriptors.EnumDescriptor
155 public static com.google.protobuf.Descriptors.EnumDescriptor
157 return com.google.ortools.constraintsolver.PerturbationStrategy.getDescriptor().getEnumTypes().get(0);
160 private static final Value[] VALUES = values();
163 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
165 throw new java.lang.IllegalArgumentException(
166 "EnumValueDescriptor is not for this type.");
168 if (desc.getIndex() == -1) {
171 return VALUES[desc.getIndex()];
174 private final int value;
176 private Value(
int value) {
183 private byte memoizedIsInitialized = -1;
190 memoizedIsInitialized = 1;
195 public void writeTo(com.google.protobuf.CodedOutputStream output)
196 throws java.io.IOException {
197 getUnknownFields().writeTo(output);
202 int size = memoizedSize;
203 if (size != -1)
return size;
206 size += getUnknownFields().getSerializedSize();
212 public boolean equals(
final java.lang.Object obj) {
216 if (!(obj instanceof com.google.ortools.constraintsolver.PerturbationStrategy)) {
217 return super.equals(obj);
221 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
227 if (memoizedHashCode != 0) {
228 return memoizedHashCode;
232 hash = (29 * hash) + getUnknownFields().hashCode();
233 memoizedHashCode = hash;
238 java.nio.ByteBuffer data)
239 throws com.google.protobuf.InvalidProtocolBufferException {
240 return PARSER.parseFrom(data);
243 java.nio.ByteBuffer data,
244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
245 throws com.google.protobuf.InvalidProtocolBufferException {
246 return PARSER.parseFrom(data, extensionRegistry);
249 com.google.protobuf.ByteString data)
250 throws com.google.protobuf.InvalidProtocolBufferException {
251 return PARSER.parseFrom(data);
254 com.google.protobuf.ByteString data,
255 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
256 throws com.google.protobuf.InvalidProtocolBufferException {
257 return PARSER.parseFrom(data, extensionRegistry);
260 throws com.google.protobuf.InvalidProtocolBufferException {
261 return PARSER.parseFrom(data);
265 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
266 throws com.google.protobuf.InvalidProtocolBufferException {
267 return PARSER.parseFrom(data, extensionRegistry);
270 throws java.io.IOException {
271 return com.google.protobuf.GeneratedMessage
272 .parseWithIOException(PARSER, input);
275 java.io.InputStream input,
276 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
277 throws java.io.IOException {
278 return com.google.protobuf.GeneratedMessage
279 .parseWithIOException(PARSER, input, extensionRegistry);
283 throws java.io.IOException {
284 return com.google.protobuf.GeneratedMessage
285 .parseDelimitedWithIOException(PARSER, input);
289 java.io.InputStream input,
290 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
291 throws java.io.IOException {
292 return com.google.protobuf.GeneratedMessage
293 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
296 com.google.protobuf.CodedInputStream input)
297 throws java.io.IOException {
298 return com.google.protobuf.GeneratedMessage
299 .parseWithIOException(PARSER, input);
302 com.google.protobuf.CodedInputStream input,
303 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
304 throws java.io.IOException {
305 return com.google.protobuf.GeneratedMessage
306 .parseWithIOException(PARSER, input, extensionRegistry);
312 return DEFAULT_INSTANCE.toBuilder();
314 public static Builder newBuilder(com.google.ortools.constraintsolver.PerturbationStrategy prototype) {
315 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
319 return this == DEFAULT_INSTANCE
325 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
336 public static final class Builder
extends
337 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
340 public static final com.google.protobuf.Descriptors.Descriptor
342 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
346 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
348 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_fieldAccessorTable
349 .ensureFieldAccessorsInitialized(
350 com.google.ortools.constraintsolver.PerturbationStrategy.class, com.google.ortools.constraintsolver.PerturbationStrategy.Builder.class);
359 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
370 public com.google.protobuf.Descriptors.Descriptor
372 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_PerturbationStrategy_descriptor;
377 return com.google.ortools.constraintsolver.PerturbationStrategy.getDefaultInstance();
384 throw newUninitializedMessageException(result);
397 public Builder
mergeFrom(com.google.protobuf.Message other) {
398 if (other instanceof com.google.ortools.constraintsolver.PerturbationStrategy) {
399 return mergeFrom((com.google.ortools.constraintsolver.PerturbationStrategy)other);
401 super.mergeFrom(other);
406 public Builder
mergeFrom(com.google.ortools.constraintsolver.PerturbationStrategy other) {
407 if (other == com.google.ortools.constraintsolver.PerturbationStrategy.getDefaultInstance())
return this;
408 this.mergeUnknownFields(other.getUnknownFields());
420 com.google.protobuf.CodedInputStream input,
421 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
422 throws java.io.IOException {
423 if (extensionRegistry ==
null) {
424 throw new java.lang.NullPointerException();
427 boolean done =
false;
429 int tag = input.readTag();
435 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
442 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
443 throw e.unwrapIOException();
456 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.PerturbationStrategy();
460 return DEFAULT_INSTANCE;
467 com.google.protobuf.CodedInputStream input,
468 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
469 throws com.google.protobuf.InvalidProtocolBufferException {
472 builder.mergeFrom(input, extensionRegistry);
473 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
474 throw e.setUnfinishedMessage(builder.buildPartial());
475 }
catch (com.google.protobuf.UninitializedMessageException e) {
476 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
477 }
catch (java.io.IOException e) {
478 throw new com.google.protobuf.InvalidProtocolBufferException(e)
479 .setUnfinishedMessage(builder.buildPartial());
481 return builder.buildPartial();
485 public static com.google.protobuf.Parser<PerturbationStrategy>
parser() {
496 return DEFAULT_INSTANCE;