5package com.google.ortools.graph;
11 com.google.protobuf.GeneratedMessageV3 implements
14private static final long serialVersionUID = 0L;
16 private FlowNodeProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
23 @SuppressWarnings({
"unused"})
25 UnusedPrivateParameter unused) {
29 public static final com.google.protobuf.Descriptors.Descriptor
31 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
35 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
37 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
38 .ensureFieldAccessorsInitialized(
39 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
42 private int bitField0_;
44 private long id_ = 0L;
57 return ((bitField0_ & 0x00000001) != 0);
75 private long supply_ = 0L;
87 return ((bitField0_ & 0x00000002) != 0);
103 private byte memoizedIsInitialized = -1;
110 memoizedIsInitialized = 1;
115 public void writeTo(com.google.protobuf.CodedOutputStream output)
116 throws java.io.IOException {
117 if (((bitField0_ & 0x00000001) != 0)) {
118 output.writeInt64(1, id_);
120 if (((bitField0_ & 0x00000002) != 0)) {
121 output.writeInt64(2, supply_);
123 getUnknownFields().writeTo(output);
128 int size = memoizedSize;
129 if (size != -1)
return size;
132 if (((bitField0_ & 0x00000001) != 0)) {
133 size += com.google.protobuf.CodedOutputStream
134 .computeInt64Size(1, id_);
136 if (((bitField0_ & 0x00000002) != 0)) {
137 size += com.google.protobuf.CodedOutputStream
138 .computeInt64Size(2, supply_);
140 size += getUnknownFields().getSerializedSize();
146 public boolean equals(
final java.lang.Object obj) {
150 if (!(obj instanceof com.google.ortools.graph.FlowNodeProto)) {
151 return super.equals(obj);
158 != other.
getId())
return false;
165 if (!getUnknownFields().equals(other.getUnknownFields()))
return false;
171 if (memoizedHashCode != 0) {
172 return memoizedHashCode;
178 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
183 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
186 hash = (29 * hash) + getUnknownFields().hashCode();
187 memoizedHashCode = hash;
192 java.nio.ByteBuffer data)
193 throws com.google.protobuf.InvalidProtocolBufferException {
197 java.nio.ByteBuffer data,
198 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
199 throws com.google.protobuf.InvalidProtocolBufferException {
203 com.google.protobuf.ByteString data)
204 throws com.google.protobuf.InvalidProtocolBufferException {
208 com.google.protobuf.ByteString data,
209 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
210 throws com.google.protobuf.InvalidProtocolBufferException {
214 throws com.google.protobuf.InvalidProtocolBufferException {
219 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
220 throws com.google.protobuf.InvalidProtocolBufferException {
224 throws java.io.IOException {
225 return com.google.protobuf.GeneratedMessageV3
226 .parseWithIOException(
PARSER, input);
229 java.io.InputStream input,
230 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
231 throws java.io.IOException {
232 return com.google.protobuf.GeneratedMessageV3
233 .parseWithIOException(
PARSER, input, extensionRegistry);
237 throws java.io.IOException {
238 return com.google.protobuf.GeneratedMessageV3
239 .parseDelimitedWithIOException(
PARSER, input);
243 java.io.InputStream input,
244 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
245 throws java.io.IOException {
246 return com.google.protobuf.GeneratedMessageV3
247 .parseDelimitedWithIOException(
PARSER, input, extensionRegistry);
250 com.google.protobuf.CodedInputStream input)
251 throws java.io.IOException {
252 return com.google.protobuf.GeneratedMessageV3
253 .parseWithIOException(
PARSER, input);
256 com.google.protobuf.CodedInputStream input,
257 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
258 throws java.io.IOException {
259 return com.google.protobuf.GeneratedMessageV3
260 .parseWithIOException(
PARSER, input, extensionRegistry);
273 return this == DEFAULT_INSTANCE
279 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
287 com.google.protobuf.GeneratedMessageV3.
Builder<Builder> implements
290 public static final com.google.protobuf.Descriptors.Descriptor
292 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
296 protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
298 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
299 .ensureFieldAccessorsInitialized(
300 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
309 com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
323 public com.google.protobuf.Descriptors.Descriptor
325 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
330 return com.google.ortools.graph.FlowNodeProto.getDefaultInstance();
337 throw newUninitializedMessageException(result);
345 if (bitField0_ != 0) { buildPartial0(result); }
350 private void buildPartial0(com.google.ortools.graph.FlowNodeProto result) {
351 int from_bitField0_ = bitField0_;
352 int to_bitField0_ = 0;
353 if (((from_bitField0_ & 0x00000001) != 0)) {
355 to_bitField0_ |= 0x00000001;
357 if (((from_bitField0_ & 0x00000002) != 0)) {
358 result.supply_ = supply_;
359 to_bitField0_ |= 0x00000002;
361 result.bitField0_ |= to_bitField0_;
366 return super.
clone();
370 com.google.protobuf.Descriptors.FieldDescriptor field,
371 java.lang.Object value) {
372 return super.
setField(field, value);
376 com.google.protobuf.Descriptors.FieldDescriptor field) {
381 com.google.protobuf.Descriptors.OneofDescriptor oneof) {
386 com.google.protobuf.Descriptors.FieldDescriptor field,
387 int index, java.lang.Object value) {
392 com.google.protobuf.Descriptors.FieldDescriptor field,
393 java.lang.Object value) {
398 if (other instanceof com.google.ortools.graph.FlowNodeProto) {
399 return mergeFrom((com.google.ortools.graph.FlowNodeProto)other);
401 super.mergeFrom(other);
407 if (other == com.google.ortools.graph.FlowNodeProto.getDefaultInstance())
return this;
409 setId(other.getId());
411 if (other.hasSupply()) {
426 com.google.protobuf.CodedInputStream input,
427 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
428 throws java.io.IOException {
429 if (extensionRegistry ==
null) {
430 throw new java.lang.NullPointerException();
433 boolean done =
false;
435 int tag = input.readTag();
441 id_ = input.readInt64();
442 bitField0_ |= 0x00000001;
446 supply_ = input.readInt64();
447 bitField0_ |= 0x00000002;
451 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
458 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
459 throw e.unwrapIOException();
465 private int bitField0_;
480 return ((bitField0_ & 0x00000001) != 0);
510 bitField0_ |= 0x00000001;
525 bitField0_ = (bitField0_ & ~0x00000001);
531 private long supply_ ;
543 return ((bitField0_ & 0x00000002) != 0);
571 bitField0_ |= 0x00000002;
585 bitField0_ = (bitField0_ & ~0x00000002);
592 final com.google.protobuf.UnknownFieldSet unknownFields) {
598 final com.google.protobuf.UnknownFieldSet unknownFields) {
609 DEFAULT_INSTANCE =
new com.google.ortools.graph.FlowNodeProto();
613 return DEFAULT_INSTANCE;
616 @java.lang.Deprecated
public static final com.google.protobuf.Parser<
FlowNodeProto>
620 com.google.protobuf.CodedInputStream input,
621 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
622 throws com.google.protobuf.InvalidProtocolBufferException {
625 builder.
mergeFrom(input, extensionRegistry);
626 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
628 }
catch (com.google.protobuf.UninitializedMessageException e) {
629 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.
buildPartial());
630 }
catch (java.io.IOException e) {
631 throw new com.google.protobuf.InvalidProtocolBufferException(e)
649 return DEFAULT_INSTANCE;