6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class SpatiallyCloseRoutesRuinStrategy
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 SpatiallyCloseRoutesRuinStrategy.class.getName());
31 private SpatiallyCloseRoutesRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private SpatiallyCloseRoutesRuinStrategy() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.class, com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.Builder.class);
50 private int bitField0_;
52 private int numRuinedRoutes_ = 0;
63 return ((bitField0_ & 0x00000001) != 0);
75 return numRuinedRoutes_;
78 private byte memoizedIsInitialized = -1;
85 memoizedIsInitialized = 1;
90 public void writeTo(com.google.protobuf.CodedOutputStream output)
91 throws java.io.IOException {
92 if (((bitField0_ & 0x00000001) != 0)) {
93 output.writeUInt32(3, numRuinedRoutes_);
95 getUnknownFields().writeTo(output);
100 int size = memoizedSize;
101 if (size != -1)
return size;
104 if (((bitField0_ & 0x00000001) != 0)) {
105 size += com.google.protobuf.CodedOutputStream
106 .computeUInt32Size(3, numRuinedRoutes_);
108 size += getUnknownFields().getSerializedSize();
114 public boolean equals(
final java.lang.Object obj) {
118 if (!(obj instanceof com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy)) {
119 return super.equals(obj);
128 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
134 if (memoizedHashCode != 0) {
135 return memoizedHashCode;
143 hash = (29 * hash) + getUnknownFields().hashCode();
144 memoizedHashCode = hash;
149 java.nio.ByteBuffer data)
150 throws com.google.protobuf.InvalidProtocolBufferException {
151 return PARSER.parseFrom(data);
154 java.nio.ByteBuffer data,
155 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
156 throws com.google.protobuf.InvalidProtocolBufferException {
157 return PARSER.parseFrom(data, extensionRegistry);
160 com.google.protobuf.ByteString data)
161 throws com.google.protobuf.InvalidProtocolBufferException {
162 return PARSER.parseFrom(data);
165 com.google.protobuf.ByteString data,
166 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
167 throws com.google.protobuf.InvalidProtocolBufferException {
168 return PARSER.parseFrom(data, extensionRegistry);
171 throws com.google.protobuf.InvalidProtocolBufferException {
172 return PARSER.parseFrom(data);
176 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
177 throws com.google.protobuf.InvalidProtocolBufferException {
178 return PARSER.parseFrom(data, extensionRegistry);
181 throws java.io.IOException {
182 return com.google.protobuf.GeneratedMessage
183 .parseWithIOException(PARSER, input);
186 java.io.InputStream input,
187 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
188 throws java.io.IOException {
189 return com.google.protobuf.GeneratedMessage
190 .parseWithIOException(PARSER, input, extensionRegistry);
194 throws java.io.IOException {
195 return com.google.protobuf.GeneratedMessage
196 .parseDelimitedWithIOException(PARSER, input);
200 java.io.InputStream input,
201 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
202 throws java.io.IOException {
203 return com.google.protobuf.GeneratedMessage
204 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
207 com.google.protobuf.CodedInputStream input)
208 throws java.io.IOException {
209 return com.google.protobuf.GeneratedMessage
210 .parseWithIOException(PARSER, input);
213 com.google.protobuf.CodedInputStream input,
214 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
215 throws java.io.IOException {
216 return com.google.protobuf.GeneratedMessage
217 .parseWithIOException(PARSER, input, extensionRegistry);
223 return DEFAULT_INSTANCE.toBuilder();
225 public static Builder newBuilder(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy prototype) {
226 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
230 return this == DEFAULT_INSTANCE
236 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
247 public static final class Builder
extends
248 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
251 public static final com.google.protobuf.Descriptors.Descriptor
253 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
257 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
259 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_fieldAccessorTable
260 .ensureFieldAccessorsInitialized(
261 com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.class, com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.Builder.class);
270 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
278 numRuinedRoutes_ = 0;
283 public com.google.protobuf.Descriptors.Descriptor
285 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
290 return com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.getDefaultInstance();
297 throw newUninitializedMessageException(result);
305 if (bitField0_ != 0) { buildPartial0(result); }
310 private void buildPartial0(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy result) {
311 int from_bitField0_ = bitField0_;
312 int to_bitField0_ = 0;
313 if (((from_bitField0_ & 0x00000001) != 0)) {
314 result.numRuinedRoutes_ = numRuinedRoutes_;
315 to_bitField0_ |= 0x00000001;
317 result.bitField0_ |= to_bitField0_;
321 public Builder
mergeFrom(com.google.protobuf.Message other) {
322 if (other instanceof com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy) {
323 return mergeFrom((com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy)other);
325 super.mergeFrom(other);
330 public Builder
mergeFrom(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy other) {
331 if (other == com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.getDefaultInstance())
return this;
332 if (other.hasNumRuinedRoutes()) {
335 this.mergeUnknownFields(other.getUnknownFields());
347 com.google.protobuf.CodedInputStream input,
348 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
349 throws java.io.IOException {
350 if (extensionRegistry ==
null) {
351 throw new java.lang.NullPointerException();
354 boolean done =
false;
356 int tag = input.readTag();
362 numRuinedRoutes_ = input.readUInt32();
363 bitField0_ |= 0x00000001;
367 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
374 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
375 throw e.unwrapIOException();
381 private int bitField0_;
383 private int numRuinedRoutes_ ;
394 return ((bitField0_ & 0x00000001) != 0);
406 return numRuinedRoutes_;
419 numRuinedRoutes_ = value;
420 bitField0_ |= 0x00000001;
433 bitField0_ = (bitField0_ & ~0x00000001);
434 numRuinedRoutes_ = 0;
445 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy();
449 return DEFAULT_INSTANCE;
456 com.google.protobuf.CodedInputStream input,
457 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
458 throws com.google.protobuf.InvalidProtocolBufferException {
461 builder.mergeFrom(input, extensionRegistry);
462 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
463 throw e.setUnfinishedMessage(builder.buildPartial());
464 }
catch (com.google.protobuf.UninitializedMessageException e) {
465 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
466 }
catch (java.io.IOException e) {
467 throw new com.google.protobuf.InvalidProtocolBufferException(e)
468 .setUnfinishedMessage(builder.buildPartial());
470 return builder.buildPartial();
474 public static com.google.protobuf.Parser<SpatiallyCloseRoutesRuinStrategy>
parser() {
485 return DEFAULT_INSTANCE;