6package com.google.ortools.constraintsolver;
15public final class SpatiallyCloseRoutesRuinStrategy
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 SpatiallyCloseRoutesRuinStrategy.class.getName());
30 private SpatiallyCloseRoutesRuinStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 private SpatiallyCloseRoutesRuinStrategy() {
36 public static final com.google.protobuf.Descriptors.Descriptor
38 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
42 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
44 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_fieldAccessorTable
45 .ensureFieldAccessorsInitialized(
46 com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.class, com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.Builder.class);
49 private int bitField0_;
51 private int numRuinedRoutes_ = 0;
62 return ((bitField0_ & 0x00000001) != 0);
74 return numRuinedRoutes_;
77 private byte memoizedIsInitialized = -1;
84 memoizedIsInitialized = 1;
89 public void writeTo(com.google.protobuf.CodedOutputStream output)
90 throws java.io.IOException {
91 if (((bitField0_ & 0x00000001) != 0)) {
92 output.writeUInt32(3, numRuinedRoutes_);
94 getUnknownFields().writeTo(output);
99 int size = memoizedSize;
100 if (size != -1)
return size;
103 if (((bitField0_ & 0x00000001) != 0)) {
104 size += com.google.protobuf.CodedOutputStream
105 .computeUInt32Size(3, numRuinedRoutes_);
107 size += getUnknownFields().getSerializedSize();
113 public boolean equals(
final java.lang.Object obj) {
117 if (!(obj instanceof com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy)) {
118 return super.equals(obj);
127 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
133 if (memoizedHashCode != 0) {
134 return memoizedHashCode;
142 hash = (29 * hash) + getUnknownFields().hashCode();
143 memoizedHashCode = hash;
148 java.nio.ByteBuffer data)
149 throws com.google.protobuf.InvalidProtocolBufferException {
150 return PARSER.parseFrom(data);
153 java.nio.ByteBuffer data,
154 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
155 throws com.google.protobuf.InvalidProtocolBufferException {
156 return PARSER.parseFrom(data, extensionRegistry);
159 com.google.protobuf.ByteString data)
160 throws com.google.protobuf.InvalidProtocolBufferException {
161 return PARSER.parseFrom(data);
164 com.google.protobuf.ByteString data,
165 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
166 throws com.google.protobuf.InvalidProtocolBufferException {
167 return PARSER.parseFrom(data, extensionRegistry);
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data);
175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
176 throws com.google.protobuf.InvalidProtocolBufferException {
177 return PARSER.parseFrom(data, extensionRegistry);
180 throws java.io.IOException {
181 return com.google.protobuf.GeneratedMessage
182 .parseWithIOException(PARSER, input);
185 java.io.InputStream input,
186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
187 throws java.io.IOException {
188 return com.google.protobuf.GeneratedMessage
189 .parseWithIOException(PARSER, input, extensionRegistry);
193 throws java.io.IOException {
194 return com.google.protobuf.GeneratedMessage
195 .parseDelimitedWithIOException(PARSER, input);
199 java.io.InputStream input,
200 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
201 throws java.io.IOException {
202 return com.google.protobuf.GeneratedMessage
203 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
206 com.google.protobuf.CodedInputStream input)
207 throws java.io.IOException {
208 return com.google.protobuf.GeneratedMessage
209 .parseWithIOException(PARSER, input);
212 com.google.protobuf.CodedInputStream input,
213 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessage
216 .parseWithIOException(PARSER, input, extensionRegistry);
222 return DEFAULT_INSTANCE.toBuilder();
224 public static Builder newBuilder(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy prototype) {
225 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
229 return this == DEFAULT_INSTANCE
235 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
246 public static final class Builder
extends
247 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
250 public static final com.google.protobuf.Descriptors.Descriptor
252 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
256 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
258 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_fieldAccessorTable
259 .ensureFieldAccessorsInitialized(
260 com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.class, com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.Builder.class);
269 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
277 numRuinedRoutes_ = 0;
282 public com.google.protobuf.Descriptors.Descriptor
284 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_SpatiallyCloseRoutesRuinStrategy_descriptor;
289 return com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.getDefaultInstance();
296 throw newUninitializedMessageException(result);
304 if (bitField0_ != 0) { buildPartial0(result); }
309 private void buildPartial0(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy result) {
310 int from_bitField0_ = bitField0_;
311 int to_bitField0_ = 0;
312 if (((from_bitField0_ & 0x00000001) != 0)) {
313 result.numRuinedRoutes_ = numRuinedRoutes_;
314 to_bitField0_ |= 0x00000001;
316 result.bitField0_ |= to_bitField0_;
320 public Builder
mergeFrom(com.google.protobuf.Message other) {
321 if (other instanceof com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy) {
322 return mergeFrom((com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy)other);
324 super.mergeFrom(other);
329 public Builder
mergeFrom(com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy other) {
330 if (other == com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy.getDefaultInstance())
return this;
331 if (other.hasNumRuinedRoutes()) {
334 this.mergeUnknownFields(other.getUnknownFields());
346 com.google.protobuf.CodedInputStream input,
347 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
348 throws java.io.IOException {
349 if (extensionRegistry ==
null) {
350 throw new java.lang.NullPointerException();
353 boolean done =
false;
355 int tag = input.readTag();
361 numRuinedRoutes_ = input.readUInt32();
362 bitField0_ |= 0x00000001;
366 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
373 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
374 throw e.unwrapIOException();
380 private int bitField0_;
382 private int numRuinedRoutes_ ;
393 return ((bitField0_ & 0x00000001) != 0);
405 return numRuinedRoutes_;
418 numRuinedRoutes_ = value;
419 bitField0_ |= 0x00000001;
432 bitField0_ = (bitField0_ & ~0x00000001);
433 numRuinedRoutes_ = 0;
444 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.SpatiallyCloseRoutesRuinStrategy();
448 return DEFAULT_INSTANCE;
455 com.google.protobuf.CodedInputStream input,
456 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
457 throws com.google.protobuf.InvalidProtocolBufferException {
460 builder.mergeFrom(input, extensionRegistry);
461 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
462 throw e.setUnfinishedMessage(builder.buildPartial());
463 }
catch (com.google.protobuf.UninitializedMessageException e) {
464 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
465 }
catch (java.io.IOException e) {
466 throw new com.google.protobuf.InvalidProtocolBufferException(e)
467 .setUnfinishedMessage(builder.buildPartial());
469 return builder.buildPartial();
473 public static com.google.protobuf.Parser<SpatiallyCloseRoutesRuinStrategy>
parser() {
484 return DEFAULT_INSTANCE;