6package com.google.ortools.constraintsolver;
15@com.google.protobuf.Generated
16public final class GreedyDescentAcceptanceStrategy
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 "GreedyDescentAcceptanceStrategy");
31 private GreedyDescentAcceptanceStrategy(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
34 private GreedyDescentAcceptanceStrategy() {
37 public static final com.google.protobuf.Descriptors.Descriptor
39 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_GreedyDescentAcceptanceStrategy_descriptor;
43 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
45 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_GreedyDescentAcceptanceStrategy_fieldAccessorTable
46 .ensureFieldAccessorsInitialized(
47 com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.class, com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.Builder.class);
50 private byte memoizedIsInitialized = -1;
57 memoizedIsInitialized = 1;
62 public void writeTo(com.google.protobuf.CodedOutputStream output)
63 throws java.io.IOException {
64 getUnknownFields().writeTo(output);
69 int size = memoizedSize;
70 if (size != -1)
return size;
73 size += getUnknownFields().getSerializedSize();
79 public boolean equals(
final java.lang.Object obj) {
83 if (!(obj instanceof com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy)) {
84 return super.equals(obj);
88 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
94 if (memoizedHashCode != 0) {
95 return memoizedHashCode;
99 hash = (29 * hash) + getUnknownFields().hashCode();
100 memoizedHashCode = hash;
105 java.nio.ByteBuffer data)
106 throws com.google.protobuf.InvalidProtocolBufferException {
107 return PARSER.parseFrom(data);
110 java.nio.ByteBuffer data,
111 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
112 throws com.google.protobuf.InvalidProtocolBufferException {
113 return PARSER.parseFrom(data, extensionRegistry);
116 com.google.protobuf.ByteString data)
117 throws com.google.protobuf.InvalidProtocolBufferException {
118 return PARSER.parseFrom(data);
121 com.google.protobuf.ByteString data,
122 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
123 throws com.google.protobuf.InvalidProtocolBufferException {
124 return PARSER.parseFrom(data, extensionRegistry);
127 throws com.google.protobuf.InvalidProtocolBufferException {
128 return PARSER.parseFrom(data);
132 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
133 throws com.google.protobuf.InvalidProtocolBufferException {
134 return PARSER.parseFrom(data, extensionRegistry);
137 throws java.io.IOException {
138 return com.google.protobuf.GeneratedMessage
139 .parseWithIOException(PARSER, input);
142 java.io.InputStream input,
143 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
144 throws java.io.IOException {
145 return com.google.protobuf.GeneratedMessage
146 .parseWithIOException(PARSER, input, extensionRegistry);
150 throws java.io.IOException {
151 return com.google.protobuf.GeneratedMessage
152 .parseDelimitedWithIOException(PARSER, input);
156 java.io.InputStream input,
157 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
158 throws java.io.IOException {
159 return com.google.protobuf.GeneratedMessage
160 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
163 com.google.protobuf.CodedInputStream input)
164 throws java.io.IOException {
165 return com.google.protobuf.GeneratedMessage
166 .parseWithIOException(PARSER, input);
169 com.google.protobuf.CodedInputStream input,
170 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
171 throws java.io.IOException {
172 return com.google.protobuf.GeneratedMessage
173 .parseWithIOException(PARSER, input, extensionRegistry);
179 return DEFAULT_INSTANCE.toBuilder();
181 public static Builder newBuilder(com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy prototype) {
182 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
186 return this == DEFAULT_INSTANCE
192 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
203 public static final class Builder
extends
204 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
207 public static final com.google.protobuf.Descriptors.Descriptor
209 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_GreedyDescentAcceptanceStrategy_descriptor;
213 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
215 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_GreedyDescentAcceptanceStrategy_fieldAccessorTable
216 .ensureFieldAccessorsInitialized(
217 com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.class, com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.Builder.class);
226 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
237 public com.google.protobuf.Descriptors.Descriptor
239 return com.google.ortools.constraintsolver.RoutingIls.internal_static_operations_research_GreedyDescentAcceptanceStrategy_descriptor;
244 return com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.getDefaultInstance();
251 throw newUninitializedMessageException(result);
264 public Builder
mergeFrom(com.google.protobuf.Message other) {
265 if (other instanceof com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy) {
266 return mergeFrom((com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy)other);
268 super.mergeFrom(other);
273 public Builder
mergeFrom(com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy other) {
274 if (other == com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy.getDefaultInstance())
return this;
275 this.mergeUnknownFields(other.getUnknownFields());
287 com.google.protobuf.CodedInputStream input,
288 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
289 throws java.io.IOException {
290 if (extensionRegistry ==
null) {
291 throw new java.lang.NullPointerException();
294 boolean done =
false;
296 int tag = input.readTag();
302 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
309 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
310 throw e.unwrapIOException();
323 DEFAULT_INSTANCE =
new com.google.ortools.constraintsolver.GreedyDescentAcceptanceStrategy();
327 return DEFAULT_INSTANCE;
334 com.google.protobuf.CodedInputStream input,
335 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
336 throws com.google.protobuf.InvalidProtocolBufferException {
339 builder.mergeFrom(input, extensionRegistry);
340 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
341 throw e.setUnfinishedMessage(builder.buildPartial());
342 }
catch (com.google.protobuf.UninitializedMessageException e) {
343 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
344 }
catch (java.io.IOException e) {
345 throw new com.google.protobuf.InvalidProtocolBufferException(e)
346 .setUnfinishedMessage(builder.buildPartial());
348 return builder.buildPartial();
352 public static com.google.protobuf.Parser<GreedyDescentAcceptanceStrategy>
parser() {
363 return DEFAULT_INSTANCE;