5package com.google.ortools.linearsolver;
15 com.google.protobuf.GeneratedMessageV3 implements
18private static final long serialVersionUID = 0L;
20 private MPAbsConstraint(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
27 @SuppressWarnings({
"unused"})
29 UnusedPrivateParameter unused) {
33 public static final com.google.protobuf.Descriptors.Descriptor
35 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
39 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
41 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_fieldAccessorTable
42 .ensureFieldAccessorsInitialized(
43 com.google.ortools.linearsolver.MPAbsConstraint.class, com.google.ortools.linearsolver.MPAbsConstraint.Builder.class);
46 private int bitField0_;
48 private int varIndex_ = 0;
60 return ((bitField0_ & 0x00000001) != 0);
77 private int resultantVarIndex_ = 0;
84 return ((bitField0_ & 0x00000002) != 0);
92 return resultantVarIndex_;
95 private byte memoizedIsInitialized = -1;
102 memoizedIsInitialized = 1;
107 public void writeTo(com.google.protobuf.CodedOutputStream output)
108 throws java.io.IOException {
109 if (((bitField0_ & 0x00000001) != 0)) {
110 output.writeInt32(1, varIndex_);
112 if (((bitField0_ & 0x00000002) != 0)) {
113 output.writeInt32(2, resultantVarIndex_);
115 getUnknownFields().writeTo(output);
120 int size = memoizedSize;
121 if (size != -1)
return size;
124 if (((bitField0_ & 0x00000001) != 0)) {
125 size += com.google.protobuf.CodedOutputStream
126 .computeInt32Size(1, varIndex_);
128 if (((bitField0_ & 0x00000002) != 0)) {
129 size += com.google.protobuf.CodedOutputStream
130 .computeInt32Size(2, resultantVarIndex_);
132 size += getUnknownFields().getSerializedSize();
138 public boolean equals(
final java.lang.Object obj) {
142 if (!(obj instanceof com.google.ortools.linearsolver.MPAbsConstraint)) {
143 return super.equals(obj);
157 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
163 if (memoizedHashCode != 0) {
164 return memoizedHashCode;
176 hash = (29 * hash) + getUnknownFields().hashCode();
177 memoizedHashCode = hash;
182 java.nio.ByteBuffer data)
183 throws com.google.protobuf.InvalidProtocolBufferException {
187 java.nio.ByteBuffer data,
188 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
189 throws com.google.protobuf.InvalidProtocolBufferException {
193 com.google.protobuf.ByteString data)
194 throws com.google.protobuf.InvalidProtocolBufferException {
198 com.google.protobuf.ByteString data,
199 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
200 throws com.google.protobuf.InvalidProtocolBufferException {
204 throws com.google.protobuf.InvalidProtocolBufferException {
209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210 throws com.google.protobuf.InvalidProtocolBufferException {
214 throws java.io.IOException {
215 return com.google.protobuf.GeneratedMessageV3
216 .parseWithIOException(
PARSER, input);
219 java.io.InputStream input,
220 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
221 throws java.io.IOException {
222 return com.google.protobuf.GeneratedMessageV3
223 .parseWithIOException(
PARSER, input, extensionRegistry);
227 throws java.io.IOException {
228 return com.google.protobuf.GeneratedMessageV3
229 .parseDelimitedWithIOException(
PARSER, input);
233 java.io.InputStream input,
234 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
235 throws java.io.IOException {
236 return com.google.protobuf.GeneratedMessageV3
237 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
240 com.google.protobuf.CodedInputStream input)
241 throws java.io.IOException {
242 return com.google.protobuf.GeneratedMessageV3
243 .parseWithIOException(
PARSER, input);
246 com.google.protobuf.CodedInputStream input,
247 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
248 throws java.io.IOException {
249 return com.google.protobuf.GeneratedMessageV3
250 .parseWithIOException(
PARSER, input, extensionRegistry);
263 return this == DEFAULT_INSTANCE
269 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
281 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
284 public static final com.google.protobuf.Descriptors.Descriptor
286 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
290 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
292 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_fieldAccessorTable
293 .ensureFieldAccessorsInitialized(
294 com.google.ortools.linearsolver.MPAbsConstraint.class, com.google.ortools.linearsolver.MPAbsConstraint.Builder.class);
303 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
312 resultantVarIndex_ = 0;
317 public com.google.protobuf.Descriptors.Descriptor
319 return com.google.ortools.linearsolver.LinearSolver.internal_static_operations_research_MPAbsConstraint_descriptor;
324 return com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance();
331 throw newUninitializedMessageException(result);
339 if (bitField0_ != 0) { buildPartial0(result); }
344 private void buildPartial0(com.google.ortools.linearsolver.MPAbsConstraint result) {
345 int from_bitField0_ = bitField0_;
346 int to_bitField0_ = 0;
347 if (((from_bitField0_ & 0x00000001) != 0)) {
348 result.varIndex_ = varIndex_;
349 to_bitField0_ |= 0x00000001;
351 if (((from_bitField0_ & 0x00000002) != 0)) {
352 result.resultantVarIndex_ = resultantVarIndex_;
353 to_bitField0_ |= 0x00000002;
355 result.bitField0_ |= to_bitField0_;
360 return super.
clone();
364 com.google.protobuf.Descriptors.FieldDescriptor field,
365 java.lang.Object value) {
366 return super.
setField(field, value);
370 com.google.protobuf.Descriptors.FieldDescriptor field) {
375 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
380 com.google.protobuf.Descriptors.FieldDescriptor field,
381 int index, java.lang.Object value) {
386 com.google.protobuf.Descriptors.FieldDescriptor field,
387 java.lang.Object value) {
392 if (other instanceof com.google.ortools.linearsolver.MPAbsConstraint) {
393 return mergeFrom((com.google.ortools.linearsolver.MPAbsConstraint)other);
395 super.mergeFrom(other);
401 if (other == com.google.ortools.linearsolver.MPAbsConstraint.getDefaultInstance())
return this;
402 if (other.hasVarIndex()) {
405 if (other.hasResultantVarIndex()) {
420 com.google.protobuf.CodedInputStream input,
421 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
422 throws java.io.IOException {
423 if (extensionRegistry ==
null) {
424 throw new java.lang.NullPointerException();
427 boolean done =
false;
429 int tag = input.readTag();
435 varIndex_ = input.readInt32();
436 bitField0_ |= 0x00000001;
440 resultantVarIndex_ = input.readInt32();
441 bitField0_ |= 0x00000002;
445 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
452 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
453 throw e.unwrapIOException();
459 private int bitField0_;
461 private int varIndex_ ;
473 return ((bitField0_ & 0x00000001) != 0);
501 bitField0_ |= 0x00000001;
515 bitField0_ = (bitField0_ & ~0x00000001);
521 private int resultantVarIndex_ ;
528 return ((bitField0_ & 0x00000002) != 0);
536 return resultantVarIndex_;
545 resultantVarIndex_ = value;
546 bitField0_ |= 0x00000002;
555 bitField0_ = (bitField0_ & ~0x00000002);
556 resultantVarIndex_ = 0;
562 final com.google.protobuf.UnknownFieldSet unknownFields) {
568 final com.google.protobuf.UnknownFieldSet unknownFields) {
579 DEFAULT_INSTANCE =
new com.google.ortools.linearsolver.MPAbsConstraint();
583 return DEFAULT_INSTANCE;
586 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
MPAbsConstraint>
590 com.google.protobuf.CodedInputStream input,
591 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
592 throws com.google.protobuf.InvalidProtocolBufferException {
595 builder.
mergeFrom(input, extensionRegistry);
596 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
598 }
catch (com.google.protobuf.UninitializedMessageException e) {
599 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
600 }
catch (java.io.IOException e) {
601 throw new com.google.protobuf.InvalidProtocolBufferException(e)
619 return DEFAULT_INSTANCE;