5package com.google.ortools.graph;
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 FlowModelProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
33 nodes_ = java.util.Collections.emptyList();
34 arcs_ = java.util.Collections.emptyList();
38 public static final com.google.protobuf.Descriptors.Descriptor
40 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowModelProto_descriptor;
44 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
46 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowModelProto_fieldAccessorTable
47 .ensureFieldAccessorsInitialized(
48 com.google.ortools.graph.FlowModelProto.class, com.google.ortools.graph.FlowModelProto.Builder.class);
59 implements com.google.protobuf.ProtocolMessageEnum {
75 com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
76 com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
86 public static final int LINEAR_SUM_ASSIGNMENT_VALUE = 0;
90 public static final int MAX_FLOW_VALUE = 1;
94 public static final int MIN_COST_FLOW_VALUE = 2;
106 @java.lang.Deprecated
108 return forNumber(value);
117 case 0:
return LINEAR_SUM_ASSIGNMENT;
118 case 1:
return MAX_FLOW;
119 case 2:
return MIN_COST_FLOW;
120 default:
return null;
124 public static com.google.protobuf.Internal.EnumLiteMap<
ProblemType>
126 return internalValueMap;
128 private static final com.google.protobuf.Internal.EnumLiteMap<
130 new com.google.protobuf.Internal.EnumLiteMap<
ProblemType>() {
136 public final com.google.protobuf.Descriptors.EnumValueDescriptor
140 public final com.google.protobuf.Descriptors.EnumDescriptor
144 public static final com.google.protobuf.Descriptors.EnumDescriptor
146 return com.google.ortools.graph.FlowModelProto.getDescriptor().getEnumTypes().get(0);
149 private static final ProblemType[] VALUES = values();
152 com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
154 throw new java.lang.IllegalArgumentException(
155 "EnumValueDescriptor is not for this type.");
157 return VALUES[desc.getIndex()];
160 private final int value;
169 private int bitField0_;
171 @SuppressWarnings(
"serial")
172 private java.util.List<com.google.ortools.graph.
FlowNodeProto> nodes_;
184 public java.util.List<? extends com.google.ortools.graph.FlowNodeProtoOrBuilder>
193 return nodes_.size();
200 return nodes_.get(index);
208 return nodes_.get(index);
212 @SuppressWarnings(
"serial")
213 private java.util.List<com.google.ortools.graph.
FlowArcProto> arcs_;
225 public java.util.List<? extends com.google.ortools.graph.FlowArcProtoOrBuilder>
241 return arcs_.get(index);
249 return arcs_.get(index);
253 private int problemType_ = 0;
259 return ((bitField0_ & 0x00000001) != 0);
267 return result ==
null ? com.google.ortools.graph.FlowModelProto.ProblemType.LINEAR_SUM_ASSIGNMENT : result;
270 private byte memoizedIsInitialized = -1;
277 memoizedIsInitialized = 1;
282 public void writeTo(com.google.protobuf.CodedOutputStream output)
283 throws java.io.IOException {
284 for (
int i = 0; i < nodes_.size(); i++) {
285 output.writeMessage(1, nodes_.get(i));
287 for (
int i = 0; i < arcs_.size(); i++) {
288 output.writeMessage(2, arcs_.get(i));
290 if (((bitField0_ & 0x00000001) != 0)) {
291 output.writeEnum(3, problemType_);
293 getUnknownFields().writeTo(output);
298 int size = memoizedSize;
299 if (size != -1)
return size;
302 for (
int i = 0; i < nodes_.size(); i++) {
303 size += com.google.protobuf.CodedOutputStream
304 .computeMessageSize(1, nodes_.get(i));
306 for (
int i = 0; i < arcs_.size(); i++) {
307 size += com.google.protobuf.CodedOutputStream
308 .computeMessageSize(2, arcs_.get(i));
310 if (((bitField0_ & 0x00000001) != 0)) {
311 size += com.google.protobuf.CodedOutputStream
312 .computeEnumSize(3, problemType_);
314 size += getUnknownFields().getSerializedSize();
320 public boolean equals(
final java.lang.Object obj) {
324 if (!(obj instanceof com.google.ortools.graph.FlowModelProto)) {
325 return super.equals(obj);
335 if (problemType_ != other.problemType_)
return false;
337 if (!getUnknownFields().
equals(other.getUnknownFields()))
return false;
343 if (memoizedHashCode != 0) {
344 return memoizedHashCode;
358 hash = (53 * hash) + problemType_;
360 hash = (29 * hash) + getUnknownFields().hashCode();
361 memoizedHashCode = hash;
366 java.nio.ByteBuffer data)
367 throws com.google.protobuf.InvalidProtocolBufferException {
368 return PARSER.parseFrom(data);
371 java.nio.ByteBuffer data,
372 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
373 throws com.google.protobuf.InvalidProtocolBufferException {
374 return PARSER.parseFrom(data, extensionRegistry);
377 com.google.protobuf.ByteString data)
378 throws com.google.protobuf.InvalidProtocolBufferException {
379 return PARSER.parseFrom(data);
382 com.google.protobuf.ByteString data,
383 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
384 throws com.google.protobuf.InvalidProtocolBufferException {
385 return PARSER.parseFrom(data, extensionRegistry);
388 throws com.google.protobuf.InvalidProtocolBufferException {
389 return PARSER.parseFrom(data);
393 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
394 throws com.google.protobuf.InvalidProtocolBufferException {
395 return PARSER.parseFrom(data, extensionRegistry);
398 throws java.io.IOException {
399 return com.google.protobuf.GeneratedMessage
400 .parseWithIOException(PARSER, input);
403 java.io.InputStream input,
404 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
405 throws java.io.IOException {
406 return com.google.protobuf.GeneratedMessage
407 .parseWithIOException(PARSER, input, extensionRegistry);
411 throws java.io.IOException {
412 return com.google.protobuf.GeneratedMessage
413 .parseDelimitedWithIOException(PARSER, input);
417 java.io.InputStream input,
418 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
419 throws java.io.IOException {
420 return com.google.protobuf.GeneratedMessage
421 .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
424 com.google.protobuf.CodedInputStream input)
425 throws java.io.IOException {
426 return com.google.protobuf.GeneratedMessage
427 .parseWithIOException(PARSER, input);
430 com.google.protobuf.CodedInputStream input,
431 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
432 throws java.io.IOException {
433 return com.google.protobuf.GeneratedMessage
434 .parseWithIOException(PARSER, input, extensionRegistry);
447 return this == DEFAULT_INSTANCE
453 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
465 com.google.protobuf.GeneratedMessage.
Builder<Builder> implements
468 public static final com.google.protobuf.Descriptors.Descriptor
470 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowModelProto_descriptor;
474 protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
476 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowModelProto_fieldAccessorTable
477 .ensureFieldAccessorsInitialized(
478 com.google.ortools.graph.FlowModelProto.class, com.google.ortools.graph.FlowModelProto.Builder.class);
487 com.google.protobuf.GeneratedMessage.BuilderParent parent) {
495 if (nodesBuilder_ ==
null) {
496 nodes_ = java.util.Collections.emptyList();
499 nodesBuilder_.clear();
501 bitField0_ = (bitField0_ & ~0x00000001);
502 if (arcsBuilder_ ==
null) {
503 arcs_ = java.util.Collections.emptyList();
506 arcsBuilder_.clear();
508 bitField0_ = (bitField0_ & ~0x00000002);
514 public com.google.protobuf.Descriptors.Descriptor
516 return com.google.ortools.graph.FlowProblem.internal_static_operations_research_FlowModelProto_descriptor;
521 return com.google.ortools.graph.FlowModelProto.getDefaultInstance();
528 throw newUninitializedMessageException(result);
536 buildPartialRepeatedFields(result);
537 if (bitField0_ != 0) { buildPartial0(result); }
542 private void buildPartialRepeatedFields(com.google.ortools.graph.FlowModelProto result) {
543 if (nodesBuilder_ ==
null) {
544 if (((bitField0_ & 0x00000001) != 0)) {
545 nodes_ = java.util.Collections.unmodifiableList(nodes_);
546 bitField0_ = (bitField0_ & ~0x00000001);
548 result.nodes_ = nodes_;
550 result.nodes_ = nodesBuilder_.build();
552 if (arcsBuilder_ ==
null) {
553 if (((bitField0_ & 0x00000002) != 0)) {
554 arcs_ = java.util.Collections.unmodifiableList(arcs_);
555 bitField0_ = (bitField0_ & ~0x00000002);
557 result.arcs_ = arcs_;
559 result.arcs_ = arcsBuilder_.build();
563 private void buildPartial0(com.google.ortools.graph.FlowModelProto result) {
564 int from_bitField0_ = bitField0_;
565 int to_bitField0_ = 0;
566 if (((from_bitField0_ & 0x00000004) != 0)) {
567 result.problemType_ = problemType_;
568 to_bitField0_ |= 0x00000001;
570 result.bitField0_ |= to_bitField0_;
575 if (other instanceof com.google.ortools.graph.FlowModelProto) {
576 return mergeFrom((com.google.ortools.graph.FlowModelProto)other);
578 super.mergeFrom(other);
584 if (other == com.google.ortools.graph.FlowModelProto.getDefaultInstance())
return this;
585 if (nodesBuilder_ ==
null) {
586 if (!other.nodes_.isEmpty()) {
587 if (nodes_.isEmpty()) {
588 nodes_ = other.nodes_;
589 bitField0_ = (bitField0_ & ~0x00000001);
591 ensureNodesIsMutable();
592 nodes_.addAll(other.nodes_);
597 if (!other.nodes_.isEmpty()) {
598 if (nodesBuilder_.isEmpty()) {
599 nodesBuilder_.dispose();
600 nodesBuilder_ =
null;
601 nodes_ = other.nodes_;
602 bitField0_ = (bitField0_ & ~0x00000001);
604 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
605 getNodesFieldBuilder() :
null;
607 nodesBuilder_.addAllMessages(other.nodes_);
611 if (arcsBuilder_ ==
null) {
612 if (!other.arcs_.isEmpty()) {
613 if (arcs_.isEmpty()) {
615 bitField0_ = (bitField0_ & ~0x00000002);
617 ensureArcsIsMutable();
618 arcs_.addAll(other.arcs_);
623 if (!other.arcs_.isEmpty()) {
624 if (arcsBuilder_.isEmpty()) {
625 arcsBuilder_.dispose();
628 bitField0_ = (bitField0_ & ~0x00000002);
630 com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
631 getArcsFieldBuilder() :
null;
633 arcsBuilder_.addAllMessages(other.arcs_);
637 if (other.hasProblemType()) {
640 this.mergeUnknownFields(other.getUnknownFields());
652 com.google.protobuf.CodedInputStream input,
653 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
654 throws java.io.IOException {
655 if (extensionRegistry ==
null) {
656 throw new java.lang.NullPointerException();
659 boolean done =
false;
661 int tag = input.readTag();
669 com.google.ortools.graph.FlowNodeProto.parser(),
671 if (nodesBuilder_ ==
null) {
672 ensureNodesIsMutable();
675 nodesBuilder_.addMessage(m);
682 com.google.ortools.graph.FlowArcProto.parser(),
684 if (arcsBuilder_ ==
null) {
685 ensureArcsIsMutable();
688 arcsBuilder_.addMessage(m);
693 int tmpRaw = input.readEnum();
695 com.google.ortools.graph.FlowModelProto.ProblemType.forNumber(tmpRaw);
696 if (tmpValue ==
null) {
697 mergeUnknownVarintField(3, tmpRaw);
699 problemType_ = tmpRaw;
700 bitField0_ |= 0x00000004;
705 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
712 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
713 throw e.unwrapIOException();
719 private int bitField0_;
721 private java.util.List<com.google.ortools.graph.FlowNodeProto> nodes_ =
722 java.util.Collections.emptyList();
723 private void ensureNodesIsMutable() {
724 if (!((bitField0_ & 0x00000001) != 0)) {
725 nodes_ =
new java.util.ArrayList<com.google.ortools.graph.FlowNodeProto>(nodes_);
726 bitField0_ |= 0x00000001;
730 private com.google.protobuf.RepeatedFieldBuilder<
731 com.google.ortools.graph.FlowNodeProto, com.google.ortools.graph.FlowNodeProto.Builder, com.google.ortools.graph.FlowNodeProtoOrBuilder> nodesBuilder_;
736 public java.util.List<com.google.ortools.graph.FlowNodeProto>
getNodesList() {
737 if (nodesBuilder_ ==
null) {
738 return java.util.Collections.unmodifiableList(nodes_);
740 return nodesBuilder_.getMessageList();
747 if (nodesBuilder_ ==
null) {
748 return nodes_.size();
750 return nodesBuilder_.getCount();
757 if (nodesBuilder_ ==
null) {
758 return nodes_.get(index);
760 return nodesBuilder_.getMessage(index);
767 int index, com.google.ortools.graph.FlowNodeProto value) {
768 if (nodesBuilder_ ==
null) {
770 throw new NullPointerException();
772 ensureNodesIsMutable();
773 nodes_.set(index, value);
776 nodesBuilder_.setMessage(index, value);
784 int index, com.google.ortools.graph.FlowNodeProto.Builder builderForValue) {
785 if (nodesBuilder_ ==
null) {
786 ensureNodesIsMutable();
787 nodes_.set(index, builderForValue.build());
790 nodesBuilder_.setMessage(index, builderForValue.build());
798 if (nodesBuilder_ ==
null) {
800 throw new NullPointerException();
802 ensureNodesIsMutable();
806 nodesBuilder_.addMessage(value);
814 int index, com.google.ortools.graph.FlowNodeProto value) {
815 if (nodesBuilder_ ==
null) {
817 throw new NullPointerException();
819 ensureNodesIsMutable();
820 nodes_.add(index, value);
823 nodesBuilder_.addMessage(index, value);
831 com.google.ortools.graph.FlowNodeProto.Builder builderForValue) {
832 if (nodesBuilder_ ==
null) {
833 ensureNodesIsMutable();
834 nodes_.add(builderForValue.build());
837 nodesBuilder_.addMessage(builderForValue.build());
845 int index, com.google.ortools.graph.FlowNodeProto.Builder builderForValue) {
846 if (nodesBuilder_ ==
null) {
847 ensureNodesIsMutable();
848 nodes_.add(index, builderForValue.build());
851 nodesBuilder_.addMessage(index, builderForValue.build());
859 java.lang.Iterable<? extends com.google.ortools.graph.FlowNodeProto> values) {
860 if (nodesBuilder_ ==
null) {
861 ensureNodesIsMutable();
862 com.google.protobuf.AbstractMessageLite.Builder.addAll(
866 nodesBuilder_.addAllMessages(values);
874 if (nodesBuilder_ ==
null) {
875 nodes_ = java.util.Collections.emptyList();
876 bitField0_ = (bitField0_ & ~0x00000001);
879 nodesBuilder_.clear();
887 if (nodesBuilder_ ==
null) {
888 ensureNodesIsMutable();
889 nodes_.remove(index);
892 nodesBuilder_.remove(index);
901 return getNodesFieldBuilder().getBuilder(index);
908 if (nodesBuilder_ ==
null) {
909 return nodes_.get(index); }
else {
910 return nodesBuilder_.getMessageOrBuilder(index);
916 public java.util.List<? extends com.google.ortools.graph.FlowNodeProtoOrBuilder>
918 if (nodesBuilder_ !=
null) {
919 return nodesBuilder_.getMessageOrBuilderList();
921 return java.util.Collections.unmodifiableList(nodes_);
928 return getNodesFieldBuilder().addBuilder(
929 com.google.ortools.graph.FlowNodeProto.getDefaultInstance());
936 return getNodesFieldBuilder().addBuilder(
937 index, com.google.ortools.graph.FlowNodeProto.getDefaultInstance());
942 public java.util.List<com.google.ortools.graph.FlowNodeProto.Builder>
944 return getNodesFieldBuilder().getBuilderList();
946 private com.google.protobuf.RepeatedFieldBuilder<
947 com.google.ortools.graph.FlowNodeProto, com.google.ortools.graph.FlowNodeProto.Builder, com.google.ortools.graph.FlowNodeProtoOrBuilder>
948 getNodesFieldBuilder() {
949 if (nodesBuilder_ ==
null) {
950 nodesBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
951 com.google.ortools.graph.FlowNodeProto, com.google.ortools.graph.FlowNodeProto.Builder, com.google.ortools.graph.FlowNodeProtoOrBuilder>(
953 ((bitField0_ & 0x00000001) != 0),
954 getParentForChildren(),
958 return nodesBuilder_;
961 private java.util.List<com.google.ortools.graph.FlowArcProto> arcs_ =
962 java.util.Collections.emptyList();
963 private void ensureArcsIsMutable() {
964 if (!((bitField0_ & 0x00000002) != 0)) {
965 arcs_ =
new java.util.ArrayList<com.google.ortools.graph.FlowArcProto>(arcs_);
966 bitField0_ |= 0x00000002;
970 private com.google.protobuf.RepeatedFieldBuilder<
971 com.google.ortools.graph.FlowArcProto, com.google.ortools.graph.FlowArcProto.Builder, com.google.ortools.graph.FlowArcProtoOrBuilder> arcsBuilder_;
976 public java.util.List<com.google.ortools.graph.FlowArcProto>
getArcsList() {
977 if (arcsBuilder_ ==
null) {
978 return java.util.Collections.unmodifiableList(arcs_);
980 return arcsBuilder_.getMessageList();
987 if (arcsBuilder_ ==
null) {
990 return arcsBuilder_.getCount();
997 if (arcsBuilder_ ==
null) {
998 return arcs_.get(index);
1000 return arcsBuilder_.getMessage(index);
1007 int index, com.google.ortools.graph.FlowArcProto value) {
1008 if (arcsBuilder_ ==
null) {
1009 if (value ==
null) {
1010 throw new NullPointerException();
1012 ensureArcsIsMutable();
1013 arcs_.set(index, value);
1016 arcsBuilder_.setMessage(index, value);
1024 int index, com.google.ortools.graph.FlowArcProto.Builder builderForValue) {
1025 if (arcsBuilder_ ==
null) {
1026 ensureArcsIsMutable();
1027 arcs_.set(index, builderForValue.build());
1030 arcsBuilder_.setMessage(index, builderForValue.build());
1038 if (arcsBuilder_ ==
null) {
1039 if (value ==
null) {
1040 throw new NullPointerException();
1042 ensureArcsIsMutable();
1046 arcsBuilder_.addMessage(value);
1054 int index, com.google.ortools.graph.FlowArcProto value) {
1055 if (arcsBuilder_ ==
null) {
1056 if (value ==
null) {
1057 throw new NullPointerException();
1059 ensureArcsIsMutable();
1060 arcs_.add(index, value);
1063 arcsBuilder_.addMessage(index, value);
1071 com.google.ortools.graph.FlowArcProto.Builder builderForValue) {
1072 if (arcsBuilder_ ==
null) {
1073 ensureArcsIsMutable();
1074 arcs_.add(builderForValue.build());
1077 arcsBuilder_.addMessage(builderForValue.build());
1085 int index, com.google.ortools.graph.FlowArcProto.Builder builderForValue) {
1086 if (arcsBuilder_ ==
null) {
1087 ensureArcsIsMutable();
1088 arcs_.add(index, builderForValue.build());
1091 arcsBuilder_.addMessage(index, builderForValue.build());
1099 java.lang.Iterable<? extends com.google.ortools.graph.FlowArcProto> values) {
1100 if (arcsBuilder_ ==
null) {
1101 ensureArcsIsMutable();
1102 com.google.protobuf.AbstractMessageLite.Builder.addAll(
1106 arcsBuilder_.addAllMessages(values);
1114 if (arcsBuilder_ ==
null) {
1115 arcs_ = java.util.Collections.emptyList();
1116 bitField0_ = (bitField0_ & ~0x00000002);
1119 arcsBuilder_.clear();
1127 if (arcsBuilder_ ==
null) {
1128 ensureArcsIsMutable();
1129 arcs_.remove(index);
1132 arcsBuilder_.remove(index);
1141 return getArcsFieldBuilder().getBuilder(index);
1148 if (arcsBuilder_ ==
null) {
1149 return arcs_.get(index); }
else {
1150 return arcsBuilder_.getMessageOrBuilder(index);
1156 public java.util.List<? extends com.google.ortools.graph.FlowArcProtoOrBuilder>
1158 if (arcsBuilder_ !=
null) {
1159 return arcsBuilder_.getMessageOrBuilderList();
1161 return java.util.Collections.unmodifiableList(arcs_);
1168 return getArcsFieldBuilder().addBuilder(
1169 com.google.ortools.graph.FlowArcProto.getDefaultInstance());
1176 return getArcsFieldBuilder().addBuilder(
1177 index, com.google.ortools.graph.FlowArcProto.getDefaultInstance());
1182 public java.util.List<com.google.ortools.graph.FlowArcProto.Builder>
1184 return getArcsFieldBuilder().getBuilderList();
1186 private com.google.protobuf.RepeatedFieldBuilder<
1187 com.google.ortools.graph.FlowArcProto, com.google.ortools.graph.FlowArcProto.Builder, com.google.ortools.graph.FlowArcProtoOrBuilder>
1188 getArcsFieldBuilder() {
1189 if (arcsBuilder_ ==
null) {
1190 arcsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilder<
1191 com.google.ortools.graph.FlowArcProto, com.google.ortools.graph.FlowArcProto.Builder, com.google.ortools.graph.FlowArcProtoOrBuilder>(
1193 ((bitField0_ & 0x00000002) != 0),
1194 getParentForChildren(),
1198 return arcsBuilder_;
1201 private int problemType_ = 0;
1207 return ((bitField0_ & 0x00000004) != 0);
1216 return result ==
null ? com.google.ortools.graph.FlowModelProto.ProblemType.LINEAR_SUM_ASSIGNMENT : result;
1224 if (value ==
null) {
1225 throw new NullPointerException();
1227 bitField0_ |= 0x00000004;
1228 problemType_ = value.getNumber();
1237 bitField0_ = (bitField0_ & ~0x00000004);
1249 DEFAULT_INSTANCE =
new com.google.ortools.graph.FlowModelProto();
1253 return DEFAULT_INSTANCE;
1257 PARSER =
new com.google.protobuf.AbstractParser<
FlowModelProto>() {
1260 com.google.protobuf.CodedInputStream input,
1261 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1262 throws com.google.protobuf.InvalidProtocolBufferException {
1265 builder.mergeFrom(input, extensionRegistry);
1266 }
catch (com.google.protobuf.InvalidProtocolBufferException e) {
1267 throw e.setUnfinishedMessage(builder.buildPartial());
1268 }
catch (com.google.protobuf.UninitializedMessageException e) {
1269 throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
1270 }
catch (java.io.IOException e) {
1271 throw new com.google.protobuf.InvalidProtocolBufferException(e)
1272 .setUnfinishedMessage(builder.buildPartial());
1274 return builder.buildPartial();
1289 return DEFAULT_INSTANCE;