6package com.google.ortools.constraintsolver;
20public final class RandomWalkRuinStrategy
extends
21 com.google.protobuf.GeneratedMessage implements
24private static final long serialVersionUID = 0L;
26 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
27 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
32 RandomWalkRuinStrategy.class.getName());
35 private RandomWalkRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
38 private RandomWalkRuinStrategy() {
41 public static final com.google.protobuf.Descriptors.Descriptor
43 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
47 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
49 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_fieldAccessorTable
50 .ensureFieldAccessorsInitialized(
51 com.google.ortools.constraintsolver.RandomWalkRuinStrategy.class, com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.class);
54 private int bitField0_;
56 private int numRemovedVisits_ = 0;
71 return ((bitField0_ & 0x00000001) != 0);
87 return numRemovedVisits_;
90 private byte memoizedIsInitialized = -1;
97 memoizedIsInitialized = 1;
102 public void writeTo(com.google.protobuf.CodedOutputStream output)
103 throws java.io.IOException {
104 if (((bitField0_ & 0x00000001) != 0)) {
105 output.writeUInt32(7, numRemovedVisits_);
107 getUnknownFields().writeTo(output);
112 int size = memoizedSize;
113 if (size != -1)
return size;
116 if (((bitField0_ & 0x00000001) != 0)) {
117 size += com.google.protobuf.CodedOutputStream
118 .computeUInt32Size(7, numRemovedVisits_);
120 size += getUnknownFields().getSerializedSize();
126 public boolean equals(
final java.lang.Object obj) {
130 if (!(obj instanceof com.google.ortools.constraintsolver.RandomWalkRuinStrategy)) {
131 return super.equals(obj);
140 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
146 if (memoizedHashCode != 0) {
147 return memoizedHashCode;
155 hash = (29 * hash) + getUnknownFields().hashCode();
156 memoizedHashCode = hash;
161 java.nio.ByteBuffer data)
162 throws com.google.protobuf.InvalidProtocolBufferException {
163 return PARSER.parseFrom(data);
166 java.nio.ByteBuffer data,
167 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
168 throws com.google.protobuf.InvalidProtocolBufferException {
169 return PARSER.parseFrom(data, extensionRegistry);
172 com.google.protobuf.ByteString data)
173 throws com.google.protobuf.InvalidProtocolBufferException {
174 return PARSER.parseFrom(data);
177 com.google.protobuf.ByteString data,
178 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
179 throws com.google.protobuf.InvalidProtocolBufferException {
180 return PARSER.parseFrom(data, extensionRegistry);
183 throws com.google.protobuf.InvalidProtocolBufferException {
184 return PARSER.parseFrom(data);
188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189 throws com.google.protobuf.InvalidProtocolBufferException {
190 return PARSER.parseFrom(data, extensionRegistry);
193 throws java.io.IOException {
194 return com.google.protobuf.GeneratedMessage
195 .parseWithIOException(PARSER, input);
198 java.io.InputStream input,
199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
200 throws java.io.IOException {
201 return com.google.protobuf.GeneratedMessage
202 .parseWithIOException(PARSER, input, extensionRegistry);
206 throws java.io.IOException {
207 return com.google.protobuf.GeneratedMessage
208 .parseDelimitedWithIOException(PARSER, input);
212 java.io.InputStream input,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessage
216 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
219 com.google.protobuf.CodedInputStream input)
220 throws java.io.IOException {
221 return com.google.protobuf.GeneratedMessage
222 .parseWithIOException(PARSER, input);
225 com.google.protobuf.CodedInputStream input,
226 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
227 throws java.io.IOException {
228 return com.google.protobuf.GeneratedMessage
229 .parseWithIOException(PARSER, input, extensionRegistry);
235 return DEFAULT_INSTANCE.toBuilder();
237 public static Builder newBuilder(com.google.ortools.constraintsolver.RandomWalkRuinStrategy prototype) {
238 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
242 return this == DEFAULT_INSTANCE
248 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
264 public static final class Builder
extends
265 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
268 public static final com.google.protobuf.Descriptors.Descriptor
270 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
274 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
276 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_fieldAccessorTable
277 .ensureFieldAccessorsInitialized(
278 com.google.ortools.constraintsolver.RandomWalkRuinStrategy.class, com.google.ortools.constraintsolver.RandomWalkRuinStrategy.Builder.class);
287 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
295 numRemovedVisits_ = 0;
300 public com.google.protobuf.Descriptors.Descriptor
302 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_RandomWalkRuinStrategy_descriptor;
307 return com.google.ortools.constraintsolver.RandomWalkRuinStrategy.getDefaultInstance();
314 throw newUninitializedMessageException(result);
322 if (bitField0_ != 0) { buildPartial0(result); }
327 private void buildPartial0(com.google.ortools.constraintsolver.RandomWalkRuinStrategy result) {
328 int from_bitField0_ = bitField0_;
329 int to_bitField0_ = 0;
330 if (((from_bitField0_ & 0x00000001) != 0)) {
331 result.numRemovedVisits_ = numRemovedVisits_;
332 to_bitField0_ |= 0x00000001;
334 result.bitField0_ |= to_bitField0_;
338 public Builder
mergeFrom(com.google.protobuf.Message other) {
339 if (other instanceof com.google.ortools.constraintsolver.RandomWalkRuinStrategy) {
340 return mergeFrom((com.google.ortools.constraintsolver.RandomWalkRuinStrategy)other);
342 super.mergeFrom(other);
347 public Builder
mergeFrom(com.google.ortools.constraintsolver.RandomWalkRuinStrategy other) {
348 if (other == com.google.ortools.constraintsolver.RandomWalkRuinStrategy.getDefaultInstance())
return this;
349 if (other.hasNumRemovedVisits()) {
352 this.mergeUnknownFields(other.getUnknownFields());
364 com.google.protobuf.CodedInputStream input,
365 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
366 throws java.io.IOException {
367 if (extensionRegistry ==
null) {
368 throw new java.lang.NullPointerException();
371 boolean done =
false;
373 int tag = input.readTag();
379 numRemovedVisits_ = input.readUInt32();
380 bitField0_ |= 0x00000001;
384 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
391 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
392 throw e.unwrapIOException();
398 private int bitField0_;
400 private int numRemovedVisits_ ;
415 return ((bitField0_ & 0x00000001) != 0);
431 return numRemovedVisits_;
448 numRemovedVisits_ = value;
449 bitField0_ |= 0x00000001;
466 bitField0_ = (bitField0_ & ~0x00000001);
467 numRemovedVisits_ = 0;
478 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.RandomWalkRuinStrategy();
482 return DEFAULT_INSTANCE;
489 com.google.protobuf.CodedInputStream input,
490 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
491 throws com.google.protobuf.InvalidProtocolBufferException {
494 builder.mergeFrom(input, extensionRegistry);
495 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
496 throw e.setUnfinishedMessage(builder.buildPartial());
497 }
catch (com.google.protobuf.UninitializedMessageException e) {
498 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
499 }
catch (java.io.IOException e) {
500 throw new com.google.protobuf.InvalidProtocolBufferException(e)
501 .setUnfinishedMessage(builder.buildPartial());
503 return builder.buildPartial();
507 public static com.google.protobuf.Parser<RandomWalkRuinStrategy>
parser() {
518 return DEFAULT_INSTANCE;