4 package com.google.ortools.linearsolver;
18 com.google.protobuf.GeneratedMessageV3 implements
21 private static final long serialVersionUID = 0L;
30 @SuppressWarnings({
"unused"})
32 UnusedPrivateParameter unused) {
37 public final com.
google.protobuf.UnknownFieldSet
39 return this.unknownFields;
42 com.
google.protobuf.CodedInputStream input,
43 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
44 throws com.
google.protobuf.InvalidProtocolBufferException {
46 if (extensionRegistry ==
null) {
47 throw new java.lang.NullPointerException();
49 int mutable_bitField0_ = 0;
50 com.
google.protobuf.UnknownFieldSet.Builder unknownFields =
51 com.
google.protobuf.UnknownFieldSet.newBuilder();
55 int tag = input.readTag();
61 bitField0_ |= 0x00000001;
62 value_ = input.readDouble();
66 if (!parseUnknownField(
67 input, unknownFields, extensionRegistry, tag)) {
74 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
75 throw e.setUnfinishedMessage(
this);
76 }
catch (java.io.IOException e) {
77 throw new com.
google.protobuf.InvalidProtocolBufferException(
78 e).setUnfinishedMessage(
this);
80 this.unknownFields = unknownFields.build();
81 makeExtensionsImmutable();
84 public static final com.
google.protobuf.Descriptors.Descriptor
90 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
93 .ensureFieldAccessorsInitialized(
97 private int bitField0_;
99 private double value_;
104 return ((bitField0_ & 0x00000001) != 0);
113 private byte memoizedIsInitialized = -1;
120 memoizedIsInitialized = 1;
126 throws java.io.IOException {
127 if (((bitField0_ & 0x00000001) != 0)) {
128 output.writeDouble(1, value_);
130 unknownFields.writeTo(output);
135 int size = memoizedSize;
136 if (size != -1)
return size;
139 if (((bitField0_ & 0x00000001) != 0)) {
140 size +=
com.
google.protobuf.CodedOutputStream
141 .computeDoubleSize(1, value_);
143 size += unknownFields.getSerializedSize();
149 public boolean equals(
final java.lang.Object obj) {
154 return super.equals(obj);
158 if (
hasValue() != other.hasValue())
return false;
160 if (java.lang.Double.doubleToLongBits(
getValue())
161 != java.lang.Double.doubleToLongBits(
162 other.getValue()))
return false;
164 if (!unknownFields.equals(other.unknownFields))
return false;
170 if (memoizedHashCode != 0) {
171 return memoizedHashCode;
177 hash = (53 * hash) +
com.
google.protobuf.Internal.hashLong(
178 java.lang.Double.doubleToLongBits(
getValue()));
180 hash = (29 * hash) + unknownFields.hashCode();
181 memoizedHashCode = hash;
186 java.nio.ByteBuffer data)
187 throws com.
google.protobuf.InvalidProtocolBufferException {
188 return PARSER.parseFrom(data);
191 java.nio.ByteBuffer data,
192 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
193 throws com.
google.protobuf.InvalidProtocolBufferException {
194 return PARSER.parseFrom(data, extensionRegistry);
198 throws com.
google.protobuf.InvalidProtocolBufferException {
199 return PARSER.parseFrom(data);
203 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
204 throws com.
google.protobuf.InvalidProtocolBufferException {
205 return PARSER.parseFrom(data, extensionRegistry);
208 throws com.
google.protobuf.InvalidProtocolBufferException {
209 return PARSER.parseFrom(data);
213 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
214 throws com.
google.protobuf.InvalidProtocolBufferException {
215 return PARSER.parseFrom(data, extensionRegistry);
218 throws java.io.IOException {
219 return com.
google.protobuf.GeneratedMessageV3
220 .parseWithIOException(
PARSER, input);
223 java.io.InputStream input,
224 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
225 throws java.io.IOException {
226 return com.
google.protobuf.GeneratedMessageV3
227 .parseWithIOException(
PARSER, input, extensionRegistry);
230 throws java.io.IOException {
231 return com.
google.protobuf.GeneratedMessageV3
232 .parseDelimitedWithIOException(
PARSER, input);
235 java.io.InputStream input,
236 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
237 throws java.io.IOException {
238 return com.
google.protobuf.GeneratedMessageV3
239 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
242 com.
google.protobuf.CodedInputStream input)
243 throws java.io.IOException {
244 return com.
google.protobuf.GeneratedMessageV3
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.GeneratedMessageV3
252 .parseWithIOException(
PARSER, input, extensionRegistry);
265 return this == DEFAULT_INSTANCE
271 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
287 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
290 public static final com.
google.protobuf.Descriptors.Descriptor
296 protected com.
google.protobuf.GeneratedMessageV3.FieldAccessorTable
299 .ensureFieldAccessorsInitialized(
305 maybeForceBuilderInitialization();
309 com.
google.protobuf.GeneratedMessageV3.BuilderParent parent) {
311 maybeForceBuilderInitialization();
313 private void maybeForceBuilderInitialization() {
314 if (
com.
google.protobuf.GeneratedMessageV3
315 .alwaysUseFieldBuilders) {
322 bitField0_ = (bitField0_ & ~0x00000001);
327 public com.
google.protobuf.Descriptors.Descriptor
340 if (!result.isInitialized()) {
341 throw newUninitializedMessageException(result);
349 int from_bitField0_ = bitField0_;
350 int to_bitField0_ = 0;
351 if (((from_bitField0_ & 0x00000001) != 0)) {
352 result.value_ = value_;
353 to_bitField0_ |= 0x00000001;
355 result.bitField0_ = to_bitField0_;
362 return super.
clone();
366 com.
google.protobuf.Descriptors.FieldDescriptor field,
367 java.lang.Object value) {
368 return super.
setField(field, value);
372 com.
google.protobuf.Descriptors.FieldDescriptor field) {
377 com.
google.protobuf.Descriptors.OneofDescriptor oneof) {
382 com.
google.protobuf.Descriptors.FieldDescriptor field,
383 int index, java.lang.Object value) {
388 com.
google.protobuf.Descriptors.FieldDescriptor field,
389 java.lang.Object value) {
397 super.mergeFrom(other);
404 if (other.hasValue()) {
419 com.
google.protobuf.CodedInputStream input,
420 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
421 throws java.io.IOException {
424 parsedMessage =
PARSER.parsePartialFrom(input, extensionRegistry);
425 }
catch (
com.
google.protobuf.InvalidProtocolBufferException e) {
427 throw e.unwrapIOException();
429 if (parsedMessage !=
null) {
435 private int bitField0_;
437 private double value_ ;
442 return ((bitField0_ & 0x00000001) != 0);
454 bitField0_ |= 0x00000001;
463 bitField0_ = (bitField0_ & ~0x00000001);
470 final com.
google.protobuf.UnknownFieldSet unknownFields) {
476 final com.
google.protobuf.UnknownFieldSet unknownFields) {
491 return DEFAULT_INSTANCE;
498 com.
google.protobuf.CodedInputStream input,
499 com.
google.protobuf.ExtensionRegistryLite extensionRegistry)
500 throws com.
google.protobuf.InvalidProtocolBufferException {
516 return DEFAULT_INSTANCE;