6package com.google.ortools.constraintsolver;
32@com.google.protobuf.Generated
33public final class AbsencesBasedAcceptanceStrategy
extends
34 com.google.protobuf.GeneratedMessage implements
37private static final long serialVersionUID = 0L;
39 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
40 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
45 "AbsencesBasedAcceptanceStrategy");
48 private AbsencesBasedAcceptanceStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
51 private AbsencesBasedAcceptanceStrategy() {
54 public static final com.google.protobuf.Descriptors.Descriptor
56 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AbsencesBasedAcceptanceStrategy_descriptor;
60 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
62 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AbsencesBasedAcceptanceStrategy_fieldAccessorTable
63 .ensureFieldAccessorsInitialized(
64 com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.class, com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.Builder.class);
67 private int bitField0_;
69 private boolean removeRouteWithLowestAbsences_ =
false;
81 return ((bitField0_ & 0x00000001) != 0);
94 return removeRouteWithLowestAbsences_;
97 private byte memoizedIsInitialized = -1;
104 memoizedIsInitialized = 1;
109 public void writeTo(com.google.protobuf.CodedOutputStream output)
110 throws java.io.IOException {
111 if (((bitField0_ & 0x00000001) != 0)) {
112 output.writeBool(1, removeRouteWithLowestAbsences_);
114 getUnknownFields().writeTo(output);
119 int size = memoizedSize;
120 if (size != -1)
return size;
123 if (((bitField0_ & 0x00000001) != 0)) {
124 size += com.google.protobuf.CodedOutputStream
125 .computeBoolSize(1, removeRouteWithLowestAbsences_);
127 size += getUnknownFields().getSerializedSize();
133 public boolean equals(
final java.lang.Object obj) {
137 if (!(obj instanceof com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy)) {
138 return super.equals(obj);
147 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
153 if (memoizedHashCode != 0) {
154 return memoizedHashCode;
160 hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
163 hash = (29 * hash) + getUnknownFields().hashCode();
164 memoizedHashCode = hash;
169 java.nio.ByteBuffer data)
170 throws com.google.protobuf.InvalidProtocolBufferException {
171 return PARSER.parseFrom(data);
174 java.nio.ByteBuffer data,
175 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
176 throws com.google.protobuf.InvalidProtocolBufferException {
177 return PARSER.parseFrom(data, extensionRegistry);
180 com.google.protobuf.ByteString data)
181 throws com.google.protobuf.InvalidProtocolBufferException {
182 return PARSER.parseFrom(data);
185 com.google.protobuf.ByteString data,
186 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
187 throws com.google.protobuf.InvalidProtocolBufferException {
188 return PARSER.parseFrom(data, extensionRegistry);
191 throws com.google.protobuf.InvalidProtocolBufferException {
192 return PARSER.parseFrom(data);
196 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
197 throws com.google.protobuf.InvalidProtocolBufferException {
198 return PARSER.parseFrom(data, extensionRegistry);
201 throws java.io.IOException {
202 return com.google.protobuf.GeneratedMessage
203 .parseWithIOException(PARSER, input);
206 java.io.InputStream input,
207 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
208 throws java.io.IOException {
209 return com.google.protobuf.GeneratedMessage
210 .parseWithIOException(PARSER, input, extensionRegistry);
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessage
216 .parseDelimitedWithIOException(PARSER, input);
220 java.io.InputStream input,
221 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
222 throws java.io.IOException {
223 return com.google.protobuf.GeneratedMessage
224 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
227 com.google.protobuf.CodedInputStream input)
228 throws java.io.IOException {
229 return com.google.protobuf.GeneratedMessage
230 .parseWithIOException(PARSER, input);
233 com.google.protobuf.CodedInputStream input,
234 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
235 throws java.io.IOException {
236 return com.google.protobuf.GeneratedMessage
237 .parseWithIOException(PARSER, input, extensionRegistry);
243 return DEFAULT_INSTANCE.toBuilder();
245 public static Builder newBuilder(com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy prototype) {
246 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
250 return this == DEFAULT_INSTANCE
256 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
284 public static final class Builder
extends
285 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
288 public static final com.google.protobuf.Descriptors.Descriptor
290 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AbsencesBasedAcceptanceStrategy_descriptor;
294 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
296 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AbsencesBasedAcceptanceStrategy_fieldAccessorTable
297 .ensureFieldAccessorsInitialized(
298 com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.class, com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.Builder.class);
307 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
315 removeRouteWithLowestAbsences_ =
false;
320 public com.google.protobuf.Descriptors.Descriptor
322 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AbsencesBasedAcceptanceStrategy_descriptor;
327 return com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.getDefaultInstance();
334 throw newUninitializedMessageException(result);
342 if (bitField0_ != 0) { buildPartial0(result); }
347 private void buildPartial0(com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy result) {
348 int from_bitField0_ = bitField0_;
349 int to_bitField0_ = 0;
350 if (((from_bitField0_ & 0x00000001) != 0)) {
351 result.removeRouteWithLowestAbsences_ = removeRouteWithLowestAbsences_;
352 to_bitField0_ |= 0x00000001;
354 result.bitField0_ |= to_bitField0_;
358 public Builder
mergeFrom(com.google.protobuf.Message other) {
359 if (other instanceof com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy) {
360 return mergeFrom((com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy)other);
362 super.mergeFrom(other);
367 public Builder
mergeFrom(com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy other) {
368 if (other == com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy.getDefaultInstance())
return this;
369 if (other.hasRemoveRouteWithLowestAbsences()) {
372 this.mergeUnknownFields(other.getUnknownFields());
384 com.google.protobuf.CodedInputStream input,
385 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
386 throws java.io.IOException {
387 if (extensionRegistry ==
null) {
388 throw new java.lang.NullPointerException();
391 boolean done =
false;
393 int tag = input.readTag();
399 removeRouteWithLowestAbsences_ = input.readBool();
400 bitField0_ |= 0x00000001;
404 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
411 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
412 throw e.unwrapIOException();
418 private int bitField0_;
420 private boolean removeRouteWithLowestAbsences_ ;
432 return ((bitField0_ & 0x00000001) != 0);
445 return removeRouteWithLowestAbsences_;
459 removeRouteWithLowestAbsences_ = value;
460 bitField0_ |= 0x00000001;
474 bitField0_ = (bitField0_ & ~0x00000001);
475 removeRouteWithLowestAbsences_ =
false;
486 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.AbsencesBasedAcceptanceStrategy();
490 return DEFAULT_INSTANCE;
497 com.google.protobuf.CodedInputStream input,
498 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
499 throws com.google.protobuf.InvalidProtocolBufferException {
502 builder.mergeFrom(input, extensionRegistry);
503 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
504 throw e.setUnfinishedMessage(builder.buildPartial());
505 }
catch (com.google.protobuf.UninitializedMessageException e) {
506 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
507 }
catch (java.io.IOException e) {
508 throw new com.google.protobuf.InvalidProtocolBufferException(e)
509 .setUnfinishedMessage(builder.buildPartial());
511 return builder.buildPartial();
515 public static com.google.protobuf.Parser<AbsencesBasedAcceptanceStrategy>
parser() {
526 return DEFAULT_INSTANCE;