6package com.google.ortools.constraintsolver;
17@com.google.protobuf.Generated
18public final class AcceptanceStrategy
extends
19 com.google.protobuf.GeneratedMessage implements
22private static final long serialVersionUID = 0L;
24 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
25 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
30 AcceptanceStrategy.class.getName());
33 private AcceptanceStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
36 private AcceptanceStrategy() {
39 public static final com.google.protobuf.Descriptors.Descriptor
41 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
45 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
47 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_fieldAccessorTable
48 .ensureFieldAccessorsInitialized(
49 com.google.ortools.constraintsolver.AcceptanceStrategy.class, com.google.ortools.constraintsolver.AcceptanceStrategy.Builder.class);
56 implements com.google.protobuf.ProtocolMessageEnum {
87 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
88 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
93 Value.class.getName());
125 throw new java.lang.IllegalArgumentException(
126 "Can't get the number of an unknown enum value.");
136 @java.lang.Deprecated
147 case 0:
return UNSET;
150 default:
return null;
154 public static com.google.protobuf.Internal.EnumLiteMap<
Value>
156 return internalValueMap;
158 private static final com.google.protobuf.Internal.EnumLiteMap<
159 Value> internalValueMap =
160 new com.google.protobuf.Internal.EnumLiteMap<
Value>() {
161 public Value findValueByNumber(
int number) {
166 public final com.google.protobuf.Descriptors.EnumValueDescriptor
169 throw new java.lang.IllegalStateException(
170 "Can't get the descriptor of an unrecognized enum value.");
174 public final com.google.protobuf.Descriptors.EnumDescriptor
178 public static com.google.protobuf.Descriptors.EnumDescriptor
180 return com.google.ortools.constraintsolver.AcceptanceStrategy.getDescriptor().getEnumTypes().get(0);
183 private static final Value[] VALUES = values();
186 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
188 throw new java.lang.IllegalArgumentException(
189 "EnumValueDescriptor is not for this type.");
191 if (desc.getIndex() == -1) {
194 return VALUES[desc.getIndex()];
197 private final int value;
199 private Value(
int value) {
206 private byte memoizedIsInitialized = -1;
213 memoizedIsInitialized = 1;
218 public void writeTo(com.google.protobuf.CodedOutputStream output)
219 throws java.io.IOException {
220 getUnknownFields().writeTo(output);
225 int size = memoizedSize;
226 if (size != -1)
return size;
229 size += getUnknownFields().getSerializedSize();
235 public boolean equals(
final java.lang.Object obj) {
239 if (!(obj instanceof com.google.ortools.constraintsolver.AcceptanceStrategy)) {
240 return super.equals(obj);
244 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
250 if (memoizedHashCode != 0) {
251 return memoizedHashCode;
255 hash = (29 * hash) + getUnknownFields().hashCode();
256 memoizedHashCode = hash;
261 java.nio.ByteBuffer data)
262 throws com.google.protobuf.InvalidProtocolBufferException {
263 return PARSER.parseFrom(data);
266 java.nio.ByteBuffer data,
267 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
268 throws com.google.protobuf.InvalidProtocolBufferException {
269 return PARSER.parseFrom(data, extensionRegistry);
272 com.google.protobuf.ByteString data)
273 throws com.google.protobuf.InvalidProtocolBufferException {
274 return PARSER.parseFrom(data);
277 com.google.protobuf.ByteString data,
278 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
279 throws com.google.protobuf.InvalidProtocolBufferException {
280 return PARSER.parseFrom(data, extensionRegistry);
283 throws com.google.protobuf.InvalidProtocolBufferException {
284 return PARSER.parseFrom(data);
288 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
289 throws com.google.protobuf.InvalidProtocolBufferException {
290 return PARSER.parseFrom(data, extensionRegistry);
293 throws java.io.IOException {
294 return com.google.protobuf.GeneratedMessage
295 .parseWithIOException(PARSER, input);
298 java.io.InputStream input,
299 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
300 throws java.io.IOException {
301 return com.google.protobuf.GeneratedMessage
302 .parseWithIOException(PARSER, input, extensionRegistry);
306 throws java.io.IOException {
307 return com.google.protobuf.GeneratedMessage
308 .parseDelimitedWithIOException(PARSER, input);
312 java.io.InputStream input,
313 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
314 throws java.io.IOException {
315 return com.google.protobuf.GeneratedMessage
316 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
319 com.google.protobuf.CodedInputStream input)
320 throws java.io.IOException {
321 return com.google.protobuf.GeneratedMessage
322 .parseWithIOException(PARSER, input);
325 com.google.protobuf.CodedInputStream input,
326 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
327 throws java.io.IOException {
328 return com.google.protobuf.GeneratedMessage
329 .parseWithIOException(PARSER, input, extensionRegistry);
335 return DEFAULT_INSTANCE.toBuilder();
337 public static Builder newBuilder(com.google.ortools.constraintsolver.AcceptanceStrategy prototype) {
338 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
342 return this == DEFAULT_INSTANCE
348 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
361 public static final class Builder
extends
362 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
365 public static final com.google.protobuf.Descriptors.Descriptor
367 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
371 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
373 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_fieldAccessorTable
374 .ensureFieldAccessorsInitialized(
375 com.google.ortools.constraintsolver.AcceptanceStrategy.class, com.google.ortools.constraintsolver.AcceptanceStrategy.Builder.class);
384 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
395 public com.google.protobuf.Descriptors.Descriptor
397 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_AcceptanceStrategy_descriptor;
402 return com.google.ortools.constraintsolver.AcceptanceStrategy.getDefaultInstance();
409 throw newUninitializedMessageException(result);
422 public Builder
mergeFrom(com.google.protobuf.Message other) {
423 if (other instanceof com.google.ortools.constraintsolver.AcceptanceStrategy) {
424 return mergeFrom((com.google.ortools.constraintsolver.AcceptanceStrategy)other);
426 super.mergeFrom(other);
431 public Builder
mergeFrom(com.google.ortools.constraintsolver.AcceptanceStrategy other) {
432 if (other == com.google.ortools.constraintsolver.AcceptanceStrategy.getDefaultInstance())
return this;
433 this.mergeUnknownFields(other.getUnknownFields());
445 com.google.protobuf.CodedInputStream input,
446 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
447 throws java.io.IOException {
448 if (extensionRegistry ==
null) {
449 throw new java.lang.NullPointerException();
452 boolean done =
false;
454 int tag = input.readTag();
460 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
467 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
468 throw e.unwrapIOException();
481 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.AcceptanceStrategy();
485 return DEFAULT_INSTANCE;
492 com.google.protobuf.CodedInputStream input,
493 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
494 throws com.google.protobuf.InvalidProtocolBufferException {
497 builder.mergeFrom(input, extensionRegistry);
498 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
499 throw e.setUnfinishedMessage(builder.buildPartial());
500 }
catch (com.google.protobuf.UninitializedMessageException e) {
501 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
502 }
catch (java.io.IOException e) {
503 throw new com.google.protobuf.InvalidProtocolBufferException(e)
504 .setUnfinishedMessage(builder.buildPartial());
506 return builder.buildPartial();
510 public static com.google.protobuf.Parser<AcceptanceStrategy>
parser() {
521 return DEFAULT_INSTANCE;