docs: public static int computeElementSize(final WireFormat.FieldType type, final int number, final Object value) {
          int tagSize = CodedOutputStream.computeTagSize(number);
          if (type == WireFormat.FieldType.GROUP) {
              // Only count the end group tag for proto2 messages as for proto1 the end
              // group tag will be counted as a part of getSerializedSize().
              tagSize *= 2;
          }
          return tagSize + computeElementSizeNoTag(type, value);
      }