6package com.google.ortools.graph;
11public final class FlowNodeProto
extends
12 com.google.protobuf.GeneratedMessage implements
15private static final long serialVersionUID = 0L;
17 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
18 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
23 FlowNodeProto.class.getName());
26 private FlowNodeProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
29 private FlowNodeProto() {
32 public static final com.google.protobuf.Descriptors.Descriptor
34 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
38 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
40 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
41 .ensureFieldAccessorsInitialized(
42 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
45 private int bitField0_;
47 private long id_ = 0L;
60 return ((bitField0_ & 0x00000001) != 0);
78 private long supply_ = 0L;
90 return ((bitField0_ & 0x00000002) != 0);
106 private byte memoizedIsInitialized = -1;
113 memoizedIsInitialized = 1;
118 public void writeTo(com.google.protobuf.CodedOutputStream output)
119 throws java.io.IOException {
120 if (((bitField0_ & 0x00000001) != 0)) {
121 output.writeInt64(1, id_);
123 if (((bitField0_ & 0x00000002) != 0)) {
124 output.writeInt64(2, supply_);
126 getUnknownFields().writeTo(output);
131 int size = memoizedSize;
132 if (size != -1)
return size;
135 if (((bitField0_ & 0x00000001) != 0)) {
136 size += com.google.protobuf.CodedOutputStream
137 .computeInt64Size(1, id_);
139 if (((bitField0_ & 0x00000002) != 0)) {
140 size += com.google.protobuf.CodedOutputStream
141 .computeInt64Size(2, supply_);
143 size += getUnknownFields().getSerializedSize();
149 public boolean equals(
final java.lang.Object obj) {
153 if (!(obj instanceof com.google.ortools.graph.FlowNodeProto)) {
154 return super.equals(obj);
161 != other.
getId())
return false;
168 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
174 if (memoizedHashCode != 0) {
175 return memoizedHashCode;
181 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
186 hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
189 hash = (29 * hash) + getUnknownFields().hashCode();
190 memoizedHashCode = hash;
195 java.nio.ByteBuffer data)
196 throws com.google.protobuf.InvalidProtocolBufferException {
197 return PARSER.parseFrom(data);
200 java.nio.ByteBuffer data,
201 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
202 throws com.google.protobuf.InvalidProtocolBufferException {
203 return PARSER.parseFrom(data, extensionRegistry);
206 com.google.protobuf.ByteString data)
207 throws com.google.protobuf.InvalidProtocolBufferException {
208 return PARSER.parseFrom(data);
211 com.google.protobuf.ByteString data,
212 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
213 throws com.google.protobuf.InvalidProtocolBufferException {
214 return PARSER.parseFrom(data, extensionRegistry);
217 throws com.google.protobuf.InvalidProtocolBufferException {
218 return PARSER.parseFrom(data);
222 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
223 throws com.google.protobuf.InvalidProtocolBufferException {
224 return PARSER.parseFrom(data, extensionRegistry);
227 throws java.io.IOException {
228 return com.google.protobuf.GeneratedMessage
229 .parseWithIOException(PARSER, input);
232 java.io.InputStream input,
233 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
234 throws java.io.IOException {
235 return com.google.protobuf.GeneratedMessage
236 .parseWithIOException(PARSER, input, extensionRegistry);
240 throws java.io.IOException {
241 return com.google.protobuf.GeneratedMessage
242 .parseDelimitedWithIOException(PARSER, input);
246 java.io.InputStream input,
247 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
248 throws java.io.IOException {
249 return com.google.protobuf.GeneratedMessage
250 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
253 com.google.protobuf.CodedInputStream input)
254 throws java.io.IOException {
255 return com.google.protobuf.GeneratedMessage
256 .parseWithIOException(PARSER, input);
259 com.google.protobuf.CodedInputStream input,
260 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
261 throws java.io.IOException {
262 return com.google.protobuf.GeneratedMessage
263 .parseWithIOException(PARSER, input, extensionRegistry);
269 return DEFAULT_INSTANCE.toBuilder();
272 return DEFAULT_INSTANCE.toBuilder().
mergeFrom(prototype);
276 return this == DEFAULT_INSTANCE
282 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
289 public static final class Builder
extends
290 com.google.protobuf.GeneratedMessage.Builder<Builder> implements
293 public static final com.google.protobuf.Descriptors.Descriptor
295 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
299 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
301 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_fieldAccessorTable
302 .ensureFieldAccessorsInitialized(
303 com.google.ortools.graph.FlowNodeProto.class, com.google.ortools.graph.FlowNodeProto.Builder.class);
312 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
326 public com.google.protobuf.Descriptors.Descriptor
328 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowNodeProto_descriptor;
333 return com.google.ortools.graph.FlowNodeProto.getDefaultInstance();
340 throw newUninitializedMessageException(result);
348 if (bitField0_ != 0) { buildPartial0(result); }
353 private void buildPartial0(com.google.ortools.graph.FlowNodeProto result) {
354 int from_bitField0_ = bitField0_;
355 int to_bitField0_ = 0;
356 if (((from_bitField0_ & 0x00000001) != 0)) {
358 to_bitField0_ |= 0x00000001;
360 if (((from_bitField0_ & 0x00000002) != 0)) {
361 result.supply_ = supply_;
362 to_bitField0_ |= 0x00000002;
364 result.bitField0_ |= to_bitField0_;
368 public Builder
mergeFrom(com.google.protobuf.Message other) {
369 if (other instanceof com.google.ortools.graph.FlowNodeProto) {
370 return mergeFrom((com.google.ortools.graph.FlowNodeProto)other);
372 super.mergeFrom(other);
377 public Builder
mergeFrom(com.google.ortools.graph.FlowNodeProto other) {
378 if (other == com.google.ortools.graph.FlowNodeProto.getDefaultInstance())
return this;
380 setId(other.getId());
382 if (other.hasSupply()) {
385 this.mergeUnknownFields(other.getUnknownFields());
397 com.google.protobuf.CodedInputStream input,
398 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
399 throws java.io.IOException {
400 if (extensionRegistry ==
null) {
401 throw new java.lang.NullPointerException();
404 boolean done =
false;
406 int tag = input.readTag();
412 id_ = input.readInt64();
413 bitField0_ |= 0x00000001;
417 supply_ = input.readInt64();
418 bitField0_ |= 0x00000002;
422 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
429 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
430 throw e.unwrapIOException();
436 private int bitField0_;
451 return ((bitField0_ & 0x00000001) != 0);
481 bitField0_ |= 0x00000001;
496 bitField0_ = (bitField0_ & ~0x00000001);
502 private long supply_ ;
514 return ((bitField0_ & 0x00000002) != 0);
542 bitField0_ |= 0x00000002;
556 bitField0_ = (bitField0_ & ~0x00000002);
568 DEFAULT_INSTANCE =
new com.google.ortools.graph.FlowNodeProto();
572 return DEFAULT_INSTANCE;
575 private static final com.google.protobuf.Parser<
FlowNodeProto>
576 PARSER =
new com.google.protobuf.AbstractParser<
FlowNodeProto>() {
579 com.google.protobuf.CodedInputStream input,
580 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
581 throws com.google.protobuf.InvalidProtocolBufferException {
584 builder.mergeFrom(input, extensionRegistry);
585 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
586 throw e.setUnfinishedMessage(builder.buildPartial());
587 }
catch (com.google.protobuf.UninitializedMessageException e) {
588 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
589 }
catch (java.io.IOException e) {
590 throw new com.google.protobuf.InvalidProtocolBufferException(e)
591 .setUnfinishedMessage(builder.buildPartial());
593 return builder.buildPartial();
597 public static com.google.protobuf.Parser<FlowNodeProto>
parser() {
608 return DEFAULT_INSTANCE;