public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (age_ != 0L) { output.writeInt64(2, age_); } for (int i = 0; i < hobbies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hobbies_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetBagOfTricks(), BagOfTricksDefaultEntryHolder.defaultEntry, 4); if (sentiment_ != com.example.grpc.Sentiment.HAPPY.getNumber()) { output.writeEnum(5, sentiment_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (age_ != 0) { output.writeInt32(2, age_); } for (int i = 0; i < hobbies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hobbies_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetBagOfTricks(), BagOfTricksDefaultEntryHolder.defaultEntry, 4); if (sentiment_ != com.example.grpc.Sentiment.HAPPY.getNumber()) { output.writeEnum(5, sentiment_); } unknownFields.writeTo(output); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (age_ != 0L) { output.writeInt64(2, age_); } for (int i = 0; i < hobbies_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hobbies_.getRaw(i)); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetBagOfTricks(), BagOfTricksDefaultEntryHolder.defaultEntry, 4); if (sentiment_ != com.example.grpc.Sentiment.HAPPY.getNumber()) { output.writeEnum(5, sentiment_); } unknownFields.writeTo(output); }
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);