5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessage implements
18private static final long serialVersionUID = 0L;
20 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
21 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
29 private MPAbsConstraint(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
35 public static final com.google.protobuf.Descriptors.Descriptor
37 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
41 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
43 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_fieldAccessorTable
44 .ensureFieldAccessorsInitialized(
45 com.google.ortools.linearsolver.MPAbsConstraint.class, com.google.ortools.linearsolver.MPAbsConstraint.Builder.class);
48 private int bitField0_;
50 private int varIndex_ = 0;
62 return ((bitField0_ & 0x00000001) != 0);
79 private int resultantVarIndex_ = 0;
86 return ((bitField0_ & 0x00000002) != 0);
94 return resultantVarIndex_;
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.writeInt32(1, varIndex_);
114 if (((bitField0_ & 0x00000002) != 0)) {
115 output.writeInt32(2, resultantVarIndex_);
117 getUnknownFields().writeTo(output);
122 int size = memoizedSize;
123 if (size != -1)
return size;
126 if (((bitField0_ & 0x00000001) != 0)) {
127 size += com.google.protobuf.CodedOutputStream
128 .computeInt32Size(1, varIndex_);
130 if (((bitField0_ & 0x00000002) != 0)) {
131 size += com.google.protobuf.CodedOutputStream
132 .computeInt32Size(2, resultantVarIndex_);
134 size += getUnknownFields().getSerializedSize();
140 public boolean equals(
final java.lang.Object obj) {
144 if (!(obj instanceof com.google.ortools.linearsolver.MPAbsConstraint)) {
145 return super.equals(obj);
159 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
165 if (memoizedHashCode != 0) {
166 return memoizedHashCode;
178 hash = (29 * hash) + getUnknownFields().hashCode();
179 memoizedHashCode = hash;
184 java.nio.ByteBuffer data)
185 throws com.google.protobuf.InvalidProtocolBufferException {
186 return PARSER.parseFrom(data);
189 java.nio.ByteBuffer data,
190 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
191 throws com.google.protobuf.InvalidProtocolBufferException {
192 return PARSER.parseFrom(data, extensionRegistry);
195 com.google.protobuf.ByteString data)
196 throws com.google.protobuf.InvalidProtocolBufferException {
197 return PARSER.parseFrom(data);
200 com.google.protobuf.ByteString data,
201 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
202 throws com.google.protobuf.InvalidProtocolBufferException {
203 return PARSER.parseFrom(data, extensionRegistry);
206 throws com.google.protobuf.InvalidProtocolBufferException {
207 return PARSER.parseFrom(data);
211 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
212 throws com.google.protobuf.InvalidProtocolBufferException {
213 return PARSER.parseFrom(data, extensionRegistry);
216 throws java.io.IOException {
217 return com.google.protobuf.GeneratedMessage
218 .parseWithIOException(PARSER, input);
221 java.io.InputStream input,
222 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
223 throws java.io.IOException {
224 return com.google.protobuf.GeneratedMessage
225 .parseWithIOException(PARSER, input, extensionRegistry);
229 throws java.io.IOException {
230 return com.google.protobuf.GeneratedMessage
231 .parseDelimitedWithIOException(PARSER, input);
235 java.io.InputStream input,
236 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws java.io.IOException {
238 return com.google.protobuf.GeneratedMessage
239 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
242 com.google.protobuf.CodedInputStream input)
243 throws java.io.IOException {
244 return com.google.protobuf.GeneratedMessage
245 .parseWithIOException(PARSER, input);
248 com.google.protobuf.CodedInputStream input,
249 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
250 throws java.io.IOException {
251 return com.google.protobuf.GeneratedMessage
252 .parseWithIOException(PARSER, input, extensionRegistry);
265 return this == DEFAULT_INSTANCE
271 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
283 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
286 public static final com.google.protobuf.Descriptors.Descriptor
288 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
292 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
294 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_fieldAccessorTable
295 .ensureFieldAccessorsInitialized(
296 com.google.ortools.linearsolver.MPAbsConstraint.class, com.google.ortools.linearsolver.MPAbsConstraint.Builder.class);
305 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
314 resultantVarIndex_ = 0;
319 public com.google.protobuf.Descriptors.Descriptor
321 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
326 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
333 throw newUninitializedMessageException(result);
341 if (bitField0_ != 0) { buildPartial0(result); }
346 private void buildPartial0(com.google.ortools.linearsolver.MPAbsConstraint result) {
347 int from_bitField0_ = bitField0_;
348 int to_bitField0_ = 0;
349 if (((from_bitField0_ & 0x00000001) != 0)) {
350 result.varIndex_ = varIndex_;
351 to_bitField0_ |= 0x00000001;
353 if (((from_bitField0_ & 0x00000002) != 0)) {
354 result.resultantVarIndex_ = resultantVarIndex_;
355 to_bitField0_ |= 0x00000002;
357 result.bitField0_ |= to_bitField0_;
362 if (other instanceof com.google.ortools.linearsolver.MPAbsConstraint) {
363 return mergeFrom((com.google.ortools.linearsolver.MPAbsConstraint)other);
365 super.mergeFrom(other);
371 if (other == com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance())
return this;
372 if (other.hasVarIndex()) {
375 if (other.hasResultantVarIndex()) {
378 this.mergeUnknownFields(other.getUnknownFields());
390 com.google.protobuf.CodedInputStream input,
391 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
392 throws java.io.IOException {
393 if (extensionRegistry ==
null) {
394 throw new java.lang.NullPointerException();
397 boolean done =
false;
399 int tag = input.readTag();
405 varIndex_ = input.readInt32();
406 bitField0_ |= 0x00000001;
410 resultantVarIndex_ = input.readInt32();
411 bitField0_ |= 0x00000002;
415 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
422 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
423 throw e.unwrapIOException();
429 private int bitField0_;
431 private int varIndex_ ;
443 return ((bitField0_ & 0x00000001) != 0);
471 bitField0_ |= 0x00000001;
485 bitField0_ = (bitField0_ & ~0x00000001);
491 private int resultantVarIndex_ ;
498 return ((bitField0_ & 0x00000002) != 0);
506 return resultantVarIndex_;
515 resultantVarIndex_ = value;
516 bitField0_ |= 0x00000002;
525 bitField0_ = (bitField0_ & ~0x00000002);
526 resultantVarIndex_ = 0;
537 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPAbsConstraint();
541 return DEFAULT_INSTANCE;
548 com.google.protobuf.CodedInputStream input,
549 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
550 throws com.google.protobuf.InvalidProtocolBufferException {
553 builder.mergeFrom(input, extensionRegistry);
554 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
555 throw e.setUnfinishedMessage(builder.buildPartial());
556 }
catch (com.google.protobuf.UninitializedMessageException e) {
557 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
558 }
catch (java.io.IOException e) {
559 throw new com.google.protobuf.InvalidProtocolBufferException(e)
560 .setUnfinishedMessage(builder.buildPartial());
562 return builder.buildPartial();
577 return DEFAULT_INSTANCE;