6package com.google.ortools.constraintsolver;
17public final class AcceptanceStrategy
extends
18 com.google.protobuf.GeneratedMessage implements
21private static final long serialVersionUID = 0L;
23 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
24 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 AcceptanceStrategy.class.getName());
32 private AcceptanceStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 private AcceptanceStrategy() {
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.constraintsolver.AcceptanceStrategy.class, com.google.ortools.constraintsolver.AcceptanceStrategy.Builder.class);
55 implements com.google.protobuf.ProtocolMessageEnum {
86 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
87 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
92 Value.class.getName());
124 throw new java.lang.IllegalArgumentException(
125 "Can't get the number of an unknown enum value.");
135 @java.lang.Deprecated
146 case 0:
return UNSET;
149 default:
return null;
153 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
155 return internalValueMap;
157 private static final com.google.protobuf.Internal.EnumLiteMap<
158 Value> internalValueMap =
159 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
160 public Value findValueByNumber(
int number) {
165 public final com.google.protobuf.Descriptors.EnumValueDescriptor
168 throw new java.lang.IllegalStateException(
169 "Can't get the descriptor of an unrecognized enum value.");
173 public final com.google.protobuf.Descriptors.EnumDescriptor
177 public static final com.google.protobuf.Descriptors.EnumDescriptor
179 return com.google.ortools.constraintsolver.AcceptanceStrategy.getDescriptor().getEnumTypes().get(0);
182 private static final Value[] VALUES = values();
185 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
187 throw new java.lang.IllegalArgumentException(
188 "EnumValueDescriptor is not for this type.");
190 if (desc.getIndex() == -1) {
193 return VALUES[desc.getIndex()];
196 private final int value;
198 private Value(
int value) {
205 private byte memoizedIsInitialized = -1;
212 memoizedIsInitialized = 1;
217 public void writeTo(com.google.protobuf.CodedOutputStream output)
218 throws java.io.IOException {
219 getUnknownFields().writeTo(output);
224 int size = memoizedSize;
225 if (size != -1)
return size;
228 size += getUnknownFields().getSerializedSize();
234 public boolean equals(
final java.lang.Object obj) {
238 if (!(obj instanceof com.google.ortools.constraintsolver.AcceptanceStrategy)) {
239 return super.equals(obj);
243 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
249 if (memoizedHashCode != 0) {
250 return memoizedHashCode;
254 hash = (29 * hash) + getUnknownFields().hashCode();
255 memoizedHashCode = hash;
260 java.nio.ByteBuffer data)
261 throws com.google.protobuf.InvalidProtocolBufferException {
262 return PARSER.parseFrom(data);
265 java.nio.ByteBuffer data,
266 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
267 throws com.google.protobuf.InvalidProtocolBufferException {
268 return PARSER.parseFrom(data, extensionRegistry);
271 com.google.protobuf.ByteString data)
272 throws com.google.protobuf.InvalidProtocolBufferException {
273 return PARSER.parseFrom(data);
276 com.google.protobuf.ByteString data,
277 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
278 throws com.google.protobuf.InvalidProtocolBufferException {
279 return PARSER.parseFrom(data, extensionRegistry);
282 throws com.google.protobuf.InvalidProtocolBufferException {
283 return PARSER.parseFrom(data);
287 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
288 throws com.google.protobuf.InvalidProtocolBufferException {
289 return PARSER.parseFrom(data, extensionRegistry);
292 throws java.io.IOException {
293 return com.google.protobuf.GeneratedMessage
294 .parseWithIOException(PARSER, input);
297 java.io.InputStream input,
298 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
299 throws java.io.IOException {
300 return com.google.protobuf.GeneratedMessage
301 .parseWithIOException(PARSER, input, extensionRegistry);
305 throws java.io.IOException {
306 return com.google.protobuf.GeneratedMessage
307 .parseDelimitedWithIOException(PARSER, input);
311 java.io.InputStream input,
312 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
313 throws java.io.IOException {
314 return com.google.protobuf.GeneratedMessage
315 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
318 com.google.protobuf.CodedInputStream input)
319 throws java.io.IOException {
320 return com.google.protobuf.GeneratedMessage
321 .parseWithIOException(PARSER, input);
324 com.google.protobuf.CodedInputStream input,
325 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
326 throws java.io.IOException {
327 return com.google.protobuf.GeneratedMessage
328 .parseWithIOException(PARSER, input, extensionRegistry);
334 return DEFAULT_INSTANCE.toBuilder();
336 public static Builder newBuilder(com.google.ortools.constraintsolver.AcceptanceStrategy prototype) {
337 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
341 return this == DEFAULT_INSTANCE
347 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
360 public static final class Builder
extends
361 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
364 public static final com.google.protobuf.Descriptors.Descriptor
366 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
370 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
372 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_fieldAccessorTable
373 .ensureFieldAccessorsInitialized(
374 com.google.ortools.constraintsolver.AcceptanceStrategy.class, com.google.ortools.constraintsolver.AcceptanceStrategy.Builder.class);
383 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
394 public com.google.protobuf.Descriptors.Descriptor
396 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
401 return com.google.ortools.constraintsolver.AcceptanceStrategy.getDefaultInstance();
408 throw newUninitializedMessageException(result);
421 public Builder
mergeFrom(com.google.protobuf.Message other) {
422 if (other instanceof com.google.ortools.constraintsolver.AcceptanceStrategy) {
423 return mergeFrom((com.google.ortools.constraintsolver.AcceptanceStrategy)other);
425 super.mergeFrom(other);
430 public Builder
mergeFrom(com.google.ortools.constraintsolver.AcceptanceStrategy other) {
431 if (other == com.google.ortools.constraintsolver.AcceptanceStrategy.getDefaultInstance())
return this;
432 this.mergeUnknownFields(other.getUnknownFields());
444 com.google.protobuf.CodedInputStream input,
445 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
446 throws java.io.IOException {
447 if (extensionRegistry ==
null) {
448 throw new java.lang.NullPointerException();
451 boolean done =
false;
453 int tag = input.readTag();
459 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
466 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
467 throw e.unwrapIOException();
480 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.AcceptanceStrategy();
484 return DEFAULT_INSTANCE;
491 com.google.protobuf.CodedInputStream input,
492 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
493 throws com.google.protobuf.InvalidProtocolBufferException {
496 builder.mergeFrom(input, extensionRegistry);
497 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
498 throw e.setUnfinishedMessage(builder.buildPartial());
499 }
catch (com.google.protobuf.UninitializedMessageException e) {
500 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
501 }
catch (java.io.IOException e) {
502 throw new com.google.protobuf.InvalidProtocolBufferException(e)
503 .setUnfinishedMessage(builder.buildPartial());
505 return builder.buildPartial();
509 public static com.google.protobuf.Parser<AcceptanceStrategy>
parser() {
520 return DEFAULT_INSTANCE;